@sikka/hawa 0.2.16-beta → 0.2.17-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/Account/UserProfileForm.d.ts +9 -0
- package/dist/blocks/Account/UserProfileForm.d.ts.map +1 -0
- package/dist/blocks/Account/UserSettingsForm.d.ts +10 -0
- package/dist/blocks/Account/UserSettingsForm.d.ts.map +1 -0
- package/dist/blocks/Account/index.d.ts +3 -0
- package/dist/blocks/Account/index.d.ts.map +1 -0
- package/dist/blocks/AuthForms/AppLanding.d.ts +39 -0
- package/dist/blocks/AuthForms/AppLanding.d.ts.map +1 -0
- package/dist/blocks/AuthForms/CheckEmail.d.ts +12 -0
- package/dist/blocks/AuthForms/CheckEmail.d.ts.map +1 -0
- package/dist/blocks/AuthForms/CodeConfirmation.d.ts +23 -0
- package/dist/blocks/AuthForms/CodeConfirmation.d.ts.map +1 -0
- package/dist/blocks/AuthForms/NewPasswordForm.d.ts +21 -0
- package/dist/blocks/AuthForms/NewPasswordForm.d.ts.map +1 -0
- package/dist/blocks/AuthForms/ResetPasswordForm.d.ts +21 -0
- package/dist/blocks/AuthForms/ResetPasswordForm.d.ts.map +1 -0
- package/dist/blocks/AuthForms/SignInBlock.d.ts +3 -0
- package/dist/blocks/AuthForms/SignInBlock.d.ts.map +1 -0
- package/dist/blocks/AuthForms/SignInForm.d.ts +60 -0
- package/dist/blocks/AuthForms/SignInForm.d.ts.map +1 -0
- package/dist/blocks/AuthForms/SignInPhone.d.ts +25 -0
- package/dist/blocks/AuthForms/SignInPhone.d.ts.map +1 -0
- package/dist/blocks/AuthForms/SignUpForm.d.ts +61 -0
- package/dist/blocks/AuthForms/SignUpForm.d.ts.map +1 -0
- package/dist/blocks/AuthForms/index.d.ts +10 -0
- package/dist/blocks/AuthForms/index.d.ts.map +1 -0
- package/dist/blocks/Misc/Announcement.d.ts +11 -0
- package/dist/blocks/Misc/Announcement.d.ts.map +1 -0
- package/dist/blocks/Misc/EmptyState.d.ts +12 -0
- package/dist/blocks/Misc/EmptyState.d.ts.map +1 -0
- package/dist/blocks/Misc/LeadGenerator.d.ts +13 -0
- package/dist/blocks/Misc/LeadGenerator.d.ts.map +1 -0
- package/dist/blocks/Misc/NoPermission.d.ts +10 -0
- package/dist/blocks/Misc/NoPermission.d.ts.map +1 -0
- package/dist/blocks/Misc/NotFound.d.ts +12 -0
- package/dist/blocks/Misc/NotFound.d.ts.map +1 -0
- package/dist/blocks/Misc/Testimonial.d.ts +7 -0
- package/dist/blocks/Misc/Testimonial.d.ts.map +1 -0
- package/dist/blocks/Misc/index.d.ts +7 -0
- package/dist/blocks/Misc/index.d.ts.map +1 -0
- package/dist/blocks/Payment/ChargeWalletForm.d.ts +13 -0
- package/dist/blocks/Payment/ChargeWalletForm.d.ts.map +1 -0
- package/dist/blocks/Payment/CheckoutForm.d.ts +28 -0
- package/dist/blocks/Payment/CheckoutForm.d.ts.map +1 -0
- package/dist/blocks/Payment/Confirmation.d.ts +39 -0
- package/dist/blocks/Payment/Confirmation.d.ts.map +1 -0
- package/dist/blocks/Payment/CreditCardForm.d.ts +8 -0
- package/dist/blocks/Payment/CreditCardForm.d.ts.map +1 -0
- package/dist/blocks/Payment/PayWithWallet.d.ts +9 -0
- package/dist/blocks/Payment/PayWithWallet.d.ts.map +1 -0
- package/dist/blocks/Payment/SelectPayment.d.ts +21 -0
- package/dist/blocks/Payment/SelectPayment.d.ts.map +1 -0
- package/dist/blocks/Payment/index.d.ts +7 -0
- package/dist/blocks/Payment/index.d.ts.map +1 -0
- package/dist/blocks/Pricing/ComparingPlans.d.ts +40 -0
- package/dist/blocks/Pricing/ComparingPlans.d.ts.map +1 -0
- package/dist/blocks/Pricing/HorizontalPricing.d.ts +48 -0
- package/dist/blocks/Pricing/HorizontalPricing.d.ts.map +1 -0
- package/dist/blocks/Pricing/PricingPlans.d.ts +48 -0
- package/dist/blocks/Pricing/PricingPlans.d.ts.map +1 -0
- package/dist/blocks/Pricing/index.d.ts +4 -0
- package/dist/blocks/Pricing/index.d.ts.map +1 -0
- package/dist/blocks/Referral/ReferralAccount.d.ts +8 -0
- package/dist/blocks/Referral/ReferralAccount.d.ts.map +1 -0
- package/dist/blocks/Referral/ReferralSettlement.d.ts +9 -0
- package/dist/blocks/Referral/ReferralSettlement.d.ts.map +1 -0
- package/dist/blocks/Referral/ReferralStats.d.ts +9 -0
- package/dist/blocks/Referral/ReferralStats.d.ts.map +1 -0
- package/dist/blocks/Referral/index.d.ts +4 -0
- package/dist/blocks/Referral/index.d.ts.map +1 -0
- package/dist/blocks/index.d.ts +7 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/countries.d.ts +3 -0
- package/dist/countries.d.ts.map +1 -0
- package/dist/doc-icon.svg +9 -0
- package/dist/elements/ActionCard.d.ts +14 -0
- package/dist/elements/ActionCard.d.ts.map +1 -0
- package/dist/elements/ArrowCarousel.d.ts +14 -0
- package/dist/elements/ArrowCarousel.d.ts.map +1 -0
- package/dist/elements/AutoCompleteField.d.ts +9 -0
- package/dist/elements/AutoCompleteField.d.ts.map +1 -0
- package/dist/elements/BackToTop.d.ts +11 -0
- package/dist/elements/BackToTop.d.ts.map +1 -0
- package/dist/elements/Breadcrumb.d.ts +13 -0
- package/dist/elements/Breadcrumb.d.ts.map +1 -0
- package/dist/elements/Button.d.ts +13 -0
- package/dist/elements/Button.d.ts.map +1 -0
- package/dist/elements/Card.d.ts +14 -0
- package/dist/elements/Card.d.ts.map +1 -0
- package/dist/elements/Carousel.d.ts +7 -0
- package/dist/elements/Carousel.d.ts.map +1 -0
- package/dist/elements/Dialog.d.ts +17 -0
- package/dist/elements/Dialog.d.ts.map +1 -0
- package/dist/elements/DragDropImages.d.ts +36 -0
- package/dist/elements/DragDropImages.d.ts.map +1 -0
- package/dist/elements/DraggableCard.d.ts +7 -0
- package/dist/elements/DraggableCard.d.ts.map +1 -0
- package/dist/elements/DropdownMenu.d.ts +42 -0
- package/dist/elements/DropdownMenu.d.ts.map +1 -0
- package/dist/elements/FeedbackByEmoji.d.ts +8 -0
- package/dist/elements/FeedbackByEmoji.d.ts.map +1 -0
- package/dist/elements/FeedbackRating.d.ts +15 -0
- package/dist/elements/FeedbackRating.d.ts.map +1 -0
- package/dist/elements/FloatingComment.d.ts +33 -0
- package/dist/elements/FloatingComment.d.ts.map +1 -0
- package/dist/elements/FloatingCommentExec.d.ts +5 -0
- package/dist/elements/FloatingCommentExec.d.ts.map +1 -0
- package/dist/elements/FloatingCommentSlate.d.ts +20 -0
- package/dist/elements/FloatingCommentSlate.d.ts.map +1 -0
- package/dist/elements/HawaAccordion.d.ts +12 -0
- package/dist/elements/HawaAccordion.d.ts.map +1 -0
- package/dist/elements/HawaAdCard.d.ts +13 -0
- package/dist/elements/HawaAdCard.d.ts.map +1 -0
- package/dist/elements/HawaAlert.d.ts +25 -0
- package/dist/elements/HawaAlert.d.ts.map +1 -0
- package/dist/elements/HawaButton.d.ts +22 -0
- package/dist/elements/HawaButton.d.ts.map +1 -0
- package/dist/elements/HawaCheckbox.d.ts +12 -0
- package/dist/elements/HawaCheckbox.d.ts.map +1 -0
- package/dist/elements/HawaChip.d.ts +18 -0
- package/dist/elements/HawaChip.d.ts.map +1 -0
- package/dist/elements/HawaCodeBlock.d.ts +16 -0
- package/dist/elements/HawaCodeBlock.d.ts.map +1 -0
- package/dist/elements/HawaColorPicker.d.ts +10 -0
- package/dist/elements/HawaColorPicker.d.ts.map +1 -0
- package/dist/elements/HawaCopyrights.d.ts +16 -0
- package/dist/elements/HawaCopyrights.d.ts.map +1 -0
- package/dist/elements/HawaDatepicker.d.ts +5 -0
- package/dist/elements/HawaDatepicker.d.ts.map +1 -0
- package/dist/elements/HawaIconCount.d.ts +10 -0
- package/dist/elements/HawaIconCount.d.ts.map +1 -0
- package/dist/elements/HawaInlineCode.d.ts +7 -0
- package/dist/elements/HawaInlineCode.d.ts.map +1 -0
- package/dist/elements/HawaItemCard.d.ts +28 -0
- package/dist/elements/HawaItemCard.d.ts.map +1 -0
- package/dist/elements/HawaLandingCard.d.ts +19 -0
- package/dist/elements/HawaLandingCard.d.ts.map +1 -0
- package/dist/elements/HawaLoading.d.ts +9 -0
- package/dist/elements/HawaLoading.d.ts.map +1 -0
- package/dist/elements/HawaMenu.d.ts +25 -0
- package/dist/elements/HawaMenu.d.ts.map +1 -0
- package/dist/elements/HawaModal.d.ts +22 -0
- package/dist/elements/HawaModal.d.ts.map +1 -0
- package/dist/elements/HawaPanelTabs.d.ts +14 -0
- package/dist/elements/HawaPanelTabs.d.ts.map +1 -0
- package/dist/elements/HawaPhoneInput.d.ts +12 -0
- package/dist/elements/HawaPhoneInput.d.ts.map +1 -0
- package/dist/elements/HawaPinInput.d.ts +11 -0
- package/dist/elements/HawaPinInput.d.ts.map +1 -0
- package/dist/elements/HawaPricingCard.d.ts +22 -0
- package/dist/elements/HawaPricingCard.d.ts.map +1 -0
- package/dist/elements/HawaRadio.d.ts +18 -0
- package/dist/elements/HawaRadio.d.ts.map +1 -0
- package/dist/elements/HawaRange.d.ts +13 -0
- package/dist/elements/HawaRange.d.ts.map +1 -0
- package/dist/elements/HawaSearchBar.d.ts +5 -0
- package/dist/elements/HawaSearchBar.d.ts.map +1 -0
- package/dist/elements/HawaSelect.d.ts +26 -0
- package/dist/elements/HawaSelect.d.ts.map +1 -0
- package/dist/elements/HawaSettingsRow.d.ts +45 -0
- package/dist/elements/HawaSettingsRow.d.ts.map +1 -0
- package/dist/elements/HawaStats.d.ts +16 -0
- package/dist/elements/HawaStats.d.ts.map +1 -0
- package/dist/elements/HawaStepper.d.ts +9 -0
- package/dist/elements/HawaStepper.d.ts.map +1 -0
- package/dist/elements/HawaStoreButtons.d.ts +8 -0
- package/dist/elements/HawaStoreButtons.d.ts.map +1 -0
- package/dist/elements/HawaTable.d.ts +42 -0
- package/dist/elements/HawaTable.d.ts.map +1 -0
- package/dist/elements/HawaTabs.d.ts +14 -0
- package/dist/elements/HawaTabs.d.ts.map +1 -0
- package/dist/elements/HawaTextField.d.ts +34 -0
- package/dist/elements/HawaTextField.d.ts.map +1 -0
- package/dist/elements/HawaTypography.d.ts +8 -0
- package/dist/elements/HawaTypography.d.ts.map +1 -0
- package/dist/elements/Icons.d.ts +23 -0
- package/dist/elements/Icons.d.ts.map +1 -0
- package/dist/elements/Input.d.ts +7 -0
- package/dist/elements/Input.d.ts.map +1 -0
- package/dist/elements/InterfaceSettings.d.ts +12 -0
- package/dist/elements/InterfaceSettings.d.ts.map +1 -0
- package/dist/elements/InvoiceAccordion.d.ts +32 -0
- package/dist/elements/InvoiceAccordion.d.ts.map +1 -0
- package/dist/elements/Label.d.ts +6 -0
- package/dist/elements/Label.d.ts.map +1 -0
- package/dist/elements/Popover.d.ts +13 -0
- package/dist/elements/Popover.d.ts.map +1 -0
- package/dist/elements/Select.d.ts +12 -0
- package/dist/elements/Select.d.ts.map +1 -0
- package/dist/elements/Separator.d.ts +5 -0
- package/dist/elements/Separator.d.ts.map +1 -0
- package/dist/elements/Skeleton.d.ts +4 -0
- package/dist/elements/Skeleton.d.ts.map +1 -0
- package/dist/elements/StickyFeatures.d.ts +15 -0
- package/dist/elements/StickyFeatures.d.ts.map +1 -0
- package/dist/elements/SubsectionList.d.ts +20 -0
- package/dist/elements/SubsectionList.d.ts.map +1 -0
- package/dist/elements/Switch.d.ts +9 -0
- package/dist/elements/Switch.d.ts.map +1 -0
- package/dist/elements/TabPanel.d.ts +9 -0
- package/dist/elements/TabPanel.d.ts.map +1 -0
- package/dist/elements/Tabs.d.ts +10 -0
- package/dist/elements/Tabs.d.ts.map +1 -0
- package/dist/elements/Textarea.d.ts +8 -0
- package/dist/elements/Textarea.d.ts.map +1 -0
- package/dist/elements/Timeline.d.ts +14 -0
- package/dist/elements/Timeline.d.ts.map +1 -0
- package/dist/elements/Toast.d.ts +20 -0
- package/dist/elements/Toast.d.ts.map +1 -0
- package/dist/elements/Toaster.d.ts +3 -0
- package/dist/elements/Toaster.d.ts.map +1 -0
- package/dist/elements/Tooltip.d.ts +13 -0
- package/dist/elements/Tooltip.d.ts.map +1 -0
- package/dist/elements/UsageCard.d.ts +10 -0
- package/dist/elements/UsageCard.d.ts.map +1 -0
- package/dist/elements/UserReferralSource.d.ts +15 -0
- package/dist/elements/UserReferralSource.d.ts.map +1 -0
- package/dist/elements/index.d.ts +69 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useBreakpoint.d.ts +3 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/useCarousel.d.ts +9 -0
- package/dist/hooks/useCarousel.d.ts.map +1 -0
- package/dist/hooks/useClipboard.d.ts +9 -0
- package/dist/hooks/useClipboard.d.ts.map +1 -0
- package/dist/hooks/useDiscloser.d.ts +8 -0
- package/dist/hooks/useDiscloser.d.ts.map +1 -0
- package/dist/hooks/useFocusWithin.d.ts +10 -0
- package/dist/hooks/useFocusWithin.d.ts.map +1 -0
- package/dist/hooks/useFullscreen.d.ts +6 -0
- package/dist/hooks/useFullscreen.d.ts.map +1 -0
- package/dist/hooks/useHover.d.ts +4 -0
- package/dist/hooks/useHover.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +5 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/hooks/useScrollPosition.d.ts +3 -0
- package/dist/hooks/useScrollPosition.d.ts.map +1 -0
- package/dist/hooks/useTable.d.ts +6 -0
- package/dist/hooks/useTable.d.ts.map +1 -0
- package/dist/hooks/useTabs.d.ts +6 -0
- package/dist/hooks/useTabs.d.ts.map +1 -0
- package/dist/hooks/useToast.d.ts +46 -0
- package/dist/hooks/useToast.d.ts.map +1 -0
- package/dist/hooks/useWindowEvent.d.ts +2 -0
- package/dist/hooks/useWindowEvent.d.ts.map +1 -0
- package/dist/hooks/useWindowScroll.d.ts +8 -0
- package/dist/hooks/useWindowScroll.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +43458 -0
- package/dist/index.umd.js +230 -0
- package/dist/layout/AppLayout.d.ts +46 -0
- package/dist/layout/AppLayout.d.ts.map +1 -0
- package/dist/layout/AppSidebar.d.ts +12 -0
- package/dist/layout/AppSidebar.d.ts.map +1 -0
- package/dist/layout/Banner.d.ts +15 -0
- package/dist/layout/Banner.d.ts.map +1 -0
- package/dist/layout/Box.d.ts +3 -0
- package/dist/layout/Box.d.ts.map +1 -0
- package/dist/layout/Footer.d.ts +23 -0
- package/dist/layout/Footer.d.ts.map +1 -0
- package/dist/layout/HawaAppLayout.d.ts +32 -0
- package/dist/layout/HawaAppLayout.d.ts.map +1 -0
- package/dist/layout/HawaAppLayoutSimplified.d.ts +33 -0
- package/dist/layout/HawaAppLayoutSimplified.d.ts.map +1 -0
- package/dist/layout/HawaBottomAppBar.d.ts +9 -0
- package/dist/layout/HawaBottomAppBar.d.ts.map +1 -0
- package/dist/layout/HawaContainer.d.ts +11 -0
- package/dist/layout/HawaContainer.d.ts.map +1 -0
- package/dist/layout/HawaGrid.d.ts +7 -0
- package/dist/layout/HawaGrid.d.ts.map +1 -0
- package/dist/layout/HawaSiteLayout.d.ts +24 -0
- package/dist/layout/HawaSiteLayout.d.ts.map +1 -0
- package/dist/layout/Sidebar.d.ts +36 -0
- package/dist/layout/Sidebar.d.ts.map +1 -0
- package/dist/layout/Sidebar2.d.ts +21 -0
- package/dist/layout/Sidebar2.d.ts.map +1 -0
- package/dist/layout/index.d.ts +13 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/stories/ElementsStories/Breadcrumb.stories.d.ts +7 -0
- package/dist/stories/ElementsStories/Breadcrumb.stories.d.ts.map +1 -0
- package/dist/stories/ManualStories/BlocksIntroduction.stories.d.ts +21 -0
- package/dist/stories/ManualStories/BlocksIntroduction.stories.d.ts.map +1 -0
- package/dist/stories/ManualStories/Customization.stories.d.ts +21 -0
- package/dist/stories/ManualStories/Customization.stories.d.ts.map +1 -0
- package/dist/stories/ManualStories/ElementsIntroduction.stories.d.ts +21 -0
- package/dist/stories/ManualStories/ElementsIntroduction.stories.d.ts.map +1 -0
- package/dist/stories/ManualStories/Installation.stories.d.ts +21 -0
- package/dist/stories/ManualStories/Installation.stories.d.ts.map +1 -0
- package/dist/stories/ManualStories/LayoutIntroduction.stories.d.ts +21 -0
- package/dist/stories/ManualStories/LayoutIntroduction.stories.d.ts.map +1 -0
- package/dist/stories/ManualStories/Overview.stories.d.ts +22 -0
- package/dist/stories/ManualStories/Overview.stories.d.ts.map +1 -0
- package/dist/stories/ManualStories/Usage.stories.d.ts +21 -0
- package/dist/stories/ManualStories/Usage.stories.d.ts.map +1 -0
- package/dist/util.d.ts +11 -0
- package/dist/util.d.ts.map +1 -0
- package/package.json +20 -3
- package/dist/styles.css +0 -4222
- package/es/index.es.js/_virtual/index.js +0 -1
- package/es/index.es.js/_virtual/index2.js +0 -1
- package/es/index.es.js/_virtual/index3.js +0 -1
- package/es/index.es.js/_virtual/index4.js +0 -1
- package/es/index.es.js/_virtual/index5.js +0 -1
- package/es/index.es.js/_virtual/index6.js +0 -1
- package/es/index.es.js/_virtual/react-dom-server-legacy.node.development.js +0 -1
- package/es/index.es.js/_virtual/react-dom-server-legacy.node.production.min.js +0 -1
- package/es/index.es.js/_virtual/react-dom-server.node.development.js +0 -1
- package/es/index.es.js/_virtual/react-dom-server.node.production.min.js +0 -1
- package/es/index.es.js/_virtual/react-dom.development.js +0 -1
- package/es/index.es.js/_virtual/react-dom.production.min.js +0 -1
- package/es/index.es.js/_virtual/react-is.development.js +0 -1
- package/es/index.es.js/_virtual/react-is.production.min.js +0 -1
- package/es/index.es.js/_virtual/react.development.js +0 -1
- package/es/index.es.js/_virtual/react.production.min.js +0 -1
- package/es/index.es.js/_virtual/scheduler.development.js +0 -1
- package/es/index.es.js/_virtual/scheduler.production.min.js +0 -1
- package/es/index.es.js/_virtual/server.node.js +0 -1
- package/es/index.es.js/blocks/Account/UserProfileForm.d.ts +0 -8
- package/es/index.es.js/blocks/Account/UserSettingsForm.d.ts +0 -9
- package/es/index.es.js/blocks/Account/index.d.ts +0 -2
- package/es/index.es.js/blocks/AuthForms/AppLanding.d.ts +0 -38
- package/es/index.es.js/blocks/AuthForms/CheckEmail.d.ts +0 -11
- package/es/index.es.js/blocks/AuthForms/CodeConfirmation.d.ts +0 -22
- package/es/index.es.js/blocks/AuthForms/NewPasswordForm.d.ts +0 -20
- package/es/index.es.js/blocks/AuthForms/ResetPasswordForm.d.ts +0 -20
- package/es/index.es.js/blocks/AuthForms/SignInBlock.d.ts +0 -2
- package/es/index.es.js/blocks/AuthForms/SignInForm.d.ts +0 -59
- package/es/index.es.js/blocks/AuthForms/SignInPhone.d.ts +0 -24
- package/es/index.es.js/blocks/AuthForms/SignUpForm.d.ts +0 -60
- package/es/index.es.js/blocks/AuthForms/index.d.ts +0 -9
- package/es/index.es.js/blocks/Misc/Announcement.d.ts +0 -10
- package/es/index.es.js/blocks/Misc/EmptyState.d.ts +0 -11
- package/es/index.es.js/blocks/Misc/LeadGenerator.d.ts +0 -12
- package/es/index.es.js/blocks/Misc/NoPermission.d.ts +0 -9
- package/es/index.es.js/blocks/Misc/NotFound.d.ts +0 -11
- package/es/index.es.js/blocks/Misc/Testimonial.d.ts +0 -6
- package/es/index.es.js/blocks/Misc/index.d.ts +0 -6
- package/es/index.es.js/blocks/Payment/ChargeWalletForm.d.ts +0 -12
- package/es/index.es.js/blocks/Payment/CheckoutForm.d.ts +0 -27
- package/es/index.es.js/blocks/Payment/Confirmation.d.ts +0 -38
- package/es/index.es.js/blocks/Payment/CreditCardForm.d.ts +0 -7
- package/es/index.es.js/blocks/Payment/PayWithWallet.d.ts +0 -8
- package/es/index.es.js/blocks/Payment/SelectPayment.d.ts +0 -20
- package/es/index.es.js/blocks/Payment/index.d.ts +0 -6
- package/es/index.es.js/blocks/Pricing/ComparingPlans.d.ts +0 -39
- package/es/index.es.js/blocks/Pricing/HorizontalPricing.d.ts +0 -47
- package/es/index.es.js/blocks/Pricing/PricingPlans.d.ts +0 -47
- package/es/index.es.js/blocks/Pricing/index.d.ts +0 -3
- package/es/index.es.js/blocks/Referral/ReferralAccount.d.ts +0 -7
- package/es/index.es.js/blocks/Referral/ReferralSettlement.d.ts +0 -8
- package/es/index.es.js/blocks/Referral/ReferralStats.d.ts +0 -8
- package/es/index.es.js/blocks/Referral/index.d.ts +0 -3
- package/es/index.es.js/blocks/index.d.ts +0 -6
- package/es/index.es.js/countries.d.ts +0 -2
- package/es/index.es.js/elements/ActionCard.d.ts +0 -13
- package/es/index.es.js/elements/ArrowCarousel.d.ts +0 -13
- package/es/index.es.js/elements/AutoCompleteField.d.ts +0 -8
- package/es/index.es.js/elements/BackToTop.d.ts +0 -10
- package/es/index.es.js/elements/Breadcrumb.d.ts +0 -12
- package/es/index.es.js/elements/Button.d.ts +0 -12
- package/es/index.es.js/elements/Card.d.ts +0 -13
- package/es/index.es.js/elements/Carousel.d.ts +0 -6
- package/es/index.es.js/elements/Dialog.d.ts +0 -16
- package/es/index.es.js/elements/DragDropImages.d.ts +0 -35
- package/es/index.es.js/elements/DraggableCard.d.ts +0 -6
- package/es/index.es.js/elements/DropdownMenu.d.ts +0 -41
- package/es/index.es.js/elements/FeedbackByEmoji.d.ts +0 -7
- package/es/index.es.js/elements/FeedbackRating.d.ts +0 -14
- package/es/index.es.js/elements/FloatingComment.d.ts +0 -32
- package/es/index.es.js/elements/FloatingCommentExec.d.ts +0 -4
- package/es/index.es.js/elements/FloatingCommentSlate.d.ts +0 -19
- package/es/index.es.js/elements/HawaAccordion.d.ts +0 -11
- package/es/index.es.js/elements/HawaAdCard.d.ts +0 -12
- package/es/index.es.js/elements/HawaAlert.d.ts +0 -24
- package/es/index.es.js/elements/HawaButton.d.ts +0 -21
- package/es/index.es.js/elements/HawaCheckbox.d.ts +0 -11
- package/es/index.es.js/elements/HawaChip.d.ts +0 -17
- package/es/index.es.js/elements/HawaCodeBlock.d.ts +0 -15
- package/es/index.es.js/elements/HawaColorPicker.d.ts +0 -9
- package/es/index.es.js/elements/HawaCopyrights.d.ts +0 -15
- package/es/index.es.js/elements/HawaDatepicker.d.ts +0 -4
- package/es/index.es.js/elements/HawaIconCount.d.ts +0 -9
- package/es/index.es.js/elements/HawaInlineCode.d.ts +0 -6
- package/es/index.es.js/elements/HawaItemCard.d.ts +0 -27
- package/es/index.es.js/elements/HawaLandingCard.d.ts +0 -18
- package/es/index.es.js/elements/HawaLoading.d.ts +0 -8
- package/es/index.es.js/elements/HawaMenu.d.ts +0 -24
- package/es/index.es.js/elements/HawaModal.d.ts +0 -21
- package/es/index.es.js/elements/HawaPanelTabs.d.ts +0 -13
- package/es/index.es.js/elements/HawaPhoneInput.d.ts +0 -11
- package/es/index.es.js/elements/HawaPinInput.d.ts +0 -10
- package/es/index.es.js/elements/HawaPricingCard.d.ts +0 -21
- package/es/index.es.js/elements/HawaRadio.d.ts +0 -17
- package/es/index.es.js/elements/HawaRange.d.ts +0 -12
- package/es/index.es.js/elements/HawaSearchBar.d.ts +0 -4
- package/es/index.es.js/elements/HawaSelect.d.ts +0 -25
- package/es/index.es.js/elements/HawaSettingsRow.d.ts +0 -44
- package/es/index.es.js/elements/HawaStats.d.ts +0 -15
- package/es/index.es.js/elements/HawaStepper.d.ts +0 -8
- package/es/index.es.js/elements/HawaStoreButtons.d.ts +0 -7
- package/es/index.es.js/elements/HawaTable.d.ts +0 -41
- package/es/index.es.js/elements/HawaTabs.d.ts +0 -13
- package/es/index.es.js/elements/HawaTextField.d.ts +0 -33
- package/es/index.es.js/elements/HawaTypography.d.ts +0 -7
- package/es/index.es.js/elements/Icons.d.ts +0 -22
- package/es/index.es.js/elements/Input.d.ts +0 -6
- package/es/index.es.js/elements/InterfaceSettings.d.ts +0 -11
- package/es/index.es.js/elements/InvoiceAccordion.d.ts +0 -31
- package/es/index.es.js/elements/Label.d.ts +0 -5
- package/es/index.es.js/elements/Popover.d.ts +0 -12
- package/es/index.es.js/elements/Select.d.ts +0 -11
- package/es/index.es.js/elements/Separator.d.ts +0 -4
- package/es/index.es.js/elements/Skeleton.d.ts +0 -3
- package/es/index.es.js/elements/StickyFeatures.d.ts +0 -14
- package/es/index.es.js/elements/SubsectionList.d.ts +0 -19
- package/es/index.es.js/elements/Switch.d.ts +0 -8
- package/es/index.es.js/elements/TabPanel.d.ts +0 -8
- package/es/index.es.js/elements/Tabs.d.ts +0 -9
- package/es/index.es.js/elements/Textarea.d.ts +0 -7
- package/es/index.es.js/elements/Timeline.d.ts +0 -13
- package/es/index.es.js/elements/Toast.d.ts +0 -19
- package/es/index.es.js/elements/Toaster.d.ts +0 -2
- package/es/index.es.js/elements/Tooltip.d.ts +0 -12
- package/es/index.es.js/elements/UsageCard.d.ts +0 -9
- package/es/index.es.js/elements/UserReferralSource.d.ts +0 -14
- package/es/index.es.js/elements/index.d.ts +0 -68
- package/es/index.es.js/hooks/index.d.ts +0 -13
- package/es/index.es.js/hooks/useBreakpoint.d.ts +0 -2
- package/es/index.es.js/hooks/useCarousel.d.ts +0 -9
- package/es/index.es.js/hooks/useClipboard.d.ts +0 -8
- package/es/index.es.js/hooks/useDiscloser.d.ts +0 -7
- package/es/index.es.js/hooks/useFocusWithin.d.ts +0 -9
- package/es/index.es.js/hooks/useFullscreen.d.ts +0 -5
- package/es/index.es.js/hooks/useHover.d.ts +0 -3
- package/es/index.es.js/hooks/useMediaQuery.d.ts +0 -4
- package/es/index.es.js/hooks/useScrollPosition.d.ts +0 -2
- package/es/index.es.js/hooks/useTable.d.ts +0 -5
- package/es/index.es.js/hooks/useTabs.d.ts +0 -5
- package/es/index.es.js/hooks/useToast.d.ts +0 -45
- package/es/index.es.js/hooks/useWindowEvent.d.ts +0 -1
- package/es/index.es.js/hooks/useWindowScroll.d.ts +0 -7
- package/es/index.es.js/index.d.ts +0 -4
- package/es/index.es.js/layout/AppLayout.d.ts +0 -45
- package/es/index.es.js/layout/AppSidebar.d.ts +0 -11
- package/es/index.es.js/layout/Banner.d.ts +0 -14
- package/es/index.es.js/layout/Box.d.ts +0 -2
- package/es/index.es.js/layout/Footer.d.ts +0 -22
- package/es/index.es.js/layout/HawaAppLayout.d.ts +0 -31
- package/es/index.es.js/layout/HawaAppLayoutSimplified.d.ts +0 -32
- package/es/index.es.js/layout/HawaBottomAppBar.d.ts +0 -8
- package/es/index.es.js/layout/HawaContainer.d.ts +0 -10
- package/es/index.es.js/layout/HawaGrid.d.ts +0 -6
- package/es/index.es.js/layout/HawaSiteLayout.d.ts +0 -23
- package/es/index.es.js/layout/Sidebar.d.ts +0 -35
- package/es/index.es.js/layout/Sidebar2.d.ts +0 -20
- package/es/index.es.js/layout/index.d.ts +0 -12
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -1
- package/es/index.es.js/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -1
- package/es/index.es.js/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/cache/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/react/dist/emotion-element-6bdfffb2.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/serialize/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -1
- package/es/index.es.js/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -1
- package/es/index.es.js/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -1
- package/es/index.es.js/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -1
- package/es/index.es.js/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +0 -1
- package/es/index.es.js/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -1
- package/es/index.es.js/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -1
- package/es/index.es.js/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/primitive/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-accordion/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-collection/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-context/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-direction/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-id/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-label/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-menu/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-popover/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-popper/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-portal/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-presence/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-separator/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-slot/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-switch/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-tabs/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-toast/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/aria-hidden/dist/es2015/index.js +0 -1
- package/es/index.es.js/node_modules/attr-accept/dist/es/index.js +0 -1
- package/es/index.es.js/node_modules/class-variance-authority/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/es/index.es.js/node_modules/clsx/dist/clsx.m.js +0 -1
- package/es/index.es.js/node_modules/compute-scroll-into-view/dist/index.mjs.js +0 -1
- package/es/index.es.js/node_modules/file-selector/dist/es5/file-selector.js +0 -1
- package/es/index.es.js/node_modules/file-selector/dist/es5/file.js +0 -1
- package/es/index.es.js/node_modules/get-nonce/dist/es2015/index.js +0 -1
- package/es/index.es.js/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -1
- package/es/index.es.js/node_modules/immer/dist/immer.esm.mjs.js +0 -1
- package/es/index.es.js/node_modules/is-hotkey/lib/index.js +0 -1
- package/es/index.es.js/node_modules/memoize-one/dist/memoize-one.esm.js +0 -1
- package/es/index.es.js/node_modules/prop-types/checkPropTypes.js +0 -1
- package/es/index.es.js/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
- package/es/index.es.js/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
- package/es/index.es.js/node_modules/prop-types/index.js +0 -1
- package/es/index.es.js/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/es/index.es.js/node_modules/prop-types/lib/has.js +0 -1
- package/es/index.es.js/node_modules/react/cjs/react.development.js +0 -10
- package/es/index.es.js/node_modules/react/cjs/react.production.min.js +0 -10
- package/es/index.es.js/node_modules/react/index.js +0 -1
- package/es/index.es.js/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -10
- package/es/index.es.js/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0 -10
- package/es/index.es.js/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -10
- package/es/index.es.js/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -10
- package/es/index.es.js/node_modules/react-dom/cjs/react-dom.development.js +0 -24
- package/es/index.es.js/node_modules/react-dom/cjs/react-dom.production.min.js +0 -10
- package/es/index.es.js/node_modules/react-dom/index.js +0 -1
- package/es/index.es.js/node_modules/react-dom/server.node.js +0 -1
- package/es/index.es.js/node_modules/react-dropzone/dist/es/index.js +0 -1
- package/es/index.es.js/node_modules/react-dropzone/dist/es/utils/index.js +0 -1
- package/es/index.es.js/node_modules/react-hook-form/dist/index.esm.mjs.js +0 -1
- package/es/index.es.js/node_modules/react-icons/bs/index.esm.js +0 -1
- package/es/index.es.js/node_modules/react-icons/fa/index.esm.js +0 -1
- package/es/index.es.js/node_modules/react-icons/lib/esm/iconBase.js +0 -1
- package/es/index.es.js/node_modules/react-icons/lib/esm/iconContext.js +0 -1
- package/es/index.es.js/node_modules/react-is/cjs/react-is.development.js +0 -9
- package/es/index.es.js/node_modules/react-is/cjs/react-is.production.min.js +0 -9
- package/es/index.es.js/node_modules/react-is/index.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -1
- package/es/index.es.js/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -1
- package/es/index.es.js/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -1
- package/es/index.es.js/node_modules/react-select/dist/Select-1b4bdd99.esm.js +0 -1
- package/es/index.es.js/node_modules/react-select/dist/index-baa8dc4f.esm.js +0 -1
- package/es/index.es.js/node_modules/react-select/dist/react-select.esm.js +0 -1
- package/es/index.es.js/node_modules/react-select/dist/useCreatable-004a82a3.esm.js +0 -1
- package/es/index.es.js/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -1
- package/es/index.es.js/node_modules/react-style-singleton/dist/es2015/component.js +0 -1
- package/es/index.es.js/node_modules/react-style-singleton/dist/es2015/hook.js +0 -1
- package/es/index.es.js/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -1
- package/es/index.es.js/node_modules/scheduler/cjs/scheduler.development.js +0 -10
- package/es/index.es.js/node_modules/scheduler/cjs/scheduler.production.min.js +0 -10
- package/es/index.es.js/node_modules/scheduler/index.js +0 -1
- package/es/index.es.js/node_modules/scroll-into-view-if-needed/es/index.js +0 -1
- package/es/index.es.js/node_modules/slate/dist/index.es.js +0 -1
- package/es/index.es.js/node_modules/slate/node_modules/is-plain-object/dist/is-plain-object.mjs.js +0 -7
- package/es/index.es.js/node_modules/slate-react/dist/index.es.js +0 -1
- package/es/index.es.js/node_modules/stylis/src/Enum.js +0 -1
- package/es/index.es.js/node_modules/stylis/src/Middleware.js +0 -1
- package/es/index.es.js/node_modules/stylis/src/Parser.js +0 -1
- package/es/index.es.js/node_modules/stylis/src/Serializer.js +0 -1
- package/es/index.es.js/node_modules/stylis/src/Tokenizer.js +0 -1
- package/es/index.es.js/node_modules/stylis/src/Utility.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/class-utils.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/config-utils.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/default-config.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/from-theme.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/lru-cache.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/merge-classlist.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/modifier-utils.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/tw-join.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/tw-merge.mjs.js +0 -1
- package/es/index.es.js/node_modules/tailwind-merge/dist/lib/validators.mjs.js +0 -1
- package/es/index.es.js/node_modules/tslib/tslib.es6.mjs.js +0 -1
- package/es/index.es.js/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -1
- package/es/index.es.js/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -1
- package/es/index.es.js/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -1
- package/es/index.es.js/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -1
- package/es/index.es.js/node_modules/use-sidecar/dist/es2015/exports.js +0 -1
- package/es/index.es.js/node_modules/use-sidecar/dist/es2015/medium.js +0 -1
- package/es/index.es.js/src/blocks/Account/UserProfileForm.js +0 -1
- package/es/index.es.js/src/blocks/Account/UserSettingsForm.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/AppLanding.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/CheckEmail.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/CodeConfirmation.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/NewPasswordForm.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/ResetPasswordForm.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/SignInBlock.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/SignInForm.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/SignInPhone.js +0 -1
- package/es/index.es.js/src/blocks/AuthForms/SignUpForm.js +0 -1
- package/es/index.es.js/src/blocks/Misc/Announcement.js +0 -1
- package/es/index.es.js/src/blocks/Misc/EmptyState.js +0 -1
- package/es/index.es.js/src/blocks/Misc/LeadGenerator.js +0 -1
- package/es/index.es.js/src/blocks/Misc/NoPermission.js +0 -1
- package/es/index.es.js/src/blocks/Misc/NotFound.js +0 -1
- package/es/index.es.js/src/blocks/Misc/Testimonial.js +0 -1
- package/es/index.es.js/src/blocks/Payment/ChargeWalletForm.js +0 -1
- package/es/index.es.js/src/blocks/Payment/CheckoutForm.js +0 -1
- package/es/index.es.js/src/blocks/Payment/Confirmation.js +0 -1
- package/es/index.es.js/src/blocks/Payment/CreditCardForm.js +0 -1
- package/es/index.es.js/src/blocks/Payment/PayWithWallet.js +0 -1
- package/es/index.es.js/src/blocks/Payment/SelectPayment.js +0 -1
- package/es/index.es.js/src/blocks/Pricing/ComparingPlans.js +0 -1
- package/es/index.es.js/src/blocks/Pricing/HorizontalPricing.js +0 -1
- package/es/index.es.js/src/blocks/Pricing/PricingPlans.js +0 -1
- package/es/index.es.js/src/blocks/Referral/ReferralAccount.js +0 -1
- package/es/index.es.js/src/blocks/Referral/ReferralSettlement.js +0 -1
- package/es/index.es.js/src/blocks/Referral/ReferralStats.js +0 -1
- package/es/index.es.js/src/countries.js +0 -1
- package/es/index.es.js/src/elements/ActionCard.js +0 -1
- package/es/index.es.js/src/elements/ArrowCarousel.js +0 -1
- package/es/index.es.js/src/elements/BackToTop.js +0 -1
- package/es/index.es.js/src/elements/Button.js +0 -1
- package/es/index.es.js/src/elements/Card.js +0 -1
- package/es/index.es.js/src/elements/Carousel.js +0 -1
- package/es/index.es.js/src/elements/Dialog.js +0 -1
- package/es/index.es.js/src/elements/DragDropImages.js +0 -1
- package/es/index.es.js/src/elements/DraggableCard.js +0 -1
- package/es/index.es.js/src/elements/DropdownMenu.js +0 -1
- package/es/index.es.js/src/elements/FeedbackByEmoji.js +0 -1
- package/es/index.es.js/src/elements/FeedbackRating.js +0 -1
- package/es/index.es.js/src/elements/FloatingComment.js +0 -1
- package/es/index.es.js/src/elements/FloatingCommentExec.js +0 -1
- package/es/index.es.js/src/elements/FloatingCommentSlate.js +0 -1
- package/es/index.es.js/src/elements/HawaAccordion.js +0 -1
- package/es/index.es.js/src/elements/HawaAdCard.js +0 -1
- package/es/index.es.js/src/elements/HawaAlert.js +0 -1
- package/es/index.es.js/src/elements/HawaButton.js +0 -1
- package/es/index.es.js/src/elements/HawaCheckbox.js +0 -1
- package/es/index.es.js/src/elements/HawaChip.js +0 -1
- package/es/index.es.js/src/elements/HawaCodeBlock.js +0 -1
- package/es/index.es.js/src/elements/HawaColorPicker.js +0 -1
- package/es/index.es.js/src/elements/HawaCopyrights.js +0 -1
- package/es/index.es.js/src/elements/HawaDatepicker.js +0 -1
- package/es/index.es.js/src/elements/HawaIconCount.js +0 -1
- package/es/index.es.js/src/elements/HawaInlineCode.js +0 -1
- package/es/index.es.js/src/elements/HawaItemCard.js +0 -1
- package/es/index.es.js/src/elements/HawaLandingCard.js +0 -1
- package/es/index.es.js/src/elements/HawaLoading.js +0 -1
- package/es/index.es.js/src/elements/HawaMenu.js +0 -1
- package/es/index.es.js/src/elements/HawaModal.js +0 -1
- package/es/index.es.js/src/elements/HawaPanelTabs.js +0 -1
- package/es/index.es.js/src/elements/HawaPhoneInput.js +0 -1
- package/es/index.es.js/src/elements/HawaPinInput.js +0 -1
- package/es/index.es.js/src/elements/HawaPricingCard.js +0 -1
- package/es/index.es.js/src/elements/HawaRadio.js +0 -1
- package/es/index.es.js/src/elements/HawaRange.js +0 -1
- package/es/index.es.js/src/elements/HawaSearchBar.js +0 -1
- package/es/index.es.js/src/elements/HawaSelect.js +0 -1
- package/es/index.es.js/src/elements/HawaSettingsRow.js +0 -1
- package/es/index.es.js/src/elements/HawaStats.js +0 -1
- package/es/index.es.js/src/elements/HawaStepper.js +0 -1
- package/es/index.es.js/src/elements/HawaStoreButtons.js +0 -1
- package/es/index.es.js/src/elements/HawaTable.js +0 -1
- package/es/index.es.js/src/elements/HawaTabs.js +0 -1
- package/es/index.es.js/src/elements/HawaTextField.js +0 -1
- package/es/index.es.js/src/elements/HawaTypography.js +0 -1
- package/es/index.es.js/src/elements/Icons.js +0 -1
- package/es/index.es.js/src/elements/Input.js +0 -1
- package/es/index.es.js/src/elements/InterfaceSettings.js +0 -1
- package/es/index.es.js/src/elements/InvoiceAccordion.js +0 -1
- package/es/index.es.js/src/elements/Label.js +0 -1
- package/es/index.es.js/src/elements/Popover.js +0 -1
- package/es/index.es.js/src/elements/Separator.js +0 -1
- package/es/index.es.js/src/elements/Skeleton.js +0 -1
- package/es/index.es.js/src/elements/StickyFeatures.js +0 -1
- package/es/index.es.js/src/elements/SubsectionList.js +0 -1
- package/es/index.es.js/src/elements/Switch.js +0 -1
- package/es/index.es.js/src/elements/Tabs.js +0 -1
- package/es/index.es.js/src/elements/Textarea.js +0 -1
- package/es/index.es.js/src/elements/Timeline.js +0 -1
- package/es/index.es.js/src/elements/Toast.js +0 -1
- package/es/index.es.js/src/elements/Toaster.js +0 -1
- package/es/index.es.js/src/elements/Tooltip.js +0 -1
- package/es/index.es.js/src/elements/UsageCard.js +0 -1
- package/es/index.es.js/src/elements/UserReferralSource.js +0 -1
- package/es/index.es.js/src/hooks/useBreakpoint.js +0 -1
- package/es/index.es.js/src/hooks/useCarousel.js +0 -1
- package/es/index.es.js/src/hooks/useClipboard.js +0 -1
- package/es/index.es.js/src/hooks/useDiscloser.js +0 -1
- package/es/index.es.js/src/hooks/useFocusWithin.js +0 -1
- package/es/index.es.js/src/hooks/useMediaQuery.js +0 -1
- package/es/index.es.js/src/hooks/useTable.js +0 -1
- package/es/index.es.js/src/hooks/useTabs.js +0 -1
- package/es/index.es.js/src/hooks/useToast.js +0 -1
- package/es/index.es.js/src/hooks/useWindowEvent.js +0 -1
- package/es/index.es.js/src/hooks/useWindowScroll.js +0 -1
- package/es/index.es.js/src/index.js +0 -1
- package/es/index.es.js/src/layout/AppLayout.js +0 -1
- package/es/index.es.js/src/layout/AppSidebar.js +0 -1
- package/es/index.es.js/src/layout/Banner.js +0 -1
- package/es/index.es.js/src/layout/Box.js +0 -1
- package/es/index.es.js/src/layout/Footer.js +0 -1
- package/es/index.es.js/src/layout/HawaAppLayout.js +0 -1
- package/es/index.es.js/src/layout/HawaAppLayoutSimplified.js +0 -1
- package/es/index.es.js/src/layout/HawaBottomAppBar.js +0 -1
- package/es/index.es.js/src/layout/HawaContainer.js +0 -1
- package/es/index.es.js/src/layout/HawaGrid.js +0 -1
- package/es/index.es.js/src/layout/HawaSiteLayout.js +0 -1
- package/es/index.es.js/src/layout/Sidebar.js +0 -1
- package/es/index.es.js/src/util.js +0 -1
- package/es/index.es.js/stories/ElementsStories/Breadcrumb.stories.d.ts +0 -6
- package/es/index.es.js/stories/ManualStories/BlocksIntroduction.stories.d.ts +0 -21
- package/es/index.es.js/stories/ManualStories/Customization.stories.d.ts +0 -21
- package/es/index.es.js/stories/ManualStories/ElementsIntroduction.stories.d.ts +0 -21
- package/es/index.es.js/stories/ManualStories/Installation.stories.d.ts +0 -21
- package/es/index.es.js/stories/ManualStories/LayoutIntroduction.stories.d.ts +0 -21
- package/es/index.es.js/stories/ManualStories/Overview.stories.d.ts +0 -22
- package/es/index.es.js/stories/ManualStories/Usage.stories.d.ts +0 -21
- package/es/index.es.js/util.d.ts +0 -10
- package/lib/index.js/_virtual/index.js +0 -1
- package/lib/index.js/_virtual/index2.js +0 -1
- package/lib/index.js/_virtual/index3.js +0 -1
- package/lib/index.js/_virtual/index4.js +0 -1
- package/lib/index.js/_virtual/index5.js +0 -1
- package/lib/index.js/_virtual/index6.js +0 -1
- package/lib/index.js/_virtual/react-dom-server-legacy.node.development.js +0 -1
- package/lib/index.js/_virtual/react-dom-server-legacy.node.production.min.js +0 -1
- package/lib/index.js/_virtual/react-dom-server.node.development.js +0 -1
- package/lib/index.js/_virtual/react-dom-server.node.production.min.js +0 -1
- package/lib/index.js/_virtual/react-dom.development.js +0 -1
- package/lib/index.js/_virtual/react-dom.production.min.js +0 -1
- package/lib/index.js/_virtual/react-is.development.js +0 -1
- package/lib/index.js/_virtual/react-is.production.min.js +0 -1
- package/lib/index.js/_virtual/react.development.js +0 -1
- package/lib/index.js/_virtual/react.production.min.js +0 -1
- package/lib/index.js/_virtual/scheduler.development.js +0 -1
- package/lib/index.js/_virtual/scheduler.production.min.js +0 -1
- package/lib/index.js/_virtual/server.node.js +0 -1
- package/lib/index.js/blocks/Account/UserProfileForm.d.ts +0 -8
- package/lib/index.js/blocks/Account/UserSettingsForm.d.ts +0 -9
- package/lib/index.js/blocks/Account/index.d.ts +0 -2
- package/lib/index.js/blocks/AuthForms/AppLanding.d.ts +0 -38
- package/lib/index.js/blocks/AuthForms/CheckEmail.d.ts +0 -11
- package/lib/index.js/blocks/AuthForms/CodeConfirmation.d.ts +0 -22
- package/lib/index.js/blocks/AuthForms/NewPasswordForm.d.ts +0 -20
- package/lib/index.js/blocks/AuthForms/ResetPasswordForm.d.ts +0 -20
- package/lib/index.js/blocks/AuthForms/SignInBlock.d.ts +0 -2
- package/lib/index.js/blocks/AuthForms/SignInForm.d.ts +0 -59
- package/lib/index.js/blocks/AuthForms/SignInPhone.d.ts +0 -24
- package/lib/index.js/blocks/AuthForms/SignUpForm.d.ts +0 -60
- package/lib/index.js/blocks/AuthForms/index.d.ts +0 -9
- package/lib/index.js/blocks/Misc/Announcement.d.ts +0 -10
- package/lib/index.js/blocks/Misc/EmptyState.d.ts +0 -11
- package/lib/index.js/blocks/Misc/LeadGenerator.d.ts +0 -12
- package/lib/index.js/blocks/Misc/NoPermission.d.ts +0 -9
- package/lib/index.js/blocks/Misc/NotFound.d.ts +0 -11
- package/lib/index.js/blocks/Misc/Testimonial.d.ts +0 -6
- package/lib/index.js/blocks/Misc/index.d.ts +0 -6
- package/lib/index.js/blocks/Payment/ChargeWalletForm.d.ts +0 -12
- package/lib/index.js/blocks/Payment/CheckoutForm.d.ts +0 -27
- package/lib/index.js/blocks/Payment/Confirmation.d.ts +0 -38
- package/lib/index.js/blocks/Payment/CreditCardForm.d.ts +0 -7
- package/lib/index.js/blocks/Payment/PayWithWallet.d.ts +0 -8
- package/lib/index.js/blocks/Payment/SelectPayment.d.ts +0 -20
- package/lib/index.js/blocks/Payment/index.d.ts +0 -6
- package/lib/index.js/blocks/Pricing/ComparingPlans.d.ts +0 -39
- package/lib/index.js/blocks/Pricing/HorizontalPricing.d.ts +0 -47
- package/lib/index.js/blocks/Pricing/PricingPlans.d.ts +0 -47
- package/lib/index.js/blocks/Pricing/index.d.ts +0 -3
- package/lib/index.js/blocks/Referral/ReferralAccount.d.ts +0 -7
- package/lib/index.js/blocks/Referral/ReferralSettlement.d.ts +0 -8
- package/lib/index.js/blocks/Referral/ReferralStats.d.ts +0 -8
- package/lib/index.js/blocks/Referral/index.d.ts +0 -3
- package/lib/index.js/blocks/index.d.ts +0 -6
- package/lib/index.js/countries.d.ts +0 -2
- package/lib/index.js/elements/ActionCard.d.ts +0 -13
- package/lib/index.js/elements/ArrowCarousel.d.ts +0 -13
- package/lib/index.js/elements/AutoCompleteField.d.ts +0 -8
- package/lib/index.js/elements/BackToTop.d.ts +0 -10
- package/lib/index.js/elements/Breadcrumb.d.ts +0 -12
- package/lib/index.js/elements/Button.d.ts +0 -12
- package/lib/index.js/elements/Card.d.ts +0 -13
- package/lib/index.js/elements/Carousel.d.ts +0 -6
- package/lib/index.js/elements/Dialog.d.ts +0 -16
- package/lib/index.js/elements/DragDropImages.d.ts +0 -35
- package/lib/index.js/elements/DraggableCard.d.ts +0 -6
- package/lib/index.js/elements/DropdownMenu.d.ts +0 -41
- package/lib/index.js/elements/FeedbackByEmoji.d.ts +0 -7
- package/lib/index.js/elements/FeedbackRating.d.ts +0 -14
- package/lib/index.js/elements/FloatingComment.d.ts +0 -32
- package/lib/index.js/elements/FloatingCommentExec.d.ts +0 -4
- package/lib/index.js/elements/FloatingCommentSlate.d.ts +0 -19
- package/lib/index.js/elements/HawaAccordion.d.ts +0 -11
- package/lib/index.js/elements/HawaAdCard.d.ts +0 -12
- package/lib/index.js/elements/HawaAlert.d.ts +0 -24
- package/lib/index.js/elements/HawaButton.d.ts +0 -21
- package/lib/index.js/elements/HawaCheckbox.d.ts +0 -11
- package/lib/index.js/elements/HawaChip.d.ts +0 -17
- package/lib/index.js/elements/HawaCodeBlock.d.ts +0 -15
- package/lib/index.js/elements/HawaColorPicker.d.ts +0 -9
- package/lib/index.js/elements/HawaCopyrights.d.ts +0 -15
- package/lib/index.js/elements/HawaDatepicker.d.ts +0 -4
- package/lib/index.js/elements/HawaIconCount.d.ts +0 -9
- package/lib/index.js/elements/HawaInlineCode.d.ts +0 -6
- package/lib/index.js/elements/HawaItemCard.d.ts +0 -27
- package/lib/index.js/elements/HawaLandingCard.d.ts +0 -18
- package/lib/index.js/elements/HawaLoading.d.ts +0 -8
- package/lib/index.js/elements/HawaMenu.d.ts +0 -24
- package/lib/index.js/elements/HawaModal.d.ts +0 -21
- package/lib/index.js/elements/HawaPanelTabs.d.ts +0 -13
- package/lib/index.js/elements/HawaPhoneInput.d.ts +0 -11
- package/lib/index.js/elements/HawaPinInput.d.ts +0 -10
- package/lib/index.js/elements/HawaPricingCard.d.ts +0 -21
- package/lib/index.js/elements/HawaRadio.d.ts +0 -17
- package/lib/index.js/elements/HawaRange.d.ts +0 -12
- package/lib/index.js/elements/HawaSearchBar.d.ts +0 -4
- package/lib/index.js/elements/HawaSelect.d.ts +0 -25
- package/lib/index.js/elements/HawaSettingsRow.d.ts +0 -44
- package/lib/index.js/elements/HawaStats.d.ts +0 -15
- package/lib/index.js/elements/HawaStepper.d.ts +0 -8
- package/lib/index.js/elements/HawaStoreButtons.d.ts +0 -7
- package/lib/index.js/elements/HawaTable.d.ts +0 -41
- package/lib/index.js/elements/HawaTabs.d.ts +0 -13
- package/lib/index.js/elements/HawaTextField.d.ts +0 -33
- package/lib/index.js/elements/HawaTypography.d.ts +0 -7
- package/lib/index.js/elements/Icons.d.ts +0 -22
- package/lib/index.js/elements/Input.d.ts +0 -6
- package/lib/index.js/elements/InterfaceSettings.d.ts +0 -11
- package/lib/index.js/elements/InvoiceAccordion.d.ts +0 -31
- package/lib/index.js/elements/Label.d.ts +0 -5
- package/lib/index.js/elements/Popover.d.ts +0 -12
- package/lib/index.js/elements/Select.d.ts +0 -11
- package/lib/index.js/elements/Separator.d.ts +0 -4
- package/lib/index.js/elements/Skeleton.d.ts +0 -3
- package/lib/index.js/elements/StickyFeatures.d.ts +0 -14
- package/lib/index.js/elements/SubsectionList.d.ts +0 -19
- package/lib/index.js/elements/Switch.d.ts +0 -8
- package/lib/index.js/elements/TabPanel.d.ts +0 -8
- package/lib/index.js/elements/Tabs.d.ts +0 -9
- package/lib/index.js/elements/Textarea.d.ts +0 -7
- package/lib/index.js/elements/Timeline.d.ts +0 -13
- package/lib/index.js/elements/Toast.d.ts +0 -19
- package/lib/index.js/elements/Toaster.d.ts +0 -2
- package/lib/index.js/elements/Tooltip.d.ts +0 -12
- package/lib/index.js/elements/UsageCard.d.ts +0 -9
- package/lib/index.js/elements/UserReferralSource.d.ts +0 -14
- package/lib/index.js/elements/index.d.ts +0 -68
- package/lib/index.js/hooks/index.d.ts +0 -13
- package/lib/index.js/hooks/useBreakpoint.d.ts +0 -2
- package/lib/index.js/hooks/useCarousel.d.ts +0 -9
- package/lib/index.js/hooks/useClipboard.d.ts +0 -8
- package/lib/index.js/hooks/useDiscloser.d.ts +0 -7
- package/lib/index.js/hooks/useFocusWithin.d.ts +0 -9
- package/lib/index.js/hooks/useFullscreen.d.ts +0 -5
- package/lib/index.js/hooks/useHover.d.ts +0 -3
- package/lib/index.js/hooks/useMediaQuery.d.ts +0 -4
- package/lib/index.js/hooks/useScrollPosition.d.ts +0 -2
- package/lib/index.js/hooks/useTable.d.ts +0 -5
- package/lib/index.js/hooks/useTabs.d.ts +0 -5
- package/lib/index.js/hooks/useToast.d.ts +0 -45
- package/lib/index.js/hooks/useWindowEvent.d.ts +0 -1
- package/lib/index.js/hooks/useWindowScroll.d.ts +0 -7
- package/lib/index.js/index.d.ts +0 -4
- package/lib/index.js/layout/AppLayout.d.ts +0 -45
- package/lib/index.js/layout/AppSidebar.d.ts +0 -11
- package/lib/index.js/layout/Banner.d.ts +0 -14
- package/lib/index.js/layout/Box.d.ts +0 -2
- package/lib/index.js/layout/Footer.d.ts +0 -22
- package/lib/index.js/layout/HawaAppLayout.d.ts +0 -31
- package/lib/index.js/layout/HawaAppLayoutSimplified.d.ts +0 -32
- package/lib/index.js/layout/HawaBottomAppBar.d.ts +0 -8
- package/lib/index.js/layout/HawaContainer.d.ts +0 -10
- package/lib/index.js/layout/HawaGrid.d.ts +0 -6
- package/lib/index.js/layout/HawaSiteLayout.d.ts +0 -23
- package/lib/index.js/layout/Sidebar.d.ts +0 -35
- package/lib/index.js/layout/Sidebar2.d.ts +0 -20
- package/lib/index.js/layout/index.d.ts +0 -12
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -1
- package/lib/index.js/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -1
- package/lib/index.js/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/cache/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/react/dist/emotion-element-6bdfffb2.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/serialize/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -1
- package/lib/index.js/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -1
- package/lib/index.js/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -1
- package/lib/index.js/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -1
- package/lib/index.js/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +0 -1
- package/lib/index.js/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -1
- package/lib/index.js/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -1
- package/lib/index.js/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/primitive/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-accordion/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-collection/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-context/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-direction/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-id/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-label/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-menu/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-popover/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-popper/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-portal/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-presence/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-separator/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-slot/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-switch/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-tabs/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-toast/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/aria-hidden/dist/es2015/index.js +0 -1
- package/lib/index.js/node_modules/attr-accept/dist/es/index.js +0 -1
- package/lib/index.js/node_modules/class-variance-authority/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/lib/index.js/node_modules/clsx/dist/clsx.m.js +0 -1
- package/lib/index.js/node_modules/compute-scroll-into-view/dist/index.mjs.js +0 -1
- package/lib/index.js/node_modules/file-selector/dist/es5/file-selector.js +0 -1
- package/lib/index.js/node_modules/file-selector/dist/es5/file.js +0 -1
- package/lib/index.js/node_modules/get-nonce/dist/es2015/index.js +0 -1
- package/lib/index.js/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -1
- package/lib/index.js/node_modules/immer/dist/immer.esm.mjs.js +0 -1
- package/lib/index.js/node_modules/is-hotkey/lib/index.js +0 -1
- package/lib/index.js/node_modules/memoize-one/dist/memoize-one.esm.js +0 -1
- package/lib/index.js/node_modules/prop-types/checkPropTypes.js +0 -1
- package/lib/index.js/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
- package/lib/index.js/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
- package/lib/index.js/node_modules/prop-types/index.js +0 -1
- package/lib/index.js/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/lib/index.js/node_modules/prop-types/lib/has.js +0 -1
- package/lib/index.js/node_modules/react/cjs/react.development.js +0 -10
- package/lib/index.js/node_modules/react/cjs/react.production.min.js +0 -10
- package/lib/index.js/node_modules/react/index.js +0 -1
- package/lib/index.js/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -10
- package/lib/index.js/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0 -10
- package/lib/index.js/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -10
- package/lib/index.js/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -11
- package/lib/index.js/node_modules/react-dom/cjs/react-dom.development.js +0 -25
- package/lib/index.js/node_modules/react-dom/cjs/react-dom.production.min.js +0 -11
- package/lib/index.js/node_modules/react-dom/index.js +0 -1
- package/lib/index.js/node_modules/react-dom/server.node.js +0 -1
- package/lib/index.js/node_modules/react-dropzone/dist/es/index.js +0 -1
- package/lib/index.js/node_modules/react-dropzone/dist/es/utils/index.js +0 -1
- package/lib/index.js/node_modules/react-hook-form/dist/index.esm.mjs.js +0 -1
- package/lib/index.js/node_modules/react-icons/bs/index.esm.js +0 -1
- package/lib/index.js/node_modules/react-icons/fa/index.esm.js +0 -1
- package/lib/index.js/node_modules/react-icons/lib/esm/iconBase.js +0 -1
- package/lib/index.js/node_modules/react-icons/lib/esm/iconContext.js +0 -1
- package/lib/index.js/node_modules/react-is/cjs/react-is.development.js +0 -9
- package/lib/index.js/node_modules/react-is/cjs/react-is.production.min.js +0 -9
- package/lib/index.js/node_modules/react-is/index.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -1
- package/lib/index.js/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -1
- package/lib/index.js/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -1
- package/lib/index.js/node_modules/react-select/dist/Select-1b4bdd99.esm.js +0 -1
- package/lib/index.js/node_modules/react-select/dist/index-baa8dc4f.esm.js +0 -1
- package/lib/index.js/node_modules/react-select/dist/react-select.esm.js +0 -1
- package/lib/index.js/node_modules/react-select/dist/useCreatable-004a82a3.esm.js +0 -1
- package/lib/index.js/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -1
- package/lib/index.js/node_modules/react-style-singleton/dist/es2015/component.js +0 -1
- package/lib/index.js/node_modules/react-style-singleton/dist/es2015/hook.js +0 -1
- package/lib/index.js/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -1
- package/lib/index.js/node_modules/scheduler/cjs/scheduler.development.js +0 -10
- package/lib/index.js/node_modules/scheduler/cjs/scheduler.production.min.js +0 -10
- package/lib/index.js/node_modules/scheduler/index.js +0 -1
- package/lib/index.js/node_modules/scroll-into-view-if-needed/es/index.js +0 -1
- package/lib/index.js/node_modules/slate/dist/index.es.js +0 -1
- package/lib/index.js/node_modules/slate/node_modules/is-plain-object/dist/is-plain-object.mjs.js +0 -8
- package/lib/index.js/node_modules/slate-react/dist/index.es.js +0 -1
- package/lib/index.js/node_modules/stylis/src/Enum.js +0 -1
- package/lib/index.js/node_modules/stylis/src/Middleware.js +0 -1
- package/lib/index.js/node_modules/stylis/src/Parser.js +0 -1
- package/lib/index.js/node_modules/stylis/src/Serializer.js +0 -1
- package/lib/index.js/node_modules/stylis/src/Tokenizer.js +0 -1
- package/lib/index.js/node_modules/stylis/src/Utility.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/class-utils.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/config-utils.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/default-config.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/from-theme.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/lru-cache.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/merge-classlist.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/modifier-utils.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/tw-join.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/tw-merge.mjs.js +0 -1
- package/lib/index.js/node_modules/tailwind-merge/dist/lib/validators.mjs.js +0 -1
- package/lib/index.js/node_modules/tslib/tslib.es6.mjs.js +0 -1
- package/lib/index.js/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -1
- package/lib/index.js/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -1
- package/lib/index.js/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -1
- package/lib/index.js/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -1
- package/lib/index.js/node_modules/use-sidecar/dist/es2015/exports.js +0 -1
- package/lib/index.js/node_modules/use-sidecar/dist/es2015/medium.js +0 -1
- package/lib/index.js/src/blocks/Account/UserProfileForm.js +0 -1
- package/lib/index.js/src/blocks/Account/UserSettingsForm.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/AppLanding.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/CheckEmail.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/CodeConfirmation.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/NewPasswordForm.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/ResetPasswordForm.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/SignInBlock.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/SignInForm.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/SignInPhone.js +0 -1
- package/lib/index.js/src/blocks/AuthForms/SignUpForm.js +0 -1
- package/lib/index.js/src/blocks/Misc/Announcement.js +0 -1
- package/lib/index.js/src/blocks/Misc/EmptyState.js +0 -1
- package/lib/index.js/src/blocks/Misc/LeadGenerator.js +0 -1
- package/lib/index.js/src/blocks/Misc/NoPermission.js +0 -1
- package/lib/index.js/src/blocks/Misc/NotFound.js +0 -1
- package/lib/index.js/src/blocks/Misc/Testimonial.js +0 -1
- package/lib/index.js/src/blocks/Payment/ChargeWalletForm.js +0 -1
- package/lib/index.js/src/blocks/Payment/CheckoutForm.js +0 -1
- package/lib/index.js/src/blocks/Payment/Confirmation.js +0 -1
- package/lib/index.js/src/blocks/Payment/CreditCardForm.js +0 -1
- package/lib/index.js/src/blocks/Payment/PayWithWallet.js +0 -1
- package/lib/index.js/src/blocks/Payment/SelectPayment.js +0 -1
- package/lib/index.js/src/blocks/Pricing/ComparingPlans.js +0 -1
- package/lib/index.js/src/blocks/Pricing/HorizontalPricing.js +0 -1
- package/lib/index.js/src/blocks/Pricing/PricingPlans.js +0 -1
- package/lib/index.js/src/blocks/Referral/ReferralAccount.js +0 -1
- package/lib/index.js/src/blocks/Referral/ReferralSettlement.js +0 -1
- package/lib/index.js/src/blocks/Referral/ReferralStats.js +0 -1
- package/lib/index.js/src/countries.js +0 -1
- package/lib/index.js/src/elements/ActionCard.js +0 -1
- package/lib/index.js/src/elements/ArrowCarousel.js +0 -1
- package/lib/index.js/src/elements/BackToTop.js +0 -1
- package/lib/index.js/src/elements/Button.js +0 -1
- package/lib/index.js/src/elements/Card.js +0 -1
- package/lib/index.js/src/elements/Carousel.js +0 -1
- package/lib/index.js/src/elements/Dialog.js +0 -1
- package/lib/index.js/src/elements/DragDropImages.js +0 -1
- package/lib/index.js/src/elements/DraggableCard.js +0 -1
- package/lib/index.js/src/elements/DropdownMenu.js +0 -1
- package/lib/index.js/src/elements/FeedbackByEmoji.js +0 -1
- package/lib/index.js/src/elements/FeedbackRating.js +0 -1
- package/lib/index.js/src/elements/FloatingComment.js +0 -1
- package/lib/index.js/src/elements/FloatingCommentExec.js +0 -1
- package/lib/index.js/src/elements/FloatingCommentSlate.js +0 -1
- package/lib/index.js/src/elements/HawaAccordion.js +0 -1
- package/lib/index.js/src/elements/HawaAdCard.js +0 -1
- package/lib/index.js/src/elements/HawaAlert.js +0 -1
- package/lib/index.js/src/elements/HawaButton.js +0 -1
- package/lib/index.js/src/elements/HawaCheckbox.js +0 -1
- package/lib/index.js/src/elements/HawaChip.js +0 -1
- package/lib/index.js/src/elements/HawaCodeBlock.js +0 -1
- package/lib/index.js/src/elements/HawaColorPicker.js +0 -1
- package/lib/index.js/src/elements/HawaCopyrights.js +0 -1
- package/lib/index.js/src/elements/HawaDatepicker.js +0 -1
- package/lib/index.js/src/elements/HawaIconCount.js +0 -1
- package/lib/index.js/src/elements/HawaInlineCode.js +0 -1
- package/lib/index.js/src/elements/HawaItemCard.js +0 -1
- package/lib/index.js/src/elements/HawaLandingCard.js +0 -1
- package/lib/index.js/src/elements/HawaLoading.js +0 -1
- package/lib/index.js/src/elements/HawaMenu.js +0 -1
- package/lib/index.js/src/elements/HawaModal.js +0 -1
- package/lib/index.js/src/elements/HawaPanelTabs.js +0 -1
- package/lib/index.js/src/elements/HawaPhoneInput.js +0 -1
- package/lib/index.js/src/elements/HawaPinInput.js +0 -1
- package/lib/index.js/src/elements/HawaPricingCard.js +0 -1
- package/lib/index.js/src/elements/HawaRadio.js +0 -1
- package/lib/index.js/src/elements/HawaRange.js +0 -1
- package/lib/index.js/src/elements/HawaSearchBar.js +0 -1
- package/lib/index.js/src/elements/HawaSelect.js +0 -1
- package/lib/index.js/src/elements/HawaSettingsRow.js +0 -1
- package/lib/index.js/src/elements/HawaStats.js +0 -1
- package/lib/index.js/src/elements/HawaStepper.js +0 -1
- package/lib/index.js/src/elements/HawaStoreButtons.js +0 -1
- package/lib/index.js/src/elements/HawaTable.js +0 -1
- package/lib/index.js/src/elements/HawaTabs.js +0 -1
- package/lib/index.js/src/elements/HawaTextField.js +0 -1
- package/lib/index.js/src/elements/HawaTypography.js +0 -1
- package/lib/index.js/src/elements/Icons.js +0 -1
- package/lib/index.js/src/elements/Input.js +0 -1
- package/lib/index.js/src/elements/InterfaceSettings.js +0 -1
- package/lib/index.js/src/elements/InvoiceAccordion.js +0 -1
- package/lib/index.js/src/elements/Label.js +0 -1
- package/lib/index.js/src/elements/Popover.js +0 -1
- package/lib/index.js/src/elements/Separator.js +0 -1
- package/lib/index.js/src/elements/Skeleton.js +0 -1
- package/lib/index.js/src/elements/StickyFeatures.js +0 -1
- package/lib/index.js/src/elements/SubsectionList.js +0 -1
- package/lib/index.js/src/elements/Switch.js +0 -1
- package/lib/index.js/src/elements/Tabs.js +0 -1
- package/lib/index.js/src/elements/Textarea.js +0 -1
- package/lib/index.js/src/elements/Timeline.js +0 -1
- package/lib/index.js/src/elements/Toast.js +0 -1
- package/lib/index.js/src/elements/Toaster.js +0 -1
- package/lib/index.js/src/elements/Tooltip.js +0 -1
- package/lib/index.js/src/elements/UsageCard.js +0 -1
- package/lib/index.js/src/elements/UserReferralSource.js +0 -1
- package/lib/index.js/src/hooks/useBreakpoint.js +0 -1
- package/lib/index.js/src/hooks/useCarousel.js +0 -1
- package/lib/index.js/src/hooks/useClipboard.js +0 -1
- package/lib/index.js/src/hooks/useDiscloser.js +0 -1
- package/lib/index.js/src/hooks/useFocusWithin.js +0 -1
- package/lib/index.js/src/hooks/useMediaQuery.js +0 -1
- package/lib/index.js/src/hooks/useTable.js +0 -1
- package/lib/index.js/src/hooks/useTabs.js +0 -1
- package/lib/index.js/src/hooks/useToast.js +0 -1
- package/lib/index.js/src/hooks/useWindowEvent.js +0 -1
- package/lib/index.js/src/hooks/useWindowScroll.js +0 -1
- package/lib/index.js/src/index.js +0 -1
- package/lib/index.js/src/layout/AppLayout.js +0 -1
- package/lib/index.js/src/layout/AppSidebar.js +0 -1
- package/lib/index.js/src/layout/Banner.js +0 -1
- package/lib/index.js/src/layout/Box.js +0 -1
- package/lib/index.js/src/layout/Footer.js +0 -1
- package/lib/index.js/src/layout/HawaAppLayout.js +0 -1
- package/lib/index.js/src/layout/HawaAppLayoutSimplified.js +0 -1
- package/lib/index.js/src/layout/HawaBottomAppBar.js +0 -1
- package/lib/index.js/src/layout/HawaContainer.js +0 -1
- package/lib/index.js/src/layout/HawaGrid.js +0 -1
- package/lib/index.js/src/layout/HawaSiteLayout.js +0 -1
- package/lib/index.js/src/layout/Sidebar.js +0 -1
- package/lib/index.js/src/util.js +0 -1
- package/lib/index.js/stories/ElementsStories/Breadcrumb.stories.d.ts +0 -6
- package/lib/index.js/stories/ManualStories/BlocksIntroduction.stories.d.ts +0 -21
- package/lib/index.js/stories/ManualStories/Customization.stories.d.ts +0 -21
- package/lib/index.js/stories/ManualStories/ElementsIntroduction.stories.d.ts +0 -21
- package/lib/index.js/stories/ManualStories/Installation.stories.d.ts +0 -21
- package/lib/index.js/stories/ManualStories/LayoutIntroduction.stories.d.ts +0 -21
- package/lib/index.js/stories/ManualStories/Overview.stories.d.ts +0 -22
- package/lib/index.js/stories/ManualStories/Usage.stories.d.ts +0 -21
- package/lib/index.js/util.d.ts +0 -10
- package/postcss.config.js +0 -6
- package/rollup.config.js +0 -135
- package/src/blocks/Account/UserProfileForm.tsx +0 -117
- package/src/blocks/Account/UserSettingsForm.tsx +0 -20
- package/src/blocks/Account/index.ts +0 -2
- package/src/blocks/AuthForms/AppLanding.tsx +0 -190
- package/src/blocks/AuthForms/CheckEmail.tsx +0 -54
- package/src/blocks/AuthForms/CodeConfirmation.tsx +0 -72
- package/src/blocks/AuthForms/NewPasswordForm.tsx +0 -120
- package/src/blocks/AuthForms/ResetPasswordForm.tsx +0 -101
- package/src/blocks/AuthForms/SignInBlock.tsx +0 -58
- package/src/blocks/AuthForms/SignInForm.tsx +0 -271
- package/src/blocks/AuthForms/SignInPhone.tsx +0 -160
- package/src/blocks/AuthForms/SignUpForm.tsx +0 -359
- package/src/blocks/AuthForms/index.ts +0 -9
- package/src/blocks/Misc/Announcement.tsx +0 -32
- package/src/blocks/Misc/EmptyState.tsx +0 -47
- package/src/blocks/Misc/LeadGenerator.tsx +0 -47
- package/src/blocks/Misc/NoPermission.tsx +0 -39
- package/src/blocks/Misc/NotFound.tsx +0 -39
- package/src/blocks/Misc/Testimonial.tsx +0 -47
- package/src/blocks/Misc/index.ts +0 -6
- package/src/blocks/Payment/ChargeWalletForm.tsx +0 -79
- package/src/blocks/Payment/CheckoutForm.tsx +0 -265
- package/src/blocks/Payment/Confirmation.tsx +0 -96
- package/src/blocks/Payment/CreditCardForm.tsx +0 -169
- package/src/blocks/Payment/PayWithWallet.tsx +0 -24
- package/src/blocks/Payment/SelectPayment.tsx +0 -187
- package/src/blocks/Payment/index.ts +0 -6
- package/src/blocks/Pricing/ComparingPlans.tsx +0 -146
- package/src/blocks/Pricing/HorizontalPricing.tsx +0 -148
- package/src/blocks/Pricing/PricingPlans.tsx +0 -81
- package/src/blocks/Pricing/index.ts +0 -3
- package/src/blocks/Referral/ReferralAccount.tsx +0 -68
- package/src/blocks/Referral/ReferralSettlement.tsx +0 -149
- package/src/blocks/Referral/ReferralStats.tsx +0 -87
- package/src/blocks/Referral/index.ts +0 -3
- package/src/blocks/index.ts +0 -6
- package/src/countries.ts +0 -1940
- package/src/elements/ActionCard.tsx +0 -63
- package/src/elements/ArrowCarousel.tsx +0 -94
- package/src/elements/AutoCompleteField.tsx +0 -36
- package/src/elements/BackToTop.tsx +0 -127
- package/src/elements/Breadcrumb.tsx +0 -41
- package/src/elements/Button.tsx +0 -92
- package/src/elements/Card.tsx +0 -90
- package/src/elements/Carousel.tsx +0 -40
- package/src/elements/Dialog.tsx +0 -133
- package/src/elements/DragDropImages.tsx +0 -279
- package/src/elements/DraggableCard.tsx +0 -27
- package/src/elements/DropdownMenu.tsx +0 -412
- package/src/elements/FeedbackByEmoji.tsx +0 -220
- package/src/elements/FeedbackRating.tsx +0 -128
- package/src/elements/FloatingComment.tsx +0 -1107
- package/src/elements/FloatingCommentExec.tsx +0 -117
- package/src/elements/FloatingCommentSlate.tsx +0 -147
- package/src/elements/HawaAccordion.tsx +0 -57
- package/src/elements/HawaAdCard.tsx +0 -87
- package/src/elements/HawaAlert.tsx +0 -206
- package/src/elements/HawaButton.tsx +0 -200
- package/src/elements/HawaCheckbox.tsx +0 -54
- package/src/elements/HawaChip.tsx +0 -59
- package/src/elements/HawaCodeBlock.tsx +0 -118
- package/src/elements/HawaColorPicker.tsx +0 -40
- package/src/elements/HawaCopyrights.tsx +0 -30
- package/src/elements/HawaDatepicker.tsx +0 -23
- package/src/elements/HawaIconCount.tsx +0 -17
- package/src/elements/HawaInlineCode.tsx +0 -9
- package/src/elements/HawaItemCard.tsx +0 -164
- package/src/elements/HawaLandingCard.tsx +0 -68
- package/src/elements/HawaLoading.tsx +0 -81
- package/src/elements/HawaMenu.tsx +0 -226
- package/src/elements/HawaModal.tsx +0 -89
- package/src/elements/HawaPanelTabs.tsx +0 -57
- package/src/elements/HawaPhoneInput.tsx +0 -171
- package/src/elements/HawaPinInput.tsx +0 -78
- package/src/elements/HawaPricingCard.tsx +0 -104
- package/src/elements/HawaRadio.tsx +0 -203
- package/src/elements/HawaRange.tsx +0 -49
- package/src/elements/HawaSearchBar.tsx +0 -7
- package/src/elements/HawaSelect.tsx +0 -216
- package/src/elements/HawaSettingsRow.tsx +0 -74
- package/src/elements/HawaStats.tsx +0 -51
- package/src/elements/HawaStepper.tsx +0 -109
- package/src/elements/HawaStoreButtons.tsx +0 -129
- package/src/elements/HawaTable.tsx +0 -509
- package/src/elements/HawaTabs.tsx +0 -143
- package/src/elements/HawaTextField.tsx +0 -109
- package/src/elements/HawaTypography.tsx +0 -9
- package/src/elements/Icons.tsx +0 -191
- package/src/elements/Input.tsx +0 -29
- package/src/elements/InterfaceSettings.tsx +0 -86
- package/src/elements/InvoiceAccordion.tsx +0 -155
- package/src/elements/Label.tsx +0 -24
- package/src/elements/Popover.tsx +0 -56
- package/src/elements/Select.tsx +0 -139
- package/src/elements/Separator.tsx +0 -28
- package/src/elements/Skeleton.tsx +0 -16
- package/src/elements/StickyFeatures.tsx +0 -53
- package/src/elements/SubsectionList.tsx +0 -77
- package/src/elements/Switch.tsx +0 -66
- package/src/elements/TabPanel.tsx +0 -25
- package/src/elements/Tabs.tsx +0 -84
- package/src/elements/Textarea.tsx +0 -36
- package/src/elements/Timeline.tsx +0 -35
- package/src/elements/Toast.tsx +0 -160
- package/src/elements/Toaster.tsx +0 -35
- package/src/elements/Tooltip.tsx +0 -65
- package/src/elements/UsageCard.tsx +0 -45
- package/src/elements/UserReferralSource.tsx +0 -99
- package/src/elements/index.ts +0 -74
- package/src/hooks/index.ts +0 -13
- package/src/hooks/useBreakpoint.ts +0 -24
- package/src/hooks/useCarousel.ts +0 -58
- package/src/hooks/useClipboard.ts +0 -32
- package/src/hooks/useDiscloser.ts +0 -21
- package/src/hooks/useFocusWithin.ts +0 -80
- package/src/hooks/useFullscreen.ts +0 -123
- package/src/hooks/useHover.ts +0 -25
- package/src/hooks/useMediaQuery.ts +0 -65
- package/src/hooks/useScrollPosition.ts +0 -30
- package/src/hooks/useTable.ts +0 -159
- package/src/hooks/useTabs.ts +0 -37
- package/src/hooks/useToast.ts +0 -182
- package/src/hooks/useWindowEvent.ts +0 -14
- package/src/hooks/useWindowScroll.ts +0 -42
- package/src/index.ts +0 -4
- package/src/layout/AppLayout.tsx +0 -494
- package/src/layout/AppSidebar.tsx +0 -39
- package/src/layout/Banner.tsx +0 -120
- package/src/layout/Box.tsx +0 -5
- package/src/layout/Footer.tsx +0 -109
- package/src/layout/HawaAppLayout.tsx +0 -527
- package/src/layout/HawaAppLayoutSimplified.tsx +0 -578
- package/src/layout/HawaBottomAppBar.tsx +0 -55
- package/src/layout/HawaContainer.tsx +0 -43
- package/src/layout/HawaGrid.tsx +0 -15
- package/src/layout/HawaSiteLayout.tsx +0 -159
- package/src/layout/Sidebar.tsx +0 -257
- package/src/layout/Sidebar2.tsx +0 -77
- package/src/layout/index.ts +0 -13
- package/src/styles.css +0 -4222
- package/src/tailwind.css +0 -261
- package/src/util.ts +0 -149
- package/tailwind.config.js +0 -220
- package/tsconfig.json +0 -33
- package/tsup.config.js +0 -9
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
(function(Fe,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],h):(Fe=typeof globalThis<"u"?globalThis:Fe||self,h(Fe.index={},Fe.React,Fe.ReactDOM))})(this,function(Fe,h,Qo){"use strict";function Km(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const je=Km(h),xw=Km(Qo);var mc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uf={exports:{}},Al={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var qm;function yw(){if(qm)return Al;qm=1;var e=h,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,c){var m,p={},x=null,C=null;c!==void 0&&(x=""+c),u.key!==void 0&&(x=""+u.key),u.ref!==void 0&&(C=u.ref);for(m in u)n.call(u,m)&&!o.hasOwnProperty(m)&&(p[m]=u[m]);if(l&&l.defaultProps)for(m in u=l.defaultProps,u)p[m]===void 0&&(p[m]=u[m]);return{$$typeof:t,type:l,key:x,ref:C,props:p,_owner:a.current}}return Al.Fragment=r,Al.jsx=i,Al.jsxs=i,Al}var Fl={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var e0;function Cw(){return e0||(e0=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),E=Symbol.iterator,v="@@iterator";function A(q){if(q===null||typeof q!="object")return null;var _e=E&&q[E]||q[v];return typeof _e=="function"?_e:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(q){{for(var _e=arguments.length,Je=new Array(_e>1?_e-1:0),ct=1;ct<_e;ct++)Je[ct-1]=arguments[ct];O("error",q,Je)}}function O(q,_e,Je){{var ct=S.ReactDebugCurrentFrame,wt=ct.getStackAddendum();wt!==""&&(_e+="%s",Je=Je.concat([wt]));var Ft=Je.map(function(Dt){return String(Dt)});Ft.unshift("Warning: "+_e),Function.prototype.apply.call(console[q],console,Ft)}}var L=!1,M=!1,z=!1,H=!1,oe=!1,J;J=Symbol.for("react.module.reference");function ge(q){return!!(typeof q=="string"||typeof q=="function"||q===n||q===o||oe||q===a||q===c||q===m||H||q===C||L||M||z||typeof q=="object"&&q!==null&&(q.$$typeof===x||q.$$typeof===p||q.$$typeof===i||q.$$typeof===l||q.$$typeof===u||q.$$typeof===J||q.getModuleId!==void 0))}function xe(q,_e,Je){var ct=q.displayName;if(ct)return ct;var wt=_e.displayName||_e.name||"";return wt!==""?Je+"("+wt+")":Je}function Q(q){return q.displayName||"Context"}function ce(q){if(q==null)return null;if(typeof q.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case l:var _e=q;return Q(_e)+".Consumer";case i:var Je=q;return Q(Je._context)+".Provider";case u:return xe(q,q.render,"ForwardRef");case p:var ct=q.displayName||null;return ct!==null?ct:ce(q.type)||"Memo";case x:{var wt=q,Ft=wt._payload,Dt=wt._init;try{return ce(Dt(Ft))}catch{return null}}}return null}var N=Object.assign,W=0,ee,de,ne,te,K,se,fe;function Se(){}Se.__reactDisabledLog=!0;function G(){{if(W===0){ee=console.log,de=console.info,ne=console.warn,te=console.error,K=console.group,se=console.groupCollapsed,fe=console.groupEnd;var q={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}W++}}function he(){{if(W--,W===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},q,{value:ee}),info:N({},q,{value:de}),warn:N({},q,{value:ne}),error:N({},q,{value:te}),group:N({},q,{value:K}),groupCollapsed:N({},q,{value:se}),groupEnd:N({},q,{value:fe})})}W<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=S.ReactCurrentDispatcher,me;function Me(q,_e,Je){{if(me===void 0)try{throw Error()}catch(wt){var ct=wt.stack.trim().match(/\n( *(at )?)/);me=ct&&ct[1]||""}return`
|
|
18
|
+
`+me+q}}var Pe=!1,We;{var Ke=typeof WeakMap=="function"?WeakMap:Map;We=new Ke}function Ne(q,_e){if(!q||Pe)return"";{var Je=We.get(q);if(Je!==void 0)return Je}var ct;Pe=!0;var wt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ft;Ft=ae.current,ae.current=null,G();try{if(_e){var Dt=function(){throw Error()};if(Object.defineProperty(Dt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Dt,[])}catch(nr){ct=nr}Reflect.construct(q,[],Dt)}else{try{Dt.call()}catch(nr){ct=nr}q.call(Dt.prototype)}}else{try{throw Error()}catch(nr){ct=nr}q()}}catch(nr){if(nr&&ct&&typeof nr.stack=="string"){for(var xt=nr.stack.split(`
|
|
19
|
+
`),rr=ct.stack.split(`
|
|
20
|
+
`),Nt=xt.length-1,Mt=rr.length-1;Nt>=1&&Mt>=0&&xt[Nt]!==rr[Mt];)Mt--;for(;Nt>=1&&Mt>=0;Nt--,Mt--)if(xt[Nt]!==rr[Mt]){if(Nt!==1||Mt!==1)do if(Nt--,Mt--,Mt<0||xt[Nt]!==rr[Mt]){var Jt=`
|
|
21
|
+
`+xt[Nt].replace(" at new "," at ");return q.displayName&&Jt.includes("<anonymous>")&&(Jt=Jt.replace("<anonymous>",q.displayName)),typeof q=="function"&&We.set(q,Jt),Jt}while(Nt>=1&&Mt>=0);break}}}finally{Pe=!1,ae.current=Ft,he(),Error.prepareStackTrace=wt}var Ir=q?q.displayName||q.name:"",dn=Ir?Me(Ir):"";return typeof q=="function"&&We.set(q,dn),dn}function Qe(q,_e,Je){return Ne(q,!1)}function nt(q){var _e=q.prototype;return!!(_e&&_e.isReactComponent)}function vt(q,_e,Je){if(q==null)return"";if(typeof q=="function")return Ne(q,nt(q));if(typeof q=="string")return Me(q);switch(q){case c:return Me("Suspense");case m:return Me("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case u:return Qe(q.render);case p:return vt(q.type,_e,Je);case x:{var ct=q,wt=ct._payload,Ft=ct._init;try{return vt(Ft(wt),_e,Je)}catch{}}}return""}var At=Object.prototype.hasOwnProperty,re={},be=S.ReactDebugCurrentFrame;function Ie(q){if(q){var _e=q._owner,Je=vt(q.type,q._source,_e?_e.type:null);be.setExtraStackFrame(Je)}else be.setExtraStackFrame(null)}function Ze(q,_e,Je,ct,wt){{var Ft=Function.call.bind(At);for(var Dt in q)if(Ft(q,Dt)){var xt=void 0;try{if(typeof q[Dt]!="function"){var rr=Error((ct||"React class")+": "+Je+" type `"+Dt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[Dt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw rr.name="Invariant Violation",rr}xt=q[Dt](_e,Dt,ct,Je,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Nt){xt=Nt}xt&&!(xt instanceof Error)&&(Ie(wt),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ct||"React class",Je,Dt,typeof xt),Ie(null)),xt instanceof Error&&!(xt.message in re)&&(re[xt.message]=!0,Ie(wt),j("Failed %s type: %s",Je,xt.message),Ie(null))}}}var He=Array.isArray;function Te(q){return He(q)}function Ee(q){{var _e=typeof Symbol=="function"&&Symbol.toStringTag,Je=_e&&q[Symbol.toStringTag]||q.constructor.name||"Object";return Je}}function ze(q){try{return tt(q),!1}catch{return!0}}function tt(q){return""+q}function bt(q){if(ze(q))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(q)),tt(q)}var Ot=S.ReactCurrentOwner,gt={key:!0,ref:!0,__self:!0,__source:!0},Wt,pr,Yt;Yt={};function Cr(q){if(At.call(q,"ref")){var _e=Object.getOwnPropertyDescriptor(q,"ref").get;if(_e&&_e.isReactWarning)return!1}return q.ref!==void 0}function gr(q){if(At.call(q,"key")){var _e=Object.getOwnPropertyDescriptor(q,"key").get;if(_e&&_e.isReactWarning)return!1}return q.key!==void 0}function Or(q,_e){if(typeof q.ref=="string"&&Ot.current&&_e&&Ot.current.stateNode!==_e){var Je=ce(Ot.current.type);Yt[Je]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ce(Ot.current.type),q.ref),Yt[Je]=!0)}}function Nr(q,_e){{var Je=function(){Wt||(Wt=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Je.isReactWarning=!0,Object.defineProperty(q,"key",{get:Je,configurable:!0})}}function xr(q,_e){{var Je=function(){pr||(pr=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Je.isReactWarning=!0,Object.defineProperty(q,"ref",{get:Je,configurable:!0})}}var Mr=function(q,_e,Je,ct,wt,Ft,Dt){var xt={$$typeof:t,type:q,key:_e,ref:Je,props:Dt,_owner:Ft};return xt._store={},Object.defineProperty(xt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.defineProperty(xt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:wt}),Object.freeze&&(Object.freeze(xt.props),Object.freeze(xt)),xt};function cn(q,_e,Je,ct,wt){{var Ft,Dt={},xt=null,rr=null;Je!==void 0&&(bt(Je),xt=""+Je),gr(_e)&&(bt(_e.key),xt=""+_e.key),Cr(_e)&&(rr=_e.ref,Or(_e,wt));for(Ft in _e)At.call(_e,Ft)&&!gt.hasOwnProperty(Ft)&&(Dt[Ft]=_e[Ft]);if(q&&q.defaultProps){var Nt=q.defaultProps;for(Ft in Nt)Dt[Ft]===void 0&&(Dt[Ft]=Nt[Ft])}if(xt||rr){var Mt=typeof q=="function"?q.displayName||q.name||"Unknown":q;xt&&Nr(Dt,Mt),rr&&xr(Dt,Mt)}return Mr(q,xt,rr,wt,ct,Ot.current,Dt)}}var cr=S.ReactCurrentOwner,wr=S.ReactDebugCurrentFrame;function Er(q){if(q){var _e=q._owner,Je=vt(q.type,q._source,_e?_e.type:null);wr.setExtraStackFrame(Je)}else wr.setExtraStackFrame(null)}var It;It=!1;function Gr(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function Tn(){{if(cr.current){var q=ce(cr.current.type);if(q)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+q+"`."}return""}}function kn(q){{if(q!==void 0){var _e=q.fileName.replace(/^.*[\\\/]/,""),Je=q.lineNumber;return`
|
|
24
|
+
|
|
25
|
+
Check your code at `+_e+":"+Je+"."}return""}}var Rr={};function _n(q){{var _e=Tn();if(!_e){var Je=typeof q=="string"?q:q.displayName||q.name;Je&&(_e=`
|
|
26
|
+
|
|
27
|
+
Check the top-level render call using <`+Je+">.")}return _e}}function Zr(q,_e){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var Je=_n(_e);if(Rr[Je])return;Rr[Je]=!0;var ct="";q&&q._owner&&q._owner!==cr.current&&(ct=" It was passed a child from "+ce(q._owner.type)+"."),Er(q),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Je,ct),Er(null)}}function Xt(q,_e){{if(typeof q!="object")return;if(Te(q))for(var Je=0;Je<q.length;Je++){var ct=q[Je];Gr(ct)&&Zr(ct,_e)}else if(Gr(q))q._store&&(q._store.validated=!0);else if(q){var wt=A(q);if(typeof wt=="function"&&wt!==q.entries)for(var Ft=wt.call(q),Dt;!(Dt=Ft.next()).done;)Gr(Dt.value)&&Zr(Dt.value,_e)}}}function ia(q){{var _e=q.type;if(_e==null||typeof _e=="string")return;var Je;if(typeof _e=="function")Je=_e.propTypes;else if(typeof _e=="object"&&(_e.$$typeof===u||_e.$$typeof===p))Je=_e.propTypes;else return;if(Je){var ct=ce(_e);Ze(Je,q.props,"prop",ct,q)}else if(_e.PropTypes!==void 0&&!It){It=!0;var wt=ce(_e);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",wt||"Unknown")}typeof _e.getDefaultProps=="function"&&!_e.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sa(q){{for(var _e=Object.keys(q.props),Je=0;Je<_e.length;Je++){var ct=_e[Je];if(ct!=="children"&&ct!=="key"){Er(q),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ct),Er(null);break}}q.ref!==null&&(Er(q),j("Invalid attribute `ref` supplied to `React.Fragment`."),Er(null))}}function la(q,_e,Je,ct,wt,Ft){{var Dt=ge(q);if(!Dt){var xt="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&(xt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var rr=kn(wt);rr?xt+=rr:xt+=Tn();var Nt;q===null?Nt="null":Te(q)?Nt="array":q!==void 0&&q.$$typeof===t?(Nt="<"+(ce(q.type)||"Unknown")+" />",xt=" Did you accidentally export a JSX literal instead of a component?"):Nt=typeof q,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Nt,xt)}var Mt=cn(q,_e,Je,wt,Ft);if(Mt==null)return Mt;if(Dt){var Jt=_e.children;if(Jt!==void 0)if(ct)if(Te(Jt)){for(var Ir=0;Ir<Jt.length;Ir++)Xt(Jt[Ir],q);Object.freeze&&Object.freeze(Jt)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Xt(Jt,q)}return q===n?sa(Mt):ia(Mt),Mt}}function tr(q,_e,Je){return la(q,_e,Je,!0)}function ua(q,_e,Je){return la(q,_e,Je,!1)}var Ya=ua,Ja=tr;Fl.Fragment=n,Fl.jsx=Ya,Fl.jsxs=Ja}()),Fl}process.env.NODE_ENV==="production"?Uf.exports=yw():Uf.exports=Cw();var s=Uf.exports;function t0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=t0(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function $e(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=t0(e))&&(n&&(n+=" "),n+=t);return n}const Xf=e=>{const[t,r]=h.useState(e.val);return h.useEffect(()=>{e.onChange(t)},[t]),s.jsxs("div",{className:$e(e.centered?"flex h-full items-center justify-center":"flex h-full items-start "),children:[s.jsx("input",{type:"checkbox",checked:t,onChange:n=>r(n.target.checked),id:e.id,"aria-label":e.label,className:"mt-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"}),(e.label||e.helperText)&&s.jsxs("div",{className:" flex cursor-pointer flex-col py-2",onClick:n=>r(!t),children:[e.label&&s.jsx("label",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),e.helperText&&s.jsx("p",{className:"mx-2 mt-1 text-xs text-red-600 dark:text-red-500",children:e.helperText})]})]})},ww=e=>(h.useState(e.defaultValue),s.jsxs("div",{children:[s.jsx("div",{className:"mb-4 border-b border-gray-200 dark:border-gray-700",children:s.jsx("ul",{className:"-mb-px flex flex-wrap text-center text-sm font-medium",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist",children:e.options.map((t,r)=>s.jsx("li",{className:"mr-2",role:"presentation",children:s.jsx("button",{className:"inline-block rounded-t-lg border-b-2 border-blue-600 p-4 text-blue-600 hover:text-blue-600 dark:border-blue-500 dark:text-blue-500 dark:hover:text-blue-500",id:`${t.value}-tab`,"data-tabs-target":`#${t.value}`,type:"button",role:"tab","aria-controls":t.value,"aria-selected":"true",children:t.label})},r))})}),s.jsx("div",{id:"myTabContent",children:e.options.map((t,r)=>s.jsx("div",{className:"rounded bg-gray-50 p-4 dark:bg-gray-800",id:`${t.value}`,role:"tabpanel","aria-labelledby":`${t.value}-tab`,children:t.content},r))})]})),bc=({label:e,size:t="normal",icon:r,color:n,dot:a,dotType:o="available"})=>{let i="flex flex-row w-fit gap-1 items-center rounded px-2.5 py-0.5 font-bold text-blue-800 dark:bg-blue-200 dark:text-blue-800",l={small:"h-full leading-4 px-1 py-0 text-[9px] gap-0.5 ",normal:"h-fit text-xs",large:""},u={small:"flex h-1 w-1 rounded-full",normal:"flex h-2 w-2 rounded-full",large:"flex h-3 w-3 rounded-full"},c={available:"bg-green-500",unavailable:"bg-red-500"};return s.jsxs("span",{className:$e(i,l[t],n?`bg-${n}-100 text-${n}-500`:"bg-layoutPrimary-500"),children:[a&&s.jsx("span",{className:$e(u[t],c[o])}),r&&r,e]})},Ew=e=>s.jsxs("div",{className:"flex h-fit flex-row items-center gap-2 px-2",children:[s.jsx("div",{children:e.icon}),s.jsx("div",{className:"text-sm",children:e.count})]});function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},we.apply(this,arguments)}function Dw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function xc(...e){return t=>e.forEach(r=>Dw(r,t))}function Kt(...e){return h.useCallback(xc(...e),e)}const Ko=h.forwardRef((e,t)=>{const{children:r,...n}=e,a=h.Children.toArray(r),o=a.find(Sw);if(o){const i=o.props.children,l=a.map(u=>u===o?h.Children.count(i)>1?h.Children.only(null):h.isValidElement(i)?i.props.children:null:u);return h.createElement(Yf,we({},n,{ref:t}),h.isValidElement(i)?h.cloneElement(i,void 0,l):null)}return h.createElement(Yf,we({},n,{ref:t}),r)});Ko.displayName="Slot";const Yf=h.forwardRef((e,t)=>{const{children:r,...n}=e;return h.isValidElement(r)?h.cloneElement(r,{...Aw(n,r.props),ref:t?xc(t,r.ref):r.ref}):h.Children.count(r)>1?h.Children.only(null):null});Yf.displayName="SlotClone";const r0=({children:e})=>h.createElement(h.Fragment,null,e);function Sw(e){return h.isValidElement(e)&&e.type===r0}function Aw(e,t){const r={...t};for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...l)=>{o(...l),a(...l)}:a&&(r[n]=a):n==="style"?r[n]={...a,...o}:n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}const St=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=h.forwardRef((n,a)=>{const{asChild:o,...i}=n,l=o?Ko:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,we({},i,{ref:a}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Jf(e,t){e&&Qo.flushSync(()=>e.dispatchEvent(t))}const n0=h.forwardRef((e,t)=>h.createElement(St.label,we({},e,{ref:t,onMouseDown:r=>{var n;(n=e.onMouseDown)===null||n===void 0||n.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault()}})));function a0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=a0(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Fw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=a0(e))&&(n&&(n+=" "),n+=t);return n}const o0=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,i0=Fw,Qf=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return i0(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(c=>{const m=r==null?void 0:r[c],p=o==null?void 0:o[c];if(m===null)return null;const x=o0(m)||o0(p);return a[c][x]}),l=r&&Object.entries(r).reduce((c,m)=>{let[p,x]=m;return x===void 0||(c[p]=x),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,m)=>{let{class:p,className:x,...C}=m;return Object.entries(C).every(E=>{let[v,A]=E;return Array.isArray(A)?A.includes({...o,...l}[v]):{...o,...l}[v]===A})?[...c,p,x]:c},[]);return i0(e,i,u,r==null?void 0:r.class,r==null?void 0:r.className)};function jw(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=s0(t))&&(n&&(n+=" "),n+=r);return n}function s0(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=s0(e[n]))&&(r&&(r+=" "),r+=t);return r}var Kf="-";function Iw(e){var t=kw(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,a=n===void 0?{}:n;function o(l){var u=l.split(Kf);return u[0]===""&&u.length!==1&&u.shift(),l0(u,t)||Tw(l)}function i(l,u){var c=r[l]||[];return u&&a[l]?[].concat(c,a[l]):c}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function l0(e,t){var i;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),a=n?l0(e.slice(1),n):void 0;if(a)return a;if(t.validators.length!==0){var o=e.join(Kf);return(i=t.validators.find(function(l){var u=l.validator;return u(o)}))==null?void 0:i.classGroupId}}var u0=/^\[(.+)\]$/;function Tw(e){if(u0.test(e)){var t=u0.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function kw(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},a=Pw(Object.entries(e.classGroups),r);return a.forEach(function(o){var i=o[0],l=o[1];qf(l,n,i,t)}),n}function qf(e,t,r,n){e.forEach(function(a){if(typeof a=="string"){var o=a===""?t:c0(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(Bw(a)){qf(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(i){var l=i[0],u=i[1];qf(u,c0(t,l),r,n)})})}function c0(e,t){var r=e;return t.split(Kf).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function Bw(e){return e.isThemeGetter}function Pw(e,t){return t?e.map(function(r){var n=r[0],a=r[1],o=a.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(l){var u=l[0],c=l[1];return[t+u,c]})):i});return[n,o]}):e}function Ow(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function a(o,i){r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(i){var l=r.get(i);if(l!==void 0)return l;if((l=n.get(i))!==void 0)return a(i,l),l},set:function(i,l){r.has(i)?r.set(i,l):a(i,l)}}}var d0="!";function Nw(e){var t=e.separator||":",r=t.length===1,n=t[0],a=t.length;return function(i){for(var l=[],u=0,c=0,m,p=0;p<i.length;p++){var x=i[p];if(u===0){if(x===n&&(r||i.slice(p,p+a)===t)){l.push(i.slice(c,p)),c=p+a;continue}if(x==="/"){m=p;continue}}x==="["?u++:x==="]"&&u--}var C=l.length===0?i:i.substring(c),E=C.startsWith(d0),v=E?C.substring(1):C,A=m&&m>c?m-c:void 0;return{modifiers:l,hasImportantModifier:E,baseClassName:v,maybePostfixModifierPosition:A}}}function Mw(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var a=n[0]==="[";a?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Rw(e){return{cache:Ow(e.cacheSize),splitModifiers:Nw(e),...Iw(e)}}var $w=/\s+/;function Lw(e,t){var r=t.splitModifiers,n=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return e.trim().split($w).map(function(i){var l=r(i),u=l.modifiers,c=l.hasImportantModifier,m=l.baseClassName,p=l.maybePostfixModifierPosition,x=n(p?m.substring(0,p):m),C=!!p;if(!x){if(!p)return{isTailwindClass:!1,originalClassName:i};if(x=n(m),!x)return{isTailwindClass:!1,originalClassName:i};C=!1}var E=Mw(u).join(":"),v=c?E+d0:E;return{isTailwindClass:!0,modifierId:v,classGroupId:x,originalClassName:i,hasPostfixModifier:C}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,u=i.classGroupId,c=i.hasPostfixModifier,m=l+u;return o.has(m)?!1:(o.add(m),a(u,c).forEach(function(p){return o.add(l+p)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function _w(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a,o,i=l;function l(c){var m=t[0],p=t.slice(1),x=p.reduce(function(C,E){return E(C)},m());return n=Rw(x),a=n.cache.get,o=n.cache.set,i=u,u(c)}function u(c){var m=a(c);if(m)return m;var p=Lw(c,n);return o(c,p),p}return function(){return i(jw.apply(null,arguments))}}function ir(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var f0=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ww=/^\d+\/\d+$/,Vw=new Set(["px","full","screen"]),Hw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gw=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Qn(e){return qo(e)||Vw.has(e)||Ww.test(e)||eh(e)}function eh(e){return ei(e,"length",Qw)}function Zw(e){return ei(e,"size",h0)}function Uw(e){return ei(e,"position",h0)}function Xw(e){return ei(e,"url",Kw)}function yc(e){return ei(e,"number",qo)}function qo(e){return!Number.isNaN(Number(e))}function Yw(e){return e.endsWith("%")&&qo(e.slice(0,-1))}function jl(e){return p0(e)||ei(e,"number",p0)}function Tt(e){return f0.test(e)}function Il(){return!0}function go(e){return Hw.test(e)}function Jw(e){return ei(e,"",qw)}function ei(e,t,r){var n=f0.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function Qw(e){return zw.test(e)}function h0(){return!1}function Kw(e){return e.startsWith("url(")}function p0(e){return Number.isInteger(Number(e))}function qw(e){return Gw.test(e)}function eE(){var e=ir("colors"),t=ir("spacing"),r=ir("blur"),n=ir("brightness"),a=ir("borderColor"),o=ir("borderRadius"),i=ir("borderSpacing"),l=ir("borderWidth"),u=ir("contrast"),c=ir("grayscale"),m=ir("hueRotate"),p=ir("invert"),x=ir("gap"),C=ir("gradientColorStops"),E=ir("gradientColorStopPositions"),v=ir("inset"),A=ir("margin"),S=ir("opacity"),j=ir("padding"),O=ir("saturate"),L=ir("scale"),M=ir("sepia"),z=ir("skew"),H=ir("space"),oe=ir("translate"),J=function(){return["auto","contain","none"]},ge=function(){return["auto","hidden","clip","visible","scroll"]},xe=function(){return["auto",Tt,t]},Q=function(){return[Tt,t]},ce=function(){return["",Qn]},N=function(){return["auto",qo,Tt]},W=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},ee=function(){return["solid","dashed","dotted","double","none"]},de=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ne=function(){return["start","end","center","between","around","evenly","stretch"]},te=function(){return["","0",Tt]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},se=function(){return[qo,yc]},fe=function(){return[qo,Tt]};return{cacheSize:500,theme:{colors:[Il],spacing:[Qn],blur:["none","",go,Tt],brightness:se(),borderColor:[e],borderRadius:["none","","full",go,Tt],borderSpacing:Q(),borderWidth:ce(),contrast:se(),grayscale:te(),hueRotate:fe(),invert:te(),gap:Q(),gradientColorStops:[e],gradientColorStopPositions:[Yw,eh],inset:xe(),margin:xe(),opacity:se(),padding:Q(),saturate:se(),scale:se(),sepia:te(),skew:fe(),space:Q(),translate:Q()},classGroups:{aspect:[{aspect:["auto","square","video",Tt]}],container:["container"],columns:[{columns:[go]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(W(),[Tt])}],overflow:[{overflow:ge()}],"overflow-x":[{"overflow-x":ge()}],"overflow-y":[{"overflow-y":ge()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jl]}],basis:[{basis:xe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Tt]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",jl]}],"grid-cols":[{"grid-cols":[Il]}],"col-start-end":[{col:["auto",{span:["full",jl]},Tt]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Il]}],"row-start-end":[{row:["auto",{span:[jl]},Tt]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Tt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Tt]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal"].concat(ne())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ne(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ne(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Tt,t]}],"min-w":[{"min-w":["min","max","fit",Tt,Qn]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[go]},go,Tt]}],h:[{h:[Tt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Tt,Qn]}],"max-h":[{"max-h":[Tt,t,"min","max","fit"]}],"font-size":[{text:["base",go,eh]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yc]}],"font-family":[{font:[Il]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Tt]}],"line-clamp":[{"line-clamp":["none",qo,yc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tt,Qn]}],"list-image":[{"list-image":["none",Tt]}],"list-style-type":[{list:["none","disc","decimal",Tt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(ee(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Qn]}],"underline-offset":[{"underline-offset":["auto",Tt,Qn]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:Q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Tt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(W(),[Uw])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[].concat(ee(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:ee()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(ee())}],"outline-offset":[{"outline-offset":[Tt,Qn]}],"outline-w":[{outline:[Qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[Qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",go,Jw]}],"shadow-color":[{shadow:[Il]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":de()}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",go,Tt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[O]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Tt]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",Tt]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Tt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[jl,Tt]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Tt]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Tt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Q()}],"scroll-mx":[{"scroll-mx":Q()}],"scroll-my":[{"scroll-my":Q()}],"scroll-ms":[{"scroll-ms":Q()}],"scroll-me":[{"scroll-me":Q()}],"scroll-mt":[{"scroll-mt":Q()}],"scroll-mr":[{"scroll-mr":Q()}],"scroll-mb":[{"scroll-mb":Q()}],"scroll-ml":[{"scroll-ml":Q()}],"scroll-p":[{"scroll-p":Q()}],"scroll-px":[{"scroll-px":Q()}],"scroll-py":[{"scroll-py":Q()}],"scroll-ps":[{"scroll-ps":Q()}],"scroll-pe":[{"scroll-pe":Q()}],"scroll-pt":[{"scroll-pt":Q()}],"scroll-pr":[{"scroll-pr":Q()}],"scroll-pb":[{"scroll-pb":Q()}],"scroll-pl":[{"scroll-pl":Q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Tt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qn,yc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var tE=_w(eE);function Ve(...e){return tE($e(e))}const rE=Qf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ti=je.forwardRef(({className:e,...t},r)=>s.jsx(n0,{ref:r,className:Ve(rE(),e),...t}));ti.displayName=n0.displayName;function ri({className:e,...t}){return s.jsx("div",{className:Ve("animate-pulse rounded-md bg-muted",e),...t})}const Rt=({margin:e="normal",width:t="full",preview:r=!1,...n})=>{let a={none:"mb-0",normal:"mb-3",large:"mb-5"},o={small:"w-full max-w-2xs",normal:"w-1/2",full:"w-full"},i="flex max-h-fit relative flex-col justify-center gap-2",l="block w-full rounded border transition-all bg-background p-2 text-sm text-black dark:text-white focus:border-blue-500 focus:ring-blue-500";return s.jsxs("div",{className:Ve(i,a[e],o[t]),children:[n.label&&s.jsx(ti,{children:n.label}),n.isLoading?s.jsx(ri,{className:"h-[38px] w-full"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:Ve("absolute top-[22px] h-[0.8px] w-full bg-gray-200 transition-all dark:bg-gray-800",r?"opacity-100":"opacity-0")}),s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:Ve("relative"),children:[n.icon&&s.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2",children:n.icon}),s.jsx("input",{...n,className:Ve(l,n.icon&&"pl-10",r&&"border-transparent bg-transparent px-0"),disabled:r})]}),n.iconInside&&s.jsx("div",{className:"absolute right-1 top-[41px] -translate-y-1/2",children:n.iconInside}),n.helpertext&&s.jsx("p",{className:"mb-0 mt-0 text-xs text-red-600 dark:text-red-500",children:n.helpertext})]})]})]})},g0=e=>{const[t,r]=h.useState(e.color);return s.jsxs("div",{className:"flex w-fit flex-row rounded border p-0",children:[s.jsx("div",{style:{backgroundColor:t},className:"rounded-bl-lg rounded-tl-lg",children:s.jsx("input",{type:"color",value:t,onChange:n=>{r(n.target.value),e.handleChange(n)},className:"opacity-0"})}),s.jsx("input",{type:"text",onChange:n=>{r(n.target.value),e.handleChange(n)},value:t,className:"w-24 bg-background rounded-br-lg rounded-tr-lg pl-2 pr-2"})]})},m0=({value:e,handleChange:t,startElement:r,endElement:n,label:a,...o})=>{const[i,l]=h.useState(e);return s.jsxs("div",{...o,children:[a&&s.jsx("label",{htmlFor:"default-range",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300",children:a}),s.jsxs("div",{className:"flex w-fit flex-row items-center justify-center",children:[s.jsx("div",{className:"mr-2",children:r})," ",s.jsx("input",{id:"default-range",type:"range",value:i,onChange:u=>{l(u.target.value),t(u)},className:"h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"}),s.jsx("div",{className:"ml-2",children:n})," "]})]})},yn=({design:e="default",width:t="default",orientation:r="horizontal",...n})=>{var C,E,v;const[a,o]=h.useState(n.defaultValue);let i="inline-block py-2 px-4 w-full text-primary-foreground bg-primary active dark:bg-primary ",l="inline-block py-2 px-4 w-full transition-all hover:bg-primary/10 dark:bg-background bg-primary/5 hover:text-gray-900 dark:hover:bg-primary/10 dark:hover:text-white dark:bg-primary/5",u={horizontal:"flex flex-row",vertical:"flex flex-col"},c={default:"max-w-fit",full:"w-full"};const[m,p]=h.useState(null),x=h.useRef(null);switch(h.useEffect(()=>{if(x.current&&x.current.parentNode){const A=window.getComputedStyle(x.current.parentNode).direction;p(A)}}),e){case"tabs":return s.jsx("ul",{ref:x,className:Ve(((C=n.options)==null?void 0:C.length)>2?"flex-wrap xs:max-w-full xs:flex-nowrap":"","select-none whitespace-nowrap rounded border text-center text-sm font-medium",c[t],u[r]),children:(E=n.options)==null?void 0:E.map((A,S)=>s.jsxs("li",{"aria-current":"page",onClick:()=>{o(A.value),n.onChangeTab(A.value)},className:Ve("w-full cursor-pointer ",r==="horizontal"&&m==="ltr"&&"rounded-none first:rounded-l last:rounded-r",r==="horizontal"&&m==="rtl"&&"rounded-none first:rounded-r last:rounded-l",r==="vertical"&&"rounded-none first:rounded-t last:rounded-b","last flex flex-row items-center justify-center gap-2 ",a===A.value?i:l),children:[A.icon&&A.icon,A.label]},S))});case"bordered":return s.jsx("div",{className:Ve(u[r],"gap-4"),children:n.options.map((A,S)=>s.jsx("div",{className:"rounded border border-gray-200 ",children:s.jsxs("div",{className:"radio-item radio-item-bordered flex items-center transition-all",children:[s.jsx("input",{disabled:A.disabled,id:A.value.toString(),type:"radio",value:A.value,name:"bordered-radio"}),s.jsx("label",{htmlFor:A.value.toString(),className:Ve("ml-2 w-full p-4 pl-3 text-sm font-medium dark:text-white",A.disabled?"opacity-50":"cursor-pointer text-gray-900"),children:A.label})]},S+1)}))});case"cards":return s.jsx("ul",{className:Ve(u[r],"gap-4"),children:(v=n.options)==null?void 0:v.map((A,S)=>s.jsxs("li",{children:[s.jsx("input",{type:"radio",id:A.value.toString(),name:"cards-radio",value:A.value.toString(),className:"peer hidden",required:!0,disabled:A.disabled}),s.jsx("label",{htmlFor:A.value.toString(),className:Ve("inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:peer-checked:text-primary",A.disabled?"opacity-50":"cursor-pointer hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-gray-700 dark:hover:text-gray-300"),children:s.jsxs("div",{className:"block h-full w-full",children:[s.jsx("div",{className:"w-full text-lg font-semibold",children:A.label}),s.jsx("div",{className:"w-full",children:A.sublabel})]})})]}))});default:return s.jsx("div",{className:Ve(u[r],"gap-2"),children:n.options.map((A,S)=>s.jsxs("div",{className:"radio-item radio-item-default flex items-center transition-all",children:[s.jsx("input",{disabled:A.disabled,id:A.value.toString(),type:"radio",value:A.value,name:"default-radio"}),s.jsx("label",{htmlFor:A.value.toString(),className:Ve("text-sm font-medium dark:text-white",A.disabled?"text-gray-400":"cursor-pointer text-gray-900"),children:A.label})]},S+1))})}};function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function nE(e,t){if(ni(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ni(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v0(e){var t=nE(e,"string");return ni(t)==="symbol"?t:String(t)}function Tl(e,t,r){return t=v0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(r),!0).forEach(function(n){Tl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aE(e){if(Array.isArray(e))return e}function oE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){c=!0,a=m}finally{try{if(!u&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}function th(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x0(e,t){if(e){if(typeof e=="string")return th(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return th(e,t)}}function iE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
28
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $a(e,t){return aE(e)||oE(e,t)||x0(e,t)||iE()}function sE(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ma(e,t){if(e==null)return{};var r=sE(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var lE=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function y0(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,a=n===void 0?!1:n,o=e.defaultValue,i=o===void 0?null:o,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,m=e.onInputChange,p=e.onMenuClose,x=e.onMenuOpen,C=e.value,E=ma(e,lE),v=h.useState(l!==void 0?l:r),A=$a(v,2),S=A[0],j=A[1],O=h.useState(u!==void 0?u:a),L=$a(O,2),M=L[0],z=L[1],H=h.useState(C!==void 0?C:i),oe=$a(H,2),J=oe[0],ge=oe[1],xe=h.useCallback(function(ne,te){typeof c=="function"&&c(ne,te),ge(ne)},[c]),Q=h.useCallback(function(ne,te){var K;typeof m=="function"&&(K=m(ne,te)),j(K!==void 0?K:ne)},[m]),ce=h.useCallback(function(){typeof x=="function"&&x(),z(!0)},[x]),N=h.useCallback(function(){typeof p=="function"&&p(),z(!1)},[p]),W=l!==void 0?l:S,ee=u!==void 0?u:M,de=C!==void 0?C:J;return dt(dt({},E),{},{inputValue:W,menuIsOpen:ee,onChange:xe,onInputChange:Q,onMenuClose:N,onMenuOpen:ce,value:de})}function uE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v0(n.key),n)}}function cE(e,t,r){return t&&C0(e.prototype,t),r&&C0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rh(e,t){return rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},rh(e,t)}function dE(e,t){if(typeof t!="function"&&t!==null)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&&rh(e,t)}function Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cc(e)}function fE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pE(e,t){if(t&&(ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hE(e)}function gE(e){var t=fE();return function(){var n=Cc(e),a;if(t){var o=Cc(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return pE(this,a)}}function mE(e){if(Array.isArray(e))return th(e)}function vE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kl(e){return mE(e)||vE(e)||x0(e)||bE()}function xE(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function yE(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var CE=function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(yE(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
30
|
+
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var i=xE(a);try{i.insertRule(n,i.cssRules.length)}catch(l){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',l)}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Vr="-ms-",wc="-moz-",Lt="-webkit-",nh="comm",ah="rule",oh="decl",wE="@import",w0="@keyframes",EE="@layer",DE=Math.abs,Ec=String.fromCharCode,SE=Object.assign;function AE(e,t){return kr(e,0)^45?(((t<<2^kr(e,0))<<2^kr(e,1))<<2^kr(e,2))<<2^kr(e,3):0}function E0(e){return e.trim()}function FE(e,t){return(e=t.exec(e))?e[0]:e}function _t(e,t,r){return e.replace(t,r)}function ih(e,t){return e.indexOf(t)}function kr(e,t){return e.charCodeAt(t)|0}function Bl(e,t,r){return e.slice(t,r)}function va(e){return e.length}function sh(e){return e.length}function Dc(e,t){return t.push(e),e}function jE(e,t){return e.map(t).join("")}var Sc=1,ts=1,D0=0,on=0,br=0,rs="";function Ac(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Sc,column:ts,length:i,return:""}}function Pl(e,t){return SE(Ac("",null,null,"",null,null,0),e,{length:-e.length},t)}function IE(){return br}function TE(){return br=on>0?kr(rs,--on):0,ts--,br===10&&(ts=1,Sc--),br}function Cn(){return br=on<D0?kr(rs,on++):0,ts++,br===10&&(ts=1,Sc++),br}function ba(){return kr(rs,on)}function Fc(){return on}function Ol(e,t){return Bl(rs,e,t)}function Nl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function S0(e){return Sc=ts=1,D0=va(rs=e),on=0,[]}function A0(e){return rs="",e}function jc(e){return E0(Ol(on-1,lh(e===91?e+2:e===40?e+1:e)))}function kE(e){for(;(br=ba())&&br<33;)Cn();return Nl(e)>2||Nl(br)>3?"":" "}function BE(e,t){for(;--t&&Cn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return Ol(e,Fc()+(t<6&&ba()==32&&Cn()==32))}function lh(e){for(;Cn();)switch(br){case e:return on;case 34:case 39:e!==34&&e!==39&&lh(br);break;case 40:e===41&&lh(e);break;case 92:Cn();break}return on}function PE(e,t){for(;Cn()&&e+br!==47+10;)if(e+br===42+42&&ba()===47)break;return"/*"+Ol(t,on-1)+"*"+Ec(e===47?e:Cn())}function OE(e){for(;!Nl(ba());)Cn();return Ol(e,on)}function NE(e){return A0(Ic("",null,null,null,[""],e=S0(e),0,[0],e))}function Ic(e,t,r,n,a,o,i,l,u){for(var c=0,m=0,p=i,x=0,C=0,E=0,v=1,A=1,S=1,j=0,O="",L=a,M=o,z=n,H=O;A;)switch(E=j,j=Cn()){case 40:if(E!=108&&kr(H,p-1)==58){ih(H+=_t(jc(j),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:H+=jc(j);break;case 9:case 10:case 13:case 32:H+=kE(E);break;case 92:H+=BE(Fc()-1,7);continue;case 47:switch(ba()){case 42:case 47:Dc(ME(PE(Cn(),Fc()),t,r),u);break;default:H+="/"}break;case 123*v:l[c++]=va(H)*S;case 125*v:case 59:case 0:switch(j){case 0:case 125:A=0;case 59+m:S==-1&&(H=_t(H,/\f/g,"")),C>0&&va(H)-p&&Dc(C>32?j0(H+";",n,r,p-1):j0(_t(H," ","")+";",n,r,p-2),u);break;case 59:H+=";";default:if(Dc(z=F0(H,t,r,c,m,a,l,O,L=[],M=[],p),o),j===123)if(m===0)Ic(H,t,z,z,L,o,p,l,M);else switch(x===99&&kr(H,3)===110?100:x){case 100:case 108:case 109:case 115:Ic(e,z,z,n&&Dc(F0(e,z,z,0,0,a,l,O,a,L=[],p),M),a,M,p,l,n?L:M);break;default:Ic(H,z,z,z,[""],M,0,l,M)}}c=m=C=0,v=S=1,O=H="",p=i;break;case 58:p=1+va(H),C=E;default:if(v<1){if(j==123)--v;else if(j==125&&v++==0&&TE()==125)continue}switch(H+=Ec(j),j*v){case 38:S=m>0?1:(H+="\f",-1);break;case 44:l[c++]=(va(H)-1)*S,S=1;break;case 64:ba()===45&&(H+=jc(Cn())),x=ba(),m=p=va(O=H+=OE(Fc())),j++;break;case 45:E===45&&va(H)==2&&(v=0)}}return o}function F0(e,t,r,n,a,o,i,l,u,c,m){for(var p=a-1,x=a===0?o:[""],C=sh(x),E=0,v=0,A=0;E<n;++E)for(var S=0,j=Bl(e,p+1,p=DE(v=i[E])),O=e;S<C;++S)(O=E0(v>0?x[S]+" "+j:_t(j,/&\f/g,x[S])))&&(u[A++]=O);return Ac(e,t,r,a===0?ah:l,u,c,m)}function ME(e,t,r){return Ac(e,t,r,nh,Ec(IE()),Bl(e,2,-2),0)}function j0(e,t,r,n){return Ac(e,t,r,oh,Bl(e,0,n),Bl(e,n+1,-1),n)}function ns(e,t){for(var r="",n=sh(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function RE(e,t,r,n){switch(e.type){case EE:if(e.children.length)break;case wE:case oh:return e.return=e.return||e.value;case nh:return"";case w0:return e.return=e.value+"{"+ns(e.children,n)+"}";case ah:e.value=e.props.join(",")}return va(r=ns(e.children,n))?e.return=e.value+"{"+r+"}":""}function $E(e){var t=sh(e);return function(r,n,a,o){for(var i="",l=0;l<t;l++)i+=e[l](r,n,a,o)||"";return i}}function LE(e){return function(t){t.root||(t=t.return)&&e(t)}}var _E=function(t,r,n){for(var a=0,o=0;a=o,o=ba(),a===38&&o===12&&(r[n]=1),!Nl(o);)Cn();return Ol(t,on)},WE=function(t,r){var n=-1,a=44;do switch(Nl(a)){case 0:a===38&&ba()===12&&(r[n]=1),t[n]+=_E(on-1,r,n);break;case 2:t[n]+=jc(a);break;case 4:if(a===44){t[++n]=ba()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ec(a)}while(a=Cn());return t},VE=function(t,r){return A0(WE(S0(t),r))},I0=new WeakMap,HE=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!I0.get(n))&&!a){I0.set(t,!0);for(var o=[],i=VE(r,o),l=n.props,u=0,c=0;u<i.length;u++)for(var m=0;m<l.length;m++,c++)t.props[c]=o[u]?i[u].replace(/&\f/g,l[m]):l[m]+" "+i[u]}}},zE=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},GE="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ZE=function(t){return t.type==="comm"&&t.children.indexOf(GE)>-1},UE=function(t){return function(r,n,a){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=!!r.parent,l=i?r.parent.children:a,u=l.length-1;u>=0;u--){var c=l[u];if(c.line<r.line)break;if(c.column<r.column){if(ZE(c))return;break}}o.forEach(function(m){console.error('The pseudo class "'+m+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+m.split("-child")[0]+'-of-type".')})}}}},T0=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},XE=function(t,r){for(var n=t-1;n>=0;n--)if(!T0(r[n]))return!0;return!1},k0=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},YE=function(t,r,n){T0(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),k0(t)):XE(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),k0(t)))};function B0(e,t){switch(AE(e,t)){case 5103:return Lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+wc+e+Vr+e+e;case 6828:case 4268:return Lt+e+Vr+e+e;case 6165:return Lt+e+Vr+"flex-"+e+e;case 5187:return Lt+e+_t(e,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+Vr+"flex-$1$2")+e;case 5443:return Lt+e+Vr+"flex-item-"+_t(e,/flex-|-self/,"")+e;case 4675:return Lt+e+Vr+"flex-line-pack"+_t(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+Vr+_t(e,"shrink","negative")+e;case 5292:return Lt+e+Vr+_t(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+_t(e,"-grow","")+Lt+e+Vr+_t(e,"grow","positive")+e;case 4554:return Lt+_t(e,/([^-])(transform)/g,"$1"+Lt+"$2")+e;case 6187:return _t(_t(_t(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return _t(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return _t(_t(e,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+Vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return _t(e,/(.+)-inline(.+)/,Lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(va(e)-1-t>6)switch(kr(e,t+1)){case 109:if(kr(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+wc+(kr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ih(e,"stretch")?B0(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(kr(e,t+1)!==115)break;case 6444:switch(kr(e,va(e)-3-(~ih(e,"!important")&&10))){case 107:return _t(e,":",":"+Lt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(kr(e,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(kr(e,t+11)){case 114:return Lt+e+Vr+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+Vr+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+Vr+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+Vr+e+e}return e}var JE=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case oh:t.return=B0(t.value,t.length);break;case w0:return ns([Pl(t,{value:_t(t.value,"@","@"+Lt)})],a);case ah:if(t.length)return jE(t.props,function(o){switch(FE(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ns([Pl(t,{props:[_t(o,/:(read-\w+)/,":"+wc+"$1")]})],a);case"::placeholder":return ns([Pl(t,{props:[_t(o,/:(plac\w+)/,":"+Lt+"input-$1")]}),Pl(t,{props:[_t(o,/:(plac\w+)/,":"+wc+"$1")]}),Pl(t,{props:[_t(o,/:(plac\w+)/,Vr+"input-$1")]})],a)}return""})}},QE=[JE],KE=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
31
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var A=v.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=t.stylisPlugins||QE;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var A=v.getAttribute("data-emotion").split(" "),S=1;S<A.length;S++)o[A[S]]=!0;l.push(v)});var u,c=[HE,zE];process.env.NODE_ENV!=="production"&&c.push(UE({get compat(){return E.compat}}),YE);{var m,p=[RE,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?m.insert(v.return):v.value&&v.type!==nh&&m.insert(v.value+"{}"))}:LE(function(v){m.insert(v)})],x=$E(c.concat(a,p)),C=function(A){return ns(NE(A),x)};u=function(A,S,j,O){m=j,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(m={insert:function(M){j.insert(M+S.map)}}),C(A?A+"{"+S.styles+"}":S.styles),O&&(E.inserted[S.name]=!0)}}var E={key:r,sheet:new CE({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return E.sheet.hydrate(l),E},uh={exports:{}},Ht={};/** @license React v16.13.1
|
|
32
|
+
* react-is.production.min.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var P0;function qE(){if(P0)return Ht;P0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function O(M){if(typeof M=="object"&&M!==null){var z=M.$$typeof;switch(z){case t:switch(M=M.type,M){case u:case c:case n:case o:case a:case p:return M;default:switch(M=M&&M.$$typeof,M){case l:case m:case E:case C:case i:return M;default:return z}}case r:return z}}}function L(M){return O(M)===c}return Ht.AsyncMode=u,Ht.ConcurrentMode=c,Ht.ContextConsumer=l,Ht.ContextProvider=i,Ht.Element=t,Ht.ForwardRef=m,Ht.Fragment=n,Ht.Lazy=E,Ht.Memo=C,Ht.Portal=r,Ht.Profiler=o,Ht.StrictMode=a,Ht.Suspense=p,Ht.isAsyncMode=function(M){return L(M)||O(M)===u},Ht.isConcurrentMode=L,Ht.isContextConsumer=function(M){return O(M)===l},Ht.isContextProvider=function(M){return O(M)===i},Ht.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},Ht.isForwardRef=function(M){return O(M)===m},Ht.isFragment=function(M){return O(M)===n},Ht.isLazy=function(M){return O(M)===E},Ht.isMemo=function(M){return O(M)===C},Ht.isPortal=function(M){return O(M)===r},Ht.isProfiler=function(M){return O(M)===o},Ht.isStrictMode=function(M){return O(M)===a},Ht.isSuspense=function(M){return O(M)===p},Ht.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===c||M===o||M===a||M===p||M===x||typeof M=="object"&&M!==null&&(M.$$typeof===E||M.$$typeof===C||M.$$typeof===i||M.$$typeof===l||M.$$typeof===m||M.$$typeof===A||M.$$typeof===S||M.$$typeof===j||M.$$typeof===v)},Ht.typeOf=O,Ht}var zt={};/** @license React v16.13.1
|
|
39
|
+
* react-is.development.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var O0;function e3(){return O0||(O0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function O(Ne){return typeof Ne=="string"||typeof Ne=="function"||Ne===n||Ne===c||Ne===o||Ne===a||Ne===p||Ne===x||typeof Ne=="object"&&Ne!==null&&(Ne.$$typeof===E||Ne.$$typeof===C||Ne.$$typeof===i||Ne.$$typeof===l||Ne.$$typeof===m||Ne.$$typeof===A||Ne.$$typeof===S||Ne.$$typeof===j||Ne.$$typeof===v)}function L(Ne){if(typeof Ne=="object"&&Ne!==null){var Qe=Ne.$$typeof;switch(Qe){case t:var nt=Ne.type;switch(nt){case u:case c:case n:case o:case a:case p:return nt;default:var vt=nt&&nt.$$typeof;switch(vt){case l:case m:case E:case C:case i:return vt;default:return Qe}}case r:return Qe}}}var M=u,z=c,H=l,oe=i,J=t,ge=m,xe=n,Q=E,ce=C,N=r,W=o,ee=a,de=p,ne=!1;function te(Ne){return ne||(ne=!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.")),K(Ne)||L(Ne)===u}function K(Ne){return L(Ne)===c}function se(Ne){return L(Ne)===l}function fe(Ne){return L(Ne)===i}function Se(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===t}function G(Ne){return L(Ne)===m}function he(Ne){return L(Ne)===n}function ae(Ne){return L(Ne)===E}function me(Ne){return L(Ne)===C}function Me(Ne){return L(Ne)===r}function Pe(Ne){return L(Ne)===o}function We(Ne){return L(Ne)===a}function Ke(Ne){return L(Ne)===p}zt.AsyncMode=M,zt.ConcurrentMode=z,zt.ContextConsumer=H,zt.ContextProvider=oe,zt.Element=J,zt.ForwardRef=ge,zt.Fragment=xe,zt.Lazy=Q,zt.Memo=ce,zt.Portal=N,zt.Profiler=W,zt.StrictMode=ee,zt.Suspense=de,zt.isAsyncMode=te,zt.isConcurrentMode=K,zt.isContextConsumer=se,zt.isContextProvider=fe,zt.isElement=Se,zt.isForwardRef=G,zt.isFragment=he,zt.isLazy=ae,zt.isMemo=me,zt.isPortal=Me,zt.isProfiler=Pe,zt.isStrictMode=We,zt.isSuspense=Ke,zt.isValidElementType=O,zt.typeOf=L}()),zt}process.env.NODE_ENV==="production"?uh.exports=qE():uh.exports=e3();var ch=uh.exports,N0=ch,t3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},M0={};M0[N0.ForwardRef]=t3,M0[N0.Memo]=r3;var n3=!0;function R0(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var dh=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||n3===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},fh=function(t,r,n){dh(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function a3(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var o3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function i3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var $0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
46
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
47
|
+
You can read more about this here:
|
|
48
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,s3="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",l3=/[A-Z]|^ms/g,L0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hh=function(t){return t.charCodeAt(1)===45},_0=function(t){return t!=null&&typeof t!="boolean"},ph=i3(function(e){return hh(e)?e:e.replace(l3,"-$&").toLowerCase()}),Tc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(L0,function(n,a,o){return Kn={name:a,styles:o,next:Kn},a})}return o3[t]!==1&&!hh(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var u3=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,c3=["normal","none","initial","inherit","unset"],d3=Tc,f3=/^-ms-/,h3=/-(.)/g,W0={};Tc=function(t,r){if(t==="content"&&(typeof r!="string"||c3.indexOf(r)===-1&&!u3.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=d3(t,r);return n!==""&&!hh(t)&&t.indexOf("-")!==-1&&W0[t]===void 0&&(W0[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(f3,"ms-").replace(h3,function(a,o){return o.toUpperCase()})+"?")),n}}var V0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ml(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(V0);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Kn={name:r.name,styles:r.styles,next:Kn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Kn={name:n.name,styles:n.styles,next:Kn},n=n.next;var a=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(a+=r.map),a}return p3(e,t,r)}case"function":{if(e!==void 0){var o=Kn,i=r(e);return Kn=o,Ml(e,t,i)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var l=[],u=r.replace(L0,function(m,p,x){var C="animation"+l.length;return l.push("const "+C+" = keyframes`"+x.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+C+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+u+"`"]).join(`
|
|
49
|
+
`)+`
|
|
50
|
+
|
|
51
|
+
You should wrap it with \`css\` like this:
|
|
52
|
+
|
|
53
|
+
`+("css`"+u+"`"))}break}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function p3(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Ml(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object")t!=null&&t[i]!==void 0?n+=o+"{"+t[i]+"}":_0(i)&&(n+=ph(o)+":"+Tc(o,i)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(V0);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)_0(i[l])&&(n+=ph(o)+":"+Tc(o,i[l])+";");else{var u=Ml(e,t,i);switch(o){case"animation":case"animationName":{n+=ph(o)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(s3),n+=o+"{"+u+"}"}}}}return n}var H0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,z0;process.env.NODE_ENV!=="production"&&(z0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Kn,Rl=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";Kn=void 0;var i=t[0];i==null||i.raw===void 0?(a=!1,o+=Ml(n,r,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error($0),o+=i[0]);for(var l=1;l<t.length;l++)o+=Ml(n,r,t[l]),a&&(process.env.NODE_ENV!=="production"&&i[l]===void 0&&console.error($0),o+=i[l]);var u;process.env.NODE_ENV!=="production"&&(o=o.replace(z0,function(x){return u=x,""})),H0.lastIndex=0;for(var c="",m;(m=H0.exec(o))!==null;)c+="-"+m[1];var p=a3(o)+c;return process.env.NODE_ENV!=="production"?{name:p,styles:o,map:u,next:Kn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:p,styles:o,next:Kn}},g3=function(t){return t()},G0=je["useInsertionEffect"]?je["useInsertionEffect"]:!1,Z0=G0||g3,U0=G0||je.useLayoutEffect,gh={}.hasOwnProperty,mh=je.createContext(typeof HTMLElement<"u"?KE({key:"css"}):null);process.env.NODE_ENV!=="production"&&(mh.displayName="EmotionCacheContext"),mh.Provider;var vh=function(t){return h.forwardRef(function(r,n){var a=h.useContext(mh);return t(r,a,n)})},kc=je.createContext({});process.env.NODE_ENV!=="production"&&(kc.displayName="EmotionThemeContext");var X0=function(t){var r=t.split(".");return r[r.length-1]},m3=function(t){var r=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(r||(r=/^([A-Za-z0-9$.]+)@/.exec(t),r))return X0(r[1])},v3=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),b3=function(t){return t.replace(/\$/g,"-")},x3=function(t){if(t)for(var r=t.split(`
|
|
54
|
+
`),n=0;n<r.length;n++){var a=m3(r[n]);if(a){if(v3.has(a))break;if(/^[A-Z]/.test(a))return b3(a)}}},bh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",y3=function(t,r){if(process.env.NODE_ENV!=="production"&&typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var n={};for(var a in r)gh.call(r,a)&&(n[a]=r[a]);if(n[bh]=t,process.env.NODE_ENV!=="production"&&r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var o=x3(new Error().stack);o&&(n[xh]=o)}return n},C3=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return dh(r,n,a),Z0(function(){return fh(r,n,a)}),null},Y0=vh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[bh],o=[n],i="";typeof e.className=="string"?i=R0(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var l=Rl(o,void 0,je.useContext(kc));if(process.env.NODE_ENV!=="production"&&l.name.indexOf("-")===-1){var u=e[xh];u&&(l=Rl([l,"label:"+u+";"]))}i+=t.key+"-"+l.name;var c={};for(var m in e)gh.call(e,m)&&m!=="css"&&m!==bh&&(process.env.NODE_ENV==="production"||m!==xh)&&(c[m]=e[m]);return c.ref=r,c.className=i,je.createElement(je.Fragment,null,je.createElement(C3,{cache:t,serialized:l,isStringTag:typeof a=="string"}),je.createElement(a,c))});process.env.NODE_ENV!=="production"&&(Y0.displayName="EmotionCssPropInternal");var w3=Y0,E3={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},pt=function(t,r){var n=arguments;if(r==null||!gh.call(r,"css"))return je.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=w3,o[1]=y3(t,r);for(var i=2;i<a;i++)o[i]=n[i];return je.createElement.apply(null,o)},J0=!1,D3=vh(function(e,t){process.env.NODE_ENV!=="production"&&!J0&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),J0=!0);var r=e.styles,n=Rl([r],void 0,je.useContext(kc)),a=je.useRef();return U0(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",o),i.hydrate([u])),a.current=[i,l],function(){i.flush()}},[t]),U0(function(){var o=a.current,i=o[0],l=o[1];if(l){o[1]=!1;return}if(n.next!==void 0&&fh(t,n.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});process.env.NODE_ENV!=="production"&&(D3.displayName="EmotionGlobal");function yh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Rl(t)}var S3=function(){var t=yh.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},A3=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(var l in o)o[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function F3(e,t,r){var n=[],a=R0(e,n,r);return n.length<2?r:a+t(n)}var j3=function(t){var r=t.cache,n=t.serializedArr;return Z0(function(){for(var a=0;a<n.length;a++)fh(r,n[a],!1)}),null},I3=vh(function(e,t){var r=!1,n=[],a=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];var x=Rl(m,t.registered);return n.push(x),dh(t,x,!1),t.key+"-"+x.name},o=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];return F3(t.registered,a,A3(m))},i={css:a,cx:o,theme:je.useContext(kc)},l=e.children(i);return r=!0,je.createElement(je.Fragment,null,je.createElement(j3,{cache:t,serializedArr:n}),l)});if(process.env.NODE_ENV!=="production"&&(I3.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var Q0=!0,T3=typeof jest<"u"||typeof vi<"u";if(Q0&&!T3){var K0=typeof globalThis<"u"?globalThis:Q0?window:global,q0="__EMOTION_REACT_"+E3.version.split(".")[0]+"__";K0[q0]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),K0[q0]=!0}}function k3(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const B3=["top","right","bottom","left"],mo=Math.min,wn=Math.max,Bc=Math.round,Pc=Math.floor,vo=e=>({x:e,y:e}),P3={left:"right",right:"left",bottom:"top",top:"bottom"},O3={start:"end",end:"start"};function Ch(e,t,r){return wn(e,mo(t,r))}function La(e,t){return typeof e=="function"?e(t):e}function _a(e){return e.split("-")[0]}function as(e){return e.split("-")[1]}function wh(e){return e==="x"?"y":"x"}function Eh(e){return e==="y"?"height":"width"}function os(e){return["top","bottom"].includes(_a(e))?"y":"x"}function Dh(e){return wh(os(e))}function N3(e,t,r){r===void 0&&(r=!1);const n=as(e),a=Dh(e),o=Eh(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Oc(i)),[i,Oc(i)]}function M3(e){const t=Oc(e);return[Sh(e),t,Sh(t)]}function Sh(e){return e.replace(/start|end/g,t=>O3[t])}function R3(e,t,r){const n=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?o:i;default:return[]}}function $3(e,t,r,n){const a=as(e);let o=R3(_a(e),r==="start",n);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(Sh)))),o}function Oc(e){return e.replace(/left|right|bottom|top/g,t=>P3[t])}function L3(e){return{top:0,right:0,bottom:0,left:0,...e}}function ev(e){return typeof e!="number"?L3(e):{top:e,right:e,bottom:e,left:e}}function Nc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function tv(e,t,r){let{reference:n,floating:a}=e;const o=os(t),i=Dh(t),l=Eh(i),u=_a(t),c=o==="y",m=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,x=n[l]/2-a[l]/2;let C;switch(u){case"top":C={x:m,y:n.y-a.height};break;case"bottom":C={x:m,y:n.y+n.height};break;case"right":C={x:n.x+n.width,y:p};break;case"left":C={x:n.x-a.width,y:p};break;default:C={x:n.x,y:n.y}}switch(as(t)){case"start":C[i]-=x*(r&&c?-1:1);break;case"end":C[i]+=x*(r&&c?-1:1);break}return C}const _3=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,l=o.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=tv(c,n,u),x=n,C={},E=0;for(let v=0;v<l.length;v++){const{name:A,fn:S}=l[v],{x:j,y:O,data:L,reset:M}=await S({x:m,y:p,initialPlacement:n,placement:x,strategy:a,middlewareData:C,rects:c,platform:i,elements:{reference:e,floating:t}});if(m=j??m,p=O??p,C={...C,[A]:{...C[A],...L}},M&&E<=50){E++,typeof M=="object"&&(M.placement&&(x=M.placement),M.rects&&(c=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:m,y:p}=tv(c,x,u)),v=-1;continue}}return{x:m,y:p,placement:x,strategy:a,middlewareData:C}};async function $l(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:o,rects:i,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:x=!1,padding:C=0}=La(t,e),E=ev(C),A=l[x?p==="floating"?"reference":"floating":p],S=Nc(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(A)))==null||r?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:m,strategy:u})),j=p==="floating"?{...i.floating,x:n,y:a}:i.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),L=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},M=Nc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:j,offsetParent:O,strategy:u}):j);return{top:(S.top-M.top+E.top)/L.y,bottom:(M.bottom-S.bottom+E.bottom)/L.y,left:(S.left-M.left+E.left)/L.x,right:(M.right-S.right+E.right)/L.x}}const rv=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:i,elements:l,middlewareData:u}=t,{element:c,padding:m=0}=La(e,t)||{};if(c==null)return{};const p=ev(m),x={x:r,y:n},C=Dh(a),E=Eh(C),v=await i.getDimensions(c),A=C==="y",S=A?"top":"left",j=A?"bottom":"right",O=A?"clientHeight":"clientWidth",L=o.reference[E]+o.reference[C]-x[C]-o.floating[E],M=x[C]-o.reference[C],z=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let H=z?z[O]:0;(!H||!await(i.isElement==null?void 0:i.isElement(z)))&&(H=l.floating[O]||o.floating[E]);const oe=L/2-M/2,J=H/2-v[E]/2-1,ge=mo(p[S],J),xe=mo(p[j],J),Q=ge,ce=H-v[E]-xe,N=H/2-v[E]/2+oe,W=Ch(Q,N,ce),ee=!u.arrow&&as(a)!=null&&N!=W&&o.reference[E]/2-(N<Q?ge:xe)-v[E]/2<0,de=ee?N<Q?N-Q:N-ce:0;return{[C]:x[C]+de,data:{[C]:W,centerOffset:N-W-de,...ee&&{alignmentOffset:de}},reset:ee}}}),W3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:i,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:x,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:v=!0,...A}=La(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const S=_a(a),j=_a(l)===l,O=await(u.isRTL==null?void 0:u.isRTL(c.floating)),L=x||(j||!v?[Oc(l)]:M3(l));!x&&E!=="none"&&L.push(...$3(l,v,E,O));const M=[l,...L],z=await $l(t,A),H=[];let oe=((n=o.flip)==null?void 0:n.overflows)||[];if(m&&H.push(z[S]),p){const Q=N3(a,i,O);H.push(z[Q[0]],z[Q[1]])}if(oe=[...oe,{placement:a,overflows:H}],!H.every(Q=>Q<=0)){var J,ge;const Q=(((J=o.flip)==null?void 0:J.index)||0)+1,ce=M[Q];if(ce)return{data:{index:Q,overflows:oe},reset:{placement:ce}};let N=(ge=oe.filter(W=>W.overflows[0]<=0).sort((W,ee)=>W.overflows[1]-ee.overflows[1])[0])==null?void 0:ge.placement;if(!N)switch(C){case"bestFit":{var xe;const W=(xe=oe.map(ee=>[ee.placement,ee.overflows.filter(de=>de>0).reduce((de,ne)=>de+ne,0)]).sort((ee,de)=>ee[1]-de[1])[0])==null?void 0:xe[0];W&&(N=W);break}case"initialPlacement":N=l;break}if(a!==N)return{reset:{placement:N}}}return{}}}};function nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function av(e){return B3.some(t=>e[t]>=0)}const V3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=La(e,t);switch(n){case"referenceHidden":{const o=await $l(t,{...a,elementContext:"reference"}),i=nv(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:av(i)}}}case"escaped":{const o=await $l(t,{...a,altBoundary:!0}),i=nv(o,r.floating);return{data:{escapedOffsets:i,escaped:av(i)}}}default:return{}}}}};async function H3(e,t){const{placement:r,platform:n,elements:a}=e,o=await(n.isRTL==null?void 0:n.isRTL(a.floating)),i=_a(r),l=as(r),u=os(r)==="y",c=["left","top"].includes(i)?-1:1,m=o&&u?-1:1,p=La(t,e);let{mainAxis:x,crossAxis:C,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof E=="number"&&(C=l==="end"?E*-1:E),u?{x:C*m,y:x*c}:{x:x*c,y:C*m}}const z3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,a=await H3(t,e);return{x:r+a.x,y:n+a.y,data:a}}}},G3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:A=>{let{x:S,y:j}=A;return{x:S,y:j}}},...u}=La(e,t),c={x:r,y:n},m=await $l(t,u),p=os(_a(a)),x=wh(p);let C=c[x],E=c[p];if(o){const A=x==="y"?"top":"left",S=x==="y"?"bottom":"right",j=C+m[A],O=C-m[S];C=Ch(j,C,O)}if(i){const A=p==="y"?"top":"left",S=p==="y"?"bottom":"right",j=E+m[A],O=E-m[S];E=Ch(j,E,O)}const v=l.fn({...t,[x]:C,[p]:E});return{...v,data:{x:v.x-r,y:v.y-n}}}}},Z3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=La(e,t),m={x:r,y:n},p=os(a),x=wh(p);let C=m[x],E=m[p];const v=La(l,t),A=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const O=x==="y"?"height":"width",L=o.reference[x]-o.floating[O]+A.mainAxis,M=o.reference[x]+o.reference[O]-A.mainAxis;C<L?C=L:C>M&&(C=M)}if(c){var S,j;const O=x==="y"?"width":"height",L=["top","left"].includes(_a(a)),M=o.reference[p]-o.floating[O]+(L&&((S=i.offset)==null?void 0:S[p])||0)+(L?0:A.crossAxis),z=o.reference[p]+o.reference[O]+(L?0:((j=i.offset)==null?void 0:j[p])||0)-(L?A.crossAxis:0);E<M?E=M:E>z&&(E=z)}return{[x]:C,[p]:E}}}},U3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:o}=t,{apply:i=()=>{},...l}=La(e,t),u=await $l(t,l),c=_a(r),m=as(r),p=os(r)==="y",{width:x,height:C}=n.floating;let E,v;c==="top"||c==="bottom"?(E=c,v=m===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(v=c,E=m==="end"?"top":"bottom");const A=C-u[E],S=x-u[v],j=!t.middlewareData.shift;let O=A,L=S;if(p){const z=x-u.left-u.right;L=m||j?mo(S,z):z}else{const z=C-u.top-u.bottom;O=m||j?mo(A,z):z}if(j&&!m){const z=wn(u.left,0),H=wn(u.right,0),oe=wn(u.top,0),J=wn(u.bottom,0);p?L=x-2*(z!==0||H!==0?z+H:wn(u.left,u.right)):O=C-2*(oe!==0||J!==0?oe+J:wn(u.top,u.bottom))}await i({...t,availableWidth:L,availableHeight:O});const M=await a.getDimensions(o.floating);return x!==M.width||C!==M.height?{reset:{rects:!0}}:{}}}};function bo(e){return ov(e)?(e.nodeName||"").toLowerCase():"#document"}function En(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wa(e){var t;return(t=(ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ov(e){return e instanceof Node||e instanceof En(e).Node}function Va(e){return e instanceof Element||e instanceof En(e).Element}function xa(e){return e instanceof HTMLElement||e instanceof En(e).HTMLElement}function iv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof En(e).ShadowRoot}function Ll(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function X3(e){return["table","td","th"].includes(bo(e))}function Ah(e){const t=Fh(),r=Mn(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Y3(e){let t=is(e);for(;xa(t)&&!Mc(t);){if(Ah(t))return t;t=is(t)}return null}function Fh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mc(e){return["html","body","#document"].includes(bo(e))}function Mn(e){return En(e).getComputedStyle(e)}function Rc(e){return Va(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function is(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||iv(e)&&e.host||Wa(e);return iv(t)?t.host:t}function sv(e){const t=is(e);return Mc(t)?e.ownerDocument?e.ownerDocument.body:e.body:xa(t)&&Ll(t)?t:sv(t)}function _l(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=sv(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=En(a);return o?t.concat(i,i.visualViewport||[],Ll(a)?a:[],i.frameElement&&r?_l(i.frameElement):[]):t.concat(a,_l(a,[],r))}function lv(e){const t=Mn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=xa(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,l=Bc(r)!==o||Bc(n)!==i;return l&&(r=o,n=i),{width:r,height:n,$:l}}function jh(e){return Va(e)?e:e.contextElement}function ss(e){const t=jh(e);if(!xa(t))return vo(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=lv(t);let i=(o?Bc(r.width):r.width)/n,l=(o?Bc(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const J3=vo(0);function uv(e){const t=En(e);return!Fh()||!t.visualViewport?J3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==En(e)?!1:t}function ai(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),o=jh(e);let i=vo(1);t&&(n?Va(n)&&(i=ss(n)):i=ss(e));const l=Q3(o,r,n)?uv(o):vo(0);let u=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,m=a.width/i.x,p=a.height/i.y;if(o){const x=En(o),C=n&&Va(n)?En(n):n;let E=x.frameElement;for(;E&&n&&C!==x;){const v=ss(E),A=E.getBoundingClientRect(),S=Mn(E),j=A.left+(E.clientLeft+parseFloat(S.paddingLeft))*v.x,O=A.top+(E.clientTop+parseFloat(S.paddingTop))*v.y;u*=v.x,c*=v.y,m*=v.x,p*=v.y,u+=j,c+=O,E=En(E).frameElement}}return Nc({width:m,height:p,x:u,y:c})}function K3(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=xa(r),o=Wa(r);if(r===o)return t;let i={scrollLeft:0,scrollTop:0},l=vo(1);const u=vo(0);if((a||!a&&n!=="fixed")&&((bo(r)!=="body"||Ll(o))&&(i=Rc(r)),xa(r))){const c=ai(r);l=ss(r),u.x=c.x+r.clientLeft,u.y=c.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+u.x,y:t.y*l.y-i.scrollTop*l.y+u.y}}function q3(e){return Array.from(e.getClientRects())}function cv(e){return ai(Wa(e)).left+Rc(e).scrollLeft}function e4(e){const t=Wa(e),r=Rc(e),n=e.ownerDocument.body,a=wn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=wn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+cv(e);const l=-r.scrollTop;return Mn(n).direction==="rtl"&&(i+=wn(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:l}}function t4(e,t){const r=En(e),n=Wa(e),a=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,l=0,u=0;if(a){o=a.width,i=a.height;const c=Fh();(!c||c&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:l,y:u}}function r4(e,t){const r=ai(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=xa(e)?ss(e):vo(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,u=a*o.x,c=n*o.y;return{width:i,height:l,x:u,y:c}}function dv(e,t,r){let n;if(t==="viewport")n=t4(e,r);else if(t==="document")n=e4(Wa(e));else if(Va(t))n=r4(t,r);else{const a=uv(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return Nc(n)}function fv(e,t){const r=is(e);return r===t||!Va(r)||Mc(r)?!1:Mn(r).position==="fixed"||fv(r,t)}function n4(e,t){const r=t.get(e);if(r)return r;let n=_l(e,[],!1).filter(l=>Va(l)&&bo(l)!=="body"),a=null;const o=Mn(e).position==="fixed";let i=o?is(e):e;for(;Va(i)&&!Mc(i);){const l=Mn(i),u=Ah(i);!u&&l.position==="fixed"&&(a=null),(o?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ll(i)&&!u&&fv(e,i))?n=n.filter(m=>m!==i):a=l,i=is(i)}return t.set(e,n),n}function a4(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const i=[...r==="clippingAncestors"?n4(t,this._c):[].concat(r),n],l=i[0],u=i.reduce((c,m)=>{const p=dv(t,m,a);return c.top=wn(p.top,c.top),c.right=mo(p.right,c.right),c.bottom=mo(p.bottom,c.bottom),c.left=wn(p.left,c.left),c},dv(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function o4(e){return lv(e)}function i4(e,t,r){const n=xa(t),a=Wa(t),o=r==="fixed",i=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const u=vo(0);if(n||!n&&!o)if((bo(t)!=="body"||Ll(a))&&(l=Rc(t)),n){const c=ai(t,!0,o,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else a&&(u.x=cv(a));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function hv(e,t){return!xa(e)||Mn(e).position==="fixed"?null:t?t(e):e.offsetParent}function pv(e,t){const r=En(e);if(!xa(e))return r;let n=hv(e,t);for(;n&&X3(n)&&Mn(n).position==="static";)n=hv(n,t);return n&&(bo(n)==="html"||bo(n)==="body"&&Mn(n).position==="static"&&!Ah(n))?r:n||Y3(e)||r}const s4=async function(e){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||pv,o=this.getDimensions;return{reference:i4(t,await a(r),n),floating:{x:0,y:0,...await o(r)}}};function l4(e){return Mn(e).direction==="rtl"}const u4={convertOffsetParentRelativeRectToViewportRelativeRect:K3,getDocumentElement:Wa,getClippingRect:a4,getOffsetParent:pv,getElementRects:s4,getClientRects:q3,getDimensions:o4,getScale:ss,isElement:Va,isRTL:l4};function c4(e,t){let r=null,n;const a=Wa(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function i(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),o();const{left:c,top:m,width:p,height:x}=e.getBoundingClientRect();if(l||t(),!p||!x)return;const C=Pc(m),E=Pc(a.clientWidth-(c+p)),v=Pc(a.clientHeight-(m+x)),A=Pc(c),j={rootMargin:-C+"px "+-E+"px "+-v+"px "+-A+"px",threshold:wn(0,mo(1,u))||1};let O=!0;function L(M){const z=M[0].intersectionRatio;if(z!==u){if(!O)return i();z?i(!1,z):n=setTimeout(()=>{i(!1,1e-7)},100)}O=!1}try{r=new IntersectionObserver(L,{...j,root:a.ownerDocument})}catch{r=new IntersectionObserver(L,j)}r.observe(e)}return i(!0),o}function gv(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=jh(e),m=a||o?[...c?_l(c):[],..._l(t)]:[];m.forEach(S=>{a&&S.addEventListener("scroll",r,{passive:!0}),o&&S.addEventListener("resize",r)});const p=c&&l?c4(c,r):null;let x=-1,C=null;i&&(C=new ResizeObserver(S=>{let[j]=S;j&&j.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{C&&C.observe(t)})),r()}),c&&!u&&C.observe(c),C.observe(t));let E,v=u?ai(e):null;u&&A();function A(){const S=ai(e);v&&(S.x!==v.x||S.y!==v.y||S.width!==v.width||S.height!==v.height)&&r(),v=S,E=requestAnimationFrame(A)}return r(),()=>{m.forEach(S=>{a&&S.removeEventListener("scroll",r),o&&S.removeEventListener("resize",r)}),p&&p(),C&&C.disconnect(),C=null,u&&cancelAnimationFrame(E)}}const d4=(e,t,r)=>{const n=new Map,a={platform:u4,...r},o={...a.platform,_c:n};return _3(e,t,{...a,platform:o})};var Ih=h.useLayoutEffect,f4=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$c=function(){};function h4(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function p4(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var o=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(h4(e,i)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Lc=function(t){return E4(t)?t.filter(Boolean):ni(t)==="object"&&t!==null?[t]:[]},mv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=ma(t,f4);return dt({},r)},hr=function(t,r,n){var a=t.cx,o=t.getStyles,i=t.getClassNames,l=t.className;return{css:o(r,t),className:a(n??{},i(r,t),l)}};function _c(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function g4(e){return _c(e)?window.innerHeight:e.clientHeight}function vv(e){return _c(e)?window.pageYOffset:e.scrollTop}function Wc(e,t){if(_c(e)){window.scrollTo(0,t);return}e.scrollTop=t}function m4(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function v4(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function Vc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$c,a=vv(e),o=t-a,i=10,l=0;function u(){l+=i;var c=v4(l,a,o,r);Wc(e,c),l<r?window.requestAnimationFrame(u):n(e)}u()}function bv(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=t.offsetHeight/3;n.bottom+a>r.bottom?Wc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):n.top-a<r.top&&Wc(e,Math.max(t.offsetTop-a,0))}function b4(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function xv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function x4(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var yv=!1,y4={get passive(){return yv=!0}},Hc=typeof window<"u"?window:{};Hc.addEventListener&&Hc.removeEventListener&&(Hc.addEventListener("p",$c,y4),Hc.removeEventListener("p",$c,!1));var C4=yv;function w4(e){return e!=null}function E4(e){return Array.isArray(e)}function Wl(e,t,r){return e?t:r}function bN(e){return e}function xN(e){return e}var D4=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var o=Object.entries(t).filter(function(i){var l=$a(i,1),u=l[0];return!n.includes(u)});return o.reduce(function(i,l){var u=$a(l,2),c=u[0],m=u[1];return i[c]=m,i},{})},S4=["children","innerProps"],A4=["children","innerProps"];function F4(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,u=m4(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var m=u.getBoundingClientRect(),p=m.height,x=r.getBoundingClientRect(),C=x.bottom,E=x.height,v=x.top,A=r.offsetParent.getBoundingClientRect(),S=A.top,j=i?window.innerHeight:g4(u),O=vv(u),L=parseInt(getComputedStyle(r).marginBottom,10),M=parseInt(getComputedStyle(r).marginTop,10),z=S-M,H=j-v,oe=z+O,J=p-O-v,ge=C-j+O+L,xe=O+v-M,Q=160;switch(a){case"auto":case"bottom":if(H>=E)return{placement:"bottom",maxHeight:t};if(J>=E&&!i)return o&&Vc(u,ge,Q),{placement:"bottom",maxHeight:t};if(!i&&J>=n||i&&H>=n){o&&Vc(u,ge,Q);var ce=i?H-L:J-L;return{placement:"bottom",maxHeight:ce}}if(a==="auto"||i){var N=t,W=i?z:oe;return W>=n&&(N=Math.min(W-L-l,t)),{placement:"top",maxHeight:N}}if(a==="bottom")return o&&Wc(u,ge),{placement:"bottom",maxHeight:t};break;case"top":if(z>=E)return{placement:"top",maxHeight:t};if(oe>=E&&!i)return o&&Vc(u,xe,Q),{placement:"top",maxHeight:t};if(!i&&oe>=n||i&&z>=n){var ee=t;return(!i&&oe>=n||i&&z>=n)&&(ee=i?z-M:oe-M),o&&Vc(u,xe,Q),{placement:"top",maxHeight:ee}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}function j4(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Cv=function(t){return t==="auto"?"bottom":t},I4=function(t,r){var n,a=t.placement,o=t.theme,i=o.borderRadius,l=o.spacing,u=o.colors;return dt((n={label:"menu"},Tl(n,j4(a),"100%"),Tl(n,"position","absolute"),Tl(n,"width","100%"),Tl(n,"zIndex",1),n),r?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},wv=h.createContext(null),T4=function(t){var r=t.children,n=t.minMenuHeight,a=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,c=h.useContext(wv)||{},m=c.setPortalPlacement,p=h.useRef(null),x=h.useState(a),C=$a(x,2),E=C[0],v=C[1],A=h.useState(null),S=$a(A,2),j=S[0],O=S[1],L=u.spacing.controlHeight;return Ih(function(){var M=p.current;if(M){var z=i==="fixed",H=l&&!z,oe=F4({maxHeight:a,menuEl:M,minHeight:n,placement:o,shouldScroll:H,isFixedPosition:z,controlHeight:L});v(oe.maxHeight),O(oe.placement),m==null||m(oe.placement)}},[a,o,i,l,n,m,L]),r({ref:p,placerProps:dt(dt({},t),{},{placement:j||Cv(o),maxHeight:E})})},k4=function(t){var r=t.children,n=t.innerRef,a=t.innerProps;return pt("div",we({},hr(t,"menu",{menu:!0}),{ref:n},a),r)},B4=k4,P4=function(t,r){var n=t.maxHeight,a=t.theme.spacing.baseUnit;return dt({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:a,paddingTop:a})},O4=function(t){var r=t.children,n=t.innerProps,a=t.innerRef,o=t.isMulti;return pt("div",we({},hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:a},n),r)},Ev=function(t,r){var n=t.theme,a=n.spacing.baseUnit,o=n.colors;return dt({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},N4=Ev,M4=Ev,R4=function(t){var r=t.children,n=r===void 0?"No options":r,a=t.innerProps,o=ma(t,S4);return pt("div",we({},hr(dt(dt({},o),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},$4=function(t){var r=t.children,n=r===void 0?"Loading...":r,a=t.innerProps,o=ma(t,A4);return pt("div",we({},hr(dt(dt({},o),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},L4=function(t){var r=t.rect,n=t.offset,a=t.position;return{left:r.left,position:a,top:n,width:r.width,zIndex:1}},_4=function(t){var r=t.appendTo,n=t.children,a=t.controlElement,o=t.innerProps,i=t.menuPlacement,l=t.menuPosition,u=h.useRef(null),c=h.useRef(null),m=h.useState(Cv(i)),p=$a(m,2),x=p[0],C=p[1],E=h.useMemo(function(){return{setPortalPlacement:C}},[]),v=h.useState(null),A=$a(v,2),S=A[0],j=A[1],O=h.useCallback(function(){if(a){var H=b4(a),oe=l==="fixed"?0:window.pageYOffset,J=H[x]+oe;(J!==(S==null?void 0:S.offset)||H.left!==(S==null?void 0:S.rect.left)||H.width!==(S==null?void 0:S.rect.width))&&j({offset:J,rect:H})}},[a,l,x,S==null?void 0:S.offset,S==null?void 0:S.rect.left,S==null?void 0:S.rect.width]);Ih(function(){O()},[O]);var L=h.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),a&&u.current&&(c.current=gv(a,u.current,O,{elementResize:"ResizeObserver"in window}))},[a,O]);Ih(function(){L()},[L]);var M=h.useCallback(function(H){u.current=H,L()},[L]);if(!r&&l!=="fixed"||!S)return null;var z=pt("div",we({ref:M},hr(dt(dt({},t),{},{offset:S.offset,position:l,rect:S.rect}),"menuPortal",{"menu-portal":!0}),o),n);return pt(wv.Provider,{value:E},r?Qo.createPortal(z,r):z)},W4=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},V4=function(t){var r=t.children,n=t.innerProps,a=t.isDisabled,o=t.isRtl;return pt("div",we({},hr(t,"container",{"--is-disabled":a,"--is-rtl":o}),n),r)},H4=function(t,r){var n=t.theme.spacing,a=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return dt({alignItems:"center",display:a&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},z4=function(t){var r=t.children,n=t.innerProps,a=t.isMulti,o=t.hasValue;return pt("div",we({},hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":o}),n),r)},G4=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Z4=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"indicatorsContainer",{indicators:!0}),n),r)},Dv,U4=["size"],X4=["innerProps","isRtl","size"];function Y4(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var J4=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:Y4},Sv=function(t){var r=t.size,n=ma(t,U4);return pt("svg",we({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:J4},n))},Th=function(t){return pt(Sv,we({size:20},t),pt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Av=function(t){return pt(Sv,we({size:20},t),pt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Fv=function(t,r){var n=t.isFocused,a=t.theme,o=a.spacing.baseUnit,i=a.colors;return dt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?i.neutral60:i.neutral20,padding:o*2,":hover":{color:n?i.neutral80:i.neutral40}})},Q4=Fv,K4=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||pt(Av,null))},q4=Fv,e5=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||pt(Th,null))},t5=function(t,r){var n=t.isDisabled,a=t.theme,o=a.spacing.baseUnit,i=a.colors;return dt({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},r5=function(t){var r=t.innerProps;return pt("span",we({},r,hr(t,"indicatorSeparator",{"indicator-separator":!0})))},n5=S3(Dv||(Dv=k3([`
|
|
55
|
+
0%, 80%, 100% { opacity: 0; }
|
|
56
|
+
40% { opacity: 1; }
|
|
57
|
+
`]))),a5=function(t,r){var n=t.isFocused,a=t.size,o=t.theme,i=o.colors,l=o.spacing.baseUnit;return dt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?i.neutral60:i.neutral20,padding:l*2})},kh=function(t){var r=t.delay,n=t.offset;return pt("span",{css:yh({animation:"".concat(n5," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},o5=function(t){var r=t.innerProps,n=t.isRtl,a=t.size,o=a===void 0?4:a,i=ma(t,X4);return pt("div",we({},hr(dt(dt({},i),{},{innerProps:r,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),pt(kh,{delay:0,offset:n}),pt(kh,{delay:160,offset:!0}),pt(kh,{delay:320,offset:!n}))},i5=function(t,r){var n=t.isDisabled,a=t.isFocused,o=t.theme,i=o.colors,l=o.borderRadius,u=o.spacing;return dt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:a?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:a?i.primary:i.neutral30}})},s5=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,o=t.innerRef,i=t.innerProps,l=t.menuIsOpen;return pt("div",we({ref:o},hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":a,"control--menu-is-open":l}),i),r)},l5=s5,u5=["data"],c5=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},d5=function(t){var r=t.children,n=t.cx,a=t.getStyles,o=t.getClassNames,i=t.Heading,l=t.headingProps,u=t.innerProps,c=t.label,m=t.theme,p=t.selectProps;return pt("div",we({},hr(t,"group",{group:!0}),u),pt(i,we({},l,{selectProps:p,theme:m,getStyles:a,getClassNames:o,cx:n}),c),pt("div",null,r))},f5=function(t,r){var n=t.theme,a=n.colors,o=n.spacing;return dt({label:"group",cursor:"default",display:"block"},r?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},h5=function(t){var r=mv(t);r.data;var n=ma(r,u5);return pt("div",we({},hr(t,"groupHeading",{"group-heading":!0}),n))},p5=d5,g5=["innerRef","isDisabled","isHidden","inputClassName"],m5=function(t,r){var n=t.isDisabled,a=t.value,o=t.theme,i=o.spacing,l=o.colors;return dt(dt({visibility:n?"hidden":"visible",transform:a?"translateZ(0)":""},v5),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},jv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},v5={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},jv)},b5=function(t){return dt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},jv)},x5=function(t){var r=t.cx,n=t.value,a=mv(t),o=a.innerRef,i=a.isDisabled,l=a.isHidden,u=a.inputClassName,c=ma(a,g5);return pt("div",we({},hr(t,"input",{"input-container":!0}),{"data-value":n||""}),pt("input",we({className:r({input:!0},u),ref:o,style:b5(l),disabled:i},c)))},y5=x5,C5=function(t,r){var n=t.theme,a=n.spacing,o=n.borderRadius,i=n.colors;return dt({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:a.baseUnit/2})},w5=function(t,r){var n=t.theme,a=n.borderRadius,o=n.colors,i=t.cropWithEllipsis;return dt({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:a/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},E5=function(t,r){var n=t.theme,a=n.spacing,o=n.borderRadius,i=n.colors,l=t.isFocused;return dt({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},Iv=function(t){var r=t.children,n=t.innerProps;return pt("div",n,r)},D5=Iv,S5=Iv;function A5(e){var t=e.children,r=e.innerProps;return pt("div",we({role:"button"},r),t||pt(Th,{size:14}))}var F5=function(t){var r=t.children,n=t.components,a=t.data,o=t.innerProps,i=t.isDisabled,l=t.removeProps,u=t.selectProps,c=n.Container,m=n.Label,p=n.Remove;return pt(c,{data:a,innerProps:dt(dt({},hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},pt(m,{data:a,innerProps:dt({},hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),pt(p,{data:a,innerProps:dt(dt({},hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:u}))},j5=F5,I5=function(t,r){var n=t.isDisabled,a=t.isFocused,o=t.isSelected,i=t.theme,l=i.spacing,u=i.colors;return dt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?u.primary:a?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},T5=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,o=t.isSelected,i=t.innerRef,l=t.innerProps;return pt("div",we({},hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":a,"option--is-selected":o}),{ref:i,"aria-disabled":n},l),r)},k5=T5,B5=function(t,r){var n=t.theme,a=n.spacing,o=n.colors;return dt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},P5=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"placeholder",{placeholder:!0}),n),r)},O5=P5,N5=function(t,r){var n=t.isDisabled,a=t.theme,o=a.spacing,i=a.colors;return dt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},M5=function(t){var r=t.children,n=t.isDisabled,a=t.innerProps;return pt("div",we({},hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),a),r)},R5=M5,$5={ClearIndicator:e5,Control:l5,DropdownIndicator:K4,DownChevron:Av,CrossIcon:Th,Group:p5,GroupHeading:h5,IndicatorsContainer:Z4,IndicatorSeparator:r5,Input:y5,LoadingIndicator:o5,Menu:B4,MenuList:O4,MenuPortal:_4,LoadingMessage:$4,NoOptionsMessage:R4,MultiValue:j5,MultiValueContainer:D5,MultiValueLabel:S5,MultiValueRemove:A5,Option:k5,Placeholder:O5,SelectContainer:V4,SingleValue:R5,ValueContainer:z4},L5=function(t){return dt(dt({},$5),t.components)},Tv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _5(e,t){return!!(e===t||Tv(e)&&Tv(t))}function W5(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!_5(e[r],t[r]))return!1;return!0}function V5(e,t){t===void 0&&(t=W5);var r=null;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(r&&r.lastThis===this&&t(a,r.lastArgs))return r.lastResult;var i=e.apply(this,a);return r={lastResult:i,lastArgs:a,lastThis:this},i}return n.clear=function(){r=null},n}function H5(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var z5=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:H5},G5=function(t){return pt("span",we({css:z5},t))},kv=G5,Z5={guidance:function(t){var r=t.isSearchable,n=t.isMulti,a=t.isDisabled,o=t.tabSelectsValue,i=t.context;switch(i){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,a=n===void 0?"":n,o=t.labels,i=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(a,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,a=t.options,o=t.label,i=o===void 0?"":o,l=t.selectValue,u=t.isDisabled,c=t.isSelected,m=function(E,v){return E&&E.length?"".concat(E.indexOf(v)+1," of ").concat(E.length):""};if(r==="value"&&l)return"value ".concat(i," focused, ").concat(m(l,n),".");if(r==="menu"){var p=u?" disabled":"",x="".concat(c?"selected":"focused").concat(p);return"option ".concat(i," ").concat(x,", ").concat(m(a,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},U5=function(t){var r=t.ariaSelection,n=t.focusedOption,a=t.focusedValue,o=t.focusableOptions,i=t.isFocused,l=t.selectValue,u=t.selectProps,c=t.id,m=u.ariaLiveMessages,p=u.getOptionLabel,x=u.inputValue,C=u.isMulti,E=u.isOptionDisabled,v=u.isSearchable,A=u.menuIsOpen,S=u.options,j=u.screenReaderStatus,O=u.tabSelectsValue,L=u["aria-label"],M=u["aria-live"],z=h.useMemo(function(){return dt(dt({},Z5),m||{})},[m]),H=h.useMemo(function(){var N="";if(r&&z.onChange){var W=r.option,ee=r.options,de=r.removedValue,ne=r.removedValues,te=r.value,K=function(me){return Array.isArray(me)?null:me},se=de||W||K(te),fe=se?p(se):"",Se=ee||ne||void 0,G=Se?Se.map(p):[],he=dt({isDisabled:se&&E(se,l),label:fe,labels:G},r);N=z.onChange(he)}return N},[r,z,E,l,p]),oe=h.useMemo(function(){var N="",W=n||a,ee=!!(n&&l&&l.includes(n));if(W&&z.onFocus){var de={focused:W,label:p(W),isDisabled:E(W,l),isSelected:ee,options:o,context:W===n?"menu":"value",selectValue:l};N=z.onFocus(de)}return N},[n,a,p,E,z,o,l]),J=h.useMemo(function(){var N="";if(A&&S.length&&z.onFilter){var W=j({count:o.length});N=z.onFilter({inputValue:x,resultsMessage:W})}return N},[o,x,A,z,S,j]),ge=h.useMemo(function(){var N="";if(z.guidance){var W=a?"value":A?"menu":"input";N=z.guidance({"aria-label":L,context:W,isDisabled:n&&E(n,l),isMulti:C,isSearchable:v,tabSelectsValue:O})}return N},[L,n,a,C,E,v,A,z,l,O]),xe="".concat(oe," ").concat(J," ").concat(ge),Q=pt(h.Fragment,null,pt("span",{id:"aria-selection"},H),pt("span",{id:"aria-context"},xe)),ce=(r==null?void 0:r.action)==="initial-input-focus";return pt(h.Fragment,null,pt(kv,{id:c},ce&&Q),pt(kv,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text"},i&&!ce&&Q))},X5=U5,Bh=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Y5=new RegExp("["+Bh.map(function(e){return e.letters}).join("")+"]","g"),Bv={},Ph=0;Ph<Bh.length;Ph++)for(var Oh=Bh[Ph],Nh=0;Nh<Oh.letters.length;Nh++)Bv[Oh.letters[Nh]]=Oh.base;var Pv=function(t){return t.replace(Y5,function(r){return Bv[r]})},J5=V5(Pv),Ov=function(t){return t.replace(/^\s+|\s+$/g,"")},Q5=function(t){return"".concat(t.label," ").concat(t.value)},K5=function(t){return function(r,n){if(r.data.__isNew__)return!0;var a=dt({ignoreCase:!0,ignoreAccents:!0,stringify:Q5,trim:!0,matchFrom:"any"},t),o=a.ignoreCase,i=a.ignoreAccents,l=a.stringify,u=a.trim,c=a.matchFrom,m=u?Ov(n):n,p=u?Ov(l(r)):l(r);return o&&(m=m.toLowerCase(),p=p.toLowerCase()),i&&(m=J5(m),p=Pv(p)),c==="start"?p.substr(0,m.length)===m:p.indexOf(m)>-1}},q5=["innerRef"];function e9(e){var t=e.innerRef,r=ma(e,q5),n=D4(r,"onExited","in","enter","exit","appear");return pt("input",we({ref:t},n,{css:yh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var t9=function(t){t.preventDefault(),t.stopPropagation()};function r9(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,a=e.onTopArrive,o=e.onTopLeave,i=h.useRef(!1),l=h.useRef(!1),u=h.useRef(0),c=h.useRef(null),m=h.useCallback(function(A,S){if(c.current!==null){var j=c.current,O=j.scrollTop,L=j.scrollHeight,M=j.clientHeight,z=c.current,H=S>0,oe=L-M-O,J=!1;oe>S&&i.current&&(n&&n(A),i.current=!1),H&&l.current&&(o&&o(A),l.current=!1),H&&S>oe?(r&&!i.current&&r(A),z.scrollTop=L,J=!0,i.current=!0):!H&&-S>O&&(a&&!l.current&&a(A),z.scrollTop=0,J=!0,l.current=!0),J&&t9(A)}},[r,n,a,o]),p=h.useCallback(function(A){m(A,A.deltaY)},[m]),x=h.useCallback(function(A){u.current=A.changedTouches[0].clientY},[]),C=h.useCallback(function(A){var S=u.current-A.changedTouches[0].clientY;m(A,S)},[m]),E=h.useCallback(function(A){if(A){var S=C4?{passive:!1}:!1;A.addEventListener("wheel",p,S),A.addEventListener("touchstart",x,S),A.addEventListener("touchmove",C,S)}},[C,x,p]),v=h.useCallback(function(A){A&&(A.removeEventListener("wheel",p,!1),A.removeEventListener("touchstart",x,!1),A.removeEventListener("touchmove",C,!1))},[C,x,p]);return h.useEffect(function(){if(t){var A=c.current;return E(A),function(){v(A)}}},[t,E,v]),function(A){c.current=A}}var Nv=["boxSizing","height","overflow","paddingRight","position"],Mv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Rv(e){e.preventDefault()}function $v(e){e.stopPropagation()}function Lv(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function _v(){return"ontouchstart"in window||navigator.maxTouchPoints}var Wv=!!(typeof window<"u"&&window.document&&window.document.createElement),Vl=0,ls={capture:!1,passive:!1};function n9(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,a=h.useRef({}),o=h.useRef(null),i=h.useCallback(function(u){if(Wv){var c=document.body,m=c&&c.style;if(n&&Nv.forEach(function(E){var v=m&&m[E];a.current[E]=v}),n&&Vl<1){var p=parseInt(a.current.paddingRight,10)||0,x=document.body?document.body.clientWidth:0,C=window.innerWidth-x+p||0;Object.keys(Mv).forEach(function(E){var v=Mv[E];m&&(m[E]=v)}),m&&(m.paddingRight="".concat(C,"px"))}c&&_v()&&(c.addEventListener("touchmove",Rv,ls),u&&(u.addEventListener("touchstart",Lv,ls),u.addEventListener("touchmove",$v,ls))),Vl+=1}},[n]),l=h.useCallback(function(u){if(Wv){var c=document.body,m=c&&c.style;Vl=Math.max(Vl-1,0),n&&Vl<1&&Nv.forEach(function(p){var x=a.current[p];m&&(m[p]=x)}),c&&_v()&&(c.removeEventListener("touchmove",Rv,ls),u&&(u.removeEventListener("touchstart",Lv,ls),u.removeEventListener("touchmove",$v,ls)))}},[n]);return h.useEffect(function(){if(t){var u=o.current;return i(u),function(){l(u)}}},[t,i,l]),function(u){o.current=u}}function a9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var o9=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},i9=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:a9};function s9(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,a=n===void 0?!0:n,o=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,c=r9({isEnabled:a,onBottomArrive:o,onBottomLeave:i,onTopArrive:l,onTopLeave:u}),m=n9({isEnabled:r}),p=function(C){c(C),m(C)};return pt(h.Fragment,null,r&&pt("div",{onClick:o9,css:i9}),t(p))}function l9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var u9=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:l9},c9=function(t){var r=t.name,n=t.onFocus;return pt("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:u9,value:"",onChange:function(){}})},d9=c9,f9=function(t){return t.label},Vv=function(t){return t.label},Hv=function(t){return t.value},h9=function(t){return!!t.isDisabled},p9={clearIndicator:q4,container:W4,control:i5,dropdownIndicator:Q4,group:c5,groupHeading:f5,indicatorsContainer:G4,indicatorSeparator:t5,input:m5,loadingIndicator:a5,loadingMessage:M4,menu:I4,menuList:P4,menuPortal:L4,multiValue:C5,multiValueLabel:w5,multiValueRemove:E5,noOptionsMessage:N4,option:I5,placeholder:B5,singleValue:N5,valueContainer:H4},g9={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},m9=4,zv=4,v9=38,b9=zv*2,x9={baseUnit:zv,controlHeight:v9,menuGutter:b9},Mh={borderRadius:m9,colors:g9,spacing:x9},y9={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xv(),captureMenuScroll:!xv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:K5(),formatGroupLabel:f9,getOptionLabel:Vv,getOptionValue:Hv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:h9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!x4(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Gv(e,t,r,n){var a=Jv(e,t,r),o=Qv(e,t,r),i=Yv(e,t),l=zc(e,t);return{type:"option",data:t,isDisabled:a,isSelected:o,label:i,value:l,index:n}}function Zv(e,t){return e.options.map(function(r,n){if("options"in r){var a=r.options.map(function(i,l){return Gv(e,i,t,l)}).filter(function(i){return Xv(e,i)});return a.length>0?{type:"group",data:r,options:a,index:n}:void 0}var o=Gv(e,r,t,n);return Xv(e,o)?o:void 0}).filter(w4)}function Uv(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,kl(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function C9(e,t){return Uv(Zv(e,t))}function Xv(e,t){var r=e.inputValue,n=r===void 0?"":r,a=t.data,o=t.isSelected,i=t.label,l=t.value;return(!qv(e)||!o)&&Kv(e,{label:i,value:l,data:a},n)}function w9(e,t){var r=e.focusedValue,n=e.selectValue,a=n.indexOf(r);if(a>-1){var o=t.indexOf(r);if(o>-1)return r;if(a<t.length)return t[a]}return null}function E9(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Yv=function(t,r){return t.getOptionLabel(r)},zc=function(t,r){return t.getOptionValue(r)};function Jv(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function Qv(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=zc(e,t);return r.some(function(a){return zc(e,a)===n})}function Kv(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var qv=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},D9=1,Rh=function(e){dE(r,e);var t=gE(r);function r(n){var a;if(uE(this,r),a=t.call(this,n),a.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.instancePrefix="",a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.controlRef=null,a.getControlRef=function(l){a.controlRef=l},a.focusedOptionRef=null,a.getFocusedOptionRef=function(l){a.focusedOptionRef=l},a.menuListRef=null,a.getMenuListRef=function(l){a.menuListRef=l},a.inputRef=null,a.getInputRef=function(l){a.inputRef=l},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(l,u){var c=a.props,m=c.onChange,p=c.name;u.name=p,a.ariaOnChange(l,u),m(l,u)},a.setValue=function(l,u,c){var m=a.props,p=m.closeMenuOnSelect,x=m.isMulti,C=m.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:C}),p&&(a.setState({inputIsHiddenAfterUpdate:!x}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(l,{action:u,option:c})},a.selectOption=function(l){var u=a.props,c=u.blurInputOnSelect,m=u.isMulti,p=u.name,x=a.state.selectValue,C=m&&a.isOptionSelected(l,x),E=a.isOptionDisabled(l,x);if(C){var v=a.getOptionValue(l);a.setValue(x.filter(function(A){return a.getOptionValue(A)!==v}),"deselect-option",l)}else if(!E)m?a.setValue([].concat(kl(x),[l]),"select-option",l):a.setValue(l,"select-option");else{a.ariaOnChange(l,{action:"select-option",option:l,name:p});return}c&&a.blurInput()},a.removeValue=function(l){var u=a.props.isMulti,c=a.state.selectValue,m=a.getOptionValue(l),p=c.filter(function(C){return a.getOptionValue(C)!==m}),x=Wl(u,p,p[0]||null);a.onChange(x,{action:"remove-value",removedValue:l}),a.focusInput()},a.clearValue=function(){var l=a.state.selectValue;a.onChange(Wl(a.props.isMulti,[],null),{action:"clear",removedValues:l})},a.popValue=function(){var l=a.props.isMulti,u=a.state.selectValue,c=u[u.length-1],m=u.slice(0,u.length-1),p=Wl(l,m,m[0]||null);a.onChange(p,{action:"pop-value",removedValue:c})},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return p4.apply(void 0,[a.props.classNamePrefix].concat(u))},a.getOptionLabel=function(l){return Yv(a.props,l)},a.getOptionValue=function(l){return zc(a.props,l)},a.getStyles=function(l,u){var c=a.props.unstyled,m=p9[l](u,c);m.boxSizing="border-box";var p=a.props.styles[l];return p?p(m,u):m},a.getClassNames=function(l,u){var c,m;return(c=(m=a.props.classNames)[l])===null||c===void 0?void 0:c.call(m,u)},a.getElementId=function(l){return"".concat(a.instancePrefix,"-").concat(l)},a.getComponents=function(){return L5(a.props)},a.buildCategorizedOptions=function(){return Zv(a.props,a.state.selectValue)},a.getCategorizedOptions=function(){return a.props.menuIsOpen?a.buildCategorizedOptions():[]},a.buildFocusableOptions=function(){return Uv(a.buildCategorizedOptions())},a.getFocusableOptions=function(){return a.props.menuIsOpen?a.buildFocusableOptions():[]},a.ariaOnChange=function(l,u){a.setState({ariaSelection:dt({value:l},u)})},a.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),a.focusInput())},a.onMenuMouseMove=function(l){a.blockOptionHover=!1},a.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=a.props.openMenuOnClick;a.state.isFocused?a.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&a.onMenuClose():u&&a.openMenu("first"):(u&&(a.openAfterFocus=!0),a.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},a.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!a.props.isDisabled){var u=a.props,c=u.isMulti,m=u.menuIsOpen;a.focusInput(),m?(a.setState({inputIsHiddenAfterUpdate:!c}),a.onMenuClose()):a.openMenu("first"),l.preventDefault()}},a.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(a.clearValue(),l.preventDefault(),a.openAfterFocus=!1,l.type==="touchend"?a.focusInput():setTimeout(function(){return a.focusInput()}))},a.onScroll=function(l){typeof a.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&_c(l.target)&&a.props.onMenuClose():typeof a.props.closeMenuOnScroll=="function"&&a.props.closeMenuOnScroll(l)&&a.props.onMenuClose()},a.onCompositionStart=function(){a.isComposing=!0},a.onCompositionEnd=function(){a.isComposing=!1},a.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(a.initialTouchX=c.clientX,a.initialTouchY=c.clientY,a.userIsDragging=!1)},a.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var m=Math.abs(c.clientX-a.initialTouchX),p=Math.abs(c.clientY-a.initialTouchY),x=5;a.userIsDragging=m>x||p>x}},a.onTouchEnd=function(l){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(l.target)&&a.menuListRef&&!a.menuListRef.contains(l.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(l){a.userIsDragging||a.onControlMouseDown(l)},a.onClearIndicatorTouchEnd=function(l){a.userIsDragging||a.onClearIndicatorMouseDown(l)},a.onDropdownIndicatorTouchEnd=function(l){a.userIsDragging||a.onDropdownIndicatorMouseDown(l)},a.handleInputChange=function(l){var u=a.props.inputValue,c=l.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(c,{action:"input-change",prevInputValue:u}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(l){a.props.onFocus&&a.props.onFocus(l),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(l){var u=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(l),a.onInputChange("",{action:"input-blur",prevInputValue:u}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(l){a.blockOptionHover||a.state.focusedOption===l||a.setState({focusedOption:l})},a.shouldHideSelectedOptions=function(){return qv(a.props)},a.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),a.focus()},a.onKeyDown=function(l){var u=a.props,c=u.isMulti,m=u.backspaceRemovesValue,p=u.escapeClearsValue,x=u.inputValue,C=u.isClearable,E=u.isDisabled,v=u.menuIsOpen,A=u.onKeyDown,S=u.tabSelectsValue,j=u.openMenuOnFocus,O=a.state,L=O.focusedOption,M=O.focusedValue,z=O.selectValue;if(!E&&!(typeof A=="function"&&(A(l),l.defaultPrevented))){switch(a.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||x)return;a.focusValue("previous");break;case"ArrowRight":if(!c||x)return;a.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(M)a.removeValue(M);else{if(!m)return;c?a.popValue():C&&a.clearValue()}break;case"Tab":if(a.isComposing||l.shiftKey||!v||!S||!L||j&&a.isOptionSelected(L,z))return;a.selectOption(L);break;case"Enter":if(l.keyCode===229)break;if(v){if(!L||a.isComposing)return;a.selectOption(L);break}return;case"Escape":v?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:x}),a.onMenuClose()):C&&p&&a.clearValue();break;case" ":if(x)return;if(!v){a.openMenu("first");break}if(!L)return;a.selectOption(L);break;case"ArrowUp":v?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":v?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!v)return;a.focusOption("pageup");break;case"PageDown":if(!v)return;a.focusOption("pagedown");break;case"Home":if(!v)return;a.focusOption("first");break;case"End":if(!v)return;a.focusOption("last");break;default:return}l.preventDefault()}},a.instancePrefix="react-select-"+(a.props.instanceId||++D9),a.state.selectValue=Lc(n.value),n.menuIsOpen&&a.state.selectValue.length){var o=a.buildFocusableOptions(),i=o.indexOf(a.state.selectValue[0]);a.state.focusedOption=o[i]}return a}return cE(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&bv(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var o=this.props,i=o.isDisabled,l=o.menuIsOpen,u=this.state.isFocused;(u&&!i&&a.isDisabled||u&&l&&!a.menuIsOpen)&&this.focusInput(),u&&i&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!i&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(bv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,o){this.props.onInputChange(a,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var o=this,i=this.state,l=i.selectValue,u=i.isFocused,c=this.buildFocusableOptions(),m=a==="first"?0:c.length-1;if(!this.props.isMulti){var p=c.indexOf(l[0]);p>-1&&(m=p)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[m]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(a){var o=this.state,i=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=i.indexOf(l);l||(u=-1);var c=i.length-1,m=-1;if(i.length){switch(a){case"previous":u===0?m=0:u===-1?m=c:m=u-1;break;case"next":u>-1&&u<c&&(m=u+1);break}this.setState({inputIsHidden:m!==-1,focusedValue:i[m]})}}}},{key:"focusOption",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,c=l.indexOf(i);i||(c=-1),a==="up"?u=c>0?c-1:l.length-1:a==="down"?u=(c+1)%l.length:a==="pageup"?(u=c-o,u<0&&(u=0)):a==="pagedown"?(u=c+o,u>l.length-1&&(u=l.length-1)):a==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Mh):dt(dt({},Mh),this.props.theme):Mh}},{key:"getCommonProps",value:function(){var a=this.clearValue,o=this.cx,i=this.getStyles,l=this.getClassNames,u=this.getValue,c=this.selectOption,m=this.setValue,p=this.props,x=p.isMulti,C=p.isRtl,E=p.options,v=this.hasValue();return{clearValue:a,cx:o,getStyles:i,getClassNames:l,getValue:u,hasValue:v,isMulti:x,isRtl:C,options:E,selectOption:c,selectProps:p,setValue:m,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,o=a.isClearable,i=a.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(a,o){return Jv(this.props,a,o)}},{key:"isOptionSelected",value:function(a,o){return Qv(this.props,a,o)}},{key:"filterOption",value:function(a,o){return Kv(this.props,a,o)}},{key:"formatOptionLabel",value:function(a,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(a,{context:o,inputValue:i,selectValue:l})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var a=this.props,o=a.isDisabled,i=a.isSearchable,l=a.inputId,u=a.inputValue,c=a.tabIndex,m=a.form,p=a.menuIsOpen,x=a.required,C=this.getComponents(),E=C.Input,v=this.state,A=v.inputIsHidden,S=v.ariaSelection,j=this.commonProps,O=l||this.getElementId("input"),L=dt(dt(dt({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":x,role:"combobox"},p&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(S==null?void 0:S.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?je.createElement(E,we({},j,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:O,innerRef:this.getInputRef,isDisabled:o,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:m,type:"text",value:u},L)):je.createElement(e9,we({id:O,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$c,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:m,value:""},L))}},{key:"renderPlaceholderOrValue",value:function(){var a=this,o=this.getComponents(),i=o.MultiValue,l=o.MultiValueContainer,u=o.MultiValueLabel,c=o.MultiValueRemove,m=o.SingleValue,p=o.Placeholder,x=this.commonProps,C=this.props,E=C.controlShouldRenderValue,v=C.isDisabled,A=C.isMulti,S=C.inputValue,j=C.placeholder,O=this.state,L=O.selectValue,M=O.focusedValue,z=O.isFocused;if(!this.hasValue()||!E)return S?null:je.createElement(p,we({},x,{key:"placeholder",isDisabled:v,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),j);if(A)return L.map(function(oe,J){var ge=oe===M,xe="".concat(a.getOptionLabel(oe),"-").concat(a.getOptionValue(oe));return je.createElement(i,we({},x,{components:{Container:l,Label:u,Remove:c},isFocused:ge,isDisabled:v,key:xe,index:J,removeProps:{onClick:function(){return a.removeValue(oe)},onTouchEnd:function(){return a.removeValue(oe)},onMouseDown:function(ce){ce.preventDefault()}},data:oe}),a.formatOptionLabel(oe,"value"))});if(S)return null;var H=L[0];return je.createElement(m,we({},x,{data:H,isDisabled:v}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),o=a.ClearIndicator,i=this.commonProps,l=this.props,u=l.isDisabled,c=l.isLoading,m=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||c)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:p,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),o=a.LoadingIndicator,i=this.commonProps,l=this.props,u=l.isDisabled,c=l.isLoading,m=this.state.isFocused;if(!o||!c)return null;var p={"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:p,isDisabled:u,isFocused:m}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),o=a.DropdownIndicator,i=a.IndicatorSeparator;if(!o||!i)return null;var l=this.commonProps,u=this.props.isDisabled,c=this.state.isFocused;return je.createElement(i,we({},l,{isDisabled:u,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),o=a.DropdownIndicator;if(!o)return null;var i=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:c,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,o=this.getComponents(),i=o.Group,l=o.GroupHeading,u=o.Menu,c=o.MenuList,m=o.MenuPortal,p=o.LoadingMessage,x=o.NoOptionsMessage,C=o.Option,E=this.commonProps,v=this.state.focusedOption,A=this.props,S=A.captureMenuScroll,j=A.inputValue,O=A.isLoading,L=A.loadingMessage,M=A.minMenuHeight,z=A.maxMenuHeight,H=A.menuIsOpen,oe=A.menuPlacement,J=A.menuPosition,ge=A.menuPortalTarget,xe=A.menuShouldBlockScroll,Q=A.menuShouldScrollIntoView,ce=A.noOptionsMessage,N=A.onMenuScrollToTop,W=A.onMenuScrollToBottom;if(!H)return null;var ee=function(Se,G){var he=Se.type,ae=Se.data,me=Se.isDisabled,Me=Se.isSelected,Pe=Se.label,We=Se.value,Ke=v===ae,Ne=me?void 0:function(){return a.onOptionHover(ae)},Qe=me?void 0:function(){return a.selectOption(ae)},nt="".concat(a.getElementId("option"),"-").concat(G),vt={id:nt,onClick:Qe,onMouseMove:Ne,onMouseOver:Ne,tabIndex:-1};return je.createElement(C,we({},E,{innerProps:vt,data:ae,isDisabled:me,isSelected:Me,key:nt,label:Pe,type:he,value:We,isFocused:Ke,innerRef:Ke?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(Se.data,"menu"))},de;if(this.hasOptions())de=this.getCategorizedOptions().map(function(fe){if(fe.type==="group"){var Se=fe.data,G=fe.options,he=fe.index,ae="".concat(a.getElementId("group"),"-").concat(he),me="".concat(ae,"-heading");return je.createElement(i,we({},E,{key:ae,data:Se,options:G,Heading:l,headingProps:{id:me,data:fe.data},label:a.formatGroupLabel(fe.data)}),fe.options.map(function(Me){return ee(Me,"".concat(he,"-").concat(Me.index))}))}else if(fe.type==="option")return ee(fe,"".concat(fe.index))});else if(O){var ne=L({inputValue:j});if(ne===null)return null;de=je.createElement(p,E,ne)}else{var te=ce({inputValue:j});if(te===null)return null;de=je.createElement(x,E,te)}var K={minMenuHeight:M,maxMenuHeight:z,menuPlacement:oe,menuPosition:J,menuShouldScrollIntoView:Q},se=je.createElement(T4,we({},E,K),function(fe){var Se=fe.ref,G=fe.placerProps,he=G.placement,ae=G.maxHeight;return je.createElement(u,we({},E,K,{innerRef:Se,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove,id:a.getElementId("listbox")},isLoading:O,placement:he}),je.createElement(s9,{captureEnabled:S,onTopArrive:N,onBottomArrive:W,lockEnabled:xe},function(me){return je.createElement(c,we({},E,{innerRef:function(Pe){a.getMenuListRef(Pe),me(Pe)},isLoading:O,maxHeight:ae,focusedOption:v}),de)}))});return ge||J==="fixed"?je.createElement(m,we({},E,{appendTo:ge,controlElement:this.controlRef,menuPlacement:oe,menuPosition:J}),se):se}},{key:"renderFormField",value:function(){var a=this,o=this.props,i=o.delimiter,l=o.isDisabled,u=o.isMulti,c=o.name,m=o.required,p=this.state.selectValue;if(m&&!this.hasValue()&&!l)return je.createElement(d9,{name:c,onFocus:this.onValueInputFocus});if(!(!c||l))if(u)if(i){var x=p.map(function(v){return a.getOptionValue(v)}).join(i);return je.createElement("input",{name:c,type:"hidden",value:x})}else{var C=p.length>0?p.map(function(v,A){return je.createElement("input",{key:"i-".concat(A),name:c,type:"hidden",value:a.getOptionValue(v)})}):je.createElement("input",{name:c,type:"hidden",value:""});return je.createElement("div",null,C)}else{var E=p[0]?this.getOptionValue(p[0]):"";return je.createElement("input",{name:c,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,o=this.state,i=o.ariaSelection,l=o.focusedOption,u=o.focusedValue,c=o.isFocused,m=o.selectValue,p=this.getFocusableOptions();return je.createElement(X5,we({},a,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:u,isFocused:c,selectValue:m,focusableOptions:p}))}},{key:"render",value:function(){var a=this.getComponents(),o=a.Control,i=a.IndicatorsContainer,l=a.SelectContainer,u=a.ValueContainer,c=this.props,m=c.className,p=c.id,x=c.isDisabled,C=c.menuIsOpen,E=this.state.isFocused,v=this.commonProps=this.getCommonProps();return je.createElement(l,we({},v,{className:m,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:x,isFocused:E}),this.renderLiveRegion(),je.createElement(o,we({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:x,isFocused:E,menuIsOpen:C}),je.createElement(u,we({},v,{isDisabled:x}),this.renderPlaceholderOrValue(),this.renderInput()),je.createElement(i,we({},v,{isDisabled:x}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,l=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,m=o.isFocused,p=o.prevWasFocused,x=a.options,C=a.value,E=a.menuIsOpen,v=a.inputValue,A=a.isMulti,S=Lc(C),j={};if(i&&(C!==i.value||x!==i.options||E!==i.menuIsOpen||v!==i.inputValue)){var O=E?C9(a,S):[],L=l?w9(o,S):null,M=E9(o,O);j={selectValue:S,focusedOption:M,focusedValue:L,clearFocusValueOnUpdate:!1}}var z=u!=null&&a!==i?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},H=c,oe=m&&p;return m&&!oe&&(H={value:Wl(A,S,S[0]||null),options:S,action:"initial-input-focus"},oe=!p),(c==null?void 0:c.action)==="initial-input-focus"&&(H=null),dt(dt(dt({},j),z),{},{prevProps:a,ariaSelection:H,prevWasFocused:oe})}}]),r}(h.Component);Rh.defaultProps=y9;var S9=h.forwardRef(function(e,t){var r=y0(e);return je.createElement(Rh,we({ref:t},r))}),e1=S9,A9=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],t1=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=String(t).toLowerCase(),o=String(n.getOptionValue(r)).toLowerCase(),i=String(n.getOptionLabel(r)).toLowerCase();return o===a||i===a},$h={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,n,a){return!(!t||r.some(function(o){return t1(t,o,a)})||n.some(function(o){return t1(t,o,a)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function F9(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,n=e.createOptionPosition,a=n===void 0?"last":n,o=e.formatCreateLabel,i=o===void 0?$h.formatCreateLabel:o,l=e.isValidNewOption,u=l===void 0?$h.isValidNewOption:l,c=e.getNewOptionData,m=c===void 0?$h.getNewOptionData:c,p=e.onCreateOption,x=e.options,C=x===void 0?[]:x,E=e.onChange,v=ma(e,A9),A=v.getOptionValue,S=A===void 0?Hv:A,j=v.getOptionLabel,O=j===void 0?Vv:j,L=v.inputValue,M=v.isLoading,z=v.isMulti,H=v.value,oe=v.name,J=h.useMemo(function(){return u(L,Lc(H),C,{getOptionValue:S,getOptionLabel:O})?m(L,i(L)):void 0},[i,m,O,S,L,u,C,H]),ge=h.useMemo(function(){return(r||!M)&&J?a==="first"?[J].concat(kl(C)):[].concat(kl(C),[J]):C},[r,a,M,J,C]),xe=h.useCallback(function(Q,ce){if(ce.action!=="select-option")return E(Q,ce);var N=Array.isArray(Q)?Q:[Q];if(N[N.length-1]===J){if(p)p(L);else{var W=m(L,L),ee={action:"create-option",name:oe,option:W};E(Wl(z,[].concat(kl(Lc(H)),[W]),W),ee)}return}E(Q,ce)},[m,L,z,oe,J,p,E,H]);return dt(dt({},v),{},{options:ge,onChange:xe})}var j9=h.forwardRef(function(e,t){var r=y0(e),n=F9(r);return je.createElement(Rh,we({ref:t},n))}),I9=j9;const T9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,size:o="normal",...i})=>{let l={small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""};return s.jsx("div",{ref:a,className:$e(l[o],"flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500"),...n,children:t})},k9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsx("div",{className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded border bg-background p-1.5",ref:a,...n,children:t}),B9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,size:o="normal",...i})=>s.jsx("div",{ref:a,className:"flex cursor-pointer select-none flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...n,children:t}),Hl=e=>s.jsxs("div",{className:" flex w-full flex-col gap-2",children:[e.label&&s.jsx(ti,{children:e.label}),e.isLoading?s.jsx(ri,{className:"h-[38px] w-full"}):e.isCreatable?s.jsx(I9,{styles:{input:t=>({...t,"input:focus":{boxShadow:"none"}}),control:t=>({...t,borderRadius:"0.75rem"}),menu:t=>({...t,borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"}),menuList:t=>({...t,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"}),option:t=>({...t,borderRadius:"0.75rem",margin:3,width:"98%"})},options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onCreateOption:()=>console.log("im changing"),onChange:(t,r)=>e.onChange(t,r),onInputChange:(t,r)=>e.onInputChange(t,r)}):s.jsx(e1,{classNames:{container:()=>Ve("rounded",e.disabled?"cursor-not-allowed":"cursor-pointer"),placeholder:()=>"px-2 text-muted-foreground",input:()=>"text-white px-2",valueContainer:()=>"text-white dark:text-muted-foreground",singleValue:()=>"text-black dark:text-white px-2",indicatorsContainer:()=>" px-2 cursor-pointer text-muted-foreground"},unstyled:!0,isDisabled:e.disabled,options:e.options,defaultValue:e.defaultValue,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onChange:(t,r)=>e.onChange(t,r),components:{Control:T9,Option:B9,Menu:k9},getOptionLabel:e.getOptionLabel}),e.helperText&&s.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500",children:e.helperText})]});function at(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Dn(e,t=[]){let r=[];function n(o,i){const l=h.createContext(i),u=r.length;r=[...r,i];function c(p){const{scope:x,children:C,...E}=p,v=(x==null?void 0:x[e][u])||l,A=h.useMemo(()=>E,Object.values(E));return h.createElement(v.Provider,{value:A},C)}function m(p,x){const C=(x==null?void 0:x[e][u])||l,E=h.useContext(C);if(E)return E;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,m]}const a=()=>{const o=r.map(i=>h.createContext(i));return function(l){const u=(l==null?void 0:l[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return a.scopeName=e,[n,P9(a,...t)]}function P9(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=n.reduce((l,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...l,...p}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ur(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Rn({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=O9({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:n,l=Ur(r),u=h.useCallback(c=>{if(o){const p=typeof c=="function"?c(e):c;p!==e&&l(p)}else a(c)},[o,e,a,l]);return[i,u]}function O9({defaultProp:e,onChange:t}){const r=h.useState(e),[n]=r,a=h.useRef(n),o=Ur(t);return h.useEffect(()=>{a.current!==n&&(o(n),a.current=n)},[n,a,o]),r}function N9(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xo=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function r1(e){const[t,r]=h.useState(void 0);return xo(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,l;if("borderBoxSize"in o){const u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const n1="Switch",[M9,yN]=Dn(n1),[R9,$9]=M9(n1),L9=h.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:a,defaultChecked:o,required:i,disabled:l,value:u="on",onCheckedChange:c,...m}=e,[p,x]=h.useState(null),C=Kt(t,j=>x(j)),E=h.useRef(!1),v=p?!!p.closest("form"):!0,[A=!1,S]=Rn({prop:a,defaultProp:o,onChange:c});return h.createElement(R9,{scope:r,checked:A,disabled:l},h.createElement(St.button,we({type:"button",role:"switch","aria-checked":A,"aria-required":i,"data-state":a1(A),"data-disabled":l?"":void 0,disabled:l,value:u},m,{ref:C,onClick:at(e.onClick,j=>{S(O=>!O),v&&(E.current=j.isPropagationStopped(),E.current||j.stopPropagation())})})),v&&h.createElement(V9,{control:p,bubbles:!E.current,name:n,value:u,checked:A,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))}),_9="SwitchThumb",W9=h.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,a=$9(_9,r);return h.createElement(St.span,we({"data-state":a1(a.checked),"data-disabled":a.disabled?"":void 0},n,{ref:t}))}),V9=e=>{const{control:t,checked:r,bubbles:n=!0,...a}=e,o=h.useRef(null),i=N9(r),l=r1(t);return h.useEffect(()=>{const u=o.current,c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==r&&p){const x=new Event("click",{bubbles:n});p.call(u,r),u.dispatchEvent(x)}},[i,r,n]),h.createElement("input",we({type:"checkbox","aria-hidden":!0,defaultChecked:r},a,{tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function a1(e){return e?"checked":"unchecked"}const o1=L9,H9=W9;let z9={default:"h-[25px] w-[42px]",sm:"h-[20px] w-[37px]"},G9={default:"h-[21px] w-[21px]",sm:"h-[16px] w-[16px]"};const Lh=je.forwardRef(({className:e,size:t="default",label:r,...n},a)=>{const[o,i]=je.useState(null),l=je.useRef(null);return je.useEffect(()=>{if(l.current&&l.current.parentNode){const u=window.getComputedStyle(l.current.parentNode).direction;i(u)}}),s.jsxs("div",{className:"flex flex-row items-center",ref:l,children:[s.jsx(o1,{className:Ve("relative cursor-pointer rounded-full bg-primary/20 outline-none data-[state=checked]:bg-primary",e,z9[t]),...n,ref:a,children:s.jsx(H9,{className:Ve(G9[t],"block rounded-full bg-white transition-transform duration-100 will-change-transform data-[state=checked]:bg-primary-foreground dark:bg-background",o==="rtl"?"-translate-x-0.5 data-[state=checked]:-translate-x-[19px]":"translate-x-0.5 data-[state=checked]:translate-x-[19px]")})}),r&&s.jsx("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:r})]})});Lh.displayName=o1.displayName;const Z9=({settingsLabel:e,settingsType:t,settingsDescription:r,colorProps:n,rangeProps:a,radioProps:o,switchProps:i,selectProps:l})=>s.jsxs("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm",children:e}),r&&s.jsx("div",{className:"text-xs",children:r})," "]}),t==="text"&&s.jsx(Rt,{margin:"none",width:"small"}),t==="boolean"&&s.jsx(Lh,{...i}),t==="range"&&s.jsx(m0,{...a}),t==="color"&&s.jsx(g0,{...n}),t==="radio"&&s.jsx(yn,{...o}),t==="select"&&s.jsx(Hl,{...l})]}),U9=e=>s.jsx("div",{children:e.children}),us=({design:e="spinner",size:t="sm",color:r,...n})=>{let a={button:"h-4 w-4",xs:"h-1 w-1",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"},o={pulse:"animate-in fade-in duration-1000",bounce:"animate-bounce"};switch(e.split("-")[0]){case"dots":return s.jsxs("div",{className:"flex flex-row gap-2",children:[s.jsx("div",{className:$e("animate-bounce rounded-full delay-100 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")}),s.jsx("div",{className:$e("animate-bounce rounded-full delay-200 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")}),s.jsx("div",{className:$e("animate-bounce rounded-full delay-300 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")})]});default:return s.jsx("div",{className:"flex flex-row gap-x-3",children:s.jsx("div",{"aria-label":"Loading...",role:"status",children:s.jsxs("svg",{className:$e(a[t],"animate-spin"),viewBox:"3 3 18 18",children:[s.jsx("path",{className:"fill-primary/20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),s.jsx("path",{className:r||"fill-primary",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})})}},i1=Qf("inline-flex items-center justify-center select-none rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",light:"bg-primary/20 text-primary hover:bg-primary/40",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",neoBrutalism:"cursor-pointer transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms] active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"},size:{default:"h-10 px-4 py-2",heightless:"px-4 py-4",xs:"h-fit py-1 text-[10px] px-2 ",sm:"h-9 text-[11px] rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-14 rounded-md px-10",icon:"h-10 w-10",smallIcon:"h-7 w-7"}},defaultVariants:{variant:"default",size:"default"}}),qe=je.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,isLoading:a,children:o,...i},l)=>{const u="button",c=t==="outline"||t==="ghost"||t==="neoBrutalism"?"bg-primary":"bg-primary-foreground";return s.jsx(u,{className:Ve(i1({variant:t,size:r,className:e})),ref:l,...i,children:a?s.jsx(us,{design:"dots-pulse",color:c,size:r==="sm"?"xs":"normal"}):o})});qe.displayName="Button";const qn=({variant:e="normal",direction:t="ltr",severity:r="info",duration:n,icon:a,className:o,...i})=>{const l=h.useRef(null),[u,c]=h.useState(!1);h.useEffect(()=>{if(n){const x=setTimeout(()=>{c(!0)},n),C=setTimeout(()=>{c(!0),l.current.removeChild(l.current.children[0])},n+1e3);return()=>{clearTimeout(x),clearTimeout(C)}}},[n]);let m={none:"hover:bg-gray-300",info:"hover:bg-blue-300",warning:"hover:bg-yellow-300",error:"hover:bg-red-300",success:"hover:bg-green-300"},p={normal:{none:"text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{none:"border-t-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{none:"border-l-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{none:"border-r-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{none:"border-b-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}};return s.jsx("div",{ref:l,children:s.jsxs("div",{className:$e("relative mb-4 flex flex-col rounded p-4 text-sm transition-all",p[e][r],u?"opacity-0":"opacity-100",o),role:"alert",dir:t,children:[s.jsxs("div",{className:"flex flex-row",children:[a&&s.jsx("div",{className:t==="rtl"?"pl-2 pt-1":"pr-2 pt-1",children:a}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:$e("font-medium",t==="rtl"?"ml-8":"mr-8"),children:i.title}),s.jsx("span",{children:i.text}),i.actions&&s.jsx("div",{className:"mt-2 flex flex-row gap-2",children:i.actions.map((x,C)=>s.jsx(qe,{variant:x.variant,onClick:x.onClick(),children:x.label},C))})]})]}),!i.persistant&&s.jsxs("button",{type:"button",className:$e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900",m[r],t==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{c(!0),setTimeout(()=>{l.current.removeChild(l.current.children[0])},200)},children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})},X9=(e,t)=>{const r=[],n=Math.ceil((e==null?void 0:e.length)/t);for(let a=1;a<=n;a++)r.push(a);return r},Y9=(e,t,r)=>e==null?void 0:e.slice((t-1)*r,t*r),J9=(e,t,r)=>t!==null?e==null?void 0:e.sort((n,a)=>{const o=n[t].value,i=a[t].value;return typeof o=="string"&&typeof i=="string"?r==="asc"?o.localeCompare(i):i.localeCompare(o):r==="asc"?o-i:i-o}):e,Q9=(e,t,r,n,a)=>{const[o,i]=h.useState([]),[l,u]=h.useState([]);return h.useEffect(()=>{if(e){const c=X9(e,r);i([...c]);const m=J9(e,n,a),p=Y9(m,t,r);u([...p])}},[e,i,t,r,n,a]),{slice:l,range:o}};function Gc(e){const t=e+"CollectionProvider",[r,n]=Dn(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=C=>{const{scope:E,children:v}=C,A=h.useRef(null),S=h.useRef(new Map).current;return h.createElement(a,{scope:E,itemMap:S,collectionRef:A},v)},l=e+"CollectionSlot",u=h.forwardRef((C,E)=>{const{scope:v,children:A}=C,S=o(l,v),j=Kt(E,S.collectionRef);return h.createElement(Ko,{ref:j},A)}),c=e+"CollectionItemSlot",m="data-radix-collection-item",p=h.forwardRef((C,E)=>{const{scope:v,children:A,...S}=C,j=h.useRef(null),O=Kt(E,j),L=o(c,v);return h.useEffect(()=>(L.itemMap.set(j,{ref:j,...S}),()=>void L.itemMap.delete(j))),h.createElement(Ko,{[m]:"",ref:O},A)});function x(C){const E=o(e+"CollectionConsumer",C);return h.useCallback(()=>{const A=E.collectionRef.current;if(!A)return[];const S=Array.from(A.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((L,M)=>S.indexOf(L.ref.current)-S.indexOf(M.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},x,n]}const K9=h.createContext(void 0);function Zc(e){const t=h.useContext(K9);return e||t||"ltr"}function q9(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e);h.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const _h="dismissableLayer.update",eD="dismissableLayer.pointerDownOutside",tD="dismissableLayer.focusOutside";let s1;const l1=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zl=h.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...c}=e,m=h.useContext(l1),[p,x]=h.useState(null),C=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,E]=h.useState({}),v=Kt(t,oe=>x(oe)),A=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=A.indexOf(S),O=p?A.indexOf(p):-1,L=m.layersWithOutsidePointerEventsDisabled.size>0,M=O>=j,z=nD(oe=>{const J=oe.target,ge=[...m.branches].some(xe=>xe.contains(J));!M||ge||(o==null||o(oe),l==null||l(oe),oe.defaultPrevented||u==null||u())},C),H=aD(oe=>{const J=oe.target;[...m.branches].some(xe=>xe.contains(J))||(i==null||i(oe),l==null||l(oe),oe.defaultPrevented||u==null||u())},C);return q9(oe=>{O===m.layers.size-1&&(a==null||a(oe),!oe.defaultPrevented&&u&&(oe.preventDefault(),u()))},C),h.useEffect(()=>{if(p)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(s1=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),u1(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=s1)}},[p,C,n,m]),h.useEffect(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),u1())},[p,m]),h.useEffect(()=>{const oe=()=>E({});return document.addEventListener(_h,oe),()=>document.removeEventListener(_h,oe)},[]),h.createElement(St.div,we({},c,{ref:v,style:{pointerEvents:L?M?"auto":"none":void 0,...e.style},onFocusCapture:at(e.onFocusCapture,H.onFocusCapture),onBlurCapture:at(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:at(e.onPointerDownCapture,z.onPointerDownCapture)}))}),rD=h.forwardRef((e,t)=>{const r=h.useContext(l1),n=h.useRef(null),a=Kt(t,n);return h.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),h.createElement(St.div,we({},e,{ref:a}))});function nD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=h.useRef(!1),a=h.useRef(()=>{});return h.useEffect(()=>{const o=l=>{if(l.target&&!n.current){let c=function(){c1(eD,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function aD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=h.useRef(!1);return h.useEffect(()=>{const a=o=>{o.target&&!n.current&&c1(tD,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function u1(){const e=new CustomEvent(_h);document.dispatchEvent(e)}function c1(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Jf(a,o):a.dispatchEvent(o)}const oD=zl,iD=rD;let Wh=0;function Vh(){h.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:d1()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:d1()),Wh++,()=>{Wh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Wh--}},[])}function d1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Hh="focusScope.autoFocusOnMount",zh="focusScope.autoFocusOnUnmount",f1={bubbles:!1,cancelable:!0},Gh=h.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,u]=h.useState(null),c=Ur(a),m=Ur(o),p=h.useRef(null),x=Kt(t,v=>u(v)),C=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(n){let v=function(O){if(C.paused||!l)return;const L=O.target;l.contains(L)?p.current=L:yo(p.current,{select:!0})},A=function(O){if(C.paused||!l)return;const L=O.relatedTarget;L!==null&&(l.contains(L)||yo(p.current,{select:!0}))},S=function(O){const L=document.activeElement;for(const M of O)M.removedNodes.length>0&&(l!=null&&l.contains(L)||yo(l))};document.addEventListener("focusin",v),document.addEventListener("focusout",A);const j=new MutationObserver(S);return l&&j.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",A),j.disconnect()}}},[n,l,C.paused]),h.useEffect(()=>{if(l){g1.add(C);const v=document.activeElement;if(!l.contains(v)){const S=new CustomEvent(Hh,f1);l.addEventListener(Hh,c),l.dispatchEvent(S),S.defaultPrevented||(sD(fD(h1(l)),{select:!0}),document.activeElement===v&&yo(l))}return()=>{l.removeEventListener(Hh,c),setTimeout(()=>{const S=new CustomEvent(zh,f1);l.addEventListener(zh,m),l.dispatchEvent(S),S.defaultPrevented||yo(v??document.body,{select:!0}),l.removeEventListener(zh,m),g1.remove(C)},0)}}},[l,c,m,C]);const E=h.useCallback(v=>{if(!r&&!n||C.paused)return;const A=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,S=document.activeElement;if(A&&S){const j=v.currentTarget,[O,L]=lD(j);O&&L?!v.shiftKey&&S===L?(v.preventDefault(),r&&yo(O,{select:!0})):v.shiftKey&&S===O&&(v.preventDefault(),r&&yo(L,{select:!0})):S===j&&v.preventDefault()}},[r,n,C.paused]);return h.createElement(St.div,we({tabIndex:-1},i,{ref:x,onKeyDown:E}))});function sD(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yo(n,{select:t}),document.activeElement!==r)return}function lD(e){const t=h1(e),r=p1(t,e),n=p1(t.reverse(),e);return[r,n]}function h1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p1(e,t){for(const r of e)if(!uD(r,{upTo:t}))return r}function uD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cD(e){return e instanceof HTMLInputElement&&"select"in e}function yo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cD(e)&&t&&e.select()}}const g1=dD();function dD(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=m1(e,t),e.unshift(t)},remove(t){var r;e=m1(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function m1(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function fD(e){return e.filter(t=>t.tagName!=="A")}const hD=je["useId".toString()]||(()=>{});let pD=0;function Sn(e){const[t,r]=je.useState(hD());return xo(()=>{e||r(n=>n??String(pD++))},[e]),e||(t?`radix-${t}`:"")}const gD=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?rv({element:n.current,padding:a}).fn(r):{}:n?rv({element:n,padding:a}).fn(r):{}}}};var Uc=typeof document<"u"?h.useLayoutEffect:h.useEffect;function Xc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Xc(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const o=a[n];if(!(o==="_owner"&&e.$$typeof)&&!Xc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function v1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function b1(e,t){const r=v1(e);return Math.round(t*r)/r}function x1(e){const t=je.useRef(e);return Uc(()=>{t.current=e}),t}function mD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[m,p]=je.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[x,C]=je.useState(n);Xc(x,n)||C(n);const[E,v]=je.useState(null),[A,S]=je.useState(null),j=je.useCallback(ee=>{ee!=z.current&&(z.current=ee,v(ee))},[v]),O=je.useCallback(ee=>{ee!==H.current&&(H.current=ee,S(ee))},[S]),L=o||E,M=i||A,z=je.useRef(null),H=je.useRef(null),oe=je.useRef(m),J=x1(u),ge=x1(a),xe=je.useCallback(()=>{if(!z.current||!H.current)return;const ee={placement:t,strategy:r,middleware:x};ge.current&&(ee.platform=ge.current),d4(z.current,H.current,ee).then(de=>{const ne={...de,isPositioned:!0};Q.current&&!Xc(oe.current,ne)&&(oe.current=ne,xw.flushSync(()=>{p(ne)}))})},[x,t,r,ge]);Uc(()=>{c===!1&&oe.current.isPositioned&&(oe.current.isPositioned=!1,p(ee=>({...ee,isPositioned:!1})))},[c]);const Q=je.useRef(!1);Uc(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Uc(()=>{if(L&&(z.current=L),M&&(H.current=M),L&&M){if(J.current)return J.current(L,M,xe);xe()}},[L,M,xe,J]);const ce=je.useMemo(()=>({reference:z,floating:H,setReference:j,setFloating:O}),[j,O]),N=je.useMemo(()=>({reference:L,floating:M}),[L,M]),W=je.useMemo(()=>{const ee={position:r,left:0,top:0};if(!N.floating)return ee;const de=b1(N.floating,m.x),ne=b1(N.floating,m.y);return l?{...ee,transform:"translate("+de+"px, "+ne+"px)",...v1(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:de,top:ne}},[r,l,N.floating,m.x,m.y]);return je.useMemo(()=>({...m,update:xe,refs:ce,elements:N,floatingStyles:W}),[m,xe,ce,N,W])}const vD=h.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return h.createElement(St.svg,we({},o,{ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),y1="Popper",[C1,cs]=Dn(y1),[bD,w1]=C1(y1),xD=e=>{const{__scopePopper:t,children:r}=e,[n,a]=h.useState(null);return h.createElement(bD,{scope:t,anchor:n,onAnchorChange:a},r)},yD="PopperAnchor",CD=h.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,o=w1(yD,r),i=h.useRef(null),l=Kt(t,i);return h.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:h.createElement(St.div,we({},a,{ref:l}))}),E1="PopperContent",[wD,ED]=C1(E1),DD=h.forwardRef((e,t)=>{var r,n,a,o,i,l,u,c;const{__scopePopper:m,side:p="bottom",sideOffset:x=0,align:C="center",alignOffset:E=0,arrowPadding:v=0,collisionBoundary:A=[],collisionPadding:S=0,sticky:j="partial",hideWhenDetached:O=!1,avoidCollisions:L=!0,onPlaced:M,...z}=e,H=w1(E1,m),[oe,J]=h.useState(null),ge=Kt(t,nt=>J(nt)),[xe,Q]=h.useState(null),ce=r1(xe),N=(r=ce==null?void 0:ce.width)!==null&&r!==void 0?r:0,W=(n=ce==null?void 0:ce.height)!==null&&n!==void 0?n:0,ee=p+(C!=="center"?"-"+C:""),de=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ne=Array.isArray(A)?A:[A],te=ne.length>0,K={padding:de,boundary:ne.filter(jD),altBoundary:te},{refs:se,floatingStyles:fe,placement:Se,isPositioned:G,middlewareData:he}=mD({strategy:"fixed",placement:ee,whileElementsMounted:gv,elements:{reference:H.anchor},middleware:[z3({mainAxis:x+W,alignmentAxis:E}),L&&G3({mainAxis:!0,crossAxis:!1,limiter:j==="partial"?Z3():void 0,...K}),L&&W3({...K}),U3({...K,apply:({elements:nt,rects:vt,availableWidth:At,availableHeight:re})=>{const{width:be,height:Ie}=vt.reference,Ze=nt.floating.style;Ze.setProperty("--radix-popper-available-width",`${At}px`),Ze.setProperty("--radix-popper-available-height",`${re}px`),Ze.setProperty("--radix-popper-anchor-width",`${be}px`),Ze.setProperty("--radix-popper-anchor-height",`${Ie}px`)}}),xe&&gD({element:xe,padding:v}),ID({arrowWidth:N,arrowHeight:W}),O&&V3({strategy:"referenceHidden"})]}),[ae,me]=D1(Se),Me=Ur(M);xo(()=>{G&&(Me==null||Me())},[G,Me]);const Pe=(a=he.arrow)===null||a===void 0?void 0:a.x,We=(o=he.arrow)===null||o===void 0?void 0:o.y,Ke=((i=he.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[Ne,Qe]=h.useState();return xo(()=>{oe&&Qe(window.getComputedStyle(oe).zIndex)},[oe]),h.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:G?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(l=he.transformOrigin)===null||l===void 0?void 0:l.x,(u=he.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},h.createElement(wD,{scope:m,placedSide:ae,onArrowChange:Q,arrowX:Pe,arrowY:We,shouldHideArrow:Ke},h.createElement(St.div,we({"data-side":ae,"data-align":me},z,{ref:ge,style:{...z.style,animation:G?void 0:"none",opacity:(c=he.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),SD="PopperArrow",AD={top:"bottom",right:"left",bottom:"top",left:"right"},FD=h.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,o=ED(SD,n),i=AD[o.placedSide];return h.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},h.createElement(vD,we({},a,{ref:r,style:{...a.style,display:"block"}})))});function jD(e){return e!==null}const ID=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,o,i;const{placement:l,rects:u,middlewareData:c}=t,p=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,x=p?0:e.arrowWidth,C=p?0:e.arrowHeight,[E,v]=D1(l),A={start:"0%",center:"50%",end:"100%"}[v],S=((n=(a=c.arrow)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)+x/2,j=((o=(i=c.arrow)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0)+C/2;let O="",L="";return E==="bottom"?(O=p?A:`${S}px`,L=`${-C}px`):E==="top"?(O=p?A:`${S}px`,L=`${u.floating.height+C}px`):E==="right"?(O=`${-C}px`,L=p?A:`${j}px`):E==="left"&&(O=`${u.floating.width+C}px`,L=p?A:`${j}px`),{data:{x:O,y:L}}}});function D1(e){const[t,r="center"]=e.split("-");return[t,r]}const Yc=xD,Zh=CD,Uh=DD,TD=FD,Jc=h.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...a}=e;return n?Qo.createPortal(h.createElement(St.div,we({},a,{ref:t})),n):null});function kD(e,t){return h.useReducer((r,n)=>{const a=t[r][n];return a??r},e)}const sn=e=>{const{present:t,children:r}=e,n=BD(t),a=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),o=Kt(n.ref,a.ref);return typeof r=="function"||n.isPresent?h.cloneElement(a,{ref:o}):null};sn.displayName="Presence";function BD(e){const[t,r]=h.useState(),n=h.useRef({}),a=h.useRef(e),o=h.useRef("none"),i=e?"mounted":"unmounted",[l,u]=kD(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=Qc(n.current);o.current=l==="mounted"?c:"none"},[l]),xo(()=>{const c=n.current,m=a.current;if(m!==e){const x=o.current,C=Qc(c);e?u("MOUNT"):C==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(m&&x!==C?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),xo(()=>{if(t){const c=p=>{const C=Qc(n.current).includes(p.animationName);p.target===t&&C&&Qo.flushSync(()=>u("ANIMATION_END"))},m=p=>{p.target===t&&(o.current=Qc(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Qc(e){return(e==null?void 0:e.animationName)||"none"}const Xh="rovingFocusGroup.onEntryFocus",PD={bubbles:!1,cancelable:!0},Yh="RovingFocusGroup",[Jh,S1,OD]=Gc(Yh),[ND,Kc]=Dn(Yh,[OD]),[MD,RD]=ND(Yh),$D=h.forwardRef((e,t)=>h.createElement(Jh.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Jh.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(LD,we({},e,{ref:t}))))),LD=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...m}=e,p=h.useRef(null),x=Kt(t,p),C=Zc(o),[E=null,v]=Rn({prop:i,defaultProp:l,onChange:u}),[A,S]=h.useState(!1),j=Ur(c),O=S1(r),L=h.useRef(!1),[M,z]=h.useState(0);return h.useEffect(()=>{const H=p.current;if(H)return H.addEventListener(Xh,j),()=>H.removeEventListener(Xh,j)},[j]),h.createElement(MD,{scope:r,orientation:n,dir:C,loop:a,currentTabStopId:E,onItemFocus:h.useCallback(H=>v(H),[v]),onItemShiftTab:h.useCallback(()=>S(!0),[]),onFocusableItemAdd:h.useCallback(()=>z(H=>H+1),[]),onFocusableItemRemove:h.useCallback(()=>z(H=>H-1),[])},h.createElement(St.div,we({tabIndex:A||M===0?-1:0,"data-orientation":n},m,{ref:x,style:{outline:"none",...e.style},onMouseDown:at(e.onMouseDown,()=>{L.current=!0}),onFocus:at(e.onFocus,H=>{const oe=!L.current;if(H.target===H.currentTarget&&oe&&!A){const J=new CustomEvent(Xh,PD);if(H.currentTarget.dispatchEvent(J),!J.defaultPrevented){const ge=O().filter(W=>W.focusable),xe=ge.find(W=>W.active),Q=ge.find(W=>W.id===E),N=[xe,Q,...ge].filter(Boolean).map(W=>W.ref.current);A1(N)}}L.current=!1}),onBlur:at(e.onBlur,()=>S(!1))})))}),_D="RovingFocusGroupItem",WD=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o,...i}=e,l=Sn(),u=o||l,c=RD(_D,r),m=c.currentTabStopId===u,p=S1(r),{onFocusableItemAdd:x,onFocusableItemRemove:C}=c;return h.useEffect(()=>{if(n)return x(),()=>C()},[n,x,C]),h.createElement(Jh.ItemSlot,{scope:r,id:u,focusable:n,active:a},h.createElement(St.span,we({tabIndex:m?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:at(e.onMouseDown,E=>{n?c.onItemFocus(u):E.preventDefault()}),onFocus:at(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:at(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){c.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const v=zD(E,c.orientation,c.dir);if(v!==void 0){E.preventDefault();let S=p().filter(j=>j.focusable).map(j=>j.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const j=S.indexOf(E.currentTarget);S=c.loop?GD(S,j+1):S.slice(j+1)}setTimeout(()=>A1(S))}})})))}),VD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function HD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function zD(e,t,r){const n=HD(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return VD[n]}function A1(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function GD(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const F1=$D,j1=WD;var ZD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ds=new WeakMap,qc=new WeakMap,ed={},Qh=0,I1=function(e){return e&&(e.host||I1(e.parentNode))},UD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=I1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},XD=function(e,t,r,n){var a=UD(t,Array.isArray(e)?e:[e]);ed[r]||(ed[r]=new WeakMap);var o=ed[r],i=[],l=new Set,u=new Set(a),c=function(p){!p||l.has(p)||(l.add(p),c(p.parentNode))};a.forEach(c);var m=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(x){if(l.has(x))m(x);else{var C=x.getAttribute(n),E=C!==null&&C!=="false",v=(ds.get(x)||0)+1,A=(o.get(x)||0)+1;ds.set(x,v),o.set(x,A),i.push(x),v===1&&E&&qc.set(x,!0),A===1&&x.setAttribute(r,"true"),E||x.setAttribute(n,"true")}})};return m(t),l.clear(),Qh++,function(){i.forEach(function(p){var x=ds.get(p)-1,C=o.get(p)-1;ds.set(p,x),o.set(p,C),x||(qc.has(p)||p.removeAttribute(n),qc.delete(p)),C||p.removeAttribute(r)}),Qh--,Qh||(ds=new WeakMap,ds=new WeakMap,qc=new WeakMap,ed={})}},Kh=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||ZD(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),XD(n,a,r,"aria-hidden")):function(){return null}},ya=function(){return ya=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ya.apply(this,arguments)};function T1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function fs(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function l(m){try{c(n.next(m))}catch(p){i(p)}}function u(m){try{c(n.throw(m))}catch(p){i(p)}}function c(m){m.done?o(m.value):a(m.value).then(l,u)}c((n=n.apply(e,t||[])).next())})}function hs(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(m){return u([c,m])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(r=0)),r;)try{if(n=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(m){c=[6,m],a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function YD(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function JD(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(YD(arguments[t]));return e}function QD(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var td="right-scroll-bar-position",rd="width-before-scroll-bar",KD="with-scroll-bars-hidden",qD="--removed-body-scroll-bar-size";function eS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tS(e,t){var r=h.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}function rS(e,t){return tS(t||null,function(r){return e.forEach(function(n){return eS(n,r)})})}function nS(e){return e}function aS(e,t){t===void 0&&(t=nS);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(l){return o(l)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(o),i=r}var u=function(){var m=i;i=[],m.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(m){i.push(m),c()},filter:function(m){return i=i.filter(m),r}}}};return a}function oS(e){e===void 0&&(e={});var t=aS(null);return t.options=ya({async:!0,ssr:!1},e),t}var k1=function(e){var t=e.sideCar,r=T1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return je.createElement(n,ya({},r))};k1.isSideCarExport=!0;function iS(e,t){return e.useMedium(t),k1}var B1=oS(),qh=function(){},nd=je.forwardRef(function(e,t){var r=je.useRef(null),n=je.useState({onScrollCapture:qh,onWheelCapture:qh,onTouchMoveCapture:qh}),a=n[0],o=n[1],i=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,m=e.enabled,p=e.shards,x=e.sideCar,C=e.noIsolation,E=e.inert,v=e.allowPinchZoom,A=e.as,S=A===void 0?"div":A,j=T1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=x,L=rS([r,t]),M=ya(ya({},j),a);return je.createElement(je.Fragment,null,m&&je.createElement(O,{sideCar:B1,removeScrollBar:c,shards:p,noIsolation:C,inert:E,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),i?je.cloneElement(je.Children.only(l),ya(ya({},M),{ref:L})):je.createElement(S,ya({},M,{className:u,ref:L}),l))});nd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nd.classNames={fullWidth:rd,zeroRight:td};var P1,sS=function(){if(P1)return P1;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sS();return t&&e.setAttribute("nonce",t),e}function uS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dS=function(){var e=0,t=null;return{add:function(r){e==0&&(t=lS())&&(uS(t,r),cS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fS=function(){var e=dS();return function(t,r){je.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},O1=function(){var e=fS(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},hS={left:0,top:0,right:0,gap:0},ep=function(e){return parseInt(e||"",10)||0},pS=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[ep(r),ep(n),ep(a)]},gS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hS;var t=pS(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},mS=O1(),vS=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
|
|
58
|
+
.`.concat(KD,` {
|
|
59
|
+
overflow: hidden `).concat(n,`;
|
|
60
|
+
padding-right: `).concat(l,"px ").concat(n,`;
|
|
61
|
+
}
|
|
62
|
+
body {
|
|
63
|
+
overflow: hidden `).concat(n,`;
|
|
64
|
+
overscroll-behavior: contain;
|
|
65
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
66
|
+
padding-left: `.concat(a,`px;
|
|
67
|
+
padding-top: `).concat(o,`px;
|
|
68
|
+
padding-right: `).concat(i,`px;
|
|
69
|
+
margin-left:0;
|
|
70
|
+
margin-top:0;
|
|
71
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
72
|
+
`),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.`).concat(td,` {
|
|
76
|
+
right: `).concat(l,"px ").concat(n,`;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.`).concat(rd,` {
|
|
80
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.`).concat(td," .").concat(td,` {
|
|
84
|
+
right: 0 `).concat(n,`;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.`).concat(rd," .").concat(rd,` {
|
|
88
|
+
margin-right: 0 `).concat(n,`;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
body {
|
|
92
|
+
`).concat(qD,": ").concat(l,`px;
|
|
93
|
+
}
|
|
94
|
+
`)},bS=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n,o=je.useMemo(function(){return gS(a)},[a]);return je.createElement(mS,{styles:vS(o,!t,a,r?"":"!important")})},tp=!1;if(typeof window<"u")try{var ad=Object.defineProperty({},"passive",{get:function(){return tp=!0,!0}});window.addEventListener("test",ad,ad),window.removeEventListener("test",ad,ad)}catch{tp=!1}var ps=tp?{passive:!1}:!1,xS=function(e){return e.tagName==="TEXTAREA"},N1=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!xS(e)&&r[t]==="visible")},yS=function(e){return N1(e,"overflowY")},CS=function(e){return N1(e,"overflowX")},M1=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=R1(e,r);if(n){var a=$1(e,r),o=a[1],i=a[2];if(o>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},wS=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},ES=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},R1=function(e,t){return e==="v"?yS(t):CS(t)},$1=function(e,t){return e==="v"?wS(t):ES(t)},DS=function(e,t){return e==="h"&&t==="rtl"?-1:1},SS=function(e,t,r,n,a){var o=DS(e,window.getComputedStyle(t).direction),i=o*n,l=r.target,u=t.contains(l),c=!1,m=i>0,p=0,x=0;do{var C=$1(e,l),E=C[0],v=C[1],A=C[2],S=v-A-o*E;(E||S)&&R1(e,l)&&(p+=S,x+=E),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(m&&(a&&p===0||!a&&i>p)||!m&&(a&&x===0||!a&&-i>x))&&(c=!0),c},od=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L1=function(e){return[e.deltaX,e.deltaY]},_1=function(e){return e&&"current"in e?e.current:e},AS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FS=function(e){return`
|
|
95
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
96
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
97
|
+
`)},jS=0,gs=[];function IS(e){var t=je.useRef([]),r=je.useRef([0,0]),n=je.useRef(),a=je.useState(jS++)[0],o=je.useState(function(){return O1()})[0],i=je.useRef(e);je.useEffect(function(){i.current=e},[e]),je.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=QD([e.lockRef.current],(e.shards||[]).map(_1),!0).filter(Boolean);return v.forEach(function(A){return A.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=je.useCallback(function(v,A){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var S=od(v),j=r.current,O="deltaX"in v?v.deltaX:j[0]-S[0],L="deltaY"in v?v.deltaY:j[1]-S[1],M,z=v.target,H=Math.abs(O)>Math.abs(L)?"h":"v";if("touches"in v&&H==="h"&&z.type==="range")return!1;var oe=M1(H,z);if(!oe)return!0;if(oe?M=H:(M=H==="v"?"h":"v",oe=M1(H,z)),!oe)return!1;if(!n.current&&"changedTouches"in v&&(O||L)&&(n.current=M),!M)return!0;var J=n.current||M;return SS(J,A,v,J==="h"?O:L,!0)},[]),u=je.useCallback(function(v){var A=v;if(!(!gs.length||gs[gs.length-1]!==o)){var S="deltaY"in A?L1(A):od(A),j=t.current.filter(function(M){return M.name===A.type&&M.target===A.target&&AS(M.delta,S)})[0];if(j&&j.should){A.cancelable&&A.preventDefault();return}if(!j){var O=(i.current.shards||[]).map(_1).filter(Boolean).filter(function(M){return M.contains(A.target)}),L=O.length>0?l(A,O[0]):!i.current.noIsolation;L&&A.cancelable&&A.preventDefault()}}},[]),c=je.useCallback(function(v,A,S,j){var O={name:v,delta:A,target:S,should:j};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(L){return L!==O})},1)},[]),m=je.useCallback(function(v){r.current=od(v),n.current=void 0},[]),p=je.useCallback(function(v){c(v.type,L1(v),v.target,l(v,e.lockRef.current))},[]),x=je.useCallback(function(v){c(v.type,od(v),v.target,l(v,e.lockRef.current))},[]);je.useEffect(function(){return gs.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:x}),document.addEventListener("wheel",u,ps),document.addEventListener("touchmove",u,ps),document.addEventListener("touchstart",m,ps),function(){gs=gs.filter(function(v){return v!==o}),document.removeEventListener("wheel",u,ps),document.removeEventListener("touchmove",u,ps),document.removeEventListener("touchstart",m,ps)}},[]);var C=e.removeScrollBar,E=e.inert;return je.createElement(je.Fragment,null,E?je.createElement(o,{styles:FS(a)}):null,C?je.createElement(bS,{gapMode:"margin"}):null)}const TS=iS(B1,IS);var W1=je.forwardRef(function(e,t){return je.createElement(nd,ya({},e,{ref:t,sideCar:TS}))});W1.classNames=nd.classNames;const rp=W1,np=["Enter"," "],kS=["ArrowDown","PageUp","Home"],V1=["ArrowUp","PageDown","End"],BS=[...kS,...V1],PS={ltr:[...np,"ArrowRight"],rtl:[...np,"ArrowLeft"]},OS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},id="Menu",[Gl,NS,MS]=Gc(id),[oi,H1]=Dn(id,[MS,cs,Kc]),sd=cs(),z1=Kc(),[G1,Co]=oi(id),[RS,Zl]=oi(id),$S=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:o,modal:i=!0}=e,l=sd(t),[u,c]=h.useState(null),m=h.useRef(!1),p=Ur(o),x=Zc(a);return h.useEffect(()=>{const C=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),h.createElement(Yc,l,h.createElement(G1,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:c},h.createElement(RS,{scope:t,onClose:h.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:x,modal:i},n)))},Z1=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=sd(r);return h.createElement(Zh,we({},a,n,{ref:t}))}),U1="MenuPortal",[LS,X1]=oi(U1,{forceMount:void 0}),_S=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=Co(U1,t);return h.createElement(LS,{scope:t,forceMount:r},h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},n)))},ea="MenuContent",[WS,ap]=oi(ea),VS=h.forwardRef((e,t)=>{const r=X1(ea,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=Co(ea,e.__scopeMenu),i=Zl(ea,e.__scopeMenu);return h.createElement(Gl.Provider,{scope:e.__scopeMenu},h.createElement(sn,{present:n||o.open},h.createElement(Gl.Slot,{scope:e.__scopeMenu},i.modal?h.createElement(HS,we({},a,{ref:t})):h.createElement(zS,we({},a,{ref:t})))))}),HS=h.forwardRef((e,t)=>{const r=Co(ea,e.__scopeMenu),n=h.useRef(null),a=Kt(t,n);return h.useEffect(()=>{const o=n.current;if(o)return Kh(o)},[]),h.createElement(op,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:at(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),zS=h.forwardRef((e,t)=>{const r=Co(ea,e.__scopeMenu);return h.createElement(op,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),op=h.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:x,onDismiss:C,disableOutsideScroll:E,...v}=e,A=Co(ea,r),S=Zl(ea,r),j=sd(r),O=z1(r),L=NS(r),[M,z]=h.useState(null),H=h.useRef(null),oe=Kt(t,H,A.onContentChange),J=h.useRef(0),ge=h.useRef(""),xe=h.useRef(0),Q=h.useRef(null),ce=h.useRef("right"),N=h.useRef(0),W=E?rp:h.Fragment,ee=E?{as:Ko,allowPinchZoom:!0}:void 0,de=te=>{var K,se;const fe=ge.current+te,Se=L().filter(Pe=>!Pe.disabled),G=document.activeElement,he=(K=Se.find(Pe=>Pe.ref.current===G))===null||K===void 0?void 0:K.textValue,ae=Se.map(Pe=>Pe.textValue),me=sA(ae,fe,he),Me=(se=Se.find(Pe=>Pe.textValue===me))===null||se===void 0?void 0:se.ref.current;(function Pe(We){ge.current=We,window.clearTimeout(J.current),We!==""&&(J.current=window.setTimeout(()=>Pe(""),1e3))})(fe),Me&&setTimeout(()=>Me.focus())};h.useEffect(()=>()=>window.clearTimeout(J.current),[]),Vh();const ne=h.useCallback(te=>{var K,se;return ce.current===((K=Q.current)===null||K===void 0?void 0:K.side)&&uA(te,(se=Q.current)===null||se===void 0?void 0:se.area)},[]);return h.createElement(WS,{scope:r,searchRef:ge,onItemEnter:h.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),onItemLeave:h.useCallback(te=>{var K;ne(te)||((K=H.current)===null||K===void 0||K.focus(),z(null))},[ne]),onTriggerLeave:h.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),pointerGraceTimerRef:xe,onPointerGraceIntentChange:h.useCallback(te=>{Q.current=te},[])},h.createElement(W,ee,h.createElement(Gh,{asChild:!0,trapped:a,onMountAutoFocus:at(o,te=>{var K;te.preventDefault(),(K=H.current)===null||K===void 0||K.focus()}),onUnmountAutoFocus:i},h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:x,onDismiss:C},h.createElement(F1,we({asChild:!0},O,{dir:S.dir,orientation:"vertical",loop:n,currentTabStopId:M,onCurrentTabStopIdChange:z,onEntryFocus:at(u,te=>{S.isUsingKeyboardRef.current||te.preventDefault()})}),h.createElement(Uh,we({role:"menu","aria-orientation":"vertical","data-state":tb(A.open),"data-radix-menu-content":"",dir:S.dir},j,v,{ref:oe,style:{outline:"none",...v.style},onKeyDown:at(v.onKeyDown,te=>{const se=te.target.closest("[data-radix-menu-content]")===te.currentTarget,fe=te.ctrlKey||te.altKey||te.metaKey,Se=te.key.length===1;se&&(te.key==="Tab"&&te.preventDefault(),!fe&&Se&&de(te.key));const G=H.current;if(te.target!==G||!BS.includes(te.key))return;te.preventDefault();const ae=L().filter(me=>!me.disabled).map(me=>me.ref.current);V1.includes(te.key)&&ae.reverse(),oA(ae)}),onBlur:at(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(J.current),ge.current="")}),onPointerMove:at(e.onPointerMove,Ul(te=>{const K=te.target,se=N.current!==te.clientX;if(te.currentTarget.contains(K)&&se){const fe=te.clientX>N.current?"right":"left";ce.current=fe,N.current=te.clientX}}))})))))))}),GS=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),ip="MenuItem",Y1="menu.itemSelect",sp=h.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,o=h.useRef(null),i=Zl(ip,e.__scopeMenu),l=ap(ip,e.__scopeMenu),u=Kt(t,o),c=h.useRef(!1),m=()=>{const p=o.current;if(!r&&p){const x=new CustomEvent(Y1,{bubbles:!0,cancelable:!0});p.addEventListener(Y1,C=>n==null?void 0:n(C),{once:!0}),Jf(p,x),x.defaultPrevented?c.current=!1:i.onClose()}};return h.createElement(J1,we({},a,{ref:u,disabled:r,onClick:at(e.onClick,m),onPointerDown:p=>{var x;(x=e.onPointerDown)===null||x===void 0||x.call(e,p),c.current=!0},onPointerUp:at(e.onPointerUp,p=>{var x;c.current||(x=p.currentTarget)===null||x===void 0||x.click()}),onKeyDown:at(e.onKeyDown,p=>{const x=l.searchRef.current!=="";r||x&&p.key===" "||np.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})}))}),J1=h.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...o}=e,i=ap(ip,r),l=z1(r),u=h.useRef(null),c=Kt(t,u),[m,p]=h.useState(!1),[x,C]=h.useState("");return h.useEffect(()=>{const E=u.current;if(E){var v;C(((v=E.textContent)!==null&&v!==void 0?v:"").trim())}},[o.children]),h.createElement(Gl.ItemSlot,{scope:r,disabled:n,textValue:a??x},h.createElement(j1,we({asChild:!0},l,{focusable:!n}),h.createElement(St.div,we({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:c,onPointerMove:at(e.onPointerMove,Ul(E=>{n?i.onItemLeave(E):(i.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus())})),onPointerLeave:at(e.onPointerLeave,Ul(E=>i.onItemLeave(E))),onFocus:at(e.onFocus,()=>p(!0)),onBlur:at(e.onBlur,()=>p(!1))}))))}),ZS=h.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return h.createElement(K1,{scope:e.__scopeMenu,checked:r},h.createElement(sp,we({role:"menuitemcheckbox","aria-checked":ud(r)?"mixed":r},a,{ref:t,"data-state":lp(r),onSelect:at(a.onSelect,()=>n==null?void 0:n(ud(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),US="MenuRadioGroup",[EN,XS]=oi(US,{value:void 0,onValueChange:()=>{}}),YS="MenuRadioItem",JS=h.forwardRef((e,t)=>{const{value:r,...n}=e,a=XS(YS,e.__scopeMenu),o=r===a.value;return h.createElement(K1,{scope:e.__scopeMenu,checked:o},h.createElement(sp,we({role:"menuitemradio","aria-checked":o},n,{ref:t,"data-state":lp(o),onSelect:at(n.onSelect,()=>{var i;return(i=a.onValueChange)===null||i===void 0?void 0:i.call(a,r)},{checkForDefaultPrevented:!1})})))}),Q1="MenuItemIndicator",[K1,QS]=oi(Q1,{checked:!1}),KS=h.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,o=QS(Q1,r);return h.createElement(sn,{present:n||ud(o.checked)||o.checked===!0},h.createElement(St.span,we({},a,{ref:t,"data-state":lp(o.checked)})))}),qS=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return h.createElement(St.div,we({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))}),q1="MenuSub",[eA,eb]=oi(q1),tA=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,o=Co(q1,t),i=sd(t),[l,u]=h.useState(null),[c,m]=h.useState(null),p=Ur(a);return h.useEffect(()=>(o.open===!1&&p(!1),()=>p(!1)),[o.open,p]),h.createElement(Yc,i,h.createElement(G1,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:m},h.createElement(eA,{scope:t,contentId:Sn(),triggerId:Sn(),trigger:l,onTriggerChange:u},r)))},ld="MenuSubTrigger",rA=h.forwardRef((e,t)=>{const r=Co(ld,e.__scopeMenu),n=Zl(ld,e.__scopeMenu),a=eb(ld,e.__scopeMenu),o=ap(ld,e.__scopeMenu),i=h.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=o,c={__scopeMenu:e.__scopeMenu},m=h.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return h.useEffect(()=>m,[m]),h.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),u(null)}},[l,u]),h.createElement(Z1,we({asChild:!0},c),h.createElement(J1,we({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":tb(r.open)},e,{ref:xc(t,a.onTriggerChange),onClick:p=>{var x;(x=e.onClick)===null||x===void 0||x.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:at(e.onPointerMove,Ul(p=>{o.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:at(e.onPointerLeave,Ul(p=>{var x;m();const C=(x=r.content)===null||x===void 0?void 0:x.getBoundingClientRect();if(C){var E;const v=(E=r.content)===null||E===void 0?void 0:E.dataset.side,A=v==="right",S=A?-5:5,j=C[A?"left":"right"],O=C[A?"right":"left"];o.onPointerGraceIntentChange({area:[{x:p.clientX+S,y:p.clientY},{x:j,y:C.top},{x:O,y:C.top},{x:O,y:C.bottom},{x:j,y:C.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(p),p.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:at(e.onKeyDown,p=>{const x=o.searchRef.current!=="";if(!(e.disabled||x&&p.key===" ")&&PS[n.dir].includes(p.key)){var C;r.onOpenChange(!0),(C=r.content)===null||C===void 0||C.focus(),p.preventDefault()}})})))}),nA="MenuSubContent",aA=h.forwardRef((e,t)=>{const r=X1(ea,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=Co(ea,e.__scopeMenu),i=Zl(ea,e.__scopeMenu),l=eb(nA,e.__scopeMenu),u=h.useRef(null),c=Kt(t,u);return h.createElement(Gl.Provider,{scope:e.__scopeMenu},h.createElement(sn,{present:n||o.open},h.createElement(Gl.Slot,{scope:e.__scopeMenu},h.createElement(op,we({id:l.contentId,"aria-labelledby":l.triggerId},a,{ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;i.isUsingKeyboardRef.current&&((p=u.current)===null||p===void 0||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:at(e.onFocusOutside,m=>{m.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:at(e.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:at(e.onKeyDown,m=>{const p=m.currentTarget.contains(m.target),x=OS[i.dir].includes(m.key);if(p&&x){var C;o.onOpenChange(!1),(C=l.trigger)===null||C===void 0||C.focus(),m.preventDefault()}})})))))});function tb(e){return e?"open":"closed"}function ud(e){return e==="indeterminate"}function lp(e){return ud(e)?"indeterminate":e?"checked":"unchecked"}function oA(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function iA(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function sA(e,t,r){const a=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=iA(e,Math.max(o,0));a.length===1&&(i=i.filter(c=>c!==r));const u=i.find(c=>c.toLowerCase().startsWith(a.toLowerCase()));return u!==r?u:void 0}function lA(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o].x,u=t[o].y,c=t[i].x,m=t[i].y;u>n!=m>n&&r<(c-l)*(n-u)/(m-u)+l&&(a=!a)}return a}function uA(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return lA(r,t)}function Ul(e){return t=>t.pointerType==="mouse"?e(t):void 0}const cA=$S,dA=Z1,fA=_S,hA=VS,pA=GS,gA=sp,mA=ZS,vA=JS,bA=KS,xA=qS,yA=tA,CA=rA,wA=aA,rb="DropdownMenu",[EA,DN]=Dn(rb,[H1]),An=H1(),[DA,nb]=EA(rb),SA=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,u=An(t),c=h.useRef(null),[m=!1,p]=Rn({prop:a,defaultProp:o,onChange:i});return h.createElement(DA,{scope:t,triggerId:Sn(),triggerRef:c,contentId:Sn(),open:m,onOpenChange:p,onOpenToggle:h.useCallback(()=>p(x=>!x),[p]),modal:l},h.createElement(cA,we({},u,{open:m,onOpenChange:p,dir:n,modal:l}),r))},AA="DropdownMenuTrigger",FA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=nb(AA,r),i=An(r);return h.createElement(dA,we({asChild:!0},i),h.createElement(St.button,we({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},a,{ref:xc(t,o.triggerRef),onPointerDown:at(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault())}),onKeyDown:at(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&o.onOpenToggle(),l.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),jA=e=>{const{__scopeDropdownMenu:t,...r}=e,n=An(t);return h.createElement(fA,we({},n,r))},IA="DropdownMenuContent",TA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=nb(IA,r),o=An(r),i=h.useRef(!1);return h.createElement(hA,we({id:a.contentId,"aria-labelledby":a.triggerId},o,n,{ref:t,onCloseAutoFocus:at(e.onCloseAutoFocus,l=>{var u;i.current||(u=a.triggerRef.current)===null||u===void 0||u.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:at(e.onInteractOutside,l=>{const u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,m=u.button===2||c;(!a.modal||m)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),kA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(pA,we({},a,n,{ref:t}))}),BA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(gA,we({},a,n,{ref:t}))}),PA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(mA,we({},a,n,{ref:t}))}),OA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(vA,we({},a,n,{ref:t}))}),NA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(bA,we({},a,n,{ref:t}))}),MA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(xA,we({},a,n,{ref:t}))}),RA=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,i=An(t),[l=!1,u]=Rn({prop:n,defaultProp:o,onChange:a});return h.createElement(yA,we({},i,{open:l,onOpenChange:u}),r)},$A=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(CA,we({},a,n,{ref:t}))}),LA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(wA,we({},a,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),_A=SA,WA=FA,ab=jA,ob=TA,ib=kA,sb=BA,lb=PA,ub=OA,cb=NA,db=MA,VA=RA,fb=$A,hb=LA,HA=_A,zA=WA,pb=ab,GA=VA,gb=je.forwardRef(({className:e,inset:t,children:r,...n},a)=>s.jsxs(fb,{ref:a,className:Ve("flex cursor-default select-none items-center justify-between rounded-sm px-2 py-3 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[s.jsx("div",{className:"flex flex-row items-center gap-2",children:r})," ",s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",className:Ve(n.dir==="rtl"?"rotate-180":""),children:s.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]}));gb.displayName=fb.displayName;const mb=je.forwardRef(({className:e,...t},r)=>s.jsx(hb,{ref:r,className:Ve("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));mb.displayName=hb.displayName;const vb=je.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(ab,{children:s.jsx(ob,{ref:n,sideOffset:t,className:Ve("z-50 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));vb.displayName=ob.displayName;const up=je.forwardRef(({className:e,inset:t,...r},n)=>s.jsxs(sb,{disabled:r.disabled,ref:n,className:Ve("relative flex cursor-pointer select-none items-center justify-between rounded-sm text-sm outline-none transition-colors focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r,children:[s.jsx("div",{className:"flex flex-row items-center gap-2 ",children:r.children}),r.end&&r.end]}));up.displayName=sb.displayName;const ZA=je.forwardRef(({className:e,children:t,checked:r,...n},a)=>s.jsxs(lb,{ref:a,className:Ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsxs(cb,{children:[s.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})," "]})}),t]}));ZA.displayName=lb.displayName;const UA=je.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(ub,{ref:n,className:Ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(cb,{children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24","aria-label":"Circle",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:s.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));UA.displayName=ub.displayName;const bb=je.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(ib,{ref:n,className:Ve("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));bb.displayName=ib.displayName;const xb=je.forwardRef(({className:e,...t},r)=>s.jsx(db,{ref:r,className:Ve("-mx-1 my-1 h-px bg-muted",e),...t}));xb.displayName=db.displayName;const Xl=({trigger:e,items:t,direction:r,onItemSelect:n,sideOffset:a,side:o,className:i,triggerClassname:l,align:u,alignOffset:c,selectCallback:m,size:p="default",width:x="default"})=>{const C={default:"min-w-[8rem]",sm:"w-fit",lg:"w-[200px]",parent:"ddm-w-parent"},E={default:"px-2 py-3 ",sm:"text-xs px-1.5 py-1.5"};return s.jsxs(HA,{dir:r,children:[s.jsx(zA,{asChild:!0,className:l,children:e}),s.jsx(pb,{children:s.jsx(vb,{side:o,sideOffset:a,className:Ve(i,C[x],"flex flex-col gap-2"),align:u,alignOffset:c,children:t.map((v,A)=>v.type==="separator"?s.jsx(xb,{},A):v.type==="label"?s.jsx(bb,{children:v.label},A):v.subitems?s.jsxs(GA,{children:[s.jsxs(gb,{className:Ve(E[p]),dir:r,children:[v.icon&&v.icon,v.label&&v.label]}),s.jsx(pb,{children:s.jsx(mb,{children:v.subitems.map((S,j)=>s.jsxs(up,{className:Ve(E[p],!v.icon&&!v.label?"px-0 py-0 focus:bg-transparent":"focus:bg-accent"),disabled:S.disabled,onSelect:()=>{S.action(),m&&m(S.value)},children:[S.icon&&S.icon,S.label&&S.label]},j))})})]},A):s.jsxs(up,{disabled:v.disabled,onSelect:S=>{v.presist&&S.preventDefault(),v.action&&v.action(),m&&m(v.value)},end:v.end,className:Ve(E[p],!v.icon&&!v.label?"px-0 py-0 focus:bg-transparent ":"focus:bg-accent ",v.presist&&"focus:bg-transparent"),children:[v.icon&&v.icon,v.label&&v.label]},A))})})]})},yb=()=>s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})}),Cb=({size:e="normal",bodyColor:t="white",headerColor:r="gray-200",borders:n="all",highlightFirst:a=!1,direction:o="ltr",bordersWidth:i="1",pagination:l=!0,...u})=>{var xe,Q,ce,N,W,ee,de,ne;const[c,m]=h.useState(10),[p,x]=h.useState(null),[C,E]=h.useState(1);h.useState(null);const[v,A]=h.useState(u.rows),[S,j]=h.useState(null),[O,L]=h.useState(null),{slice:M,range:z}=Q9(u.rows,C,c,S,O);let H=o==="rtl",oe={normal:"py-3 px-6",small:"px-3 py-1"};const J=(te,K)=>{K&&(j(te),L(se=>se==="asc"?"desc":"asc"))},ge=()=>{(M==null?void 0:M.length)<1&&C!==1&&E(C-1),p&&E(p)};return h.useEffect(()=>{ge()},[M,C]),s.jsxs("div",{className:"relative flex flex-col gap-2 ",children:[u.isLoading?s.jsx(ri,{className:"h-[105px] w-full"}):s.jsx(s.Fragment,{children:s.jsxs("div",{className:`overflow-x-auto rounded bg-${r}`,children:[u.headerTools&&s.jsx("div",{className:"flex flex-row items-center justify-between gap-2 border bg-background px-2 py-2",children:u.headerTools}),s.jsxs("table",{className:$e("w-full rounded bg-muted text-left text-sm text-muted-foreground",`bg-${r}`),children:[s.jsx("thead",{className:$e("bg-muted text-xs uppercase text-muted-foreground ",n==="rows"||n==="all"||n==="inner"?"border-b ":""),children:s.jsxs("tr",{children:[u.columns.map((te,K)=>{if(!te.hidden)return s.jsxs("th",{onClick:()=>te.sortable&&J(K,te.sortable),scope:"col",colSpan:2,className:$e(te.sortable?"cursor-pointer hover:bg-muted-foreground/10":"",oe[e],K!==0&&(n==="cols"||n==="all"||n==="inner")?`border-r border-r-[${i}px] border-l border-l-[${i}px]`:""),children:[te.value,S===K&&s.jsx("span",{children:O==="asc"?" ▲":" ▼"})]},K)}),u.actions?s.jsx("th",{scope:"col",className:$e(oe[e],"w-[calc(1%)] text-center"),children:((xe=u.texts)==null?void 0:xe.actions)??"Actions"}):null]})}),s.jsx("tbody",{className:t&&u.rows?`bg-${t}`:"bg-transparent",children:v?M==null?void 0:M.map((te,K)=>{let se=K==(M==null?void 0:M.length)-1;return s.jsxs("tr",{className:$e(" text-mute-foreground border bg-background",u.clickable?"hover:bg-gray-100":"",!se&&(n==="all"||n==="rows"||n==="inner")?`border-b border-b-[${i}px]`:""),children:[te==null?void 0:te.map((fe,Se)=>{let G=Se===0,he=Se===(te==null?void 0:te.length)-1,ae=H&&se&&he&&!u.actions,me=H&&se&&G,Me=!H&&se&&G,Pe=!H&&se&&he&&!u.actions;if(!fe.hidden)return s.jsxs("td",{colSpan:2,className:$e(oe[e],a&&G?"font-bold":"font-normal",me?"rounded-bl-none rounded-br":ae||Me?"rounded-bl rounded-br-none":Pe?"rounded-bl-none rounded-br":"",!G&&!he&&(n==="cols"||n==="inner"||n==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:!G&&u.actions&&(n==="cols"||n==="inner"||n==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:""),children:[fe.value," ",fe.suffix&&fe.suffix]},Se)}),u.actions&&s.jsx("td",{align:H?"right":"left",className:Ve(H&&se&&"rounded-bl rounded-br-none",!H&&se&&"rounded-bl-none rounded-br"),colSpan:1,children:s.jsx("div",{className:"flex items-center justify-center",children:s.jsx(Xl,{width:u.actionsWidth,size:u.actionsSize,direction:o,side:"right",items:u.actions,selectCallback:fe=>u.handleActionClick(fe,te),trigger:s.jsx("div",{className:"flex w-fit cursor-pointer items-center justify-center rounded p-2 transition-all hover:bg-primary/20 ",children:s.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})})})]},K)}):s.jsx("tr",{className:"bg-transparent",children:s.jsx("td",{colSpan:20,children:s.jsx("div",{className:$e("w-full rounded-b border p-5 text-center","bg-background"),children:((Q=u.texts)==null?void 0:Q.noData)??"No Data"})})})})]})]})}),l&&s.jsxs("div",{className:"flex flex-row items-center justify-between ",children:[z.length>1?s.jsxs("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded ",children:[s.jsx("div",{className:Ve("flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"&&"rotate-0"),onClick:()=>C<=1?E(z.length):E(C-1),children:s.jsx(yb,{})}),s.jsxs("div",{className:"flex flex-row items-center overflow-clip rounded transition-all",children:[z.length>6&&z.map((te,K)=>{if(K<=0)return s.jsx("button",{className:$e("w-10 p-1 text-xs hover:bg-gray-200",C===te?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>E(te),children:te},K)}),(z==null?void 0:z.length)>6&&s.jsx("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:C!==0||C!==z.length-1?C:"...",value:C==1||C==z.length?"...":p||C,onChange:te=>x(parseInt(te.target.value)),onKeyDown:te=>{te.key==="Enter"&&(E(p),x(null))}}),(z==null?void 0:z.length)>6&&z.map((te,K)=>{if(K>=z.length-1)return s.jsx("button",{className:$e("w-10 p-1 text-xs hover:bg-gray-200",C===te?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>E(te),children:te},K)}),(z==null?void 0:z.length)<=6&&z.map((te,K)=>s.jsx("button",{className:$e("w-10 p-1 text-xs",C===te?"bg-primary text-primary-foreground ":"border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"?K===0?"rounded-r border-l-0":K===z.length-1?"rounded-l border-r-0":"":K===0?"rounded-l border-r-0":K===z.length-1?"rounded-r border-l-0":""),onClick:()=>E(te),children:te},K))]}),s.jsx("div",{onClick:()=>C>=z.length?E(1):E(C+1),className:Ve("flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"&&"rotate-180"),children:s.jsx(yb,{})})]}):s.jsx("div",{}),u.rows?s.jsxs("div",{className:"flex w-fit flex-row items-center gap-2 ",children:[s.jsxs("div",{className:"text-xs ",children:[u.rows.length," ",((ce=u.texts)==null?void 0:ce.items)??"Items"]}),s.jsxs("select",{value:c,className:"h-6 cursor-pointer rounded border bg-background px-2 text-xs",onChange:te=>{m(parseInt(te.target.value))},children:[s.jsxs("option",{value:10,style:{fontSize:10},children:["10 / ",((N=u.texts)==null?void 0:N.page)??"Page"]}),s.jsxs("option",{value:20,style:{fontSize:10},children:["20 / ",((W=u.texts)==null?void 0:W.page)??"Page"]}),s.jsxs("option",{value:30,style:{fontSize:10},children:["30 / ",((ee=u.texts)==null?void 0:ee.page)??"Page"]}),s.jsxs("option",{value:50,style:{fontSize:10},children:["50 / ",((de=u.texts)==null?void 0:de.page)??"Page"]}),s.jsxs("option",{value:100,style:{fontSize:10},children:["100 / ",((ne=u.texts)==null?void 0:ne.page)??"Page"]})]})]}):s.jsx("div",{})]})]})},XA=e=>s.jsx(Rt,{type:"search",...e}),YA=e=>{const[t,r]=h.useState(!1);return s.jsxs("div",{className:"h-fit w-full",children:[s.jsxs("button",{id:"accordion-collapse-heading-"+e.index,type:"button",className:$e(t?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:()=>r(!t),"data-accordion-target":"#accordion-collapse-body-"+e.index,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.index,children:[s.jsx("span",{children:e.title}),s.jsx("svg",{"data-accordion-icon":"",className:`h-6 w-6 ${t?"":"rotate-180"} shrink-0 transition-all`,fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),s.jsx("div",{id:"accordion-collapse-body-"+e.index,"aria-labelledby":"accordion-collapse-heading-"+e.index,className:$e(t?"invisible hidden h-0 p-0":"visible h-full","w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"),children:s.jsx("p",{className:"mb-2 text-gray-500 dark:text-gray-400",children:e.content})})]})},wb=[{country_label:"Saudi Arabia",code:"SA",unicode:"🇸🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"🇦🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"🇧🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"🇰🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"🇶🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"🇴🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"🇦🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"🇦🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"🇦🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"🇦🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"🇦🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"🇦🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"🇦🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"🇦🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"🇦🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"🇦🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"🇦🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"🇦🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"🇦🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"🇦🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"🇦🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"🇧🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"🇧🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"🇧🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"🇧🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"🇧🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"🇧🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"🇧🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"🇧🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"🇧🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"🇧🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"🇧🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"🇧🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"🇧🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"🇧🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"🇧🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"🇧🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"🇧🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"🇧🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"🇨🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"🇨🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"🇨🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"🇨🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"🇨🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"🇨🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"🇨🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"🇨🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"🇨🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"🇨🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"🇨🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"🇨🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"🇨🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"🇨🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"🇨🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"🇨🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"🇨🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"🇨🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"🇩🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"🇩🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"🇩🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"🇩🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"🇩🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"🇩🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"🇪🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"🇪🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"🇪🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"🇪🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"🇪🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"🇪🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"🇫🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"🇫🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"🇫🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"🇫🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"🇫🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"🇫🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"🇬🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"🇬🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"🇬🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"🇬🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"🇬🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"🇬🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"🇬🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"🇬🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"🇬🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"🇬🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"🇬🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"🇬🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"🇬🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"🇬🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"🇬🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"🇬🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"🇬🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"🇬🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"🇬🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"🇭🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"🇭🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"🇭🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"🇭🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"🇭🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"🇮🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"🇮🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"🇮🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"🇮🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"🇮🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"🇮🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"🇮🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"🇮🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"🇮🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"🇮🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"🇯🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"🇯🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"🇯🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"🇯🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"🇰🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"🇰🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"🇰🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"🇰🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"🇰🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"🇰🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"🇰🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"🇰🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"🇰🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"🇰🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"🇱🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"🇱🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"🇱🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"🇱🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"🇱🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"🇱🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"🇱🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"🇱🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"🇱🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"🇱🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"🇱🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"🇲🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"🇲🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"🇲🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"🇲🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"🇲🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"🇲🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"🇲🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"🇲🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"🇲🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"🇲🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"🇲🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"🇲🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"🇲🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"🇲🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"🇲🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"🇲🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"🇲🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"🇲🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"🇲🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"🇲🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"🇲🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"🇲🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"🇲🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"🇳🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"🇳🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"🇳🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"🇳🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"🇳🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"🇳🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"🇳🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"🇳🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"🇳🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"🇳🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"🇳🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"🇳🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"🇵🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"🇵🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"🇵🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"🇵🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"🇵🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"🇵🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"🇵🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"🇵🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"🇵🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"🇵🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"🇵🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"🇵🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"🇵🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"🇵🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"🇷🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"🇷🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"🇷🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"🇷🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"🇷🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"🇸🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"🇸🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"🇸🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"🇸🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"🇸🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"🇸🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"🇸🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"🇸🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"🇸🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"🇸🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"🇸🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"🇸🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"🇸🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"🇸🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"🇸🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"🇸🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"🇸🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"🇸🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"🇸🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"🇹🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"🇹🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"🇹🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"🇹🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"🇹🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"🇹🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"🇹🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"🇹🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"🇹🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"🇹🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"🇹🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"🇹🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"🇹🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"🇹🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"🇹🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"🇺🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"🇺🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"🇺🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"🇺🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"🇺🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"🇻🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"🇻🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"🇻🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"🇻🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"🇻🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"🇻🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"🇻🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"🇼🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"🇼🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"🇾🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"🇾🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"🇿🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"🇿🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"🇿🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}],JA=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsx("div",{className:"absolute z-50 w-[190px] rounded border bg-background",ref:a,...n,children:t}),QA=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsxs("div",{ref:a,className:"m-2 flex cursor-pointer flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...n,children:[s.jsxs("div",{className:"flex flex-row items-center justify-center gap-1",children:[s.jsx("img",{className:"h-8 w-8",src:o.data.image}),s.jsx("span",{className:"text-[10px]",children:o.data.country_label})]}),t]}),cd=e=>{const[t,r]=h.useState("+966");return s.jsxs("div",{className:"mb-3 flex flex-col",children:[e.label&&s.jsx("label",{className:"mb-2 block text-sm font-medium",children:e.label}),s.jsxs("div",{dir:"ltr",className:"flex flex-row ",children:[s.jsx(e1,{classNames:{control:()=>"w-[64px] text-right pr-2 cursor-pointer z-10 border rounded-l bg-background",placeholder:n=>"text-muted-foreground text-right ",input:n=>"bg-transparent cursor-pointer dark:text-white p-2 rounded-l text-[0.875rem] ",valueContainer:()=>"rounded-l h-auto text-[0.875rem]"},styles:{placeholder:n=>({...n,fontSize:"0.875rem",textAlign:"right"})},components:{Option:QA,Menu:JA,DropdownIndicator:()=>null,IndicatorSeparator:()=>null},options:wb,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",unstyled:!0,defaultValue:e.preferredCountry,value:t,onChange:(n,a)=>r(n)}),s.jsx("input",{onChange:e.handleChange,type:"number",placeholder:"531045453",className:"block w-full rounded-r border bg-background p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500"}),e.helperText&&s.jsx("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500",children:e.helperText})]})]})},KA=({orientation:e="horizontal",direction:t="ltr",width:r="normal",marginBetween:n=0,pill:a=!1,...o})=>{var C,E;const[i,l]=h.useState((C=o.options[0])==null?void 0:C.value);let u={vertical:"inline-block py-2 px-4 text-white bg-primary active",horizontal:"inline-block py-2 px-4 text-white bg-primary active"},c={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"},m={full:"w-full min-w-full",normal:"w-fit"},p={vertical:"flex flex-row",horizontal:"flex flex-col"},x={vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-primary bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-primary text-center text-sm font-medium text-gray-500 dark:text-gray-400"};return s.jsxs("div",{dir:t,className:Ve(p[e],o.options[i]?"border-b-2":"border-b-0"),children:[s.jsx("ul",{className:Ve("w-full border-primary",n?e==="vertical"?"mb-0":"mb-"+n:"",n&&t==="rtl"?"ml-"+n:"mr-"+n,x[e],e==="horizontal"?"grid grid-cols-3 gap-1 sm:flex sm:flex-row sm:gap-0 ":"",m[r],a?"gap-0.5 rounded border-none bg-gray-100 p-0.5":e==="vertical"?t==="rtl"?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-0 sm:border-b-2"),children:(E=o.options)==null?void 0:E.map((v,A)=>s.jsxs("button",{"aria-current":"page",onClick:()=>{l(v.value),o==null||o.onChangeTab(v)},className:Ve(v.value===i?[u[e],t==="rtl"?"rounded-r":"rounded-l"]:c[e],a?"rounded":e==="vertical"?"rounded rounded-bl-none rounded-tl-none":"rounded sm:rounded-b-none","flex w-fit flex-row items-center gap-2 transition-all "),children:[v.icon,v.label]},A))}),s.jsx("div",{className:"flex-1 transition-all",children:o.options.map((v,A)=>s.jsx("div",{className:Ve(i===v.value?"":"hidden"),children:v.content},A))})]})},qA=({open:e,title:t,onClose:r,closeOnClickOutside:n=!0,...a})=>{let o="absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all";return h.useEffect(()=>(n&&e&&(window.onclick=i=>{i.stopPropagation(),r()}),()=>window.onclick=null),[e]),s.jsxs("div",{className:$e(o,e?"z-10 opacity-100 ":"invisible -z-10 opacity-0"),children:[s.jsx("div",{className:$e("absolute h-screen w-full bg-gray-500 opacity-50",e?"opacity-50":"opacity-0")}),s.jsxs("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700",children:[s.jsxs("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600",children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:t}),s.jsxs("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:i=>{r()},children:[s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close modal"})]})]}),s.jsx("div",{className:"space-y-6 p-3",children:a.children}),s.jsx("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600",children:a.actions})]})]})},dd=({menuItems:e,withHeader:t,direction:r="ltr",headerTitle:n,headerSubtitle:a,size:o="normal",children:i,onClickOutside:l,actionedItem:u,position:c="top-right"})=>{const[m,p]=h.useState(!1),x=h.useRef(null),[C,E]=h.useState(null),[v,A]=h.useState(null),S=h.useRef(null),[j,O]=h.useState(null),[L,M]=h.useState(null);h.useEffect(()=>{var xe,Q,ce,N;M((xe=S.current)==null?void 0:xe.getBoundingClientRect().height),O((Q=S.current)==null?void 0:Q.getBoundingClientRect().width),E((ce=x.current)==null?void 0:ce.getBoundingClientRect().height),A((N=x.current)==null?void 0:N.getBoundingClientRect().width);const ge=W=>{S.current&&!S.current.contains(W.target)&&p(!1)};return document.addEventListener("click",ge,!0),()=>{document.removeEventListener("click",ge,!0)}},[l]);let z="border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",H={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""},oe,J=5;switch(c){case"top-right":oe=r==="rtl"?`${j-v}px, -${L+C+J}px`:`0px, -${L+C+J}px`;break;case"top-left":oe=r==="rtl"?`0px, -${L+C+J}px`:`-${j-v}px, -${L+C+J}px`;break;case"bottom-right":oe=r==="rtl"?`-0px, ${J}px`:`-${v-j}px, ${J}px`;break;case"bottom-left":oe=r==="rtl"?`0px, ${J}px`:`-${j-v}px,${J}px`;break;case"right-bottom":oe=r==="rtl"?`${j+J}px, -${C}px`:`${v+J}px, -${C}px`;break;case"right-top":oe=r==="rtl"?`${j+J}px, -${L}px`:`${v+J}px, -${L}px`;break;case"left-bottom":oe=r==="rtl"?`-${v+J}px, -${C}px`:`-${j+J}px, -${C}px`;break;case"left-top":oe=r==="rtl"?`-${v+J}px, -${L}px`:`-${j+J}px, -${L}px`;break;default:oe=`-${j/2}px, -${C+L/2}px`;break}return s.jsxs("div",{onClick:()=>{p(!m)},children:[s.jsx("div",{ref:x,children:i}),s.jsxs("div",{ref:S,style:{position:"absolute",width:"max-content",transform:`translate(${oe})`,maxWidth:"200px"},className:$e(z,m?"opacity-100":"invisible opacity-0"),children:[t&&s.jsxs("div",{className:"px-4 py-3 text-xs text-gray-900 dark:text-white",children:[s.jsx("div",{children:n}),s.jsx("div",{className:"truncate font-medium",children:a})]}),e==null?void 0:e.map((ge,xe)=>s.jsx("ul",{className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200",children:ge==null?void 0:ge.map((Q,ce)=>Q.element?s.jsx("li",{className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white",children:Q.element},ce):s.jsxs("li",{onClick:()=>{Q.disabled?console.log("button is disabled"):Q==null||Q.action(u)},className:$e("transition-all",Q.isButton?"flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse":Q.disabled?"text-gray-300":" flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",H[o]),children:[Q.icon&&s.jsx("div",{className:o==="small"?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2",children:Q.icon}),Q.label]},ce))},xe))]})]})},eF=e=>s.jsxs("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400",children:[e.withLogo?s.jsx("a",{href:e.onLogoClicked,children:s.jsx("div",{className:"cursor-pointer",children:s.jsx("image",{href:e.logoURL,width:100,height:50})})}):null,s.jsx("div",{children:e.version}),e.credits?e.credits:null]}),tF=({orientation:e="horizontal",...t})=>{let r={vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"};return s.jsx("div",{className:$e(r[e]," flex-wrap justify-start gap-4"),children:t.steps.map((n,a)=>s.jsx("div",{className:"my-2 flex w-auto flex-row flex-wrap justify-start ",children:s.jsx("div",{className:e==="vertical"?"flex w-full flex-row items-center":a+1===t.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10",children:s.jsxs("div",{className:"flex flex-row gap-2 ",children:[s.jsx("div",{className:$e("flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-primary/20 ring-offset-2",a+1<=t.currentStep?"bg-primary text-primary-foreground ":"bg-primary/20"),children:a+1<=t.currentStep?s.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})}):a+1}),s.jsx("div",{className:"whitespace-nowrap",children:n})]})})},a))})},Gt=je.forwardRef(({className:e,clickable:t=!1,...r},n)=>s.jsx("div",{ref:n,className:Ve("rounded-lg border bg-card text-card-foreground shadow-sm",t&&"cursor-pointer transition-all hover:drop-shadow-md dark:hover:shadow-dark",e),...r}));Gt.displayName="Card";const Ca=je.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Ve("flex flex-col space-y-1.5 p-6",e),...t}));Ca.displayName="CardHeader";const wa=je.forwardRef(({className:e,...t},r)=>s.jsx("h3",{ref:r,className:Ve("text-2xl font-semibold leading-none tracking-tight",e),...t}));wa.displayName="CardTitle";const ii=je.forwardRef(({className:e,...t},r)=>s.jsx("p",{ref:r,className:Ve("text-sm text-muted-foreground",e),...t}));ii.displayName="CardDescription";const $t=je.forwardRef(({headless:e,className:t,...r},n)=>s.jsx("div",{ref:n,className:Ve("p-6",e?"pt-6":"pt-0",t),...r}));$t.displayName="CardContent";const Fn=je.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Ve("flex items-center p-6 pt-0",e),...t}));Fn.displayName="CardFooter";const rF=({variant:e="default",...t})=>s.jsxs(Gt,{onClick:t.handleClick,clickable:!!t.handleClick,children:[s.jsxs(Ca,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(wa,{className:"text-sm font-medium",children:t.label}),t.icon&&t.icon]}),s.jsxs($t,{children:[t.isLoading?s.jsx(ri,{className:"h-8 w-3/4"}):s.jsx("div",{className:"text-2xl font-bold",children:t.number}),t.isLoading&&t.helperText?s.jsx(ri,{className:"mt-2 h-4 w-1/2"}):t.helperText&&s.jsx("p",{className:"text-xs text-muted-foreground",children:t.helperText}),t.isLoading&&t.chart?s.jsx(ri,{className:"mt-2 h-4 w-1/2"}):t.chart]})]}),cp=h.forwardRef((e,t)=>h.createElement(St.span,we({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),nF=cp,[fd,AN]=Dn("Tooltip",[cs]),hd=cs(),aF="TooltipProvider",oF=700,dp="tooltip.open",[iF,fp]=fd(aF),sF=e=>{const{__scopeTooltip:t,delayDuration:r=oF,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:o}=e,[i,l]=h.useState(!0),u=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const m=c.current;return()=>window.clearTimeout(m)},[]),h.createElement(iF,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:h.useCallback(m=>{u.current=m},[]),disableHoverableContent:a},o)},hp="Tooltip",[lF,pd]=fd(hp),uF=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:l}=e,u=fp(hp,e.__scopeTooltip),c=hd(t),[m,p]=h.useState(null),x=Sn(),C=h.useRef(0),E=i??u.disableHoverableContent,v=l??u.delayDuration,A=h.useRef(!1),[S=!1,j]=Rn({prop:n,defaultProp:a,onChange:H=>{H?(u.onOpen(),document.dispatchEvent(new CustomEvent(dp))):u.onClose(),o==null||o(H)}}),O=h.useMemo(()=>S?A.current?"delayed-open":"instant-open":"closed",[S]),L=h.useCallback(()=>{window.clearTimeout(C.current),A.current=!1,j(!0)},[j]),M=h.useCallback(()=>{window.clearTimeout(C.current),j(!1)},[j]),z=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{A.current=!0,j(!0)},v)},[v,j]);return h.useEffect(()=>()=>window.clearTimeout(C.current),[]),h.createElement(Yc,c,h.createElement(lF,{scope:t,contentId:x,open:S,stateAttribute:O,trigger:m,onTriggerChange:p,onTriggerEnter:h.useCallback(()=>{u.isOpenDelayed?z():L()},[u.isOpenDelayed,z,L]),onTriggerLeave:h.useCallback(()=>{E?M():window.clearTimeout(C.current)},[M,E]),onOpen:L,onClose:M,disableHoverableContent:E},r))},Eb="TooltipTrigger",cF=h.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=pd(Eb,r),o=fp(Eb,r),i=hd(r),l=h.useRef(null),u=Kt(t,l,a.onTriggerChange),c=h.useRef(!1),m=h.useRef(!1),p=h.useCallback(()=>c.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),h.createElement(Zh,we({asChild:!0},i),h.createElement(St.button,we({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:u,onPointerMove:at(e.onPointerMove,x=>{x.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:at(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:at(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:at(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:at(e.onBlur,a.onClose),onClick:at(e.onClick,a.onClose)})))}),dF="TooltipPortal",[FN,fF]=fd(dF,{forceMount:void 0}),Yl="TooltipContent",hF=h.forwardRef((e,t)=>{const r=fF(Yl,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,i=pd(Yl,e.__scopeTooltip);return h.createElement(sn,{present:n||i.open},i.disableHoverableContent?h.createElement(Db,we({side:a},o,{ref:t})):h.createElement(pF,we({side:a},o,{ref:t})))}),pF=h.forwardRef((e,t)=>{const r=pd(Yl,e.__scopeTooltip),n=fp(Yl,e.__scopeTooltip),a=h.useRef(null),o=Kt(t,a),[i,l]=h.useState(null),{trigger:u,onClose:c}=r,m=a.current,{onPointerInTransitChange:p}=n,x=h.useCallback(()=>{l(null),p(!1)},[p]),C=h.useCallback((E,v)=>{const A=E.currentTarget,S={x:E.clientX,y:E.clientY},j=xF(S,A.getBoundingClientRect()),O=yF(S,j),L=CF(v.getBoundingClientRect()),M=EF([...O,...L]);l(M),p(!0)},[p]);return h.useEffect(()=>()=>x(),[x]),h.useEffect(()=>{if(u&&m){const E=A=>C(A,m),v=A=>C(A,u);return u.addEventListener("pointerleave",E),m.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",v)}}},[u,m,C,x]),h.useEffect(()=>{if(i){const E=v=>{const A=v.target,S={x:v.clientX,y:v.clientY},j=(u==null?void 0:u.contains(A))||(m==null?void 0:m.contains(A)),O=!wF(S,i);j?x():O&&(x(),c())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[u,m,i,c,x]),h.createElement(Db,we({},e,{ref:o}))}),[gF,mF]=fd(hp,{isInside:!1}),Db=h.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,u=pd(Yl,r),c=hd(r),{onClose:m}=u;return h.useEffect(()=>(document.addEventListener(dp,m),()=>document.removeEventListener(dp,m)),[m]),h.useEffect(()=>{if(u.trigger){const p=x=>{const C=x.target;C!=null&&C.contains(u.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,m]),h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:m},h.createElement(Uh,we({"data-state":u.stateAttribute},c,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(r0,null,n),h.createElement(gF,{scope:r,isInside:!0},h.createElement(nF,{id:u.contentId,role:"tooltip"},a||n))))}),vF="TooltipArrow",bF=h.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=hd(r);return mF(vF,r).isInside?null:h.createElement(TD,we({},a,n,{ref:t}))});function xF(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function yF(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function CF(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function wF(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o].x,u=t[o].y,c=t[i].x,m=t[i].y;u>n!=m>n&&r<(c-l)*(n-u)/(m-u)+l&&(a=!a)}return a}function EF(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),DF(t)}function DF(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const SF=uF,AF=cF,Sb=hF,Ab=bF,Fb=h.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(Sb,{ref:n,sideOffset:t,className:Ve("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Fb.displayName=Sb.displayName;const FF=h.forwardRef(({className:e,...t},r)=>s.jsx(Ab,{ref:r,className:Ve(e),...t}));FF.displayName=Ab.displayName;const ms=({side:e,open:t,content:r,children:n,defaultOpen:a,onOpenChange:o,delayDuration:i=300,...l})=>s.jsx(sF,{delayDuration:i,children:s.jsxs(SF,{open:t,defaultOpen:a,onOpenChange:o,children:[s.jsx(AF,{asChild:!0,children:n}),s.jsx(Fb,{side:e,align:"center",...l,children:r})]})});function jb({timeout:e=2e3}={}){const[t,r]=h.useState(null),[n,a]=h.useState(!1),[o,i]=h.useState(null),l=m=>{clearTimeout(o),i(setTimeout(()=>a(!1),e)),a(m)};return{copy:m=>{"clipboard"in navigator?navigator.clipboard.writeText(m).then(()=>l(!0)).catch(p=>r(p)):r(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),r(null),clearTimeout(o)},error:t,copied:n}}const jF=({tabs:e,code:t,fileName:r,width:n="full"})=>{const a=jb(),[o,i]=h.useState(0);let l={full:"w-full",md:"w-full max-w-md",sm:"w-full max-w-sm",xs:"w-full max-w-xs"};return s.jsxs("div",{className:Ve(l[n],"w-full flex-col items-center rounded bg-gray-200 text-left text-sm text-white dark:bg-gray-800 sm:text-base"),children:[e&&s.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:e.map((u,c)=>s.jsx("div",{className:Ve(o===c?" border-b-2 border-primary":"bg-transparent"),children:s.jsx("div",{onClick:()=>i(c),className:Ve("mb-1 w-full max-w-[52px] cursor-pointer rounded-inner p-2 py-1 text-center text-[0.75rem] hover:bg-gray-300 dark:hover:bg-gray-500"),children:u.title})}))}),r&&s.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:s.jsx("div",{className:Ve("mb-1 w-full max-w-[52px] rounded-inner p-2 py-1 text-center text-[0.75rem]"),children:r})}),s.jsx("pre",{children:s.jsxs("code",{className:Ve("flex w-full flex-row items-start justify-between rounded bg-gray-200 p-0 text-left text-sm text-black dark:bg-gray-800 dark:text-white sm:text-base"),children:[s.jsx("div",{className:"flex min-h-[37.75px] w-full flex-col justify-center p-4 ",children:e?e[o].code:t}),s.jsx("div",{className:"flex w-fit flex-row items-center gap-2 p-2",children:s.jsx(ms,{open:a.copied,side:"left",content:s.jsx("div",{children:"Copied!"}),children:s.jsx(qe,{size:"icon",onClick:()=>a.copy(e?e[o].code:t),children:s.jsxs("svg",{"aria-label":"Copy Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[s.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),s.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})})})})]})})]})},IF=()=>{const[e,t]=h.useState(""),r=n=>{t(n.target.value)};return s.jsx("div",{className:"relative inline-block text-left",children:s.jsx("span",{className:"rounded-md shadow-sm",children:s.jsx("input",{type:"date",value:e,onChange:r,className:"block w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"})})})};var pp={exports:{}};/*
|
|
98
|
+
object-assign
|
|
99
|
+
(c) Sindre Sorhus
|
|
100
|
+
@license MIT
|
|
101
|
+
*/var gp,Ib;function TF(){if(Ib)return gp;Ib=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(i).map(function(m){return i[m]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(m){c[m]=m}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gp=a()?Object.assign:function(o,i){for(var l,u=n(o),c,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var p in l)t.call(l,p)&&(u[p]=l[p]);if(e){c=e(l);for(var x=0;x<c.length;x++)r.call(l,c[x])&&(u[c[x]]=l[c[x]])}}return u},gp}var mp,Tb;function vp(){if(Tb)return mp;Tb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mp=e,mp}var bp,kb;function Bb(){return kb||(kb=1,bp=Function.call.bind(Object.prototype.hasOwnProperty)),bp}var xp,Pb;function kF(){if(Pb)return xp;Pb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=vp(),r={},n=Bb();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,l,u,c){if(process.env.NODE_ENV!=="production"){for(var m in o)if(n(o,m)){var p;try{if(typeof o[m]!="function"){var x=Error((u||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}p=o[m](i,m,u,l,null,t)}catch(E){p=E}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var C=c?c():"";e("Failed "+l+" type: "+p.message+(C??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},xp=a,xp}var yp,Ob;function BF(){if(Ob)return yp;Ob=1;var e=ch,t=TF(),r=vp(),n=Bb(),a=kF(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return yp=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function p(K){var se=K&&(c&&K[c]||K[m]);if(typeof se=="function")return se}var x="<<anonymous>>",C={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:j(),arrayOf:O,element:L(),elementType:M(),instanceOf:z,node:ge(),objectOf:oe,oneOf:H,oneOfType:J,shape:Q,exact:ce};function E(K,se){return K===se?K!==0||1/K===1/se:K!==K&&se!==se}function v(K,se){this.message=K,this.data=se&&typeof se=="object"?se:{},this.stack=""}v.prototype=Error.prototype;function A(K){if(process.env.NODE_ENV!=="production")var se={},fe=0;function Se(he,ae,me,Me,Pe,We,Ke){if(Me=Me||x,We=We||me,Ke!==r){if(u){var Ne=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ne.name="Invariant Violation",Ne}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Qe=Me+":"+me;!se[Qe]&&fe<3&&(o("You are manually calling a React.PropTypes validation function for the `"+We+"` prop on `"+Me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),se[Qe]=!0,fe++)}}return ae[me]==null?he?ae[me]===null?new v("The "+Pe+" `"+We+"` is marked as required "+("in `"+Me+"`, but its value is `null`.")):new v("The "+Pe+" `"+We+"` is marked as required in "+("`"+Me+"`, but its value is `undefined`.")):null:K(ae,me,Me,Pe,We)}var G=Se.bind(null,!1);return G.isRequired=Se.bind(null,!0),G}function S(K){function se(fe,Se,G,he,ae,me){var Me=fe[Se],Pe=ee(Me);if(Pe!==K){var We=de(Me);return new v("Invalid "+he+" `"+ae+"` of type "+("`"+We+"` supplied to `"+G+"`, expected ")+("`"+K+"`."),{expectedType:K})}return null}return A(se)}function j(){return A(i)}function O(K){function se(fe,Se,G,he,ae){if(typeof K!="function")return new v("Property `"+ae+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var me=fe[Se];if(!Array.isArray(me)){var Me=ee(me);return new v("Invalid "+he+" `"+ae+"` of type "+("`"+Me+"` supplied to `"+G+"`, expected an array."))}for(var Pe=0;Pe<me.length;Pe++){var We=K(me,Pe,G,he,ae+"["+Pe+"]",r);if(We instanceof Error)return We}return null}return A(se)}function L(){function K(se,fe,Se,G,he){var ae=se[fe];if(!l(ae)){var me=ee(ae);return new v("Invalid "+G+" `"+he+"` of type "+("`"+me+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return A(K)}function M(){function K(se,fe,Se,G,he){var ae=se[fe];if(!e.isValidElementType(ae)){var me=ee(ae);return new v("Invalid "+G+" `"+he+"` of type "+("`"+me+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return A(K)}function z(K){function se(fe,Se,G,he,ae){if(!(fe[Se]instanceof K)){var me=K.name||x,Me=te(fe[Se]);return new v("Invalid "+he+" `"+ae+"` of type "+("`"+Me+"` supplied to `"+G+"`, expected ")+("instance of `"+me+"`."))}return null}return A(se)}function H(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function se(fe,Se,G,he,ae){for(var me=fe[Se],Me=0;Me<K.length;Me++)if(E(me,K[Me]))return null;var Pe=JSON.stringify(K,function(Ke,Ne){var Qe=de(Ne);return Qe==="symbol"?String(Ne):Ne});return new v("Invalid "+he+" `"+ae+"` of value `"+String(me)+"` "+("supplied to `"+G+"`, expected one of "+Pe+"."))}return A(se)}function oe(K){function se(fe,Se,G,he,ae){if(typeof K!="function")return new v("Property `"+ae+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var me=fe[Se],Me=ee(me);if(Me!=="object")return new v("Invalid "+he+" `"+ae+"` of type "+("`"+Me+"` supplied to `"+G+"`, expected an object."));for(var Pe in me)if(n(me,Pe)){var We=K(me,Pe,G,he,ae+"."+Pe,r);if(We instanceof Error)return We}return null}return A(se)}function J(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var se=0;se<K.length;se++){var fe=K[se];if(typeof fe!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ne(fe)+" at index "+se+"."),i}function Se(G,he,ae,me,Me){for(var Pe=[],We=0;We<K.length;We++){var Ke=K[We],Ne=Ke(G,he,ae,me,Me,r);if(Ne==null)return null;Ne.data&&n(Ne.data,"expectedType")&&Pe.push(Ne.data.expectedType)}var Qe=Pe.length>0?", expected one of type ["+Pe.join(", ")+"]":"";return new v("Invalid "+me+" `"+Me+"` supplied to "+("`"+ae+"`"+Qe+"."))}return A(Se)}function ge(){function K(se,fe,Se,G,he){return N(se[fe])?null:new v("Invalid "+G+" `"+he+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return A(K)}function xe(K,se,fe,Se,G){return new v((K||"React class")+": "+se+" type `"+fe+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function Q(K){function se(fe,Se,G,he,ae){var me=fe[Se],Me=ee(me);if(Me!=="object")return new v("Invalid "+he+" `"+ae+"` of type `"+Me+"` "+("supplied to `"+G+"`, expected `object`."));for(var Pe in K){var We=K[Pe];if(typeof We!="function")return xe(G,he,ae,Pe,de(We));var Ke=We(me,Pe,G,he,ae+"."+Pe,r);if(Ke)return Ke}return null}return A(se)}function ce(K){function se(fe,Se,G,he,ae){var me=fe[Se],Me=ee(me);if(Me!=="object")return new v("Invalid "+he+" `"+ae+"` of type `"+Me+"` "+("supplied to `"+G+"`, expected `object`."));var Pe=t({},fe[Se],K);for(var We in Pe){var Ke=K[We];if(n(K,We)&&typeof Ke!="function")return xe(G,he,ae,We,de(Ke));if(!Ke)return new v("Invalid "+he+" `"+ae+"` key `"+We+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(fe[Se],null," ")+`
|
|
102
|
+
Valid keys: `+JSON.stringify(Object.keys(K),null," "));var Ne=Ke(me,We,G,he,ae+"."+We,r);if(Ne)return Ne}return null}return A(se)}function N(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(N);if(K===null||l(K))return!0;var se=p(K);if(se){var fe=se.call(K),Se;if(se!==K.entries){for(;!(Se=fe.next()).done;)if(!N(Se.value))return!1}else for(;!(Se=fe.next()).done;){var G=Se.value;if(G&&!N(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(K,se){return K==="symbol"?!0:se?se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&se instanceof Symbol:!1}function ee(K){var se=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":W(se,K)?"symbol":se}function de(K){if(typeof K>"u"||K===null)return""+K;var se=ee(K);if(se==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return se}function ne(K){var se=de(K);switch(se){case"array":case"object":return"an "+se;case"boolean":case"date":case"regexp":return"a "+se;default:return se}}function te(K){return!K.constructor||!K.constructor.name?x:K.constructor.name}return C.checkPropTypes=a,C.resetWarningCache=a.resetWarningCache,C.PropTypes=C,C},yp}var Cp,Nb;function PF(){if(Nb)return Cp;Nb=1;var e=vp();function t(){}function r(){}return r.resetWarningCache=t,Cp=function(){function n(i,l,u,c,m,p){if(p!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},Cp}if(process.env.NODE_ENV!=="production"){var OF=ch,NF=!0;pp.exports=BF()(OF.isElement,NF)}else pp.exports=PF()();var MF=pp.exports;const qt=vc(MF);var RF=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Jl(e,t){var r=$F(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function $F(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),a=RF.get(n);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}var LF=[".DS_Store","Thumbs.db"];function _F(e){return fs(this,void 0,void 0,function(){return hs(this,function(t){return gd(e)&&WF(e)?[2,GF(e.dataTransfer,e.type)]:VF(e)?[2,HF(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,zF(e)]:[2,[]]})})}function WF(e){return gd(e.dataTransfer)}function VF(e){return gd(e)&&gd(e.target)}function gd(e){return typeof e=="object"&&e!==null}function HF(e){return wp(e.target.files).map(function(t){return Jl(t)})}function zF(e){return fs(this,void 0,void 0,function(){var t;return hs(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Jl(n)})]}})})}function GF(e,t){return fs(this,void 0,void 0,function(){var r,n;return hs(this,function(a){switch(a.label){case 0:return e===null?[2,[]]:e.items?(r=wp(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(ZF))]):[3,2];case 1:return n=a.sent(),[2,Mb(Rb(n))];case 2:return[2,Mb(wp(e.files).map(function(o){return Jl(o)}))]}})})}function Mb(e){return e.filter(function(t){return LF.indexOf(t.name)===-1})}function wp(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function ZF(e){if(typeof e.webkitGetAsEntry!="function")return $b(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Lb(t):$b(e)}function Rb(e){return e.reduce(function(t,r){return JD(t,Array.isArray(r)?Rb(r):[r])},[])}function $b(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=Jl(t);return Promise.resolve(r)}function UF(e){return fs(this,void 0,void 0,function(){return hs(this,function(t){return[2,e.isDirectory?Lb(e):XF(e)]})})}function Lb(e){var t=e.createReader();return new Promise(function(r,n){var a=[];function o(){var i=this;t.readEntries(function(l){return fs(i,void 0,void 0,function(){var u,c,m;return hs(this,function(p){switch(p.label){case 0:if(l.length)return[3,5];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,Promise.all(a)];case 2:return u=p.sent(),r(u),[3,4];case 3:return c=p.sent(),n(c),[3,4];case 4:return[3,6];case 5:m=Promise.all(l.map(UF)),a.push(m),o(),p.label=6;case 6:return[2]}})})},function(l){n(l)})}o()})}function XF(e){return fs(this,void 0,void 0,function(){return hs(this,function(t){return[2,new Promise(function(r,n){e.file(function(a){var o=Jl(a,e.fullPath);r(o)},function(a){n(a)})})]})})}var YF=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return r.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?o===l.replace(/\/.*$/,""):a===l})}return!0};function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(n){Vb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hb(e,t){return qF(e)||KF(e,t)||QF(e,t)||JF()}function JF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
103
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QF(e,t){if(e){if(typeof e=="string")return zb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zb(e,t)}}function zb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,l;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(u){o=!0,l=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function qF(e){if(Array.isArray(e))return e}var e6="file-invalid-type",t6="file-too-large",r6="file-too-small",n6="too-many-files",a6=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:e6,message:"File type must be ".concat(r)}},Gb=function(t){return{code:t6,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Zb=function(t){return{code:r6,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},o6={code:n6,message:"Too many files"};function Ub(e,t){var r=e.type==="application/x-moz-file"||YF(e,t);return[r,r?null:a6(t)]}function Xb(e,t,r){if(Ql(e.size))if(Ql(t)&&Ql(r)){if(e.size>r)return[!1,Gb(r)];if(e.size<t)return[!1,Zb(t)]}else{if(Ql(t)&&e.size<t)return[!1,Zb(t)];if(Ql(r)&&e.size>r)return[!1,Gb(r)]}return[!0,null]}function Ql(e){return e!=null}function i6(e){var t=e.files,r=e.accept,n=e.minSize,a=e.maxSize,o=e.multiple,i=e.maxFiles;return!o&&t.length>1||o&&i>=1&&t.length>i?!1:t.every(function(l){var u=Ub(l,r),c=Hb(u,1),m=c[0],p=Xb(l,n,a),x=Hb(p,1),C=x[0];return m&&C})}function md(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function vd(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Yb(e){e.preventDefault()}function s6(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function l6(e){return e.indexOf("Edge/")!==-1}function u6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return s6(e)||l6(e)}function Ea(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return t.some(function(l){return!md(n)&&l&&l.apply(void 0,[n].concat(o)),md(n)})}}function c6(){return"showOpenFilePicker"in window}function d6(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}).reduce(function(t,r){return Wb(Wb({},t),{},Vb({},r,[]))},{}):{}}]}function f6(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function h6(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}var p6=["children"],g6=["open"],m6=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],v6=["refKey","onChange","onClick"];function b6(e){return C6(e)||y6(e)||Jb(e)||x6()}function x6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
104
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function C6(e){if(Array.isArray(e))return Dp(e)}function Ep(e,t){return D6(e)||E6(e,t)||Jb(e,t)||w6()}function w6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
105
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jb(e,t){if(e){if(typeof e=="string")return Dp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dp(e,t)}}function Dp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,l;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(u){o=!0,l=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function D6(e){if(Array.isArray(e))return e}function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){Sp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bd(e,t){if(e==null)return{};var r=S6(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Ap=h.forwardRef(function(e,t){var r=e.children,n=bd(e,p6),a=qb(n),o=a.open,i=bd(a,g6);return h.useImperativeHandle(t,function(){return{open:o}},[o]),h.createElement(h.Fragment,null,r(dr(dr({},i),{},{open:o})))});Ap.displayName="Dropzone";var Kb={disabled:!1,getFilesFromEvent:_F,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ap.defaultProps=Kb,Ap.propTypes={children:qt.func,accept:qt.oneOfType([qt.string,qt.arrayOf(qt.string)]),multiple:qt.bool,preventDropOnDocument:qt.bool,noClick:qt.bool,noKeyboard:qt.bool,noDrag:qt.bool,noDragEventsBubbling:qt.bool,minSize:qt.number,maxSize:qt.number,maxFiles:qt.number,disabled:qt.bool,getFilesFromEvent:qt.func,onFileDialogCancel:qt.func,onFileDialogOpen:qt.func,useFsAccessApi:qt.bool,onDragEnter:qt.func,onDragLeave:qt.func,onDragOver:qt.func,onDrop:qt.func,onDropAccepted:qt.func,onDropRejected:qt.func,validator:qt.func};var Fp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function qb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=dr(dr({},Kb),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,m=t.onDragLeave,p=t.onDragOver,x=t.onDrop,C=t.onDropAccepted,E=t.onDropRejected,v=t.onFileDialogCancel,A=t.onFileDialogOpen,S=t.useFsAccessApi,j=t.preventDropOnDocument,O=t.noClick,L=t.noKeyboard,M=t.noDrag,z=t.noDragEventsBubbling,H=t.validator,oe=h.useMemo(function(){return typeof A=="function"?A:ex},[A]),J=h.useMemo(function(){return typeof v=="function"?v:ex},[v]),ge=h.useRef(null),xe=h.useRef(null),Q=h.useReducer(A6,Fp),ce=Ep(Q,2),N=ce[0],W=ce[1],ee=N.isFocused,de=N.isFileDialogActive,ne=N.draggedFiles,te=h.useRef(typeof window<"u"&&window.isSecureContext&&S&&c6()),K=function(){!te.current&&de&&setTimeout(function(){if(xe.current){var ze=xe.current.files;ze.length||(W({type:"closeDialog"}),J())}},300)};h.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[xe,de,J,te]);var se=h.useRef([]),fe=function(ze){ge.current&&ge.current.contains(ze.target)||(ze.preventDefault(),se.current=[])};h.useEffect(function(){return j&&(document.addEventListener("dragover",Yb,!1),document.addEventListener("drop",fe,!1)),function(){j&&(document.removeEventListener("dragover",Yb),document.removeEventListener("drop",fe))}},[ge,j]);var Se=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee),se.current=[].concat(b6(se.current),[Ee.target]),vd(Ee)&&Promise.resolve(a(Ee)).then(function(ze){md(Ee)&&!z||(W({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Ee))})},[a,c,z]),G=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee);var ze=vd(Ee);if(ze&&Ee.dataTransfer)try{Ee.dataTransfer.dropEffect="copy"}catch{}return ze&&p&&p(Ee),!1},[p,z]),he=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee);var ze=se.current.filter(function(bt){return ge.current&&ge.current.contains(bt)}),tt=ze.indexOf(Ee.target);tt!==-1&&ze.splice(tt,1),se.current=ze,!(ze.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),vd(Ee)&&m&&m(Ee))},[ge,m,z]),ae=h.useCallback(function(Ee,ze){var tt=[],bt=[];Ee.forEach(function(Ot){var gt=Ub(Ot,r),Wt=Ep(gt,2),pr=Wt[0],Yt=Wt[1],Cr=Xb(Ot,i,o),gr=Ep(Cr,2),Or=gr[0],Nr=gr[1],xr=H?H(Ot):null;if(pr&&Or&&!xr)tt.push(Ot);else{var Mr=[Yt,Nr];xr&&(Mr=Mr.concat(xr)),bt.push({file:Ot,errors:Mr.filter(function(cn){return cn})})}}),(!l&&tt.length>1||l&&u>=1&&tt.length>u)&&(tt.forEach(function(Ot){bt.push({file:Ot,errors:[o6]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:bt,type:"setFiles"}),x&&x(tt,bt,ze),bt.length>0&&E&&E(bt,ze),tt.length>0&&C&&C(tt,ze)},[W,l,r,i,o,u,x,C,E,H]),me=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee),se.current=[],vd(Ee)&&Promise.resolve(a(Ee)).then(function(ze){md(Ee)&&!z||ae(ze,Ee)}),W({type:"reset"})},[a,ae,z]),Me=h.useCallback(function(){if(te.current){W({type:"openDialog"}),oe();var Ee={multiple:l,types:d6(r)};window.showOpenFilePicker(Ee).then(function(ze){return a(ze)}).then(function(ze){ae(ze,null),W({type:"closeDialog"})}).catch(function(ze){f6(ze)?(J(ze),W({type:"closeDialog"})):h6(ze)&&(te.current=!1,xe.current&&(xe.current.value=null,xe.current.click()))});return}xe.current&&(W({type:"openDialog"}),oe(),xe.current.value=null,xe.current.click())},[W,oe,J,S,ae,r,l]),Pe=h.useCallback(function(Ee){!ge.current||!ge.current.isEqualNode(Ee.target)||(Ee.key===" "||Ee.key==="Enter"||Ee.keyCode===32||Ee.keyCode===13)&&(Ee.preventDefault(),Me())},[ge,Me]),We=h.useCallback(function(){W({type:"focus"})},[]),Ke=h.useCallback(function(){W({type:"blur"})},[]),Ne=h.useCallback(function(){O||(u6()?setTimeout(Me,0):Me())},[O,Me]),Qe=function(ze){return n?null:ze},nt=function(ze){return L?null:Qe(ze)},vt=function(ze){return M?null:Qe(ze)},At=function(ze){z&&ze.stopPropagation()},re=h.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=Ee.refKey,tt=ze===void 0?"ref":ze,bt=Ee.role,Ot=Ee.onKeyDown,gt=Ee.onFocus,Wt=Ee.onBlur,pr=Ee.onClick,Yt=Ee.onDragEnter,Cr=Ee.onDragOver,gr=Ee.onDragLeave,Or=Ee.onDrop,Nr=bd(Ee,m6);return dr(dr(Sp({onKeyDown:nt(Ea(Ot,Pe)),onFocus:nt(Ea(gt,We)),onBlur:nt(Ea(Wt,Ke)),onClick:Qe(Ea(pr,Ne)),onDragEnter:vt(Ea(Yt,Se)),onDragOver:vt(Ea(Cr,G)),onDragLeave:vt(Ea(gr,he)),onDrop:vt(Ea(Or,me)),role:typeof bt=="string"&&bt!==""?bt:"button"},tt,ge),!n&&!L?{tabIndex:0}:{}),Nr)}},[ge,Pe,We,Ke,Ne,Se,G,he,me,L,M,n]),be=h.useCallback(function(Ee){Ee.stopPropagation()},[]),Ie=h.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=Ee.refKey,tt=ze===void 0?"ref":ze,bt=Ee.onChange,Ot=Ee.onClick,gt=bd(Ee,v6),Wt=Sp({accept:r,multiple:l,type:"file",style:{display:"none"},onChange:Qe(Ea(bt,me)),onClick:Qe(Ea(Ot,be)),tabIndex:-1},tt,xe);return dr(dr({},Wt),gt)}},[xe,r,l,me,n]),Ze=ne.length,He=Ze>0&&i6({files:ne,accept:r,minSize:i,maxSize:o,multiple:l,maxFiles:u}),Te=Ze>0&&!He;return dr(dr({},N),{},{isDragAccept:He,isDragReject:Te,isFocused:ee&&!n,getRootProps:re,getInputProps:Ie,rootRef:ge,inputRef:xe,open:Qe(Me)})}function A6(e,t){switch(t.type){case"focus":return dr(dr({},e),{},{isFocused:!0});case"blur":return dr(dr({},e),{},{isFocused:!1});case"openDialog":return dr(dr({},Fp),{},{isFileDialogActive:!0});case"closeDialog":return dr(dr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return dr(dr({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return dr(dr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return dr({},Fp);default:return e}}function ex(){}const F6=({texts:e,files:t,setFiles:r,setDeletedFiles:n,onAcceptedFiles:a,errorMessages:o,maxFiles:i,accept:l,showPreview:u,onDeleteFile:c,onClearFiles:m,disclaimer:p,maxSize:x,label:C,termsLink:E,privacyLink:v})=>{var Q,ce;const[A,S]=h.useState(0),[j,O]=h.useState(0),{getRootProps:L,getInputProps:M,fileRejections:z,acceptedFiles:H,isDragActive:oe}=qb({multiple:!0,accept:l,maxSize:x,maxFiles:i,onDrop:N=>{r(N.map((W,ee)=>Object.assign(W,{preview:URL.createObjectURL(W)})))}});h.useEffect(()=>()=>{t==null||t.forEach(N=>{URL.revokeObjectURL(N.preview)})},[t]),h.useEffect(()=>{r(H)},[H,A]),m=()=>{H.length=0,H.splice(0,H.length),r([])};const J=()=>{H.length=0,r([])};h.useEffect(()=>{if(x>0){const N=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],W=Math.floor(Math.log(x)/Math.log(1024));O(parseFloat((x/Math.pow(1024,W)).toFixed(2))+" "+N[W])}},[x]);const ge=z.map((N,W)=>{switch(N.errors[0].code){case"file-too-large":return s.jsx(qn,{text:N.file.name,title:e.fileTooLarge,severity:"error"});case"too-many-files":return s.jsx(qn,{text:N.file.name,title:e.tooManyFiles,severity:"error"});case"file-invalid-type":return s.jsx(qn,{text:N.file.name,title:e.invalidFileType,severity:"error"});default:return s.jsx(qn,{text:N.file.name,title:N.errors[0].code,severity:"error"})}}),xe=t==null?void 0:t.map((N,W)=>s.jsxs("div",{className:"relative rounded",children:[s.jsxs("button",{onClick:ee=>{ee.stopPropagation(),H.splice(H.indexOf(N),1),S(Math.random),c(N)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded-inner rounded-bl-none rounded-tr-none bg-gray-900 p-1.5 text-sm text-gray-400 transition-all hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close modal"})]}),s.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:`url(${N.preview})`,backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg"},N.name)]}));return s.jsxs("div",{children:[C&&s.jsx("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300",children:C}),s.jsxs("div",{className:$e("flex flex-col justify-center rounded border border-dashed bg-gray-50 p-6 transition-all hover:bg-gray-100 dark:bg-gray-950 dark:hover:bg-gray-800 ",oe?"bg-gray-200 dark:bg-gray-700":"bg-background"),children:[s.jsxs("div",{...L({}),children:[s.jsx("p",{...M()}),s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 pt-4 text-center",children:[s.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1.5em",width:"1.5em",children:[s.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.jsx("path",{d:"M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"}),s.jsx("path",{d:"M13 13l9 3l-4 2l-2 4l-3 -9"}),s.jsx("path",{d:"M3 3l0 .01"}),s.jsx("path",{d:"M7 3l0 .01"}),s.jsx("path",{d:"M11 3l0 .01"}),s.jsx("path",{d:"M15 3l0 .01"}),s.jsx("path",{d:"M3 7l0 .01"}),s.jsx("path",{d:"M3 11l0 .01"}),s.jsx("path",{d:"M3 15l0 .01"})]}),s.jsx(e.clickHereToUpload,{})]}),s.jsxs("div",{className:"pt-2 text-center text-xs",children:[e.acceptedFileTypes," ",l.split(",")]}),s.jsxs("div",{className:"pb-2 pt-1 text-center text-xs",children:[e.maxFileSize," ",j]})]}),H.length>0&&s.jsx("div",{className:"flex justify-center rounded-lg p-2 ",children:s.jsx(qe,{onClick:J,children:"Clear All"})}),H.length>0&&xe&&u?s.jsx("aside",{className:"flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2",children:xe}):null,s.jsx("div",{className:"px-4",children:((ce=(Q=z[0])==null?void 0:Q.errors[0])==null?void 0:ce.code)&&ge})]}),p&&s.jsxs("div",{className:"mt-2 text-sm text-muted-foreground/50",children:[e.disclaimer??"By uploading a file you agree to our"," ",s.jsx("a",{href:E,className:"clickable-link text-muted-foreground/50",children:e.terms??"Terms"})," ",e.and??"and"," ",s.jsx("a",{href:v,className:"clickable-link text-muted-foreground/50",children:e.privacyPolicy??"Privacy Policy"})]})]})},j6=e=>s.jsxs("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4",children:[s.jsx("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button",children:s.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})}),s.jsx("div",{className:"p-4",children:e.children})]}),I6=({subsections:e})=>{const[t,r]=h.useState(null);return s.jsx("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 ",children:e.map((n,a)=>s.jsxs("div",{className:"my-0",children:[n.title&&s.jsx("div",{className:"my-4 font-bold",children:n.title}),n.sections.map((o,i)=>s.jsx(T6,{onItemClick:()=>r(o.value),selected:t,value:o.value,icon:o.icon,title:o.label,chip:"Upgrade"},i))]},a))})},T6=({title:e,value:t,icon:r,chip:n,selected:a,onItemClick:o})=>s.jsxs("div",{onClick:o,className:$e("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",a===t?"bg-primary text-white hover:bg-primary":"hover:bg-layoutPrimary-300"),children:[s.jsxs("div",{className:"flex w-full flex-row items-center justify-start gap-2",children:[r," ",s.jsx("span",{children:e})]}),n&&s.jsx(bc,{label:"Upgrade",size:"normal"})," "]}),k6=e=>s.jsxs("div",{className:"flex w-full flex-col gap-0 rounded border bg-card p-4",children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("span",{className:"bg-white-200",children:e.title}),e.tooltip&&s.jsx(ms,{content:e.tooltip,children:s.jsx("svg",{stroke:"currentColor","aria-label":"Exclamation Circle",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})})]}),s.jsxs("div",{className:"bg-white-100 flex flex-row",children:[s.jsx("div",{children:e.currentUsage}),s.jsxs("div",{children:[" (",e.percent,"%)"]})]}),s.jsx("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700",children:s.jsx("div",{className:"h-2.5 rounded-full bg-primary",style:{width:`${e.percent??0}%`}})})]}),B6=({direction:e="ltr",texts:t={total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"},...r})=>{var i;const n=l=>s.jsxs("div",{className:$e(l.start?"items-start":"items-end","flex w-full flex-col"),children:[s.jsx("div",{className:" text-sm text-gray-500",children:l.label}),s.jsx("div",{className:" whitespace-nowrap",children:l.text})]}),[a,o]=h.useState(!1);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsxs("div",{className:"flex w-full flex-row items-center gap-2 border p-4 ",children:[r.invoiceActions&&s.jsx("div",{className:$e("transition-all hover:cursor-pointer ",e==="rtl"?"rotate-180":"",a?"rotate-90":""),onClick:()=>o(!a),children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"2em",width:"2em",children:s.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})}),s.jsxs("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:()=>o(!a),children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("span",{className:"bg-white-200",children:r.invoiceTitle}),r.status&&s.jsx(bc,{size:"small",label:r.status})]}),s.jsx("div",{className:"font-sm text-gray-400",children:r.invoiceSubtitle})]}),s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("div",{className:"whitespace-nowrap",children:r.total}),s.jsx(dd,{direction:e,position:e==="rtl"?"bottom-right":"bottom-left",menuItems:r.invoiceActions,children:s.jsx("div",{className:" p-2",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})})})})]})]}),a&&s.jsxs("div",{className:$e(a?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"),children:[s.jsx("div",{className:"border-b pb-2",children:r.invoiceDescription}),(i=r.products)==null?void 0:i.map((l,u)=>s.jsxs("div",{className:"flex flex-row border-b pb-4",children:[s.jsx("div",{className:"w-full",children:s.jsx(n,{start:!0,label:t.plan,text:l.plan})}),s.jsxs("div",{className:"flex w-full flex-row gap-20 ",children:[s.jsx(n,{label:t.usage,text:`${l.usage} SAR`}),s.jsx(n,{label:t.price,text:`${l.price} SAR`}),s.jsx(n,{label:t.amount,text:`${l.amount} SAR`})]})]},u)),s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx("div",{children:t.total})," ",s.jsx("div",{children:r.total})]})]})]})},P6=({position:e="bottom-right",...t})=>{const[r,n]=h.useState(!1),[a,o]=h.useState(!1),[i,l]=h.useState(null),[u,c]=h.useState(5),m=h.useRef(null),p={"bottom-right":"right-4","bottom-left":"left-4"};h.useEffect(()=>{const C=setTimeout(()=>{u>=0&&c(u-1)},1e3);return()=>{clearTimeout(C)}},[u]);const x=()=>{n(!0),setTimeout(()=>{m.current.removeChild(m.current.children[0])},200)};return s.jsx("div",{ref:m,className:$e("fixed bottom-4 ",p[e]),children:s.jsxs("div",{className:$e("relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",r?"opacity-0":"opacity-100"),children:[s.jsx("div",{className:"absolute left-2 top-2 p-1.5 text-sm",children:t.title}),s.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>x(),children:s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),s.jsx("div",{className:"mt-8",children:t.question}),s.jsx("div",{className:"flex w-full flex-row gap-1 rounded",children:t.options.map(C=>s.jsx("span",{onClick:()=>{t.onOptionClicked(C),l(C),o(!0);const E=setTimeout(()=>{n(!0)},4800);setTimeout(()=>{m.current.removeChild(m.current.children[0]),clearTimeout(E)},5300)},className:$e("w-full cursor-pointer rounded border p-4 text-center transition-all ",i===C?"bg-gray-500 text-white":"border bg-background hover:bg-gray-300 dark:hover:bg-gray-700"),children:C}))}),t.texts&&s.jsxs("div",{className:" flex flex-row justify-between text-xs",children:[s.jsx("span",{children:t.texts.least}),s.jsx("span",{children:t.texts.most})]}),a&&s.jsxs("div",{className:"absolute left-0 top-0 gap-2 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all",children:[s.jsxs("span",{className:"font-bold text-white",children:["Thank you for your answer. This box will disappear in"," "+u," seconds"]}),s.jsx("div",{className:"flex flex-row gap-2",children:s.jsx(qe,{onClick:()=>x(),children:"Close"})})]})]})})},xd=je.forwardRef(({className:e,label:t,helperText:r,...n},a)=>s.jsxs("div",{className:"flex flex-col gap-2",children:[t&&s.jsx(ti,{htmlFor:n.id,children:t}),s.jsx("textarea",{className:Ve("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...n}),r&&s.jsx("p",{className:"mb-0 mt-0 text-xs text-red-600 dark:text-red-500",children:r})]}));xd.displayName="Textarea";const tx="Popover",[rx,jN]=Dn(tx,[cs]),jp=cs(),[O6,vs]=rx(tx),N6=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,l=jp(t),u=h.useRef(null),[c,m]=h.useState(!1),[p=!1,x]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(Yc,l,h.createElement(O6,{scope:t,contentId:Sn(),triggerRef:u,open:p,onOpenChange:x,onOpenToggle:h.useCallback(()=>x(C=>!C),[x]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>m(!0),[]),onCustomAnchorRemove:h.useCallback(()=>m(!1),[]),modal:i},r))},M6="PopoverTrigger",R6=h.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=vs(M6,r),o=jp(r),i=Kt(t,a.triggerRef),l=h.createElement(St.button,we({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ox(a.open)},n,{ref:i,onClick:at(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?l:h.createElement(Zh,we({asChild:!0},o),l)}),nx="PopoverPortal",[$6,L6]=rx(nx,{forceMount:void 0}),_6=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=vs(nx,t);return h.createElement($6,{scope:t,forceMount:r},h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},n)))},Kl="PopoverContent",W6=h.forwardRef((e,t)=>{const r=L6(Kl,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=vs(Kl,e.__scopePopover);return h.createElement(sn,{present:n||o.open},o.modal?h.createElement(V6,we({},a,{ref:t})):h.createElement(H6,we({},a,{ref:t})))}),V6=h.forwardRef((e,t)=>{const r=vs(Kl,e.__scopePopover),n=h.useRef(null),a=Kt(t,n),o=h.useRef(!1);return h.useEffect(()=>{const i=n.current;if(i)return Kh(i)},[]),h.createElement(rp,{as:Ko,allowPinchZoom:!0},h.createElement(ax,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:at(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),o.current||(l=r.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:at(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:at(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})))}),H6=h.forwardRef((e,t)=>{const r=vs(Kl,e.__scopePopover),n=h.useRef(!1),a=h.useRef(!1);return h.createElement(ax,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),ax=h.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:m,...p}=e,x=vs(Kl,r),C=jp(r);return Vh(),h.createElement(Gh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>x.onOpenChange(!1)},h.createElement(Uh,we({"data-state":ox(x.open),role:"dialog",id:x.contentId},C,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function ox(e){return e?"open":"closed"}const z6=N6,G6=R6,Z6=_6,ix=W6,sx=je.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},a)=>s.jsx(Z6,{children:s.jsx(ix,{ref:a,align:t,sideOffset:r,className:Ve("z-50 rounded border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:shadow-dark",e),...n})}));sx.displayName=ix.displayName;const lx=({trigger:e,children:t,className:r,align:n="center",side:a,sideOffset:o=4,open:i})=>s.jsxs(z6,{open:i,children:[s.jsx(G6,{children:e}),s.jsx(sx,{side:a,className:r,align:n,sideOffset:o,children:t})]}),U6=e=>{const[t,r]=h.useState(null),[n,a]=h.useState(!1),[o,i]=h.useState(""),[l,u]=h.useState(!1);let c=[{icon:s.jsx(X6,{}),value:"very-good"},{icon:s.jsx(Y6,{}),value:"good"},{icon:s.jsx(J6,{}),value:"bad"},{icon:s.jsx(Q6,{}),value:"very-bad"}];const m=async()=>{if(console.log("submitting"),o){a(!0);try{await e.handleSubmit({choice:t,feedback:o})}catch(p){console.error("Error during submission:",p),a(!1)}await a(!1)}else a(!1),u(!0)};return s.jsxs("div",{className:Ve("flex flex-col gap-2 rounded border p-2 transition-all",t?"h-[165px] min-w-fit":"h-[44px] "),children:[s.jsx("div",{className:"flex flex-row items-center justify-center gap-2 ",children:s.jsx("div",{className:"flex flex-row justify-center gap-0.5 ",children:c.map((p,x)=>s.jsx(qe,{onClick:()=>{t===p.value?r(""):r(p.value)},variant:"ghost",size:"smallIcon",className:Ve(t===p.value?"bg-primary/10 hover:bg-primary/10 ":"text-[#666666]"),children:p.icon},x))})}),s.jsx("div",{className:Ve("flex flex-col overflow-clip transition-all duration-500 ease-in-out ",t?"visible opacity-100":"invisible opacity-0 "),children:e.showSuccess?s.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 pt-4",children:[s.jsx("div",{className:"rounded bg-primary p-2 text-primary-foreground",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.5em",width:"0.5em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})}),s.jsxs("div",{className:"text-sm flex flex-col text-center",children:[s.jsx("span",{children:"Your feedback has been received!"}),s.jsx("span",{children:"Thank you for your help"})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs(lx,{className:"select-none p-1 text-xs ",open:l,trigger:s.jsx(xd,{className:Ve("mb-2 h-full resize-none"),placeholder:"Your feedback",onChange:p=>{p.target.value&&u(!1),i(p.target.value),console.log("changing to",p.target.value)}}),children:[s.jsx("span",{children:"Please enter your feedback"})," "]}),s.jsx(qe,{isLoading:n,onClick:m,className:"w-full",size:"sm",children:"Submit"})]})})]})},X6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsxs("g",{clipPath:"url(#clip0_53_166)",children:[s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",fill:"currentColor",fillRule:"evenodd"}),s.jsx("path",{clipRule:"evenodd",d:"M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",fill:"#FF990A",fillRule:"evenodd"})]})}),Y6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{clipPath:"url(#clip0_53_167)",children:s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})})}),J6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{clipPath:"url(#clip0_53_152)",children:s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",fill:"currentColor",fillRule:"evenodd"})})}),Q6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsxs("g",{clipPath:"url(#clip0_53_151)",children:[s.jsx("path",{d:"M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",fill:"#0070F3"}),s.jsx("path",{clipRule:"evenodd",d:"M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})]})}),ux=e=>s.jsx("svg",{onClick:e.onClick||(()=>{}),className:$e("h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",e.direction==="right"?"-rotate-90":"rotate-90",e.disabled?"text-gray-300":"cursor-pointer hover:scale-150"),fill:e.disabled&&"grey",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}),K6=e=>{const[t,r]=h.useState(e.index||0);return h.useEffect(()=>{console.log(`INDEX CHANGED TO: ${t}`)},[t]),s.jsxs("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md",children:[s.jsx(ux,{direction:"left",disabled:t==0,onClick:()=>{t!=0&&r(t-1)}}),s.jsxs("div",{className:"relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 ",children:[s.jsx("div",{children:e.items[t].icon}),s.jsx("div",{className:"absolute bottom-1 mb-0 mt-2 select-none",children:e.items[t].label})]}),s.jsx(ux,{direction:"right",disabled:t==e.items.length-1,onClick:()=>{t!=e.items.length-1&&r(t+1)}})]})},q6=e=>s.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",onMouseDown:e.onMouseDown,children:e.name}),cx={bold:{css:"font-bold",content:"B"},italic:{id:"italic",css:"italic",content:"I"},under:{id:"under",css:"underline",content:"U"},strike:{id:"strike",css:"line-through",content:"S"}},ta="",ej=e=>{const[t,r]=h.useState({content:"",stylings:[],revert:[0,0],clipboard:[],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}),n=h.useRef(null),a=h.useRef(t),o=N=>{a.current=N,r(N)},i=N=>{for(var W=0;N=N.previousSibling;W++);return W},l=(N,W)=>Array.from(N.childNodes).slice(0,W).map(ne=>ne.textContent.length).reduce((ne,te)=>ne+te,0),u=N=>Array.from(n.current.childNodes).slice(0,N).map(de=>{let ne=Array.from(de.childNodes);return l(de,ne.length)}).reduce((de,ne)=>de+ne,0),c=N=>{let W=window.getSelection(),ee=Array.from(n.current.childNodes);ee=ee.filter(se=>!["#text","BR"].includes(se.nodeName));let de=W[N],ne=de.parentNode,te=0;const K=de.nodeName=="DIV"&&Array.from(de.classList).includes("line");if(ne.nodeName=="SPAN"){let se=i(ne);te+=l(ne.parentNode,se);let fe=i(ne.parentNode);te+=u(fe)}if(Array.from(ne.classList).includes("line")){if(de.nodeName=="#text"){let fe=i(de);te+=l(ne,fe)}let se=i(ne);te+=u(se)}if(K){let se=i(de);te=u(se)}return ne==n.current&&!K?0:te},m=()=>{if(document.activeElement!=n.current)return[0,0];let N=window.getSelection(),W=c("anchorNode"),ee=c("focusNode");return[W+N.anchorOffset,ee+N.focusOffset].sort((ne,te)=>ne-te)};h.useEffect(()=>{setTimeout(function(){let[N,W]=a.current.revert;if(N==0&&W==0)return;let ee=null,de=null,ne=0,te=Array.from(n.current.getElementsByTagName("span"));for(let fe=0;fe<te.length;fe++){let Se=te[fe],G=Se.textContent.length+ne;ee==null&&N>=ne&&N<=G&&(ee=te[fe],N-=ne),de==null&&W>ne&&W<=G&&(de=te[fe],W-=ne),ne+=Se.textContent.length}var K=document.createRange(),se=window.getSelection();K.setStart(ee.firstChild,N),K.setEnd(de.firstChild,W),se.removeAllRanges(),se.addRange(K)},1)},[t.revert]);const p=(N,W)=>{let ee=[];for(let de=N;de<=W;de++)ee.push(de);return ee},x=(N,W)=>{const ee=new Set;for(const de of W)N.has(de)&&ee.add(de);return ee},C=N=>N.sort((W,ee)=>W-ee)[0],E=N=>N.sort((W,ee)=>ee-W)[0],v=(N,W)=>{if(N.type!=W.type)return-1;if(W.start<=N.start&&W.finish>=N.finish)return 0;let ee=new Set(p(N.start-1,N.finish-1)),de=new Set(p(W.start-1,W.finish-1));return x(ee,de).size==0?2:1},A=(N,W,ee,de)=>{let[ne,te,K]=N.find(([fe,Se,G])=>fe==0);W=W.filter((fe,Se)=>Se!=te);let se=[{type:de,start:C([K.start,ee.start]),finish:E([K.start,ee.start])},{type:de,start:C([K.finish,ee.finish]),finish:E([K.finish,ee.finish])}];return se=se.filter(fe=>fe.start!=fe.finish),W=[...W,...se],W},S=(N,W,ee,de)=>{let ne=N.filter(([fe,Se,G])=>fe==1).map(([fe,Se,G])=>[Se,G]);ne.push([-1,ee]);let te=ne.map(([fe,Se])=>Se.start).sort((fe,Se)=>fe-Se)[0],K=ne.map(([fe,Se])=>Se.finish).sort((fe,Se)=>Se-fe)[0],se=ne.map(fe=>fe[0]);return W=W.filter((fe,Se)=>!se.includes(Se)),W.push({type:de,start:te,finish:K}),W},j=N=>{let W=a.current.stylings.slice(),[ee,de]=m();if(ee==de)return;let ne={type:N,start:ee,finish:de},te=[];for(let se=0;se<W.length;se++){let fe=W[se],Se=v(ne,fe);Se!=-1&&te.push([Se,se,fe])}let K;te.find(([se,fe,Se])=>se==1)?K=S(te,W,ne,N):te.find(([se,fe,Se])=>se==0)?K=A(te,W,ne,N):(te.find(([se,fe,Se])=>se==2)||te.length==0)&&(K=[...W,ne]),o({...t,stylings:K,revert:[ee,de]})},O=(N,W,ee=0,de=0)=>N.filter(({start:te,finish:K})=>W>=te+ee&&W<K+de),L=(N,W,ee)=>{let de=N.filter(({start:ne,finish:te})=>te>W&&ne<ee||ne<ee&&te>W);return de=de.map(ne=>({...ne,start:E([ne.start,W])-W,finish:C([ne.finish,ee])-W})),de},M=(N,W,ee=0)=>{let de={...N,start:N.start,finish:W},ne={...N,start:W+ee,finish:N.finish+ee};return[de,ne]},z=(N,W,ee,de=!0)=>(N=N.map(ne=>ne.start>=W&&ne.finish>W?(console.log("succeeding"),{...ne,start:ne.start+ee,finish:ne.finish+ee}):ne.start<W&&ne.finish>W?de?{...ne,finish:ne.finish+ee}:M(ne,W,ee):ne.finish==W&&de?{...ne,finish:ne.finish+ee}:ne),N.flat()),H=(N,W,ee)=>{let de=Math.abs(ee-W);return N=N.map(ne=>ne.start>=W&&ne.start>=ee&&ne.finish>=W&&ne.finish>=ee?{...ne,start:ne.start-de,finish:ne.finish-de}:ne.start>=W&&ne.finish<=ee?null:ne.start<=W&&ne.finish>=ee?{...ne,finish:ne.finish-de}:ne.start>W&&ne.start<ee?{...ne,start:E([ne.start,ee])-de,finish:ne.finish-de}:ne.finish>W&&ne.finish<ee?{...ne,finish:C([ne.finish,W])}:ne),N.flat().filter(ne=>ne)},oe=(N,W,ee,de)=>(W==0||(W>0?N=z(N,ee-W,W):N=H(N,ee,de+Math.abs(W))),N),J=(N,W,ee,de)=>{let ne=a.current.events.paste.length,te=ee-ne,K=te,se=te+ne-W;return N=H(N,K,se),N=z(N,te,ne,!1),N=N.concat(a.current.clipboard.map(fe=>({...fe,start:fe.start+te,finish:fe.finish+te}))),N},ge=(N,W,ee,de)=>{console.log(`Dropped at: ${[ee,de]}`);let ne=a.current.events.drop.text.length,[te,K]=a.current.events.drop.drag,se=ee-te,fe=L(N,te,K),Se=te,G=K;if(se>0&&(N=z(N,de,ne,!1),N=H(N,Se,G)),se<0){let he=ee;N=H(N,Se,G),N=z(N,he,ne,!1)}return N=N.concat(fe.map(he=>({...he,start:he.start+ee,finish:he.finish+ee}))),N},xe=(N,W,ee)=>{a.current.events.drop.is&&N.length!=a.current.content.length||(console.log(`Changed at: ${[W,ee]}`),setTimeout(function(){let de=N.length-a.current.content.length,ne=a.current.stylings;a.current.events.paste.is?ne=J(ne,de,W):a.current.events.drop.is?ne=ge(ne,de,W,ee):ne=oe(ne,de,W,ee),o({...a.current,content:N,stylings:ne,revert:[W,ee],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}})},0))},Q=()=>{let N=a.current.content,W=[...a.current.stylings],ee=[],de=N.split("").map((ne,te)=>ne==ta?te:null).filter(ne=>ne);de.unshift(0),de.push(N.length);for(let ne=0;ne<de.length-1;ne++){let te=de[ne],K=de[ne+1],se=N.slice(te,K),fe=L(W,te,K),Se=[],G=fe.map(({start:ae,finish:me})=>[ae,me]).flat().sort((ae,me)=>ae-me);G=G.filter((ae,me)=>G.indexOf(ae)==me),G[0]!=0&&G.unshift(0);let he=se.length;G[G.length-1]!=he&&G.push(he);for(let ae=0;ae<G.length-1;ae++){let me=G[ae],Me=G[ae+1];Se.push({content:se.substring(me,Me),types:O(fe,me).map(Pe=>Pe.type)})}ee.push(Se)}return ee};h.useEffect(()=>{let N=Q().map((W,ee)=>`<div class="line" data-line-index="${ee}">${W.map((de,ne)=>`<span class="${de.types.map(te=>cx[te].css).join(" ")}" data-child-index="${ne}">${de.content}</span>`).join("")}</div>`).join("");n.current.innerHTML=N},[t.content,t.stylings,t.revert]);const ce=()=>{switch(e.rtl||"disabled"){case"enabled":return"rtl";case"disabled":return"ltr";case"auto":return"ltr"}};return s.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[s.jsx("div",{className:$e("flex w-full flex-row justify-start p-2"),children:Object.entries(cx).map(([N,W])=>s.jsx(q6,{name:W.content,onMouseDown:ee=>{ee.preventDefault(),j(N)}},`property-${N}`))}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("div",{className:"selection-ignore box-border w-full p-2",children:s.jsx("div",{ref:n,contentEditable:"true",className:"selection-ignore rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none",style:{direction:ce()},onPaste:N=>{N.preventDefault();let W=N.clipboardData.getData("text/plain");W=W.replaceAll(`
|
|
106
|
+
`,""),W=W.replaceAll("\r",""),document.execCommand("insertHTML",!1,W),o({...a.current,events:{...a.current.events,paste:{is:!0,length:W.length}}})},onInput:N=>{let[W,ee]=m(),de=N.target.textContent,ne=a.current.content,te=N.nativeEvent.inputType;if(te=="insertParagraph"){console.log(`Inserted new line at [${W}, ${ee}]`);let K=de.split("");K.splice(W,0,ta),W==0&&!ne.startsWith(ta)&&(K.splice(W,0,ta),W+=1,ee+=1),de=K.join(""),W+=1,ee+=1}else{let K=window.getSelection(),{anchorNode:se,focusNode:fe}=K,Se=N.nativeEvent.data;if(se.parentNode==fe.parentNode&&se.parentNode.nodeName=="SPAN"&&K.anchorOffset<=1&&K.focusOffset<=1&&te=="insertText"){let G=i(se.parentNode.parentNode),he=ne;ne.startsWith(ta)&&(he=he.slice(1));let ae=he.split(ta)[G];console.log(he.split(ta)),ae=ae.split(""),ae.splice(0,0,Se),ae=ae.join("");let me=he.split(ta);me[G]=ae,de=me.join(ta),ne.startsWith(ta)&&(de=ta+de),W+=1,ee+=1}}xe(de,W,ee)},onCopy:()=>{let[N,W]=m(),ee=a.current.stylings.slice();ee=L(ee,N,W),o({...t,clipboard:ee})},onDrop:N=>{let W=N.dataTransfer.getData("text");W.trim()!=""&&o({...a.current,events:{...a.current.events,drop:{is:!0,text:W,drag:m()}}})}})}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:()=>{(e.onSubmit||(()=>{}))(t.content,t.stylings)},children:"Submit"})]})};/*!
|
|
107
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
108
|
+
*
|
|
109
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
110
|
+
* Released under the MIT License.
|
|
111
|
+
*/function dx(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hr(e){var t,r;return dx(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(dx(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}function Br(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var a=lj[e],o=a?typeof a=="function"?a.apply(null,r):a:"unknown error nr: "+e;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function si(e){return!!e&&!!e[jn]}function li(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===uj}(e)||Array.isArray(e)||!!e[Cx]||!!(!((t=e.constructor)===null||t===void 0)&&t[Cx])||Tp(e)||kp(e))}function ql(e,t,r){r===void 0&&(r=!1),bs(e)===0?(r?Object.keys:Hp)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function bs(e){var t=e[jn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Tp(e)?2:kp(e)?3:0}function Ip(e,t){return bs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tj(e,t){return bs(e)===2?e.get(t):e[t]}function fx(e,t,r){var n=bs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function rj(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Tp(e){return ij&&e instanceof Map}function kp(e){return sj&&e instanceof Set}function ui(e){return e.o||e.t}function Bp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=cj(e);delete t[jn];for(var r=Hp(t),n=0;n<r.length;n++){var a=r[n],o=t[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Pp(e,t){return t===void 0&&(t=!1),Op(e)||si(e)||!li(e)||(bs(e)>1&&(e.set=e.add=e.clear=e.delete=nj),Object.freeze(e),t&&ql(e,function(r,n){return Pp(n,!0)},!0)),e}function nj(){Br(2)}function Op(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Da(e){var t=dj[e];return t||Br(18,e),t}function hx(){return process.env.NODE_ENV==="production"||xs||Br(0),xs}function Np(e,t){t&&(Da("Patches"),e.u=[],e.s=[],e.v=t)}function yd(e){Mp(e),e.p.forEach(aj),e.p=null}function Mp(e){e===xs&&(xs=e.l)}function px(e){return xs={p:[],l:xs,h:e,m:!0,_:0}}function aj(e){var t=e[jn];t.i===0||t.i===1?t.j():t.g=!0}function Rp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Da("ES5").S(t,e,n),n?(r[jn].P&&(yd(t),Br(4)),li(e)&&(e=Cd(t,e),t.l||wd(t,e)),t.u&&Da("Patches").M(r[jn].t,e,t.u,t.s)):e=Cd(t,r,[]),yd(t),t.u&&t.v(t.u,t.s),e!==yx?e:void 0}function Cd(e,t,r){if(Op(t))return t;var n=t[jn];if(!n)return ql(t,function(l,u){return gx(e,n,t,l,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return wd(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Bp(n.k):n.o,o=a,i=!1;n.i===3&&(o=new Set(a),a.clear(),i=!0),ql(o,function(l,u){return gx(e,n,a,l,u,r,i)}),wd(e,a,!1),r&&e.u&&Da("Patches").N(n,r,e.u,e.s)}return n.o}function gx(e,t,r,n,a,o,i){if(process.env.NODE_ENV!=="production"&&a===r&&Br(5),si(a)){var l=Cd(e,a,o&&t&&t.i!==3&&!Ip(t.R,n)?o.concat(n):void 0);if(fx(r,n,l),!si(l))return;e.m=!1}else i&&r.add(a);if(li(a)&&!Op(a)){if(!e.h.D&&e._<1)return;Cd(e,a),t&&t.A.l||wd(e,a)}}function wd(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Pp(t,r)}function $p(e,t){var r=e[jn];return(r?ui(r):e)[t]}function mx(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Lp(e){e.P||(e.P=!0,e.l&&Lp(e.l))}function _p(e){e.o||(e.o=Bp(e.t))}function Wp(e,t,r){var n=Tp(t)?Da("MapSet").F(t,r):kp(t)?Da("MapSet").T(t,r):e.O?function(a,o){var i=Array.isArray(a),l={i:i?1:0,A:o?o.A:hx(),P:!1,I:!1,R:{},l:o,t:a,k:null,o:null,j:null,C:!1},u=l,c=zp;i&&(u=[l],c=eu);var m=Proxy.revocable(u,c),p=m.revoke,x=m.proxy;return l.k=x,l.j=p,x}(t,r):Da("ES5").J(t,r);return(r?r.A:hx()).p.push(n),n}function oj(e){return si(e)||Br(22,e),function t(r){if(!li(r))return r;var n,a=r[jn],o=bs(r);if(a){if(!a.P&&(a.i<4||!Da("ES5").K(a)))return a.t;a.I=!0,n=vx(r,o),a.I=!1}else n=vx(r,o);return ql(n,function(i,l){a&&tj(a.t,i)===l||fx(n,i,t(l))}),o===3?new Set(n):n}(e)}function vx(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Bp(e)}var bx,xs,Vp=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ij=typeof Map<"u",sj=typeof Set<"u",xx=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",yx=Vp?Symbol.for("immer-nothing"):((bx={})["immer-nothing"]=!0,bx),Cx=Vp?Symbol.for("immer-draftable"):"__$immer_draftable",jn=Vp?Symbol.for("immer-state"):"__$immer_state",lj={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"},uj=""+Object.prototype.constructor,Hp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,cj=Object.getOwnPropertyDescriptors||function(e){var t={};return Hp(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},dj={},zp={get:function(e,t){if(t===jn)return e;var r=ui(e);if(!Ip(r,t))return function(a,o,i){var l,u=mx(o,i);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!li(n)?n:n===$p(e.t,t)?(_p(e),e.o[t]=Wp(e.A.h,n,e)):n},has:function(e,t){return t in ui(e)},ownKeys:function(e){return Reflect.ownKeys(ui(e))},set:function(e,t,r){var n=mx(ui(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var a=$p(ui(e),t),o=a==null?void 0:a[jn];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(rj(r,a)&&(r!==void 0||Ip(e.t,t)))return!0;_p(e),Lp(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return $p(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,_p(e),Lp(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ui(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Br(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Br(12)}},eu={};ql(zp,function(e,t){eu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),eu.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Br(13),eu.set.call(this,e,t,void 0)},eu.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Br(14),zp.set.call(this,e[0],t,r,e[0])};var fj=function(){function e(r){var n=this;this.O=xx,this.D=!0,this.produce=function(a,o,i){if(typeof a=="function"&&typeof o!="function"){var l=o;o=a;var u=n;return function(v){var A=this;v===void 0&&(v=l);for(var S=arguments.length,j=Array(S>1?S-1:0),O=1;O<S;O++)j[O-1]=arguments[O];return u.produce(v,function(L){var M;return(M=o).call.apply(M,[A,L].concat(j))})}}var c;if(typeof o!="function"&&Br(6),i!==void 0&&typeof i!="function"&&Br(7),li(a)){var m=px(n),p=Wp(n,a,void 0),x=!0;try{c=o(p),x=!1}finally{x?yd(m):Mp(m)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(v){return Np(m,i),Rp(v,m)},function(v){throw yd(m),v}):(Np(m,i),Rp(c,m))}if(!a||typeof a!="object"){if((c=o(a))===void 0&&(c=a),c===yx&&(c=void 0),n.D&&Pp(c,!0),i){var C=[],E=[];Da("Patches").M(a,c,C,E),i(C,E)}return c}Br(21,a)},this.produceWithPatches=function(a,o){if(typeof a=="function")return function(c){for(var m=arguments.length,p=Array(m>1?m-1:0),x=1;x<m;x++)p[x-1]=arguments[x];return n.produceWithPatches(c,function(C){return a.apply(void 0,[C].concat(p))})};var i,l,u=n.produce(a,o,function(c,m){i=c,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(c){return[c,i,l]}):[u,i,l]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){li(r)||Br(8),si(r)&&(r=oj(r));var n=px(this),a=Wp(this,r,void 0);return a[jn].C=!0,Mp(n),a},t.finishDraft=function(r,n){var a=r&&r[jn];process.env.NODE_ENV!=="production"&&(a&&a.C||Br(9),a.I&&Br(10));var o=a.A;return Np(o,n),Rp(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!xx&&Br(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var o=n[a];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}a>-1&&(n=n.slice(a+1));var i=Da("Patches").$;return si(r)?i(r,n):this.produce(r,function(l){return i(l,n)})},e}(),In=new fj,Gp=In.produce;In.produceWithPatches.bind(In),In.setAutoFreeze.bind(In),In.setUseProxies.bind(In),In.applyPatches.bind(In);var wx=In.createDraft.bind(In),Ex=In.finishDraft.bind(In),hj={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var a=le.transform(r,t,{affinity:n});e.current=a,a==null&&e.unref()}}},pj={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var a=jt.transform(r,t,{affinity:n});e.current=a,a==null&&e.unref()}}},gj={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var a=Be.transform(r,t,{affinity:n});e.current=a,a==null&&e.unref()}}},Ed=new WeakMap,Dd=new WeakMap,tu=new WeakMap,Dx=new WeakMap,Sx=new WeakMap,Ax=new WeakMap,Fx=new WeakMap,le={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=le.levels(e,t);return r?n=n.slice(1):n=n.slice(0,-1),n},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var a=e[n],o=t[n];if(a!==o)break;r.push(a)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),a=t.slice(0,r),o=e[r],i=t[r];return le.equals(n,a)&&o>i},endsAt(e,t){var r=e.length,n=e.slice(0,r),a=t.slice(0,r);return le.equals(n,a)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),a=t.slice(0,r),o=e[r],i=t[r];return le.equals(n,a)&&o<i},equals(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return le.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&le.compare(e,t)===0},isBefore(e,t){return le.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&le.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&le.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&le.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&le.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1),a=e[e.length-1],o=t[t.length-1];return a!==o&&le.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],a=0;a<=e.length;a++)n.push(e.slice(0,a));return r&&n.reverse(),n},next(e){if(e.length===0)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(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)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(!le.isAncestor(t,e)&&!le.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 r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var n=[...e],{affinity:a="forward"}=r;if(e.length===0)return n;switch(t.type){case"insert_node":{var{path:o}=t;(le.equals(o,n)||le.endsBefore(o,n)||le.isAncestor(o,n))&&(n[o.length-1]+=1);break}case"remove_node":{var{path:i}=t;if(le.equals(i,n)||le.isAncestor(i,n))return null;le.endsBefore(i,n)&&(n[i.length-1]-=1);break}case"merge_node":{var{path:l,position:u}=t;le.equals(l,n)||le.endsBefore(l,n)?n[l.length-1]-=1:le.isAncestor(l,n)&&(n[l.length-1]-=1,n[l.length]+=u);break}case"split_node":{var{path:c,position:m}=t;if(le.equals(c,n)){if(a==="forward")n[n.length-1]+=1;else if(a!=="backward")return null}else le.endsBefore(c,n)?n[c.length-1]+=1:le.isAncestor(c,n)&&e[c.length]>=m&&(n[c.length-1]+=1,n[c.length]-=m);break}case"move_node":{var{path:p,newPath:x}=t;if(le.equals(p,x))return n;if(le.isAncestor(p,n)||le.equals(p,n)){var C=x.slice();return le.endsBefore(p,x)&&p.length<x.length&&(C[p.length-1]-=1),C.concat(n.slice(p.length))}else le.isSibling(p,x)&&(le.isAncestor(x,n)||le.equals(x,n))?le.endsBefore(p,n)?n[p.length-1]-=1:n[p.length-1]+=1:le.endsBefore(x,n)||le.equals(x,n)||le.isAncestor(x,n)?(le.endsBefore(p,n)&&(n[p.length-1]-=1),n[x.length-1]+=1):le.endsBefore(p,n)&&(le.equals(x,n)&&(n[x.length-1]+=1),n[p.length-1]-=1);break}}return n}};function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ru(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var mj=(e,t,r)=>{switch(r.type){case"insert_node":{var{path:n,node:a}=r,o=Ye.parent(e,n),i=n[n.length-1];if(i>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(o.children.splice(i,0,a),t)for(var[l,u]of Be.points(t))t[u]=jt.transform(l,r);break}case"insert_text":{var{path:c,offset:m,text:p}=r;if(p.length===0)break;var x=Ye.leaf(e,c),C=x.text.slice(0,m),E=x.text.slice(m);if(x.text=C+p+E,t)for(var[v,A]of Be.points(t))t[A]=jt.transform(v,r);break}case"merge_node":{var{path:S}=r,j=Ye.get(e,S),O=le.previous(S),L=Ye.get(e,O),M=Ye.parent(e,S),z=S[S.length-1];if(lt.isText(j)&<.isText(L))L.text+=j.text;else if(!lt.isText(j)&&!lt.isText(L))L.children.push(...j.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(S,"] to nodes of different interfaces: ").concat(jr.stringify(j)," ").concat(jr.stringify(L)));if(M.children.splice(z,1),t)for(var[H,oe]of Be.points(t))t[oe]=jt.transform(H,r);break}case"move_node":{var{path:J,newPath:ge}=r;if(le.isAncestor(J,ge))throw new Error("Cannot move a path [".concat(J,"] to new path [").concat(ge,"] because the destination is inside itself."));var xe=Ye.get(e,J),Q=Ye.parent(e,J),ce=J[J.length-1];Q.children.splice(ce,1);var N=le.transform(J,r),W=Ye.get(e,le.parent(N)),ee=N[N.length-1];if(W.children.splice(ee,0,xe),t)for(var[de,ne]of Be.points(t))t[ne]=jt.transform(de,r);break}case"remove_node":{var{path:te}=r,K=te[te.length-1],se=Ye.parent(e,te);if(se.children.splice(K,1),t)for(var[fe,Se]of Be.points(t)){var G=jt.transform(fe,r);if(t!=null&&G!=null)t[Se]=G;else{var he=void 0,ae=void 0;for(var[me,Me]of Ye.texts(e))if(le.compare(Me,te)===-1)he=[me,Me];else{ae=[me,Me];break}var Pe=!1;he&&ae&&(le.equals(ae[1],te)?Pe=!le.hasPrevious(ae[1]):Pe=le.common(he[1],te).length<le.common(ae[1],te).length),he&&!Pe?(fe.path=he[1],fe.offset=he[0].text.length):ae?(fe.path=ae[1],fe.offset=0):t=null}}break}case"remove_text":{var{path:We,offset:Ke,text:Ne}=r;if(Ne.length===0)break;var Qe=Ye.leaf(e,We),nt=Qe.text.slice(0,Ke),vt=Qe.text.slice(Ke+Ne.length);if(Qe.text=nt+vt,t)for(var[At,re]of Be.points(t))t[re]=jt.transform(At,r);break}case"set_node":{var{path:be,properties:Ie,newProperties:Ze}=r;if(be.length===0)throw new Error("Cannot set properties on the root node!");var He=Ye.get(e,be);for(var Te in Ze){if(Te==="children"||Te==="text")throw new Error('Cannot set the "'.concat(Te,'" property of nodes!'));var Ee=Ze[Te];Ee==null?delete He[Te]:He[Te]=Ee}for(var ze in Ie)Ze.hasOwnProperty(ze)||delete He[ze];break}case"set_selection":{var{newProperties:tt}=r;if(tt==null)t=tt;else{if(t==null){if(!Be.isRange(tt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(jr.stringify(tt)," when there is no current selection."));t=ru({},tt)}for(var bt in tt){var Ot=tt[bt];if(Ot==null){if(bt==="anchor"||bt==="focus")throw new Error('Cannot remove the "'.concat(bt,'" selection property'));delete t[bt]}else t[bt]=Ot}}break}case"split_node":{var{path:gt,position:Wt,properties:pr}=r;if(gt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(gt,"] because the root node cannot be split."));var Yt=Ye.get(e,gt),Cr=Ye.parent(e,gt),gr=gt[gt.length-1],Or;if(lt.isText(Yt)){var Nr=Yt.text.slice(0,Wt),xr=Yt.text.slice(Wt);Yt.text=Nr,Or=ru(ru({},pr),{},{text:xr})}else{var Mr=Yt.children.slice(0,Wt),cn=Yt.children.slice(Wt);Yt.children=Mr,Or=ru(ru({},pr),{},{children:cn})}if(Cr.children.splice(gr+1,0,Or),t)for(var[cr,wr]of Be.points(t))t[wr]=jt.transform(cr,r);break}}return t},vj={transform(e,t){e.children=wx(e.children);var r=e.selection&&wx(e.selection);try{r=mj(e,r,t)}finally{e.children=Ex(e.children),r?e.selection=si(r)?Ex(r):r:e.selection=null}}},bj={insertNodes(e,t,r){e.insertNodes(t,r)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,r){e.setNodes(t,r)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,r){e.unsetNodes(t,r)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,r){e.wrapNodes(t,r)}},xj={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,r){e.setPoint(t,r)},setSelection(e,t){e.setSelection(t)}},Ix=(e,t)=>{for(var r in e){var n=e[r],a=t[r];if(Hr(n)&&Hr(a)){if(!Ix(n,a))return!1}else if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(var o=0;o<n.length;o++)if(n[o]!==a[o])return!1}else if(n!==a)return!1}for(var i in t)if(e[i]===void 0&&t[i]!==void 0)return!1;return!0};function yj(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Ha(e,t){if(e==null)return{};var r=yj(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Cj=["anchor","focus"];function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Be={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:a}=e;return Be.isBackward(e)===r?[n,a]:[a,n]},end(e){var[,t]=Be.edges(e);return t},equals(e,t){return jt.equals(e.anchor,t.anchor)&&jt.equals(e.focus,t.focus)},includes(e,t){if(Be.isRange(t)){if(Be.includes(e,t.anchor)||Be.includes(e,t.focus))return!0;var[r,n]=Be.edges(e),[a,o]=Be.edges(t);return jt.isBefore(r,a)&&jt.isAfter(n,o)}var[i,l]=Be.edges(e),u=!1,c=!1;return jt.isPoint(t)?(u=jt.compare(t,i)>=0,c=jt.compare(t,l)<=0):(u=le.compare(t,i.path)>=0,c=le.compare(t,l.path)<=0),u&&c},intersection(e,t){var r=Ha(e,Cj),[n,a]=Be.edges(e),[o,i]=Be.edges(t),l=jt.isBefore(n,o)?o:n,u=jt.isBefore(a,i)?a:i;return jt.isBefore(u,l)?null:wj({anchor:l,focus:u},r)},isBackward(e){var{anchor:t,focus:r}=e;return jt.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return jt.equals(t,r)},isExpanded(e){return!Be.isCollapsed(e)},isForward(e){return!Be.isBackward(e)},isRange(e){return Hr(e)&&jt.isPoint(e.anchor)&&jt.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Be.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Gp(e,n=>{if(n===null)return null;var{affinity:a="inward"}=r,o,i;if(a==="inward"){var l=Be.isCollapsed(n);Be.isForward(n)?(o="forward",i=l?o:"backward"):(o="backward",i=l?o:"forward")}else a==="outward"?Be.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var u=jt.transform(n.anchor,t,{affinity:o}),c=jt.transform(n.focus,t,{affinity:i});if(!u||!c)return null;n.anchor=u,n.focus=c})}},kx=e=>Hr(e)&&Ye.isNodeList(e.children)&&!P.isEditor(e),ot={isAncestor(e){return Hr(e)&&Ye.isNodeList(e.children)},isElement:kx,isElementList(e){return Array.isArray(e)&&e.every(t=>ot.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return kx(t)&&t[n]===r},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},Ej=["children"],Dj=["text"],Bx=new WeakMap,Ye={ancestor(e,t){var r=Ye.get(e,t);if(lt.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(jr.stringify(r)));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of le.ancestors(t,r)){var a=Ye.ancestor(e,n),o=[a,n];yield o}},child(e,t){if(lt.isText(e))throw new Error("Cannot get the child of a text node: ".concat(jr.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(jr.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,a=Ye.ancestor(e,t),{children:o}=a,i=n?o.length-1:0;n?i>=0:i<o.length;){var l=Ye.child(a,i),u=t.concat(i);yield[l,u],i=n?i-1:i+1}},common(e,t,r){var n=le.common(t,r),a=Ye.get(e,n);return[a,n]},descendant(e,t){var r=Ye.get(e,t);if(P.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(jr.stringify(r)));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Ye.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Ye.nodes(e,t))ot.isElement(r)&&(yield[r,n])},extractProps(e){if(ot.isAncestor(e)){var t=Ha(e,Ej);return t}else{var t=Ha(e,Dj);return t}},first(e,t){for(var r=t.slice(),n=Ye.get(e,r);n&&!(lt.isText(n)||n.children.length===0);)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(lt.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(jr.stringify(e)));var r=Gp({children:e.children},n=>{var[a,o]=Be.edges(t),i=Ye.nodes(n,{reverse:!0,pass:x=>{var[,C]=x;return!Be.includes(t,C)}});for(var[,l]of i){if(!Be.includes(t,l)){var u=Ye.parent(n,l),c=l[l.length-1];u.children.splice(c,1)}if(le.equals(l,o.path)){var m=Ye.leaf(n,l);m.text=m.text.slice(0,o.offset)}if(le.equals(l,a.path)){var p=Ye.leaf(n,l);p.text=p.text.slice(a.offset)}}P.isEditor(n)&&(n.selection=null)});return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var a=t[n];if(lt.isText(r)||!r.children[a])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(jr.stringify(e)));r=r.children[a]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var a=t[n];if(lt.isText(r)||!r.children[a])return!1;r=r.children[a]}return!0},isNode(e){return lt.isText(e)||ot.isElement(e)||P.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=Bx.get(e);if(t!==void 0)return t;var r=e.every(n=>Ye.isNode(n));return Bx.set(e,r),r},last(e,t){for(var r=t.slice(),n=Ye.get(e,r);n&&!(lt.isText(n)||n.children.length===0);){var a=n.children.length-1;n=n.children[a],r.push(a)}return[n,r]},leaf(e,t){var r=Ye.get(e,t);if(!lt.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(jr.stringify(r)));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of le.levels(t,r)){var a=Ye.get(e,n);yield[a,n]}},matches(e,t){return ot.isElement(e)&&ot.isElementProps(t)&&ot.matches(e,t)||lt.isText(e)&<.isTextProps(t)&<.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:a=[],to:o}=t,i=new Set,l=[],u=e;!(o&&(n?le.isBefore(l,o):le.isAfter(l,o)));){if(i.has(u)||(yield[u,l]),!i.has(u)&&!lt.isText(u)&&u.children.length!==0&&(r==null||r([u,l])===!1)){i.add(u);var c=n?u.children.length-1:0;le.isAncestor(l,a)&&(c=a[l.length]),l=l.concat(c),u=Ye.get(e,l);continue}if(l.length===0)break;if(!n){var m=le.next(l);if(Ye.has(e,m)){l=m,u=Ye.get(e,l);continue}}if(n&&l[l.length-1]!==0){var p=le.previous(l);l=p,u=Ye.get(e,l);continue}l=le.parent(l),u=Ye.get(e,l),i.add(u)}},parent(e,t){var r=le.parent(t),n=Ye.get(e,r);if(lt.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string(e){return lt.isText(e)?e.text:e.children.map(Ye.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Ye.nodes(e,t))lt.isText(r)&&(yield[r,n])}};function Px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Px(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var nu={isNodeOperation(e){return nu.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Hr(e))return!1;switch(e.type){case"insert_node":return le.isPath(e.path)&&Ye.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&le.isPath(e.path);case"merge_node":return typeof e.position=="number"&&le.isPath(e.path)&&Hr(e.properties);case"move_node":return le.isPath(e.path)&&le.isPath(e.newPath);case"remove_node":return le.isPath(e.path)&&Ye.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&le.isPath(e.path);case"set_node":return le.isPath(e.path)&&Hr(e.properties)&&Hr(e.newProperties);case"set_selection":return e.properties===null&&Be.isRange(e.newProperties)||e.newProperties===null&&Be.isRange(e.properties)||Hr(e.properties)&&Hr(e.newProperties);case"split_node":return le.isPath(e.path)&&typeof e.position=="number"&&Hr(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>nu.isOperation(t))},isSelectionOperation(e){return nu.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return nu.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return lr(lr({},e),{},{type:"remove_node"});case"insert_text":return lr(lr({},e),{},{type:"remove_text"});case"merge_node":return lr(lr({},e),{},{type:"split_node",path:le.previous(e.path)});case"move_node":{var{newPath:t,path:r}=e;if(le.equals(t,r))return e;if(le.isSibling(r,t))return lr(lr({},e),{},{path:t,newPath:r});var n=le.transform(r,e),a=le.transform(le.next(r),e);return lr(lr({},e),{},{path:n,newPath:a})}case"remove_node":return lr(lr({},e),{},{type:"insert_node"});case"remove_text":return lr(lr({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:i}=e;return lr(lr({},e),{},{properties:i,newProperties:o})}case"set_selection":{var{properties:l,newProperties:u}=e;return l==null?lr(lr({},e),{},{properties:u,newProperties:null}):u==null?lr(lr({},e),{},{properties:null,newProperties:l}):lr(lr({},e),{},{properties:u,newProperties:l})}case"split_node":return lr(lr({},e),{},{type:"merge_node",path:le.next(e.path)})}}},Ox=new WeakMap,Sj=e=>{var t=Ox.get(e);if(t!==void 0)return t;if(!Hr(e))return!1;var r=typeof e.addMark=="function"&&typeof e.apply=="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.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Hr(e.marks))&&(e.selection===null||Be.isRange(e.selection))&&Ye.isNodeList(e.children)&&nu.isOperationList(e.operations);return Ox.set(e,r),r},P={above(e,t){return e.above(t)},addMark(e,t,r){e.addMark(t,r)},after(e,t,r){return e.after(t,r)},before(e,t,r){return e.before(t,r)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,r){e.insertFragment(t,r)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,r){return e.isEdge(t,r)},isEditor(e){return Sj(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,r){return e.isEnd(t,r)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,r){return e.isStart(t,r)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,r){return e.leaf(t,r)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,r){return e.node(t,r)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,r){return e.parent(t,r)},path(e,t,r){return e.path(t,r)},pathRef(e,t,r){return e.pathRef(t,r)},pathRefs(e){return e.pathRefs()},point(e,t,r){return e.point(t,r)},pointRef(e,t,r){return e.pointRef(t,r)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,r){return e.range(t,r)},rangeRef(e,t,r){return e.rangeRef(t,r)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,r){return e.string(t,r)},unhangRange(e,t,r){return e.unhangRange(t,r)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)}},Aj={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(le.isPath)}};function Nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jt={compare(e,t){var r=le.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter(e,t){return jt.compare(e,t)===1},isBefore(e,t){return jt.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&le.equals(e.path,t.path)},isPoint(e){return Hr(e)&&typeof e.offset=="number"&&le.isPath(e.path)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Gp(e,n=>{if(n===null)return null;var{affinity:a="forward"}=r,{path:o,offset:i}=n;switch(t.type){case"insert_node":case"move_node":{n.path=le.transform(o,t,r);break}case"insert_text":{le.equals(t.path,o)&&(t.offset<i||t.offset===i&&a==="forward")&&(n.offset+=t.text.length);break}case"merge_node":{le.equals(t.path,o)&&(n.offset+=t.position),n.path=le.transform(o,t,r);break}case"remove_text":{le.equals(t.path,o)&&t.offset<=i&&(n.offset-=Math.min(i-t.offset,t.text.length));break}case"remove_node":{if(le.equals(t.path,o)||le.isAncestor(t.path,o))return null;n.path=le.transform(o,t,r);break}case"split_node":{if(le.equals(t.path,o)){if(t.position===i&&a==null)return null;(t.position<i||t.position===i&&a==="forward")&&(n.offset-=t.position,n.path=le.transform(o,t,Mx(Mx({},r),{},{affinity:"forward"})))}else n.path=le.transform(o,t,r);break}}})}},Rx=void 0,jr={setScrubber(e){Rx=e},stringify(e){return JSON.stringify(e,Rx)}},Fj=["text"],jj=["anchor","focus"];function $x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$x(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var lt={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function a(o){var i=Ha(o,Fj);return i}return Ix(n?a(e):e,n?a(t):t)},isText(e){return Hr(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>lt.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[za({},e)];for(var n of t){var a=Ha(n,jj),[o,i]=Be.edges(n),l=[],u=0,c=o.offset,m=i.offset;for(var p of r){var{length:x}=p.text,C=u;if(u+=x,c<=C&&u<=m){Object.assign(p,a),l.push(p);continue}if(c!==m&&(c===u||m===C)||c>u||m<C||m===C&&C!==0){l.push(p);continue}var E=p,v=void 0,A=void 0;if(m<u){var S=m-C;A=za(za({},E),{},{text:E.text.slice(S)}),E=za(za({},E),{},{text:E.text.slice(0,S)})}if(c>C){var j=c-C;v=za(za({},E),{},{text:E.text.slice(0,j)}),E=za(za({},E),{},{text:E.text.slice(j)})}Object.assign(E,a),v&&l.push(v),l.push(E),A&&l.push(A)}r=l}return r}},Zp=e=>e.selection?e.selection:e.children.length>0?P.end(e,[]):[0],ys=(e,t)=>{var[r]=P.node(e,t);return n=>n===r},Up=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!r,a=r?Oj(t):t,o=yt.None,i=yt.None,l=0,u=null,c=null;for(var m of a){var p=m.codePointAt(0);if(!p)break;var x=Zj(m,p);if([o,i]=n?[i,x]:[x,o],Cs(o,yt.ZWJ)&&Cs(i,yt.ExtPict)&&(n?u=Lx(t.substring(0,l)):u=Lx(t.substring(0,t.length-l)),!u)||Cs(o,yt.RI)&&Cs(i,yt.RI)&&(c!==null?c=!c:n?c=!0:c=Qj(t.substring(0,t.length-l)),!c)||o!==yt.None&&i!==yt.None&&Xj(o,i))break;l+=m.length}return l||1},Ij=/\s/,Tj=/[\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]/,kj=/['\u2018\u2019]/,Bj=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,a=!1;t.length>0;){var o=Up(t,r),[i,l]=Xp(t,o,r);if(Pj(i,l,r))a=!0,n+=o;else if(!a)n+=o;else break;t=l}return n},Xp=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},Pj=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(Ij.test(t))return!1;if(kj.test(t)){var a=Up(r,n),[o,i]=Xp(r,a,n);if(e(o,i,n))return!0}return!Tj.test(t)},Oj=function*(t){for(var r=t.length-1,n=0;n<t.length;n++){var a=t.charAt(r-n);if(Mj(a.charCodeAt(0))){var o=t.charAt(r-n-1);if(Nj(o.charCodeAt(0))){yield o+a,n++;continue}}yield a}},Nj=e=>e>=55296&&e<=56319,Mj=e=>e>=56320&&e<=57343,yt;(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"})(yt||(yt={}));var Rj=/^(?:[\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])$/,$j=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Lj=/^(?:[\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])$/,_j=/^[\u1100-\u115F\uA960-\uA97C]$/,Wj=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Vj=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Hj=/^[\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]$/,zj=/^[\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]$/,Gj=/^(?:[\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])$/,Zj=(e,t)=>{var r=yt.Any;return e.search(Rj)!==-1&&(r|=yt.Extend),t===8205&&(r|=yt.ZWJ),t>=127462&&t<=127487&&(r|=yt.RI),e.search($j)!==-1&&(r|=yt.Prepend),e.search(Lj)!==-1&&(r|=yt.SpacingMark),e.search(_j)!==-1&&(r|=yt.L),e.search(Wj)!==-1&&(r|=yt.V),e.search(Vj)!==-1&&(r|=yt.T),e.search(Hj)!==-1&&(r|=yt.LV),e.search(zj)!==-1&&(r|=yt.LVT),e.search(Gj)!==-1&&(r|=yt.ExtPict),r};function Cs(e,t){return(e&t)!==0}var Uj=[[yt.L,yt.L|yt.V|yt.LV|yt.LVT],[yt.LV|yt.V,yt.V|yt.T],[yt.LVT|yt.T,yt.T],[yt.Any,yt.Extend|yt.ZWJ],[yt.Any,yt.SpacingMark],[yt.Prepend,yt.Any],[yt.ZWJ,yt.ExtPict],[yt.RI,yt.RI]];function Xj(e,t){return Uj.findIndex(r=>Cs(e,r[0])&&Cs(t,r[1]))===-1}var Yj=/(?:[\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$/,Lx=e=>e.search(Yj)!==-1,Jj=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Qj=e=>{var t=e.match(Jj);if(t===null)return!1;var r=t[0].length/2;return r%2===1},Kj={delete(e,t){e.delete(t)},insertFragment(e,t,r){e.insertFragment(t,r)},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:a=Zp(e)}=r;if(le.isPath(a)&&(a=P.range(e,a)),Be.isRange(a))if(Be.isCollapsed(a))a=a.anchor;else{var o=Be.end(a);if(!n&&P.void(e,{at:o}))return;var i=Be.start(a),l=P.pointRef(e,i),u=P.pointRef(e,o);Ge.delete(e,{at:a,voids:n});var c=l.unref(),m=u.unref();a=c||m,Ge.setSelection(e,{anchor:a,focus:a})}if(!(!n&&P.void(e,{at:a})||P.elementReadOnly(e,{at:a}))){var{path:p,offset:x}=a;t.length>0&&e.apply({type:"insert_text",path:p,offset:x,text:t})}})}};function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ge=Sd(Sd(Sd(Sd({},vj),bj),xj),Kj),qj=(e,t)=>{for(var r of P.pathRefs(e))hj.transform(r,t);for(var n of P.pointRefs(e))pj.transform(n,t);for(var a of P.rangeRefs(e))gj.transform(a,t);var o=Ed.get(e)||[],i=Dd.get(e)||new Set,l,u,c=E=>{if(E){var v=E.join(",");u.has(v)||(u.add(v),l.push(E))}};if(le.operationCanTransformPath(t)){l=[],u=new Set;for(var m of o){var p=le.transform(m,t);c(p)}}else l=o,u=i;var x=e.getDirtyPaths(t);for(var C of x)c(C);Ed.set(e,l),Dd.set(e,u),Ge.transform(e,t),e.operations.push(t),P.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),tu.get(e)||(tu.set(e,!0),Promise.resolve().then(()=>{tu.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},e7=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:r}=t;return le.levels(r)}case"insert_node":{var{node:n,path:a}=t,o=le.levels(a),i=lt.isText(n)?[]:Array.from(Ye.nodes(n),ge=>{var[,xe]=ge;return a.concat(xe)});return[...o,...i]}case"merge_node":{var{path:l}=t,u=le.ancestors(l),c=le.previous(l);return[...u,c]}case"move_node":{var{path:m,newPath:p}=t;if(le.equals(m,p))return[];var x=[],C=[];for(var E of le.ancestors(m)){var v=le.transform(E,t);x.push(v)}for(var A of le.ancestors(p)){var S=le.transform(A,t);C.push(S)}var j=C[C.length-1],O=p[p.length-1],L=j.concat(O);return[...x,...C,L]}case"remove_node":{var{path:M}=t,z=le.ancestors(M);return[...z]}case"split_node":{var{path:H}=t,oe=le.levels(H),J=le.next(H);return[...oe,J]}default:return[]}},t7=e=>{var{selection:t}=e;return t?Ye.fragment(e,t):[]},r7=(e,t)=>{var[r,n]=t;if(!lt.isText(r)){if(ot.isElement(r)&&r.children.length===0){var a={text:""};Ge.insertNodes(e,a,{at:n.concat(0),voids:!0});return}for(var o=P.isEditor(r)?!1:ot.isElement(r)&&(e.isInline(r)||r.children.length===0||lt.isText(r.children[0])||e.isInline(r.children[0])),i=0,l=0;l<r.children.length;l++,i++){var u=Ye.get(e,n);if(!lt.isText(u)){var c=u.children[i],m=u.children[i-1],p=l===r.children.length-1,x=lt.isText(c)||ot.isElement(c)&&e.isInline(c);if(x!==o)Ge.removeNodes(e,{at:n.concat(i),voids:!0}),i--;else if(ot.isElement(c)){if(e.isInline(c)){if(m==null||!lt.isText(m)){var C={text:""};Ge.insertNodes(e,C,{at:n.concat(i),voids:!0}),i++}else if(p){var E={text:""};Ge.insertNodes(e,E,{at:n.concat(i+1),voids:!0}),i++}}}else m!=null&<.isText(m)&&(lt.equals(c,m,{loose:!0})?(Ge.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):m.text===""?(Ge.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):c.text===""&&(Ge.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}}},n7=(e,t)=>{var{iteration:r,initialDirtyPathsLength:n}=t,a=n*42;if(r>a)throw new Error("Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},a7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:a="lowest",at:o=t.selection,match:i}=r;if(o){var l=P.path(t,o),u=a==="lowest";for(var[c,m]of P.levels(t,{at:l,voids:n,match:i,reverse:u}))if(!lt.isText(c)){if(Be.isRange(o)){if(le.isAncestor(m,o.anchor.path)&&le.isAncestor(m,o.focus.path))return[c,m]}else if(!le.equals(l,m))return[c,m]}}};function Wx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var o7=(e,t,r)=>{var{selection:n}=e;if(n){var a=(p,x)=>{if(!lt.isText(p))return!1;var[C,E]=P.parent(e,x);return!e.isVoid(C)||e.markableVoid(C)},o=Be.isExpanded(n),i=!1;if(!o){var[l,u]=P.node(e,n);if(l&&a(l,u)){var[c]=P.parent(e,u);i=c&&e.markableVoid(c)}}if(o||i)Ge.setNodes(e,{[t]:r},{match:a,split:!0,voids:!0});else{var m=Vx(Vx({},P.marks(e)||{}),{},{[t]:r});e.marks=m,tu.get(e)||e.onChange()}}};function Hx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var i7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=P.point(t,r,{edge:"end"}),o=P.end(t,[]),i={anchor:a,focus:o},{distance:l=1}=n,u=0,c;for(var m of P.positions(t,zx(zx({},n),{},{at:i}))){if(u>l)break;u!==0&&(c=m),u++}return c};function Gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var s7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=P.start(t,[]),o=P.point(t,r,{edge:"start"}),i={anchor:a,focus:o},{distance:l=1}=n,u=0,c;for(var m of P.positions(t,Zx(Zx({},n),{},{at:i,reverse:!0}))){if(u>l)break;u!==0&&(c=m),u++}return c},l7=(e,t)=>{var{selection:r}=e;r&&Be.isCollapsed(r)&&Ge.delete(e,{unit:t,reverse:!0})},u7=(e,t)=>{var{selection:r}=e;r&&Be.isCollapsed(r)&&Ge.delete(e,{unit:t})},c7=function(t){var{direction:r="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t;n&&Be.isExpanded(n)&&Ge.delete(t,{reverse:r==="backward"})},d7=(e,t)=>[P.start(e,t),P.end(e,t)];function Ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Xx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var f7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P.above(t,Xx(Xx({},r),{},{match:n=>ot.isElement(n)&&P.isElementReadOnly(t,n)}))},h7=(e,t)=>P.point(e,t,{edge:"end"}),p7=(e,t)=>{var r=P.path(e,t,{edge:"start"});return P.node(e,r)},g7=(e,t)=>{var r=P.range(e,t);return Ye.fragment(e,r)};function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var m7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P.above(t,Jx(Jx({},r),{},{match:n=>ot.isElement(n)&&P.isVoid(t,n)}))},v7=(e,t)=>t.children.some(r=>ot.isElement(r)&&P.isBlock(e,r)),b7=(e,t)=>t.children.some(r=>lt.isText(r)||P.isInline(e,r)),x7=(e,t)=>Ye.has(e,t),y7=(e,t)=>t.children.every(r=>lt.isText(r)),C7=e=>{Ge.splitNodes(e,{always:!0})},w7=(e,t,r)=>{Ge.insertNodes(e,t,r)},E7=e=>{Ge.splitNodes(e,{always:!0})};function Qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function D7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var S7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:a,marks:o}=t;if(a){if(o){var i=D7({text:r},o);Ge.insertNodes(t,i,{at:n.at,voids:n.voids})}else Ge.insertText(t,r,n);t.marks=null}},A7=(e,t)=>!e.isInline(t),F7=(e,t,r)=>P.isStart(e,t,r)||P.isEnd(e,t,r),j7=(e,t)=>{var{children:r}=t,[n]=r;return r.length===0||r.length===1&<.isText(n)&&n.text===""&&!e.isVoid(t)},I7=(e,t,r)=>{var n=P.end(e,r);return jt.equals(t,n)},T7=e=>{var t=Dx.get(e);return t===void 0?!0:t},k7=(e,t,r)=>{if(t.offset!==0)return!1;var n=P.start(e,r);return jt.equals(t,n)},B7=(e,t)=>{var r=P.path(e,t,{edge:"end"});return P.node(e,r)},P7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=P.path(t,r,n),o=Ye.leaf(t,a);return[o,a]};function*O7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:a=!1}=t,{match:o}=t;if(o==null&&(o=()=>!0),!!r){var i=[],l=P.path(e,r);for(var[u,c]of Ye.levels(e,l))if(o(u,c)&&(i.push([u,c]),!a&&ot.isElement(u)&&P.isVoid(e,u)))break;n&&i.reverse(),yield*i}}var N7=["text"],M7=["text"],R7=function(t){var{marks:r,selection:n}=t;if(!n)return null;if(r)return r;if(Be.isExpanded(n)){var[a]=P.nodes(t,{match:lt.isText});if(a){var[o]=a,i=Ha(o,N7);return i}else return{}}var{anchor:l}=n,{path:u}=l,[c]=P.leaf(t,u);if(l.offset===0){var m=P.previous(t,{at:u,match:lt.isText}),p=P.above(t,{match:S=>ot.isElement(S)&&P.isVoid(t,S)&&t.markableVoid(S)});if(!p){var x=P.above(t,{match:S=>ot.isElement(S)&&P.isBlock(t,S)});if(m&&x){var[C,E]=m,[,v]=x;le.isAncestor(v,E)&&(c=C)}}}var A=Ha(c,M7);return A},$7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:a=!1}=r,{match:o,at:i=t.selection}=r;if(i){var l=P.after(t,i,{voids:a});if(l){var[,u]=P.last(t,[]),c=[l.path,u];if(le.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(le.isPath(i)){var[m]=P.parent(t,i);o=x=>m.children.includes(x)}else o=()=>!0;var[p]=P.nodes(t,{at:c,match:o,mode:n,voids:a});return p}}},L7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=P.path(t,r,n),o=Ye.get(t,a);return[o,a]};function*_7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:a=!1,reverse:o=!1,voids:i=!1,ignoreNonSelectable:l=!1}=t,{match:u}=t;if(u||(u=()=>!0),!!r){var c,m;if(Aj.isSpan(r))c=r[0],m=r[1];else{var p=P.path(e,r,{edge:"start"}),x=P.path(e,r,{edge:"end"});c=o?x:p,m=o?p:x}var C=Ye.nodes(e,{reverse:o,from:c,to:m,pass:L=>{var[M]=L;return ot.isElement(M)?!!(!i&&(P.isVoid(e,M)||P.isElementReadOnly(e,M))||l&&!P.isSelectable(e,M)):!1}}),E=[],v;for(var[A,S]of C)if(!(l&&ot.isElement(A)&&!P.isSelectable(e,A))){var j=v&&le.compare(S,v[1])===0;if(!(n==="highest"&&j)){if(!u(A,S)){if(a&&!j&<.isText(A))return;continue}if(n==="lowest"&&j){v=[A,S];continue}var O=n==="lowest"?v:[A,S];O&&(a?E.push(O):yield O),v=[A,S]}}n==="lowest"&&v&&(a?E.push(v):yield v),a&&(yield*E)}}var W7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1,operation:a}=r,o=m=>Ed.get(m)||[],i=m=>Dd.get(m)||new Set,l=m=>{var p=o(m).pop(),x=p.join(",");return i(m).delete(x),p};if(P.isNormalizing(t)){if(n){var u=Array.from(Ye.nodes(t),m=>{var[,p]=m;return p}),c=new Set(u.map(m=>m.join(",")));Ed.set(t,u),Dd.set(t,c)}o(t).length!==0&&P.withoutNormalizing(t,()=>{for(var m of o(t))if(Ye.has(t,m)){var p=P.node(t,m),[x,C]=p;ot.isElement(x)&&x.children.length===0&&t.normalizeNode(p,{operation:a})}for(var E=o(t),v=E.length,A=0;E.length!==0;){if(!t.shouldNormalize({dirtyPaths:E,iteration:A,initialDirtyPathsLength:v,operation:a}))return;var S=l(t);if(Ye.has(t,S)){var j=P.node(t,S);t.normalizeNode(j,{operation:a})}A++,E=o(t)}})}},V7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=P.path(t,r,n),o=le.parent(a),i=P.node(t,o);return i},H7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:a="forward"}=n,o={current:r,affinity:a,unref(){var{current:l}=o,u=P.pathRefs(t);return u.delete(o),o.current=null,l}},i=P.pathRefs(t);return i.add(o),o},z7=e=>{var t=Sx.get(e);return t||(t=new Set,Sx.set(e,t)),t},G7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:a,edge:o}=n;if(le.isPath(r)){if(o==="start"){var[,i]=Ye.first(t,r);r=i}else if(o==="end"){var[,l]=Ye.last(t,r);r=l}}return Be.isRange(r)&&(o==="start"?r=Be.start(r):o==="end"?r=Be.end(r):r=le.common(r.anchor.path,r.focus.path)),jt.isPoint(r)&&(r=r.path),a!=null&&(r=r.slice(0,a)),r},Z7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:a="forward"}=n,o={current:r,affinity:a,unref(){var{current:l}=o,u=P.pointRefs(t);return u.delete(o),o.current=null,l}},i=P.pointRefs(t);return i.add(o),o},U7=e=>{var t=Ax.get(e);return t||(t=new Set,Ax.set(e,t)),t},X7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:a="start"}=n;if(le.isPath(r)){var o;if(a==="end"){var[,i]=Ye.last(t,r);o=i}else{var[,l]=Ye.first(t,r);o=l}var u=Ye.get(t,o);if(!lt.isText(u))throw new Error("Cannot get the ".concat(a," point in the node at path [").concat(r,"] because it has no ").concat(a," text node."));return{path:o,offset:a==="end"?u.text.length:0}}if(Be.isRange(r)){var[c,m]=Be.edges(r);return a==="start"?c:m}return r};function*Y7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:a=!1,voids:o=!1,ignoreNonSelectable:i=!1}=t;if(!r)return;var l=P.range(e,r),[u,c]=Be.edges(l),m=a?c:u,p=!1,x="",C=0,E=0,v=0;for(var[A,S]of P.nodes(e,{at:r,reverse:a,voids:o,ignoreNonSelectable:i})){if(ot.isElement(A)){if(!o&&(e.isVoid(A)||e.isElementReadOnly(A))){yield P.start(e,S);continue}if(e.isInline(A))continue;if(P.hasInlines(e,A)){var j=le.isAncestor(S,c.path)?c:P.end(e,S),O=le.isAncestor(S,u.path)?u:P.start(e,S);x=P.string(e,{anchor:O,focus:j},{voids:o}),p=!0}}if(lt.isText(A)){var L=le.equals(S,m.path);for(L?(E=a?m.offset:A.text.length-m.offset,v=m.offset):(E=A.text.length,v=a?E:0),(L||p||n==="offset")&&(yield{path:S,offset:v},p=!1);;){if(C===0){if(x==="")break;C=M(x,n,a),x=Xp(x,C,a)[1]}if(v=a?v-C:v+C,E=E-C,E<0){C=-E;break}C=0,yield{path:S,offset:v}}}}function M(z,H,oe){return H==="character"?Up(z,oe):H==="word"?Bj(z,oe):H==="line"||H==="block"?z.length:1}}var J7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:a=!1}=r,{match:o,at:i=t.selection}=r;if(i){var l=P.before(t,i,{voids:a});if(l){var[,u]=P.first(t,[]),c=[l.path,u];if(le.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(le.isPath(i)){var[m]=P.parent(t,i);o=x=>m.children.includes(x)}else o=()=>!0;var[p]=P.nodes(t,{reverse:!0,at:c,match:o,mode:n,voids:a});return p}}},Q7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:a="forward"}=n,o={current:r,affinity:a,unref(){var{current:l}=o,u=P.rangeRefs(t);return u.delete(o),o.current=null,l}},i=P.rangeRefs(t);return i.add(o),o},K7=e=>{var t=Fx.get(e);return t||(t=new Set,Fx.set(e,t)),t},q7=(e,t,r)=>{if(Be.isRange(t)&&!r)return t;var n=P.start(e,t),a=P.end(e,r||t);return{anchor:n,focus:a}};function Kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function e8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var t8=(e,t)=>{var{selection:r}=e;if(r){var n=(m,p)=>{if(!lt.isText(m))return!1;var[x,C]=P.parent(e,p);return!e.isVoid(x)||e.markableVoid(x)},a=Be.isExpanded(r),o=!1;if(!a){var[i,l]=P.node(e,r);if(i&&n(i,l)){var[u]=P.parent(e,l);o=u&&e.markableVoid(u)}}if(a||o)Ge.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var c=e8({},P.marks(e)||{});delete c[t],e.marks=c,tu.get(e)||e.onChange()}}},r8=(e,t)=>{Dx.set(e,t)},n8=(e,t)=>P.point(e,t,{edge:"start"}),a8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:a=!1}=n,o=P.range(t,r),[i,l]=Be.edges(o),u="";for(var[c,m]of P.nodes(t,{at:o,match:lt.isText,voids:a})){var p=c.text;le.equals(m,l.path)&&(p=p.slice(0,l.offset)),le.equals(m,i.path)&&(p=p.slice(i.offset)),u+=p}return u},o8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:a=!1}=n,[o,i]=Be.edges(r);if(o.offset!==0||i.offset!==0||Be.isCollapsed(r)||le.hasPrevious(i.path))return r;var l=P.above(t,{at:i,match:E=>ot.isElement(E)&&P.isBlock(t,E),voids:a}),u=l?l[1]:[],c=P.start(t,o),m={anchor:c,focus:i},p=!0;for(var[x,C]of P.nodes(t,{at:m,match:lt.isText,reverse:!0,voids:a})){if(p){p=!1;continue}if(x.text!==""||le.isBefore(C,u)){i={path:C,offset:x.text.length};break}}return{anchor:o,focus:i}},i8=(e,t)=>{var r=P.isNormalizing(e);P.setNormalizing(e,!1);try{t()}finally{P.setNormalizing(e,r)}P.normalize(e)},s8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(t,()=>{var n,a,{reverse:o=!1,unit:i="character",distance:l=1,voids:u=!1}=r,{at:c=t.selection,hanging:m=!1}=r;if(c){var p=!1;if(Be.isRange(c)&&Be.isCollapsed(c)&&(p=!0,c=c.anchor),jt.isPoint(c)){var x=P.void(t,{at:c,mode:"highest"});if(!u&&x){var[,C]=x;c=C}else{var E={unit:i,distance:l},v=o?P.before(t,c,E)||P.start(t,[]):P.after(t,c,E)||P.end(t,[]);c={anchor:c,focus:v},m=!0}}if(le.isPath(c)){Ge.removeNodes(t,{at:c,voids:u});return}if(!Be.isCollapsed(c)){if(!m){var[,A]=Be.edges(c),S=P.end(t,[]);jt.equals(A,S)||(c=P.unhangRange(t,c,{voids:u}))}var[j,O]=Be.edges(c),L=P.above(t,{match:nt=>ot.isElement(nt)&&P.isBlock(t,nt),at:j,voids:u}),M=P.above(t,{match:nt=>ot.isElement(nt)&&P.isBlock(t,nt),at:O,voids:u}),z=L&&M&&!le.equals(L[1],M[1]),H=le.equals(j.path,O.path),oe=u?null:(n=P.void(t,{at:j,mode:"highest"}))!==null&&n!==void 0?n:P.elementReadOnly(t,{at:j,mode:"highest"}),J=u?null:(a=P.void(t,{at:O,mode:"highest"}))!==null&&a!==void 0?a:P.elementReadOnly(t,{at:O,mode:"highest"});if(oe){var ge=P.before(t,j);ge&&L&&le.isAncestor(L[1],ge.path)&&(j=ge)}if(J){var xe=P.after(t,O);xe&&M&&le.isAncestor(M[1],xe.path)&&(O=xe)}var Q=[],ce;for(var N of P.nodes(t,{at:c,voids:u})){var[W,ee]=N;ce&&le.compare(ee,ce)===0||(!u&&ot.isElement(W)&&(P.isVoid(t,W)||P.isElementReadOnly(t,W))||!le.isCommon(ee,j.path)&&!le.isCommon(ee,O.path))&&(Q.push(N),ce=ee)}var de=Array.from(Q,nt=>{var[,vt]=nt;return P.pathRef(t,vt)}),ne=P.pointRef(t,j),te=P.pointRef(t,O),K="";if(!H&&!oe){var se=ne.current,[fe]=P.leaf(t,se),{path:Se}=se,{offset:G}=j,he=fe.text.slice(G);he.length>0&&(t.apply({type:"remove_text",path:Se,offset:G,text:he}),K=he)}if(de.reverse().map(nt=>nt.unref()).filter(nt=>nt!==null).forEach(nt=>Ge.removeNodes(t,{at:nt,voids:u})),!J){var ae=te.current,[me]=P.leaf(t,ae),{path:Me}=ae,Pe=H?j.offset:0,We=me.text.slice(Pe,O.offset);We.length>0&&(t.apply({type:"remove_text",path:Me,offset:Pe,text:We}),K=We)}!H&&z&&te.current&&ne.current&&Ge.mergeNodes(t,{at:te.current,hanging:!0,voids:u}),p&&o&&i==="character"&&K.length>1&&K.match(/[\u0E00-\u0E7F]+/)&&Ge.insertText(t,K.slice(0,K.length-l));var Ke=ne.unref(),Ne=te.unref(),Qe=o?Ke||Ne:Ne||Ke;r.at==null&&Qe&&Ge.select(t,Qe)}}})},l8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(t,()=>{var{hanging:a=!1,voids:o=!1}=n,{at:i=Zp(t)}=n;if(r.length){if(Be.isRange(i))if(a||(i=P.unhangRange(t,i,{voids:o})),Be.isCollapsed(i))i=i.anchor;else{var[,l]=Be.edges(i);if(!o&&P.void(t,{at:l}))return;var u=P.pointRef(t,l);Ge.delete(t,{at:i}),i=u.unref()}else le.isPath(i)&&(i=P.start(t,i));if(!(!o&&P.void(t,{at:i}))){var c=P.above(t,{at:i,match:G=>ot.isElement(G)&&P.isInline(t,G),mode:"highest",voids:o});if(c){var[,m]=c;if(P.isEnd(t,i,m)){var p=P.after(t,m);i=p}else if(P.isStart(t,i,m)){var x=P.before(t,m);i=x}}var C=P.above(t,{match:G=>ot.isElement(G)&&P.isBlock(t,G),at:i,voids:o}),[,E]=C,v=P.isStart(t,i,E),A=P.isEnd(t,i,E),S=v&&A,j=!v||v&&A,O=!A,[,L]=Ye.first({children:r},[]),[,M]=Ye.last({children:r},[]),z=[],H=G=>{var[he,ae]=G,me=ae.length===0;return me?!1:S?!0:!(j&&le.isAncestor(ae,L)&&ot.isElement(he)&&!t.isVoid(he)&&!t.isInline(he)||O&&le.isAncestor(ae,M)&&ot.isElement(he)&&!t.isVoid(he)&&!t.isInline(he))};for(var oe of Ye.nodes({children:r},{pass:H}))H(oe)&&z.push(oe);var J=[],ge=[],xe=[],Q=!0,ce=!1;for(var[N]of z)ot.isElement(N)&&!t.isInline(N)?(Q=!1,ce=!0,ge.push(N)):Q?J.push(N):xe.push(N);var[W]=P.nodes(t,{at:i,match:G=>lt.isText(G)||P.isInline(t,G),mode:"highest",voids:o}),[,ee]=W,de=P.isStart(t,i,ee),ne=P.isEnd(t,i,ee),te=P.pathRef(t,A&&!xe.length?le.next(E):E),K=P.pathRef(t,ne?le.next(ee):ee);Ge.splitNodes(t,{at:i,match:G=>ce?ot.isElement(G)&&P.isBlock(t,G):lt.isText(G)||P.isInline(t,G),mode:ce?"lowest":"highest",always:ce&&(!v||J.length>0)&&(!A||xe.length>0),voids:o});var se=P.pathRef(t,!de||de&&ne?le.next(ee):ee);if(Ge.insertNodes(t,J,{at:se.current,match:G=>lt.isText(G)||P.isInline(t,G),mode:"highest",voids:o}),S&&!J.length&&ge.length&&!xe.length&&Ge.delete(t,{at:E,voids:o}),Ge.insertNodes(t,ge,{at:te.current,match:G=>ot.isElement(G)&&P.isBlock(t,G),mode:"lowest",voids:o}),Ge.insertNodes(t,xe,{at:K.current,match:G=>lt.isText(G)||P.isInline(t,G),mode:"highest",voids:o}),!n.at){var fe;if(xe.length>0&&K.current?fe=le.previous(K.current):ge.length>0&&te.current?fe=le.previous(te.current):se.current&&(fe=le.previous(se.current)),fe){var Se=P.end(t,fe);Ge.select(t,Se)}}se.unref(),te.unref(),K.unref()}}})},u8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=r,{selection:a}=t;if(a){if(n==="anchor")Ge.select(t,a.anchor);else if(n==="focus")Ge.select(t,a.focus);else if(n==="start"){var[o]=Be.edges(a);Ge.select(t,o)}else if(n==="end"){var[,i]=Be.edges(a);Ge.select(t,i)}}else return},c8=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},d8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:a=1,unit:o="character",reverse:i=!1}=r,{edge:l=null}=r;if(n){l==="start"&&(l=Be.isBackward(n)?"focus":"anchor"),l==="end"&&(l=Be.isBackward(n)?"anchor":"focus");var{anchor:u,focus:c}=n,m={distance:a,unit:o,ignoreNonSelectable:!0},p={};if(l==null||l==="anchor"){var x=i?P.before(t,u,m):P.after(t,u,m);x&&(p.anchor=x)}if(l==null||l==="focus"){var C=i?P.before(t,c,m):P.after(t,c,m);C&&(p.focus=C)}Ge.setSelection(t,p)}},f8=(e,t)=>{var{selection:r}=e;if(t=P.range(e,t),r){Ge.setSelection(e,t);return}if(!Be.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(jr.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})};function qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ey(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qx(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var h8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:a}=t,{edge:o="both"}=n;if(a){o==="start"&&(o=Be.isBackward(a)?"focus":"anchor"),o==="end"&&(o=Be.isBackward(a)?"anchor":"focus");var{anchor:i,focus:l}=a,u=o==="anchor"?i:l;Ge.setSelection(t,{[o==="anchor"?"anchor":"focus"]:ey(ey({},u),r)})}},p8=(e,t)=>{var{selection:r}=e,n={},a={};if(r){for(var o in t)(o==="anchor"&&t.anchor!=null&&!jt.equals(t.anchor,r.anchor)||o==="focus"&&t.focus!=null&&!jt.equals(t.focus,r.focus)||o!=="anchor"&&o!=="focus"&&t[o]!==r[o])&&(n[o]=r[o],a[o]=t[o]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:a})}},g8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(t,()=>{var{hanging:a=!1,voids:o=!1,mode:i="lowest"}=n,{at:l,match:u,select:c}=n;if(Ye.isNode(r)&&(r=[r]),r.length!==0){var[m]=r;if(l||(l=Zp(t),c=!0),c==null&&(c=!1),Be.isRange(l))if(a||(l=P.unhangRange(t,l,{voids:o})),Be.isCollapsed(l))l=l.anchor;else{var[,p]=Be.edges(l),x=P.pointRef(t,p);Ge.delete(t,{at:l}),l=x.unref()}if(jt.isPoint(l)){u==null&&(lt.isText(m)?u=H=>lt.isText(H):t.isInline(m)?u=H=>lt.isText(H)||P.isInline(t,H):u=H=>ot.isElement(H)&&P.isBlock(t,H));var[C]=P.nodes(t,{at:l.path,match:u,mode:i,voids:o});if(C){var[,E]=C,v=P.pathRef(t,E),A=P.isEnd(t,l,E);Ge.splitNodes(t,{at:l,match:u,mode:i,voids:o});var S=v.unref();l=A?le.next(S):S}else return}var j=le.parent(l),O=l[l.length-1];if(!(!o&&P.void(t,{at:j}))){for(var L of r){var M=j.concat(O);O++,t.apply({type:"insert_node",path:M,node:L}),l=le.next(l)}if(l=le.previous(l),c){var z=P.end(t,l);z&&Ge.select(t,z)}}}})},m8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:a="lowest",voids:o=!1}=r,{match:i}=r;if(i==null&&(i=le.isPath(n)?ys(t,n):L=>ot.isElement(L)&&P.isBlock(t,L)),!!n){var l=P.nodes(t,{at:n,match:i,mode:a,voids:o}),u=Array.from(l,L=>{var[,M]=L;return P.pathRef(t,M)});for(var c of u){var m=c.unref();if(m.length<2)throw new Error("Cannot lift node at a path [".concat(m,"] because it has a depth of less than `2`."));var p=P.node(t,le.parent(m)),[x,C]=p,E=m[m.length-1],{length:v}=x.children;if(v===1){var A=le.next(C);Ge.moveNodes(t,{at:m,to:A,voids:o}),Ge.removeNodes(t,{at:C,voids:o})}else if(E===0)Ge.moveNodes(t,{at:m,to:C,voids:o});else if(E===v-1){var S=le.next(C);Ge.moveNodes(t,{at:m,to:S,voids:o})}else{var j=le.next(m),O=le.next(C);Ge.splitNodes(t,{at:j,voids:o}),Ge.moveNodes(t,{at:m,to:O,voids:o})}}}})},v8=["text"],b8=["children"],ty=(e,t)=>{if(ot.isElement(t)){var r=t;return P.isVoid(e,t)?!0:r.children.length===1?ty(e,r.children[0]):!1}else return!P.isEditor(t)},x8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(t,()=>{var{match:n,at:a=t.selection}=r,{hanging:o=!1,voids:i=!1,mode:l="lowest"}=r;if(a){if(n==null)if(le.isPath(a)){var[u]=P.parent(t,a);n=ge=>u.children.includes(ge)}else n=ge=>ot.isElement(ge)&&P.isBlock(t,ge);if(!o&&Be.isRange(a)&&(a=P.unhangRange(t,a,{voids:i})),Be.isRange(a))if(Be.isCollapsed(a))a=a.anchor;else{var[,c]=Be.edges(a),m=P.pointRef(t,c);Ge.delete(t,{at:a}),a=m.unref(),r.at==null&&Ge.select(t,a)}var[p]=P.nodes(t,{at:a,match:n,voids:i,mode:l}),x=P.previous(t,{at:a,match:n,voids:i,mode:l});if(!(!p||!x)){var[C,E]=p,[v,A]=x;if(!(E.length===0||A.length===0)){var S=le.next(A),j=le.common(E,A),O=le.isSibling(E,A),L=Array.from(P.levels(t,{at:E}),ge=>{var[xe]=ge;return xe}).slice(j.length).slice(0,-1),M=P.above(t,{at:E,mode:"highest",match:ge=>L.includes(ge)&&ty(t,ge)}),z=M&&P.pathRef(t,M[1]),H,oe;if(lt.isText(C)&<.isText(v)){var J=Ha(C,v8);oe=v.text.length,H=J}else if(ot.isElement(C)&&ot.isElement(v)){var J=Ha(C,b8);oe=v.children.length,H=J}else throw new Error("Cannot merge the node at path [".concat(E,"] with the previous sibling because it is not the same kind: ").concat(jr.stringify(C)," ").concat(jr.stringify(v)));O||Ge.moveNodes(t,{at:E,to:S,voids:i}),z&&Ge.removeNodes(t,{at:z.current,voids:i}),ot.isElement(v)&&P.isEmpty(t,v)||lt.isText(v)&&v.text===""&&A[A.length-1]!==0?Ge.removeNodes(t,{at:A,voids:i}):t.apply({type:"merge_node",path:S,position:oe,properties:H}),z&&z.unref()}}}})},y8=(e,t)=>{P.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:a="lowest",voids:o=!1}=t,{match:i}=t;if(n){i==null&&(i=le.isPath(n)?ys(e,n):C=>ot.isElement(C)&&P.isBlock(e,C));var l=P.pathRef(e,r),u=P.nodes(e,{at:n,match:i,mode:a,voids:o}),c=Array.from(u,C=>{var[,E]=C;return P.pathRef(e,E)});for(var m of c){var p=m.unref(),x=l.current;p.length!==0&&e.apply({type:"move_node",path:p,newPath:x}),l.current&&le.isSibling(x,p)&&le.isAfter(x,p)&&(l.current=le.next(l.current))}l.unref()}})},C8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:a=!1,mode:o="lowest"}=r,{at:i=t.selection,match:l}=r;if(i){l==null&&(l=le.isPath(i)?ys(t,i):C=>ot.isElement(C)&&P.isBlock(t,C)),!n&&Be.isRange(i)&&(i=P.unhangRange(t,i,{voids:a}));var u=P.nodes(t,{at:i,match:l,mode:o,voids:a}),c=Array.from(u,C=>{var[,E]=C;return P.pathRef(t,E)});for(var m of c){var p=m.unref();if(p){var[x]=P.node(t,p);t.apply({type:"remove_node",path:p,node:x})}}}})},w8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(t,()=>{var{match:a,at:o=t.selection,compare:i,merge:l}=n,{hanging:u=!1,mode:c="lowest",split:m=!1,voids:p=!1}=n;if(o){if(a==null&&(a=le.isPath(o)?ys(t,o):oe=>ot.isElement(oe)&&P.isBlock(t,oe)),!u&&Be.isRange(o)&&(o=P.unhangRange(t,o,{voids:p})),m&&Be.isRange(o)){if(Be.isCollapsed(o)&&P.leaf(t,o.anchor)[0].text.length>0)return;var x=P.rangeRef(t,o,{affinity:"inward"}),[C,E]=Be.edges(o),v=c==="lowest"?"lowest":"highest",A=P.isEnd(t,E,E.path);Ge.splitNodes(t,{at:E,match:a,mode:v,voids:p,always:!A});var S=P.isStart(t,C,C.path);Ge.splitNodes(t,{at:C,match:a,mode:v,voids:p,always:!S}),o=x.unref(),n.at==null&&Ge.select(t,o)}i||(i=(oe,J)=>oe!==J);for(var[j,O]of P.nodes(t,{at:o,match:a,mode:c,voids:p})){var L={},M={};if(O.length!==0){var z=!1;for(var H in r)H==="children"||H==="text"||i(r[H],j[H])&&(z=!0,j.hasOwnProperty(H)&&(L[H]=j[H]),l?r[H]!=null&&(M[H]=l(j[H],r[H])):r[H]!=null&&(M[H]=r[H]));z&&t.apply({type:"set_node",path:O,properties:L,newProperties:M})}}}})},E8=(e,t)=>{if(Be.isCollapsed(t))return t.anchor;var[,r]=Be.edges(t),n=P.pointRef(e,r);return Ge.delete(e,{at:t}),n.unref()},D8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:a=!1}=r,{match:o,at:i=t.selection,height:l=0,always:u=!1}=r;if(o==null&&(o=te=>ot.isElement(te)&&P.isBlock(t,te)),Be.isRange(i)&&(i=E8(t,i)),le.isPath(i)){var c=i,m=P.point(t,c),[p]=P.parent(t,c);o=te=>te===p,l=m.path.length-c.length+1,i=m,u=!0}if(i){var x=P.pointRef(t,i,{affinity:"backward"}),C;try{var[E]=P.nodes(t,{at:i,match:o,mode:n,voids:a});if(!E)return;var v=P.void(t,{at:i,mode:"highest"}),A=0;if(!a&&v){var[S,j]=v;if(ot.isElement(S)&&t.isInline(S)){var O=P.after(t,j);if(!O){var L={text:""},M=le.next(j);Ge.insertNodes(t,L,{at:M,voids:a}),O=P.point(t,M)}i=O,u=!0}var z=i.path.length-j.length;l=z+1,u=!0}C=P.pointRef(t,i);var H=i.path.length-l,[,oe]=E,J=i.path.slice(0,H),ge=l===0?i.offset:i.path[H]+A;for(var[xe,Q]of P.levels(t,{at:J,reverse:!0,voids:a})){var ce=!1;if(Q.length<oe.length||Q.length===0||!a&&ot.isElement(xe)&&P.isVoid(t,xe))break;var N=x.current,W=P.isEnd(t,N,Q);if(u||!x||!P.isEdge(t,N,Q)){ce=!0;var ee=Ye.extractProps(xe);t.apply({type:"split_node",path:Q,position:ge,properties:ee})}ge=Q[Q.length-1]+(ce||W?1:0)}if(r.at==null){var de=C.current||P.end(t,[]);Ge.select(t,de)}}finally{var ne;x.unref(),(ne=C)===null||ne===void 0||ne.unref()}}})},S8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(r)||(r=[r]);var a={};for(var o of r)a[o]=null;Ge.setNodes(t,a,n)},A8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(t,()=>{var{mode:n="lowest",split:a=!1,voids:o=!1}=r,{at:i=t.selection,match:l}=r;if(i){l==null&&(l=le.isPath(i)?ys(t,i):C=>ot.isElement(C)&&P.isBlock(t,C)),le.isPath(i)&&(i=P.range(t,i));var u=Be.isRange(i)?P.rangeRef(t,i):null,c=P.nodes(t,{at:i,match:l,mode:n,voids:o}),m=Array.from(c,C=>{var[,E]=C;return P.pathRef(t,E)}).reverse(),p=function(E){var v=E.unref(),[A]=P.node(t,v),S=P.range(t,v);a&&u&&(S=Be.intersection(u.current,S)),Ge.liftNodes(t,{at:S,match:j=>ot.isAncestor(A)&&A.children.includes(j),voids:o})};for(var x of m)p(x);u&&u.unref()}})};function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var F8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(t,()=>{var{mode:a="lowest",split:o=!1,voids:i=!1}=n,{match:l,at:u=t.selection}=n;if(u){if(l==null&&(le.isPath(u)?l=ys(t,u):t.isInline(r)?l=S=>ot.isElement(S)&&P.isInline(t,S)||lt.isText(S):l=S=>ot.isElement(S)&&P.isBlock(t,S)),o&&Be.isRange(u)){var[c,m]=Be.edges(u),p=P.rangeRef(t,u,{affinity:"inward"});Ge.splitNodes(t,{at:m,match:l,voids:i}),Ge.splitNodes(t,{at:c,match:l,voids:i}),u=p.unref(),n.at==null&&Ge.select(t,u)}var x=Array.from(P.nodes(t,{at:u,match:t.isInline(r)?S=>ot.isElement(S)&&P.isBlock(t,S):S=>P.isEditor(S),mode:"lowest",voids:i}));for(var[,C]of x){var E=Be.isRange(u)?Be.intersection(u,P.range(t,C)):u;if(E){var v=Array.from(P.nodes(t,{at:E,match:l,mode:a,voids:i}));if(v.length>0){var A=function(){var[S]=v,j=v[v.length-1],[,O]=S,[,L]=j;if(O.length===0&&L.length===0)return"continue";var M=le.equals(O,L)?le.parent(O):le.common(O,L),z=P.range(t,O,L),H=P.node(t,M),[oe]=H,J=M.length+1,ge=le.next(L.slice(0,J)),xe=ny(ny({},r),{},{children:[]});Ge.insertNodes(t,xe,{at:ge,voids:i}),Ge.moveNodes(t,{at:z,match:Q=>ot.isAncestor(oe)&&oe.children.includes(Q),to:ge.concat(0),voids:i})}();if(A==="continue")continue}}}}})},j8=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return qj(e,...n)},addMark:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return o7(e,...n)},deleteBackward:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return l7(e,...n)},deleteForward:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return u7(e,...n)},deleteFragment:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return c7(e,...n)},getFragment:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t7(e,...n)},insertBreak:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return C7(e,...n)},insertSoftBreak:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return E7(e,...n)},insertFragment:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return l8(e,...n)},insertNode:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return w7(e,...n)},insertText:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return S7(e,...n)},normalizeNode:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return r7(e,...n)},removeMark:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t8(e,...n)},getDirtyPaths:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return e7(e,...n)},shouldNormalize:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return n7(e,...n)},above:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return a7(e,...n)},after:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return i7(e,...n)},before:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return s7(e,...n)},collapse:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return u8(e,...n)},delete:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return s8(e,...n)},deselect:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return c8(e,...n)},edges:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return d7(e,...n)},elementReadOnly:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return f7(e,...n)},end:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return h7(e,...n)},first:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return p7(e,...n)},fragment:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return g7(e,...n)},getMarks:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return R7(e,...n)},hasBlocks:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return v7(e,...n)},hasInlines:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return b7(e,...n)},hasPath:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return x7(e,...n)},hasTexts:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return y7(e,...n)},insertNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return g8(e,...n)},isBlock:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return A7(e,...n)},isEdge:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return F7(e,...n)},isEmpty:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return j7(e,...n)},isEnd:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return I7(e,...n)},isNormalizing:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return T7(e,...n)},isStart:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return k7(e,...n)},last:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return B7(e,...n)},leaf:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return P7(e,...n)},levels:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return O7(e,...n)},liftNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return m8(e,...n)},mergeNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return x8(e,...n)},move:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return d8(e,...n)},moveNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return y8(e,...n)},next:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return $7(e,...n)},node:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return L7(e,...n)},nodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return _7(e,...n)},normalize:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return W7(e,...n)},parent:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return V7(e,...n)},path:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return G7(e,...n)},pathRef:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return H7(e,...n)},pathRefs:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return z7(e,...n)},point:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return X7(e,...n)},pointRef:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Z7(e,...n)},pointRefs:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return U7(e,...n)},positions:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Y7(e,...n)},previous:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return J7(e,...n)},range:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return q7(e,...n)},rangeRef:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Q7(e,...n)},rangeRefs:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return K7(e,...n)},removeNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return C8(e,...n)},select:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return f8(e,...n)},setNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return w8(e,...n)},setNormalizing:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return r8(e,...n)},setPoint:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return h8(e,...n)},setSelection:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return p8(e,...n)},splitNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return D8(e,...n)},start:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return n8(e,...n)},string:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return a8(e,...n)},unhangRange:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return o8(e,...n)},unsetNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return S8(e,...n)},unwrapNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return A8(e,...n)},void:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return m7(e,...n)},withoutNormalizing:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return i8(e,...n)},wrapNodes:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return F8(e,...n)}};return e},I8=B8,ay="֑-߿יִ-﷽ﹰ-ﻼ",oy="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",T8=new RegExp("^[^"+oy+"]*["+ay+"]"),k8=new RegExp("^[^"+ay+"]*["+oy+"]");function B8(e){return e=String(e||""),T8.test(e)?"rtl":k8.test(e)?"ltr":"neutral"}const iy=vc(I8);function P8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yp=P8,O8=typeof mc=="object"&&mc&&mc.Object===Object&&mc,N8=O8,M8=N8,R8=typeof self=="object"&&self&&self.Object===Object&&self,$8=M8||R8||Function("return this")(),sy=$8,L8=sy,_8=function(){return L8.Date.now()},W8=_8,V8=/\s/;function H8(e){for(var t=e.length;t--&&V8.test(e.charAt(t)););return t}var z8=H8,G8=z8,Z8=/^\s+/;function U8(e){return e&&e.slice(0,G8(e)+1).replace(Z8,"")}var X8=U8,Y8=sy,J8=Y8.Symbol,ly=J8,uy=ly,cy=Object.prototype,Q8=cy.hasOwnProperty,K8=cy.toString,au=uy?uy.toStringTag:void 0;function q8(e){var t=Q8.call(e,au),r=e[au];try{e[au]=void 0;var n=!0}catch{}var a=K8.call(e);return n&&(t?e[au]=r:delete e[au]),a}var eI=q8,tI=Object.prototype,rI=tI.toString;function nI(e){return rI.call(e)}var aI=nI,dy=ly,oI=eI,iI=aI,sI="[object Null]",lI="[object Undefined]",fy=dy?dy.toStringTag:void 0;function uI(e){return e==null?e===void 0?lI:sI:fy&&fy in Object(e)?oI(e):iI(e)}var cI=uI;function dI(e){return e!=null&&typeof e=="object"}var fI=dI,hI=cI,pI=fI,gI="[object Symbol]";function mI(e){return typeof e=="symbol"||pI(e)&&hI(e)==gI}var vI=mI,bI=X8,hy=Yp,xI=vI,py=0/0,yI=/^[-+]0x[0-9a-f]+$/i,CI=/^0b[01]+$/i,wI=/^0o[0-7]+$/i,EI=parseInt;function DI(e){if(typeof e=="number")return e;if(xI(e))return py;if(hy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=hy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bI(e);var r=CI.test(e);return r||wI.test(e)?EI(e.slice(2),r?2:8):yI.test(e)?py:+e}var SI=DI,AI=Yp,Jp=W8,gy=SI,FI="Expected a function",jI=Math.max,II=Math.min;function TI(e,t,r){var n,a,o,i,l,u,c=0,m=!1,p=!1,x=!0;if(typeof e!="function")throw new TypeError(FI);t=gy(t)||0,AI(r)&&(m=!!r.leading,p="maxWait"in r,o=p?jI(gy(r.maxWait)||0,t):o,x="trailing"in r?!!r.trailing:x);function C(z){var H=n,oe=a;return n=a=void 0,c=z,i=e.apply(oe,H),i}function E(z){return c=z,l=setTimeout(S,t),m?C(z):i}function v(z){var H=z-u,oe=z-c,J=t-H;return p?II(J,o-oe):J}function A(z){var H=z-u,oe=z-c;return u===void 0||H>=t||H<0||p&&oe>=o}function S(){var z=Jp();if(A(z))return j(z);l=setTimeout(S,v(z))}function j(z){return l=void 0,x&&n?C(z):(n=a=void 0,i)}function O(){l!==void 0&&clearTimeout(l),c=0,n=u=a=l=void 0}function L(){return l===void 0?i:j(Jp())}function M(){var z=Jp(),H=A(z);if(n=arguments,a=this,u=z,H){if(l===void 0)return E(u);if(p)return clearTimeout(l),l=setTimeout(S,t),C(u)}return l===void 0&&(l=setTimeout(S,t)),i}return M.cancel=O,M.flush=L,M}var my=TI;const kI=vc(my);var BI=my,PI=Yp,OI="Expected a function";function NI(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(OI);return PI(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),BI(e,t,{leading:n,maxWait:t,trailing:a})}var MI=NI;const RI=vc(MI);function vy(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function by(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Qp(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return by(r.overflowY,t)||by(r.overflowX,t)||function(n){var a=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)}(e)}return!1}function Ad(e,t,r,n,a,o,i,l){return o<e&&i>t||o>e&&i<t?0:o<=e&&l<=r||i>=t&&l>=r?o-e-n:i>t&&l<r||o<e&&l>r?i-t+a:0}var xy=function(e,t){var r=window,n=t.scrollMode,a=t.block,o=t.inline,i=t.boundary,l=t.skipOverflowHiddenElements,u=typeof i=="function"?i:function(nt){return nt!==i};if(!vy(e))throw new TypeError("Invalid target");for(var c,m,p=document.scrollingElement||document.documentElement,x=[],C=e;vy(C)&&u(C);){if((C=(m=(c=C).parentElement)==null?c.getRootNode().host||null:m)===p){x.push(C);break}C!=null&&C===document.body&&Qp(C)&&!Qp(document.documentElement)||C!=null&&Qp(C,l)&&x.push(C)}for(var E=r.visualViewport?r.visualViewport.width:innerWidth,v=r.visualViewport?r.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,S=window.scrollY||pageYOffset,j=e.getBoundingClientRect(),O=j.height,L=j.width,M=j.top,z=j.right,H=j.bottom,oe=j.left,J=a==="start"||a==="nearest"?M:a==="end"?H:M+O/2,ge=o==="center"?oe+L/2:o==="end"?z:oe,xe=[],Q=0;Q<x.length;Q++){var ce=x[Q],N=ce.getBoundingClientRect(),W=N.height,ee=N.width,de=N.top,ne=N.right,te=N.bottom,K=N.left;if(n==="if-needed"&&M>=0&&oe>=0&&H<=v&&z<=E&&M>=de&&H<=te&&oe>=K&&z<=ne)return xe;var se=getComputedStyle(ce),fe=parseInt(se.borderLeftWidth,10),Se=parseInt(se.borderTopWidth,10),G=parseInt(se.borderRightWidth,10),he=parseInt(se.borderBottomWidth,10),ae=0,me=0,Me="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-fe-G:0,Pe="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-Se-he:0,We="offsetWidth"in ce?ce.offsetWidth===0?0:ee/ce.offsetWidth:0,Ke="offsetHeight"in ce?ce.offsetHeight===0?0:W/ce.offsetHeight:0;if(p===ce)ae=a==="start"?J:a==="end"?J-v:a==="nearest"?Ad(S,S+v,v,Se,he,S+J,S+J+O,O):J-v/2,me=o==="start"?ge:o==="center"?ge-E/2:o==="end"?ge-E:Ad(A,A+E,E,fe,G,A+ge,A+ge+L,L),ae=Math.max(0,ae+S),me=Math.max(0,me+A);else{ae=a==="start"?J-de-Se:a==="end"?J-te+he+Pe:a==="nearest"?Ad(de,te,W,Se,he+Pe,J,J+O,O):J-(de+W/2)+Pe/2,me=o==="start"?ge-K-fe:o==="center"?ge-(K+ee/2)+Me/2:o==="end"?ge-ne+G+Me:Ad(K,ne,ee,fe,G+Me,ge,ge+L,L);var Ne=ce.scrollLeft,Qe=ce.scrollTop;J+=Qe-(ae=Math.max(0,Math.min(Qe+ae/Ke,ce.scrollHeight-W/Ke+Pe))),ge+=Ne-(me=Math.max(0,Math.min(Ne+me/We,ce.scrollWidth-ee/We+Me)))}xe.push({el:ce,top:ae,left:me})}return xe};function yy(e){return e===Object(e)&&Object.keys(e).length!==0}function $I(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var a=n.el,o=n.top,i=n.left;a.scroll&&r?a.scroll({top:o,left:i,behavior:t}):(a.scrollTop=o,a.scrollLeft=i)})}function LI(e){return e===!1?{block:"end",inline:"nearest"}:yy(e)?e:{block:"start",inline:"nearest"}}function _I(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(yy(t)&&typeof t.behavior=="function")return t.behavior(r?xy(e,t):[]);if(r){var n=LI(t);return $I(xy(e,n),n.behavior)}}var ci=[],WI=function(){return ci.some(function(e){return e.activeTargets.length>0})},VI=function(){return ci.some(function(e){return e.skippedTargets.length>0})},Cy="ResizeObserver loop completed with undelivered notifications.",HI=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Cy}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Cy),window.dispatchEvent(e)},ou;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ou||(ou={}));var di=function(e){return Object.freeze(e)},zI=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,di(this)}return e}(),wy=function(){function e(t,r,n,a){return this.x=t,this.y=r,this.width=n,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,di(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,a=t.top,o=t.right,i=t.bottom,l=t.left,u=t.width,c=t.height;return{x:r,y:n,top:a,right:o,bottom:i,left:l,width:u,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Kp=function(e){return e instanceof SVGElement&&"getBBox"in e},Ey=function(e){if(Kp(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var a=e,o=a.offsetWidth,i=a.offsetHeight;return!(o||i||e.getClientRects().length)},Dy=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},GI=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},iu=typeof window<"u"?window:{},Fd=new WeakMap,Sy=/auto|scroll/,ZI=/^tb|vertical/,UI=/msie|trident/i.test(iu.navigator&&iu.navigator.userAgent),Sa=function(e){return parseFloat(e||"0")},ws=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new zI((r?t:e)||0,(r?e:t)||0)},Ay=di({devicePixelContentBoxSize:ws(),borderBoxSize:ws(),contentBoxSize:ws(),contentRect:new wy(0,0,0,0)}),Fy=function(e,t){if(t===void 0&&(t=!1),Fd.has(e)&&!t)return Fd.get(e);if(Ey(e))return Fd.set(e,Ay),Ay;var r=getComputedStyle(e),n=Kp(e)&&e.ownerSVGElement&&e.getBBox(),a=!UI&&r.boxSizing==="border-box",o=ZI.test(r.writingMode||""),i=!n&&Sy.test(r.overflowY||""),l=!n&&Sy.test(r.overflowX||""),u=n?0:Sa(r.paddingTop),c=n?0:Sa(r.paddingRight),m=n?0:Sa(r.paddingBottom),p=n?0:Sa(r.paddingLeft),x=n?0:Sa(r.borderTopWidth),C=n?0:Sa(r.borderRightWidth),E=n?0:Sa(r.borderBottomWidth),v=n?0:Sa(r.borderLeftWidth),A=p+c,S=u+m,j=v+C,O=x+E,L=l?e.offsetHeight-O-e.clientHeight:0,M=i?e.offsetWidth-j-e.clientWidth:0,z=a?A+j:0,H=a?S+O:0,oe=n?n.width:Sa(r.width)-z-M,J=n?n.height:Sa(r.height)-H-L,ge=oe+A+M+j,xe=J+S+L+O,Q=di({devicePixelContentBoxSize:ws(Math.round(oe*devicePixelRatio),Math.round(J*devicePixelRatio),o),borderBoxSize:ws(ge,xe,o),contentBoxSize:ws(oe,J,o),contentRect:new wy(p,u,oe,J)});return Fd.set(e,Q),Q},jy=function(e,t,r){var n=Fy(e,r),a=n.borderBoxSize,o=n.contentBoxSize,i=n.devicePixelContentBoxSize;switch(t){case ou.DEVICE_PIXEL_CONTENT_BOX:return i;case ou.BORDER_BOX:return a;default:return o}},XI=function(){function e(t){var r=Fy(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=di([r.borderBoxSize]),this.contentBoxSize=di([r.contentBoxSize]),this.devicePixelContentBoxSize=di([r.devicePixelContentBoxSize])}return e}(),Iy=function(e){if(Ey(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},YI=function(){var e=1/0,t=[];ci.forEach(function(i){if(i.activeTargets.length!==0){var l=[];i.activeTargets.forEach(function(c){var m=new XI(c.target),p=Iy(c.target);l.push(m),c.lastReportedSize=jy(c.target,c.observedBox),p<e&&(e=p)}),t.push(function(){i.callback.call(i.observer,l,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var a=n[r];a()}return e},Ty=function(e){ci.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(a){a.isActive()&&(Iy(a.target)>e?r.activeTargets.push(a):r.skippedTargets.push(a))})})},JI=function(){var e=0;for(Ty(e);WI();)e=YI(),Ty(e);return VI()&&HI(),e>0},qp,ky=[],QI=function(){return ky.splice(0).forEach(function(e){return e()})},KI=function(e){if(!qp){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return QI()}).observe(r,n),qp=function(){r.textContent="".concat(t?t--:t++)}}ky.push(e),qp()},qI=function(e){KI(function(){requestAnimationFrame(e)})},jd=0,eT=function(){return!!jd},tT=250,rT={attributes:!0,characterData:!0,childList:!0,subtree:!0},By=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Py=function(e){return e===void 0&&(e=0),Date.now()+e},eg=!1,nT=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=tT),!eg){eg=!0;var n=Py(t);qI(function(){var a=!1;try{a=JI()}finally{if(eg=!1,t=n-Py(),!eT())return;a?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,rT)};document.body?r():iu.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),By.forEach(function(r){return iu.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),By.forEach(function(r){return iu.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),tg=new nT,Oy=function(e){!jd&&e>0&&tg.start(),jd+=e,!jd&&tg.stop()},aT=function(e){return!Kp(e)&&!GI(e)&&getComputedStyle(e).display==="inline"},oT=function(){function e(t,r){this.target=t,this.observedBox=r||ou.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=jy(this.target,this.observedBox,!0);return aT(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),iT=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),Id=new WeakMap,Ny=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Td=function(){function e(){}return e.connect=function(t,r){var n=new iT(t,r);Id.set(t,n)},e.observe=function(t,r,n){var a=Id.get(t),o=a.observationTargets.length===0;Ny(a.observationTargets,r)<0&&(o&&ci.push(a),a.observationTargets.push(new oT(r,n&&n.box)),Oy(1),tg.schedule())},e.unobserve=function(t,r){var n=Id.get(t),a=Ny(n.observationTargets,r),o=n.observationTargets.length===1;a>=0&&(o&&ci.splice(ci.indexOf(n),1),n.observationTargets.splice(a,1),Oy(-1))},e.disconnect=function(t){var r=this,n=Id.get(t);n.observationTargets.slice().forEach(function(a){return r.unobserve(t,a.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),sT=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Td.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Dy(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Td.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Dy(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Td.unobserve(this,t)},e.prototype.disconnect=function(){Td.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Ga={};Object.defineProperty(Ga,"__esModule",{value:!0});for(var lT=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),rg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},uT={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:lT?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},My={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},kd=1;kd<20;kd++)My["f"+kd]=111+kd;function Bd(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(i){return Ry(i,t)}),a=function(l){return n.some(function(u){return $y(u,l)})},o=r==null?a:a(r);return o}function cT(e,t){return Bd(e,t)}function dT(e,t){return Bd(e,{byKey:!0},t)}function Ry(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var a=e.split("+"),o=a.length;for(var i in rg)n[rg[i]]=!1;var l=!0,u=!1,c=void 0;try{for(var m=a[Symbol.iterator](),p;!(l=(p=m.next()).done);l=!0){var x=p.value,C=x.endsWith("?")&&x.length>1;C&&(x=x.slice(0,-1));var E=ng(x),v=rg[E];(o===1||!v)&&(r?n.key=E:n.which=Ly(x)),v&&(n[v]=C?null:!0)}}catch(A){u=!0,c=A}finally{try{!l&&m.return&&m.return()}finally{if(u)throw c}}return n}function $y(e,t){for(var r in e){var n=e[r],a=void 0;if(n!=null&&(r==="key"&&t.key!=null?a=t.key.toLowerCase():r==="which"?a=n===91&&t.which===93?91:t.which:a=t[r],!(a==null&&n===!1)&&a!==n))return!1}return!0}function Ly(e){e=ng(e);var t=My[e]||e.toUpperCase().charCodeAt(0);return t}function ng(e){return e=e.toLowerCase(),e=uT[e]||e,e}Ga.default=Bd;var ag=Ga.isHotkey=Bd;Ga.isCodeHotkey=cT,Ga.isKeyHotkey=dT,Ga.parseHotkey=Ry,Ga.compareHotkey=$y,Ga.toKeyCode=Ly,Ga.toKeyName=ng;function Pd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fT(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Es(e,t){if(e==null)return{};var r=fT(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var og=h.createContext(null),wo=()=>{var e=h.useContext(og);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},_y=parseInt(h.version.split(".")[0],10),hT=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Wy=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),ln=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Od=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),su=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),pT=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Vy=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),gT=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),mT=ln&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),vT=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),bT=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),xT=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent),Nd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eo=(!gT||!mT)&&!pT&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",ig=new WeakMap,sg=new WeakMap,Hy=new WeakMap,Md=new WeakMap,lg=new WeakMap,lu=new WeakMap,fi=new WeakMap,ug=new WeakMap,Rd=new WeakMap,cg=new WeakMap,hi=new WeakMap,pi=new WeakMap,uu=new WeakMap,dg=new WeakMap,fg=new WeakMap,ra=new WeakMap,Za=new WeakMap,un=new WeakMap,Do=new WeakMap,So=new WeakMap,zy=new WeakMap,Ds=Symbol("placeholder"),Gy=Symbol("mark-placeholder"),yT=globalThis.Text,hg=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,CT=e=>Ao(e)&&e.nodeType===8,$n=e=>Ao(e)&&e.nodeType===1,Ao=e=>{var t=hg(e);return!!t&&e instanceof t.Node},pg=e=>{var t=e&&e.anchorNode&&hg(e.anchorNode);return!!t&&e instanceof t.Selection},Zy=e=>Ao(e)&&e.nodeType===3,wT=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,ET=e=>{var[t,r]=e;if($n(t)&&t.childNodes.length){var n=r===t.childNodes.length,a=n?r-1:r;for([t,a]=Uy(t,a,n?"backward":"forward"),n=a<r;$n(t)&&t.childNodes.length;){var o=n?t.childNodes.length-1:0;t=ST(t,o,n?"backward":"forward")}r=n&&t.textContent!=null?t.textContent.length:0}return[t,r]},DT=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},Uy=(e,t,r)=>{for(var{childNodes:n}=e,a=n[t],o=t,i=!1,l=!1;(CT(a)||$n(a)&&a.childNodes.length===0||$n(a)&&a.getAttribute("contenteditable")==="false")&&!(i&&l);){if(o>=n.length){i=!0,o=t-1,r="backward";continue}if(o<0){l=!0,o=t+1,r="forward";continue}a=n[o],t=o,o+=r==="forward"?1:-1}return[a,t]},ST=(e,t,r)=>{var[n]=Uy(e,t,r);return n},Xy=e=>{var t="";if(Zy(e)&&e.nodeValue)return e.nodeValue;if($n(e)){for(var r of Array.from(e.childNodes))t+=Xy(r);var n=getComputedStyle(e).getPropertyValue("display");(n==="block"||n==="list"||e.tagName==="BR")&&(t+=`
|
|
112
|
+
`)}return t},AT=/data-slate-fragment="(.+?)"/m,FT=e=>{var t=e.getData("text/html"),[,r]=t.match(AT)||[];return r},gg=(e,t,r)=>{var{target:n}=t;if($n(n)&&n.matches('[contentEditable="false"]'))return!1;var{document:a}=Re.getWindow(e);if(a.contains(n))return Re.hasDOMNode(e,n,{editable:!0});var o=r.find(i=>{var{addedNodes:l,removedNodes:u}=i;for(var c of l)if(c===n||c.contains(n))return!0;for(var m of u)if(m===n||m.contains(n))return!0});return!o||o===t?!1:gg(e,o,r)},jT=0;class IT{constructor(){this.id="".concat(jT++)}}var Re={androidPendingDiffs:e=>un.get(e),androidScheduleFlush:e=>{var t;(t=fg.get(e))===null||t===void 0||t()},blur:e=>{var t=Re.toDOMNode(e,e),r=Re.findDocumentOrShadowRoot(e);hi.set(e,!1),r.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,r=Re.findDocumentOrShadowRoot(e),n=r.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&Ge.deselect(e)},findDocumentOrShadowRoot:e=>{var t=Re.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:r,clientY:n,target:a}=t;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o=Re.toSlateNode(e,t.target),i=Re.findPath(e,o);if(ot.isElement(o)&&P.isVoid(e,o)){var l=a.getBoundingClientRect(),u=e.isInline(o)?r-l.left<l.left+l.width-r:n-l.top<l.top+l.height-n,c=P.point(e,i,{edge:u?"start":"end"}),m=u?P.before(e,c):P.after(e,c);if(m){var p=P.range(e,m);return p}}var x,{document:C}=Re.getWindow(e);if(C.caretRangeFromPoint)x=C.caretRangeFromPoint(r,n);else{var E=C.caretPositionFromPoint(r,n);E&&(x=C.createRange(),x.setStart(E.offsetNode,E.offset),x.setEnd(E.offsetNode,E.offset))}if(!x)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var v=Re.toSlateRange(e,x,{exactMatch:!1,suppressThrow:!1});return v},findKey:(e,t)=>{var r=ug.get(t);return r||(r=new IT,ug.set(t,r)),r},findPath:(e,t)=>{for(var r=[],n=t;;){var a=sg.get(n);if(a==null){if(P.isEditor(n))return r;break}var o=ig.get(n);if(o==null)break;r.unshift(o),n=a}throw new Error("Unable to find the path for Slate node: ".concat(jr.stringify(t)))},focus:e=>{var t=Re.toDOMNode(e,e),r=Re.findDocumentOrShadowRoot(e);hi.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},getWindow:e=>{var t=Hy.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:a=!1}=n,o=Re.toDOMNode(t,t),i;try{i=$n(r)?r:r.parentElement}catch(l){if(!l.message.includes('Permission denied to access property "nodeType"'))throw l}return i?i.closest("[data-slate-editor]")===o&&(!a||i.isContentEditable?!0:typeof i.isContentEditable=="boolean"&&i.closest('[contenteditable="false"]')===o||!!i.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>Ao(t)&&Re.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:r,focus:n}=t;return P.hasPath(e,r.path)&&P.hasPath(e,n.path)},hasSelectableTarget:(e,t)=>Re.hasEditableTarget(e,t)||Re.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>Ao(t)&&Re.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!pi.get(e),isFocused:e=>!!hi.get(e),isReadOnly:e=>!!cg.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(cg.get(e))return!1;var r=Re.hasTarget(e,t)&&Re.toSlateNode(e,t);return ot.isElement(r)&&P.isVoid(e,r)},setFragmentData:(e,t,r)=>e.setFragmentData(t,r),toDOMNode:(e,t)=>{var r=Rd.get(e),n=P.isEditor(t)?Md.get(e):r==null?void 0:r.get(Re.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(jr.stringify(t)));return n},toDOMPoint:(e,t)=>{var[r]=P.node(e,t.path),n=Re.toDOMNode(e,r),a;P.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o="[data-slate-string], [data-slate-zero-width]",i=Array.from(n.querySelectorAll(o)),l=0,u=0;u<i.length;u++){var c=i[u],m=c.childNodes[0];if(!(m==null||m.textContent==null)){var{length:p}=m.textContent,x=c.getAttribute("data-slate-length"),C=x==null?p:parseInt(x,10),E=l+C,v=i[u+1];if(t.offset===E&&v!==null&&v!==void 0&&v.hasAttribute("data-slate-mark-placeholder")){var A,S=v.childNodes[0];a=[S instanceof yT?S:v,(A=v.textContent)!==null&&A!==void 0&&A.startsWith("\uFEFF")?1:0];break}if(t.offset<=E){var j=Math.min(p,Math.max(0,t.offset-l));a=[m,j];break}l=E}}if(!a)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(jr.stringify(t)));return a},toDOMRange:(e,t)=>{var{anchor:r,focus:n}=t,a=Be.isBackward(t),o=Re.toDOMPoint(e,r),i=Be.isCollapsed(t)?o:Re.toDOMPoint(e,n),l=Re.getWindow(e),u=l.document.createRange(),[c,m]=a?i:o,[p,x]=a?o:i,C=$n(c)?c:c.parentElement,E=!!C.getAttribute("data-slate-zero-width"),v=$n(p)?p:p.parentElement,A=!!v.getAttribute("data-slate-zero-width");return u.setStart(c,E?1:m),u.setEnd(p,A?1:x),u},toSlateNode:(e,t)=>{var r=$n(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?lu.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},toSlatePoint:(e,t,r)=>{var{exactMatch:n,suppressThrow:a}=r,[o,i]=n?t:ET(t),l=o.parentNode,u=null,c=0;if(l){var m,p,x=Re.toDOMNode(e,e),C=l.closest('[data-slate-void="true"]'),E=C&&x.contains(C)?C:null,v=l.closest("[data-slate-leaf]"),A=null;if(v){if(u=v.closest('[data-slate-node="text"]'),u){var S=Re.getWindow(e),j=S.document.createRange();j.setStart(u,0),j.setEnd(o,i);var O=j.cloneContents(),L=[...Array.prototype.slice.call(O.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(O.querySelectorAll("[contenteditable=false]"))];L.forEach(N=>{if(ln&&!n&&N.hasAttribute("data-slate-zero-width")&&N.textContent.length>0&&N.textContext!=="\uFEFF"){N.textContent.startsWith("\uFEFF")&&(N.textContent=N.textContent.slice(1));return}N.parentNode.removeChild(N)}),c=O.textContent.length,A=u}}else if(E){for(var M=E.querySelectorAll("[data-slate-leaf]"),z=0;z<M.length;z++){var H=M[z];if(Re.hasDOMNode(e,H)){v=H;break}}v?(u=v.closest('[data-slate-node="text"]'),A=v,c=A.textContent.length,A.querySelectorAll("[data-slate-zero-width]").forEach(N=>{c-=N.textContent.length})):c=1}A&&c===A.textContent.length&&ln&&A.getAttribute("data-slate-zero-width")==="z"&&(m=A.textContent)!==null&&m!==void 0&&m.startsWith("\uFEFF")&&(l.hasAttribute("data-slate-zero-width")||Od&&(p=A.textContent)!==null&&p!==void 0&&p.endsWith(`
|
|
113
|
+
|
|
114
|
+
`))&&c--}if(ln&&!u&&!n){var oe=l.hasAttribute("data-slate-node")?l:l.closest("[data-slate-node]");if(oe&&Re.hasDOMNode(e,oe,{editable:!0})){var J=Re.toSlateNode(e,oe),{path:ge,offset:xe}=P.start(e,Re.findPath(e,J));return oe.querySelector("[data-slate-leaf]")||(xe=i),{path:ge,offset:xe}}}if(!u){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var Q=Re.toSlateNode(e,u),ce=Re.findPath(e,Q);return{path:ce,offset:c}},toSlateRange:(e,t,r)=>{var{exactMatch:n,suppressThrow:a}=r,o=pg(t)?t.anchorNode:t.startContainer,i,l,u,c,m;if(o&&(pg(t)?(i=t.anchorNode,l=t.anchorOffset,u=t.focusNode,c=t.focusOffset,Vy&&DT(i)?m=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:m=t.isCollapsed):(i=t.startContainer,l=t.startOffset,u=t.endContainer,c=t.endOffset,m=t.collapsed)),i==null||u==null||l==null||c==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if("getAttribute"in u&&u.getAttribute("contenteditable")==="false"&&u.getAttribute("data-slate-void")!=="true"){var p;u=i,c=((p=i.textContent)===null||p===void 0?void 0:p.length)||0}var x=Re.toSlatePoint(e,[i,l],{exactMatch:n,suppressThrow:a});if(!x)return null;var C=m?x:Re.toSlatePoint(e,[u,c],{exactMatch:n,suppressThrow:a});if(!C)return null;if(Od&&!m&&i!==u){var E=P.isEnd(e,x,x.path),v=P.isStart(e,C,C.path);if(E){var A=P.after(e,x);x=A||x}if(v){var S=P.before(e,C);C=S||C}}var j={anchor:x,focus:C};return Be.isExpanded(j)&&Be.isForward(j)&&$n(u)&&P.void(e,{at:j.focus,mode:"highest"})&&(j=P.unhangRange(e,j,{voids:!0})),j}};function TT(e,t){var{path:r,diff:n}=t;if(!P.hasPath(e,r))return!1;var a=Ye.get(e,r);if(!lt.isText(a))return!1;if(n.start!==a.text.length||n.text.length===0)return a.text.slice(n.start,n.start+n.text.length)===n.text;var o=le.next(r);if(!P.hasPath(e,o))return!1;var i=Ye.get(e,o);return lt.isText(i)&&i.text.startsWith(n.text)}function Yy(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((a,o)=>a.slice(0,o.start)+o.text+a.slice(o.end),e)}function kT(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return r}function BT(e,t,r){for(var n=Math.min(e.length,t.length,r),a=0;a<n;a++)if(e.charAt(e.length-a-1)!==t.charAt(t.length-a-1))return a;return n}function Jy(e,t){var{start:r,end:n,text:a}=t,o=e.slice(r,n),i=kT(o,a),l=Math.min(o.length-i,a.length-i),u=BT(o,a,l),c={start:r+i,end:n-u,text:a.slice(i,a.length-u)};return c.start===c.end&&c.text.length===0?null:c}function PT(e,t,r){var n=Math.min(t.start,r.start),a=Math.max(0,Math.min(t.start+t.text.length,r.end)-r.start),o=Yy(e,t,r),i=Math.max(r.start+r.text.length,t.start+t.text.length+(t.start+t.text.length>r.start?r.text.length:0)-a),l=o.slice(n,i),u=Math.max(t.end,r.end-t.text.length+(t.end-t.start));return Jy(e,{start:n,end:u,text:l})}function OT(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}function mg(e,t){var{path:r,offset:n}=t;if(!P.hasPath(e,r))return null;var a=Ye.get(e,r);if(!lt.isText(a))return null;var o=P.above(e,{match:l=>ot.isElement(l)&&P.isBlock(e,l),at:r});if(!o)return null;for(;n>a.text.length;){var i=P.next(e,{at:r,match:lt.isText});if(!i||!le.isDescendant(i[1],o[1]))return null;n-=a.text.length,a=i[0],r=i[1]}return{path:r,offset:n}}function Qy(e,t){var r=mg(e,t.anchor);if(!r)return null;if(Be.isCollapsed(t))return{anchor:r,focus:r};var n=mg(e,t.focus);return n?{anchor:r,focus:n}:null}function vg(e,t,r){var n=un.get(e),a=n==null?void 0:n.find(m=>{var{path:p}=m;return le.equals(p,t.path)});if(!a||t.offset<=a.diff.start)return jt.transform(t,r,{affinity:"backward"});var{diff:o}=a;if(t.offset<=o.start+o.text.length){var i={path:t.path,offset:o.start},l=jt.transform(i,r,{affinity:"backward"});return l?{path:l.path,offset:l.offset+t.offset-o.start}:null}var u={path:t.path,offset:t.offset-o.text.length+o.end-o.start},c=jt.transform(u,r,{affinity:"backward"});return c?r.type==="split_node"&&le.equals(r.path,t.path)&&u.offset<r.position&&o.start<r.position?c:{path:c.path,offset:c.offset+o.text.length-o.end+o.start}:null}function Ky(e,t,r){var n=vg(e,t.anchor,r);if(!n)return null;if(Be.isCollapsed(t))return{anchor:n,focus:n};var a=vg(e,t.focus,r);return a?{anchor:n,focus:a}:null}function NT(e,t){var{path:r,diff:n,id:a}=e;switch(t.type){case"insert_text":return!le.equals(t.path,r)||t.offset>=n.end?e:t.offset<=n.start?{diff:{start:t.text.length+n.start,end:t.text.length+n.end,text:n.text},id:a,path:r}:{diff:{start:n.start,end:n.end+t.text.length,text:n.text},id:a,path:r};case"remove_text":return!le.equals(t.path,r)||t.offset>=n.end?e:t.offset+t.text.length<=n.start?{diff:{start:n.start-t.text.length,end:n.end-t.text.length,text:n.text},id:a,path:r}:{diff:{start:n.start,end:n.end-t.text.length,text:n.text},id:a,path:r};case"split_node":return!le.equals(t.path,r)||t.position>=n.end?{diff:n,id:a,path:le.transform(r,t,{affinity:"backward"})}:t.position>n.start?{diff:{start:n.start,end:Math.min(t.position,n.end),text:n.text},id:a,path:r}:{diff:{start:n.start-t.position,end:n.end-t.position,text:n.text},id:a,path:le.transform(r,t,{affinity:"forward"})};case"merge_node":return le.equals(t.path,r)?{diff:{start:n.start+t.position,end:n.end+t.position,text:n.text},id:a,path:le.transform(r,t)}:{diff:n,id:a,path:le.transform(r,t)}}var o=le.transform(r,t);return o?{diff:n,path:o,id:a}:null}function qy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $d(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qy(Object(r),!0).forEach(function(n){Pd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var MT=25,RT=200,$T=function(){},LT=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function _T(e){var{editor:t,scheduleOnDOMSelectionChange:r,onDOMSelectionChange:n}=e,a=!1,o=null,i=null,l=null,u=0,c=!1,m=()=>{var Q=So.get(t);if(So.delete(t),Q){var{selection:ce}=t,N=Qy(t,Q);N&&(!ce||!Be.equals(N,ce))&&Ge.select(t,N)}},p=()=>{var Q=Do.get(t);if(Do.delete(t),!!Q){if(Q.at){var ce=jt.isPoint(Q.at)?mg(t,Q.at):Qy(t,Q.at);if(!ce)return;var N=P.range(t,ce);(!t.selection||!Be.equals(t.selection,N))&&Ge.select(t,ce)}Q.run()}},x=()=>{if(i&&(clearTimeout(i),i=null),l&&(clearTimeout(l),l=null),!L()&&!O()){m();return}a||(a=!0,setTimeout(()=>a=!1)),O()&&(a="action");var Q=t.selection&&P.rangeRef(t,t.selection,{affinity:"forward"});Za.set(t,t.marks),$T("flush",Do.get(t),un.get(t));for(var ce=L(),N;N=(W=un.get(t))===null||W===void 0?void 0:W[0];){var W,ee,de=ra.get(t);de!==void 0&&(ra.delete(t),t.marks=de),de&&c===!1&&(c=null);var ne=OT(N);(!t.selection||!Be.equals(t.selection,ne))&&Ge.select(t,ne),N.diff.text?P.insertText(t,N.diff.text):P.deleteFragment(t),un.set(t,(ee=un.get(t))===null||ee===void 0?void 0:ee.filter(se=>{var{id:fe}=se;return fe!==N.id})),TT(t,N)||(ce=!1,Do.delete(t),Za.delete(t),a="action",So.delete(t),r.cancel(),n.cancel(),Q==null||Q.unref())}var te=Q==null?void 0:Q.unref();if(te&&!So.get(t)&&(!t.selection||!Be.equals(te,t.selection))&&Ge.select(t,te),O()){p();return}ce&&r(),r.flush(),n.flush(),m();var K=Za.get(t);Za.delete(t),K!==void 0&&(t.marks=K,t.onChange())},C=Q=>{o&&clearTimeout(o),o=setTimeout(()=>{pi.set(t,!1),x()},MT)},E=Q=>{pi.set(t,!0),o&&(clearTimeout(o),o=null)},v=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,N=lg.get(t);if(N){if(L()||ce){N.style.display="none";return}N.style.removeProperty("display")}},A=(Q,ce)=>{var N,W=(N=un.get(t))!==null&&N!==void 0?N:[];un.set(t,W);var ee=Ye.leaf(t,Q),de=W.findIndex(K=>le.equals(K.path,Q));if(de<0){var ne=Jy(ee.text,ce);ne&&W.push({path:Q,diff:ce,id:u++}),v();return}var te=PT(ee.text,W[de].diff,ce);if(!te){W.splice(de,1),v();return}W[de]=$d($d({},W[de]),{},{diff:te})},S=function(ce){var{at:N}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c=!1,So.delete(t),r.cancel(),n.cancel(),O()&&x(),Do.set(t,{at:N,run:ce}),l=setTimeout(x)},j=Q=>{var ce;i&&(clearTimeout(i),i=null);var{inputType:N}=Q,W=null,ee=Q.dataTransfer||Q.data||void 0;c!==!1&&N!=="insertText"&&N!=="insertCompositionText"&&(c=!1);var[de]=Q.getTargetRanges();de&&(W=Re.toSlateRange(t,de,{exactMatch:!1,suppressThrow:!0}));var ne=Re.getWindow(t),te=ne.getSelection();if(!W&&te&&(de=te,W=Re.toSlateRange(t,te,{exactMatch:!1,suppressThrow:!0})),W=(ce=W)!==null&&ce!==void 0?ce:t.selection,!!W){var K=!0;if(N.startsWith("delete")){if(Be.isExpanded(W)){var[se,fe]=Be.edges(W),Se=Ye.leaf(t,se.path);if(Se.text.length===se.offset&&fe.offset===0){var G=P.next(t,{at:se.path,match:lt.isText});G&&le.equals(G[1],fe.path)&&(W={anchor:fe,focus:fe})}}var he=N.endsWith("Backward")?"backward":"forward",[ae,me]=Be.edges(W),[Me,Pe]=P.leaf(t,ae.path),We={text:"",start:ae.offset,end:me.offset},Ke=un.get(t),Ne=Ke==null?void 0:Ke.find(gt=>le.equals(gt.path,Pe)),Qe=Ne?[Ne.diff,We]:[We],nt=Yy(Me.text,...Qe);if(nt.length===0&&(K=!1),Be.isExpanded(W)){if(K&&le.equals(W.anchor.path,W.focus.path)){var vt={path:W.anchor.path,offset:ae.offset},At=P.range(t,vt,vt);return H(At),A(W.anchor.path,{text:"",end:me.offset,start:ae.offset})}return S(()=>P.deleteFragment(t,{direction:he}),{at:W})}}switch(N){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return S(()=>P.deleteFragment(t),{at:W});case"deleteContent":case"deleteContentForward":{var{anchor:re}=W;if(K&&Be.isCollapsed(W)){var be=Ye.leaf(t,re.path);if(re.offset<be.text.length)return A(re.path,{text:"",start:re.offset,end:re.offset+1})}return S(()=>P.deleteForward(t),{at:W})}case"deleteContentBackward":{var Ie,{anchor:Ze}=W,He=pg(de)?de.isCollapsed:!!((Ie=de)!==null&&Ie!==void 0&&Ie.collapsed);return K&&He&&Be.isCollapsed(W)&&Ze.offset>0?A(Ze.path,{text:"",start:Ze.offset-1,end:Ze.offset}):S(()=>P.deleteBackward(t),{at:W})}case"deleteEntireSoftLine":return S(()=>{P.deleteBackward(t,{unit:"line"}),P.deleteForward(t,{unit:"line"})},{at:W});case"deleteHardLineBackward":return S(()=>P.deleteBackward(t,{unit:"block"}),{at:W});case"deleteSoftLineBackward":return S(()=>P.deleteBackward(t,{unit:"line"}),{at:W});case"deleteHardLineForward":return S(()=>P.deleteForward(t,{unit:"block"}),{at:W});case"deleteSoftLineForward":return S(()=>P.deleteForward(t,{unit:"line"}),{at:W});case"deleteWordBackward":return S(()=>P.deleteBackward(t,{unit:"word"}),{at:W});case"deleteWordForward":return S(()=>P.deleteForward(t,{unit:"word"}),{at:W});case"insertLineBreak":return S(()=>P.insertSoftBreak(t),{at:W});case"insertParagraph":return S(()=>P.insertBreak(t),{at:W});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(LT(ee))return S(()=>Re.insertData(t,ee),{at:W});var Te=ee??"";if(ra.get(t)&&(Te=Te.replace("\uFEFF","")),N==="insertText"&&/.*\n.*\n$/.test(Te)&&(Te=Te.slice(0,-1)),Te.includes(`
|
|
115
|
+
`))return S(()=>{var gt=Te.split(`
|
|
116
|
+
`);gt.forEach((Wt,pr)=>{Wt&&P.insertText(t,Wt),pr!==gt.length-1&&P.insertSoftBreak(t)})},{at:W});if(le.equals(W.anchor.path,W.focus.path)){var[Ee,ze]=Be.edges(W),tt={start:Ee.offset,end:ze.offset,text:Te};if(Te&&c&&N==="insertCompositionText"){var bt=c.start+c.text.search(/\S|$/),Ot=tt.start+tt.text.search(/\S|$/);Ot===bt+1&&tt.end===c.start+c.text.length?(tt.start-=1,c=null,ge()):c=!1}else N==="insertText"?c===null?c=tt:c&&Be.isCollapsed(W)&&c.end+c.text.length===Ee.offset?c=$d($d({},c),{},{text:c.text+Te}):c=!1:c=!1;if(K){A(Ee.path,tt);return}}return S(()=>P.insertText(t,Te),{at:W})}}}},O=()=>!!Do.get(t),L=()=>{var Q;return!!((Q=un.get(t))!==null&&Q!==void 0&&Q.length)},M=()=>O()||L(),z=()=>a,H=Q=>{So.set(t,Q),i&&(clearTimeout(i),i=null);var{selection:ce}=t;if(Q){var N=!ce||!le.equals(ce.anchor.path,Q.anchor.path),W=!ce||!le.equals(ce.anchor.path.slice(0,-1),Q.anchor.path.slice(0,-1));(N&&c||W)&&(c=!1),(N||L())&&(i=setTimeout(x,RT))}},oe=()=>{(O()||!L())&&x()},J=Q=>{L()||(v(!0),setTimeout(v))},ge=()=>{O()||(l=setTimeout(x))},xe=Q=>{if(!(L()||O())&&Q.some(N=>gg(t,N,Q))){var ce;(ce=zy.get(t))===null||ce===void 0||ce()}};return{flush:x,scheduleFlush:ge,hasPendingDiffs:L,hasPendingAction:O,hasPendingChanges:M,isFlushing:z,handleUserSelect:H,handleCompositionEnd:C,handleCompositionStart:E,handleDOMBeforeInput:j,handleKeyDown:J,handleDomMutations:xe,handleInput:oe}}function WT(){var e=h.useRef(!1);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var cu=Nd?h.useLayoutEffect:h.useEffect;function VT(e,t,r){var[n]=h.useState(()=>new MutationObserver(t));cu(()=>{n.takeRecords()}),h.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return n.observe(e.current,r),()=>n.disconnect()},[n,e,r])}var HT=["node"];function e2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(r),!0).forEach(function(n){Pd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var GT={subtree:!0,childList:!0,characterData:!0},ZT=ln?e=>{var{node:t}=e,r=Es(e,HT);if(!ln)return null;var n=wo(),a=WT(),[o]=h.useState(()=>_T(zT({editor:n},r)));return VT(t,o.handleDomMutations,GT),fg.set(n,o.scheduleFlush),a&&o.flush(),o}:()=>null,UT=["anchor","focus"],XT=["anchor","focus"],YT=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>t.hasOwnProperty(r)&&e[r]===t[r]),t2=(e,t)=>{var r=Es(e,UT),n=Es(t,XT);return e[Ds]===t[Ds]&&YT(r,n)},JT=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],a=t[r];if(!Be.equals(n,a)||!t2(n,a))return!1}return!0},QT=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],a=t[r];if(n.anchor.offset!==a.anchor.offset||n.focus.offset!==a.focus.offset||!t2(n,a))return!1}return!0},KT=e=>{var{isLast:t,leaf:r,parent:n,text:a}=e,o=wo(),i=Re.findPath(o,a),l=le.parent(i),u=r[Gy]===!0;return o.isVoid(n)?h.createElement(bg,{length:Ye.string(n).length}):r.text===""&&n.children[n.children.length-1]===a&&!o.isInline(n)&&P.string(o,l)===""?h.createElement(bg,{isLineBreak:!0,isMarkPlaceholder:u}):r.text===""?h.createElement(bg,{isMarkPlaceholder:u}):t&&r.text.slice(-1)===`
|
|
117
|
+
`?h.createElement(r2,{isTrailing:!0,text:r.text}):h.createElement(r2,{text:r.text})},r2=e=>{var{text:t,isTrailing:r=!1}=e,n=h.useRef(null),a=()=>"".concat(t??"").concat(r?`
|
|
118
|
+
`:""),[o]=h.useState(a);return cu(()=>{var i=a();n.current&&n.current.textContent!==i&&(n.current.textContent=i)}),h.createElement(qT,{ref:n},o)},qT=h.memo(h.forwardRef((e,t)=>h.createElement("span",{"data-slate-string":!0,ref:t},e.children))),bg=e=>{var{length:t=0,isLineBreak:r=!1,isMarkPlaceholder:n=!1}=e,a={"data-slate-zero-width":r?"n":"z","data-slate-length":t};return n&&(a["data-slate-mark-placeholder"]=!0),h.createElement("span",Object.assign({},a),!ln||!r?"\uFEFF":null,r?h.createElement("br",null):null)};function ek(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function n2(e){e.current&&(clearTimeout(e.current),e.current=null)}var tk=e=>{var{leaf:t,isLast:r,text:n,parent:a,renderPlaceholder:o,renderLeaf:i=j=>h.createElement(nk,Object.assign({},j))}=e,l=wo(),u=h.useRef(null),c=h.useRef(null),[m,p]=h.useState(!1),x=h.useRef(null),C=h.useCallback(j=>{if(ek(u,j==null),j==null){var O;lg.delete(l),(O=t.onPlaceholderResize)===null||O===void 0||O.call(t,null)}else{if(lg.set(l,j),!u.current){var L=window.ResizeObserver||sT;u.current=new L(()=>{var M;(M=t.onPlaceholderResize)===null||M===void 0||M.call(t,j)})}u.current.observe(j),c.current=j}},[c,t,l]),E=h.createElement(KT,{isLast:r,leaf:t,parent:a,text:n}),v=t[Ds];if(h.useEffect(()=>(v?x.current||(x.current=setTimeout(()=>{p(!0),x.current=null},300)):(n2(x),p(!1)),()=>n2(x)),[v,p]),v&&m){var A={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:su?"inherit":void 0},contentEditable:!1,ref:C}};E=h.createElement(h.Fragment,null,o(A),E)}var S={"data-slate-leaf":!0};return i({attributes:S,children:E,leaf:t,text:n})},rk=h.memo(tk,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&<.equals(t.leaf,e.leaf)&&t.leaf[Ds]===e.leaf[Ds]),nk=e=>{var{attributes:t,children:r}=e;return h.createElement("span",Object.assign({},t),r)},ak=e=>{for(var{decorations:t,isLast:r,parent:n,renderPlaceholder:a,renderLeaf:o,text:i}=e,l=wo(),u=h.useRef(null),c=lt.decorations(i,t),m=Re.findKey(l,i),p=[],x=0;x<c.length;x++){var C=c[x];p.push(h.createElement(rk,{isLast:r&&x===c.length-1,key:"".concat(m.id,"-").concat(x),renderPlaceholder:a,leaf:C,text:i,parent:n,renderLeaf:o}))}var E=h.useCallback(v=>{var A=Rd.get(l);v?(A==null||A.set(m,v),fi.set(i,v),lu.set(v,i)):(A==null||A.delete(m),fi.delete(i),u.current&&lu.delete(u.current)),u.current=v},[u,l,m,i]);return h.createElement("span",{"data-slate-node":"text",ref:E},p)},a2=h.memo(ak,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&QT(t.decorations,e.decorations)),ok=e=>{var{decorations:t,element:r,renderElement:n=j=>h.createElement(sk,Object.assign({},j)),renderPlaceholder:a,renderLeaf:o,selection:i}=e,l=wo(),u=ck(),c=l.isInline(r),m=Re.findKey(l,r),p=h.useCallback(j=>{var O=Rd.get(l);j?(O==null||O.set(m,j),fi.set(r,j),lu.set(j,r)):(O==null||O.delete(m),fi.delete(r))},[l,m,r]),x=i2({decorations:t,node:r,renderElement:n,renderPlaceholder:a,renderLeaf:o,selection:i}),C={"data-slate-node":"element",ref:p};if(c&&(C["data-slate-inline"]=!0),!c&&P.hasInlines(l,r)){var E=Ye.string(r),v=iy(E);v==="rtl"&&(C.dir=v)}if(P.isVoid(l,r)){C["data-slate-void"]=!0,!u&&c&&(C.contentEditable=!1);var A=c?"span":"div",[[S]]=Ye.texts(r);x=h.createElement(A,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},h.createElement(a2,{renderPlaceholder:a,decorations:[],isLast:!1,parent:r,text:S})),ig.set(S,0),sg.set(S,r)}return n({attributes:C,children:x,element:r})},ik=h.memo(ok,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&JT(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Be.equals(e.selection,t.selection))),sk=e=>{var{attributes:t,children:r,element:n}=e,a=wo(),o=a.isInline(n)?"span":"div";return h.createElement(o,Object.assign({},t,{style:{position:"relative"}}),r)},o2=h.createContext(()=>[]),lk=()=>h.useContext(o2),uk=h.createContext(!1),i2=e=>{for(var{decorations:t,node:r,renderElement:n,renderPlaceholder:a,renderLeaf:o,selection:i}=e,l=lk(),u=wo(),c=Re.findPath(u,r),m=[],p=ot.isElement(r)&&!u.isInline(r)&&P.hasInlines(u,r),x=0;x<r.children.length;x++){var C=c.concat(x),E=r.children[x],v=Re.findKey(u,E),A=P.range(u,C),S=i&&Be.intersection(A,i),j=l([E,C]);for(var O of t){var L=Be.intersection(O,A);L&&j.push(L)}ot.isElement(E)?m.push(h.createElement(uk.Provider,{key:"provider-".concat(v.id),value:!!S},h.createElement(ik,{decorations:j,element:E,key:v.id,renderElement:n,renderPlaceholder:a,renderLeaf:o,selection:S}))):m.push(h.createElement(a2,{decorations:j,key:v.id,isLast:p&&x===r.children.length-1,parent:r,renderPlaceholder:a,renderLeaf:o,text:E})),ig.set(E,x),sg.set(E,r)}return m},s2=h.createContext(!1),ck=()=>h.useContext(s2),l2=h.createContext(null),dk=()=>{var e=h.useContext(l2);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function fk(){var e=wo(),t=h.useRef(!1),r=h.useRef(0),n=h.useCallback(()=>{if(!t.current){t.current=!0;var a=Re.getWindow(e);a.cancelAnimationFrame(r.current),r.current=a.requestAnimationFrame(()=>{t.current=!1})}},[e]);return h.useEffect(()=>()=>cancelAnimationFrame(r.current),[]),{receivedUserInput:t,onUserInput:n}}var hk=3,pk={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"},gk={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"},mk={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ur=e=>{var t=pk[e],r=gk[e],n=mk[e],a=t&&ag(t),o=r&&ag(r),i=n&&ag(n);return l=>!!(a&&a(l)||Wy&&o&&o(l)||!Wy&&i&&i(l))},fr={isBold:ur("bold"),isCompose:ur("compose"),isMoveBackward:ur("moveBackward"),isMoveForward:ur("moveForward"),isDeleteBackward:ur("deleteBackward"),isDeleteForward:ur("deleteForward"),isDeleteLineBackward:ur("deleteLineBackward"),isDeleteLineForward:ur("deleteLineForward"),isDeleteWordBackward:ur("deleteWordBackward"),isDeleteWordForward:ur("deleteWordForward"),isExtendBackward:ur("extendBackward"),isExtendForward:ur("extendForward"),isExtendLineBackward:ur("extendLineBackward"),isExtendLineForward:ur("extendLineForward"),isItalic:ur("italic"),isMoveLineBackward:ur("moveLineBackward"),isMoveLineForward:ur("moveLineForward"),isMoveWordBackward:ur("moveWordBackward"),isMoveWordForward:ur("moveWordForward"),isRedo:ur("redo"),isSoftBreak:ur("insertSoftBreak"),isSplitBlock:ur("splitBlock"),isTransposeCharacter:ur("transposeCharacter"),isUndo:ur("undo")},vk=(e,t)=>{var r=[],n=()=>{r=[]},a=i=>{if(t.current){var l=i.filter(u=>gg(e,u,i));r.push(...l)}};function o(){r.length>0&&(r.reverse().forEach(i=>{i.type!=="characterData"&&(i.removedNodes.forEach(l=>{i.target.insertBefore(l,i.nextSibling)}),i.addedNodes.forEach(l=>{i.target.removeChild(l)}))}),n())}return{registerMutations:a,restoreDOM:o,clear:n}},bk={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class u2 extends h.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var t,{node:r}=this.props;if(!r.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(r.current,bk)}componentDidMount(){var{receivedUserInput:t}=this.props,r=this.context;this.manager=vk(r,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,r,n,a=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(a!=null&&a.length){var o;(o=this.manager)===null||o===void 0||o.registerMutations(a)}return(r=this.mutationObserver)===null||r===void 0||r.disconnect(),(n=this.manager)===null||n===void 0||n.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}u2.contextType=og;var xk=ln?u2:e=>{var{children:t}=e;return h.createElement(h.Fragment,null,t)},yk=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],Ck=["text"];function c2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(r),!0).forEach(function(n){Pd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var wk=e=>h.createElement(h.Fragment,null,i2(e)),Ek=e=>{var t=h.useCallback(G=>h.createElement(Dk,Object.assign({},G)),[]),{autoFocus:r,decorate:n=Sk,onDOMBeforeInput:a,placeholder:o,readOnly:i=!1,renderElement:l,renderLeaf:u,renderPlaceholder:c=t,scrollSelectionIntoView:m=Ak,style:p={},as:x="div",disableDefaultStyles:C=!1}=e,E=Es(e,yk),v=dk(),[A,S]=h.useState(!1),j=h.useRef(null),O=h.useRef([]),[L,M]=h.useState(),{onUserInput:z,receivedUserInput:H}=fk(),[,oe]=h.useReducer(G=>G+1,0);zy.set(v,oe),cg.set(v,i);var J=h.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);h.useEffect(()=>{j.current&&r&&j.current.focus()},[r]);var ge=h.useRef(),xe=h.useMemo(()=>RI(()=>{var G=ge.current;if((ln||!Re.isComposing(v))&&(!J.isUpdatingSelection||G!=null&&G.isFlushing())&&!J.isDraggingInternally){var he=Re.findDocumentOrShadowRoot(v),{activeElement:ae}=he,me=Re.toDOMNode(v,v),Me=he.getSelection();if(ae===me?(J.latestElement=ae,hi.set(v,!0)):hi.delete(v),!Me)return Ge.deselect(v);var{anchorNode:Pe,focusNode:We}=Me,Ke=Re.hasEditableTarget(v,Pe)||Re.isTargetInsideNonReadonlyVoid(v,Pe),Ne=Re.hasEditableTarget(v,We)||Re.isTargetInsideNonReadonlyVoid(v,We);if(Ke&&Ne){var Qe=Re.toSlateRange(v,Me,{exactMatch:!1,suppressThrow:!0});Qe&&(!Re.isComposing(v)&&!(G!=null&&G.hasPendingChanges())&&!(G!=null&&G.isFlushing())?Ge.select(v,Qe):G==null||G.handleUserSelect(Qe))}i&&(!Ke||!Ne)&&Ge.deselect(v)}},100),[v,i,J]),Q=h.useMemo(()=>kI(xe,0),[xe]);ge.current=ZT({node:j,onDOMSelectionChange:xe,scheduleOnDOMSelectionChange:Q}),cu(()=>{var G,he,ae;j.current&&(ae=hg(j.current))?(Hy.set(v,ae),Md.set(v,j.current),fi.set(v,j.current),lu.set(j.current,v)):fi.delete(v);var{selection:me}=v,Me=Re.findDocumentOrShadowRoot(v),Pe=Me.getSelection();if(!(!Pe||!Re.isFocused(v)||(G=ge.current)!==null&&G!==void 0&&G.hasPendingAction())){var We=vt=>{var At=Pe.type!=="None";if(!(!me&&!At)){var re=Md.get(v),be=!1;if(re.contains(Pe.anchorNode)&&re.contains(Pe.focusNode)&&(be=!0),At&&be&&me&&!vt){var Ie=Re.toSlateRange(v,Pe,{exactMatch:!0,suppressThrow:!0});if(Ie&&Be.equals(Ie,me)){var Ze;if(!J.hasMarkPlaceholder)return;var{anchorNode:He}=Pe;if(He!=null&&(Ze=He.parentElement)!==null&&Ze!==void 0&&Ze.hasAttribute("data-slate-mark-placeholder"))return}}if(me&&!Re.hasRange(v,me)){v.selection=Re.toSlateRange(v,Pe,{exactMatch:!1,suppressThrow:!0});return}J.isUpdatingSelection=!0;var Te=me&&Re.toDOMRange(v,me);return Te?(Re.isComposing(v)&&!ln?Pe.collapseToEnd():Be.isBackward(me)?Pe.setBaseAndExtent(Te.endContainer,Te.endOffset,Te.startContainer,Te.startOffset):Pe.setBaseAndExtent(Te.startContainer,Te.startOffset,Te.endContainer,Te.endOffset),m(v,Te)):Pe.removeAllRanges(),Te}},Ke=We(),Ne=((he=ge.current)===null||he===void 0?void 0:he.isFlushing())==="action";if(!ln||!Ne){setTimeout(()=>{if(Ke&&Od){var vt=Re.toDOMNode(v,v);vt.focus()}J.isUpdatingSelection=!1});return}var Qe=null,nt=requestAnimationFrame(()=>{if(Ne){var vt=At=>{try{var re=Re.toDOMNode(v,v);re.focus(),We(At)}catch{}};vt(),Qe=setTimeout(()=>{vt(!0),J.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(nt),Qe&&clearTimeout(Qe)}}});var ce=h.useCallback(G=>{if(z(),!i&&Re.hasEditableTarget(v,G.target)&&!Fk(G,a)){var he;if(ge.current)return ge.current.handleDOMBeforeInput(G);Q.flush(),xe.flush();var{selection:ae}=v,{inputType:me}=G,Me=G.dataTransfer||G.data||void 0,Pe=me==="insertCompositionText"||me==="deleteCompositionText";if(Pe&&Re.isComposing(v))return;var We=!1;if(me==="insertText"&&ae&&Be.isCollapsed(ae)&&G.data&&G.data.length===1&&/[a-z ]/i.test(G.data)&&ae.anchor.offset!==0){var Ke,Ne;We=!0,v.marks&&(We=!1);var{anchor:Qe}=ae,[nt,vt]=Re.toDOMPoint(v,Qe),At=(Ke=nt.parentElement)===null||Ke===void 0?void 0:Ke.closest("a"),re=Re.getWindow(v);if(We&&At&&Re.hasDOMNode(v,At)){var be,Ie=re==null?void 0:re.document.createTreeWalker(At,NodeFilter.SHOW_TEXT).lastChild();Ie===nt&&((be=Ie.textContent)===null||be===void 0?void 0:be.length)===vt&&(We=!1)}if(We&&nt.parentElement&&(re==null||(Ne=re.getComputedStyle(nt.parentElement))===null||Ne===void 0?void 0:Ne.whiteSpace)==="pre"){var Ze=P.above(v,{at:Qe.path,match:bt=>ot.isElement(bt)&&P.isBlock(v,bt)});Ze&&Ye.string(Ze[0]).includes(" ")&&(We=!1)}}if(!me.startsWith("delete")||me.startsWith("deleteBy")){var[He]=G.getTargetRanges();if(He){var Te=Re.toSlateRange(v,He,{exactMatch:!1,suppressThrow:!1});if(!ae||!Be.equals(ae,Te)){We=!1;var Ee=!Pe&&v.selection&&P.rangeRef(v,v.selection);Ge.select(v,Te),Ee&&uu.set(v,Ee)}}}if(Pe)return;if(We||G.preventDefault(),ae&&Be.isExpanded(ae)&&me.startsWith("delete")){var ze=me.endsWith("Backward")?"backward":"forward";P.deleteFragment(v,{direction:ze});return}switch(me){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{P.deleteFragment(v);break}case"deleteContent":case"deleteContentForward":{P.deleteForward(v);break}case"deleteContentBackward":{P.deleteBackward(v);break}case"deleteEntireSoftLine":{P.deleteBackward(v,{unit:"line"}),P.deleteForward(v,{unit:"line"});break}case"deleteHardLineBackward":{P.deleteBackward(v,{unit:"block"});break}case"deleteSoftLineBackward":{P.deleteBackward(v,{unit:"line"});break}case"deleteHardLineForward":{P.deleteForward(v,{unit:"block"});break}case"deleteSoftLineForward":{P.deleteForward(v,{unit:"line"});break}case"deleteWordBackward":{P.deleteBackward(v,{unit:"word"});break}case"deleteWordForward":{P.deleteForward(v,{unit:"word"});break}case"insertLineBreak":P.insertSoftBreak(v);break;case"insertParagraph":{P.insertBreak(v);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{me==="insertFromComposition"&&Re.isComposing(v)&&(S(!1),pi.set(v,!1)),(Me==null?void 0:Me.constructor.name)==="DataTransfer"?Re.insertData(v,Me):typeof Me=="string"&&(We?O.current.push(()=>P.insertText(v,Me)):P.insertText(v,Me));break}}var tt=(he=uu.get(v))===null||he===void 0?void 0:he.unref();uu.delete(v),tt&&(!v.selection||!Be.equals(v.selection,tt))&&Ge.select(v,tt)}},[v,xe,z,a,i,Q]),N=h.useCallback(G=>{G==null?(xe.cancel(),Q.cancel(),Md.delete(v),fi.delete(v),j.current&&Eo&&j.current.removeEventListener("beforeinput",ce)):Eo&&G.addEventListener("beforeinput",ce),j.current=G},[xe,Q,v,ce]);cu(()=>{var G=Re.getWindow(v);return G.document.addEventListener("selectionchange",Q),()=>{G.document.removeEventListener("selectionchange",Q)}},[Q]);var W=n([v,[]]),ee=o&&v.children.length===1&&Array.from(Ye.texts(v)).length===1&&Ye.string(v)===""&&!A,de=h.useCallback(G=>{if(G&&ee){var he;M((he=G.getBoundingClientRect())===null||he===void 0?void 0:he.height)}else M(void 0)},[ee]);if(ee){var ne=P.start(v,[]);W.push({[Ds]:!0,placeholder:o,onPlaceholderResize:de,anchor:ne,focus:ne})}var{marks:te}=v;if(J.hasMarkPlaceholder=!1,v.selection&&Be.isCollapsed(v.selection)&&te){var{anchor:K}=v.selection,se=Ye.leaf(v,K.path),fe=Es(se,Ck);if(!lt.equals(se,te,{loose:!0})){J.hasMarkPlaceholder=!0;var Se=Object.fromEntries(Object.keys(fe).map(G=>[G,null]));W.push(Ss(Ss(Ss({[Gy]:!0},Se),te),{},{anchor:K,focus:K}))}}return h.useEffect(()=>{setTimeout(()=>{var{selection:G}=v;if(G){var{anchor:he}=G,ae=Ye.leaf(v,he.path);if(te&&!lt.equals(ae,te,{loose:!0})){ra.set(v,te);return}}ra.delete(v)})}),h.createElement(s2.Provider,{value:i},h.createElement(o2.Provider,{value:n},h.createElement(xk,{node:j,receivedUserInput:H},h.createElement(x,Object.assign({role:i?void 0:"textbox","aria-multiline":i?void 0:!0},E,{spellCheck:Eo||!Nd?E.spellCheck:!1,autoCorrect:Eo||!Nd?E.autoCorrect:"false",autoCapitalize:Eo||!Nd?E.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!i,zindex:-1,suppressContentEditableWarning:!0,ref:N,style:Ss(Ss({},C?{}:Ss({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},L?{minHeight:L}:{})),p),onBeforeInput:h.useCallback(G=>{if(!Eo&&!i&&!Yr(G,E.onBeforeInput)&&Re.hasSelectableTarget(v,G.target)&&(G.preventDefault(),!Re.isComposing(v))){var he=G.data;P.insertText(v,he)}},[E.onBeforeInput,v,i]),onInput:h.useCallback(G=>{if(!Yr(G,E.onInput)){if(ge.current){ge.current.handleInput();return}for(var he of O.current)he();O.current=[]}},[E.onInput]),onBlur:h.useCallback(G=>{if(!(i||J.isUpdatingSelection||!Re.hasSelectableTarget(v,G.target)||Yr(G,E.onBlur))){var he=Re.findDocumentOrShadowRoot(v);if(J.latestElement!==he.activeElement){var{relatedTarget:ae}=G,me=Re.toDOMNode(v,v);if(ae!==me&&!($n(ae)&&ae.hasAttribute("data-slate-spacer"))){if(ae!=null&&Ao(ae)&&Re.hasDOMNode(v,ae)){var Me=Re.toSlateNode(v,ae);if(ot.isElement(Me)&&!v.isVoid(Me))return}if(su){var Pe=he.getSelection();Pe==null||Pe.removeAllRanges()}hi.delete(v)}}}},[i,J.isUpdatingSelection,J.latestElement,v,E.onBlur]),onClick:h.useCallback(G=>{if(Re.hasTarget(v,G.target)&&!Yr(G,E.onClick)&&Ao(G.target)){var he=Re.toSlateNode(v,G.target),ae=Re.findPath(v,he);if(!P.hasPath(v,ae)||Ye.get(v,ae)!==he)return;if(G.detail===hk&&ae.length>=1){var me=ae;if(!(ot.isElement(he)&&P.isBlock(v,he))){var Me,Pe=P.above(v,{match:At=>ot.isElement(At)&&P.isBlock(v,At),at:ae});me=(Me=Pe==null?void 0:Pe[1])!==null&&Me!==void 0?Me:ae.slice(0,1)}var We=P.range(v,me);Ge.select(v,We);return}if(i)return;var Ke=P.start(v,ae),Ne=P.end(v,ae),Qe=P.void(v,{at:Ke}),nt=P.void(v,{at:Ne});if(Qe&&nt&&le.equals(Qe[1],nt[1])){var vt=P.range(v,Ke);Ge.select(v,vt)}}},[v,E.onClick,i]),onCompositionEnd:h.useCallback(G=>{if(Re.hasSelectableTarget(v,G.target)){var he;if(Re.isComposing(v)&&(S(!1),pi.set(v,!1)),(he=ge.current)===null||he===void 0||he.handleCompositionEnd(G),Yr(G,E.onCompositionEnd)||ln)return;if(!su&&!vT&&!hT&&!xT&&!bT&&G.data){var ae=ra.get(v);ra.delete(v),ae!==void 0&&(Za.set(v,v.marks),v.marks=ae),P.insertText(v,G.data);var me=Za.get(v);Za.delete(v),me!==void 0&&(v.marks=me)}}},[E.onCompositionEnd,v]),onCompositionUpdate:h.useCallback(G=>{Re.hasSelectableTarget(v,G.target)&&!Yr(G,E.onCompositionUpdate)&&(Re.isComposing(v)||(S(!0),pi.set(v,!0)))},[E.onCompositionUpdate,v]),onCompositionStart:h.useCallback(G=>{if(Re.hasSelectableTarget(v,G.target)){var he;if((he=ge.current)===null||he===void 0||he.handleCompositionStart(G),Yr(G,E.onCompositionStart)||ln)return;S(!0);var{selection:ae}=v;if(ae){if(Be.isExpanded(ae)){P.deleteFragment(v);return}var me=P.above(v,{match:We=>ot.isElement(We)&&P.isInline(v,We),mode:"highest"});if(me){var[,Me]=me;if(P.isEnd(v,ae.anchor,Me)){var Pe=P.after(v,Me);Ge.setSelection(v,{anchor:Pe,focus:Pe})}}}}},[E.onCompositionStart,v]),onCopy:h.useCallback(G=>{Re.hasSelectableTarget(v,G.target)&&!Yr(G,E.onCopy)&&!d2(G)&&(G.preventDefault(),Re.setFragmentData(v,G.clipboardData,"copy"))},[E.onCopy,v]),onCut:h.useCallback(G=>{if(!i&&Re.hasSelectableTarget(v,G.target)&&!Yr(G,E.onCut)&&!d2(G)){G.preventDefault(),Re.setFragmentData(v,G.clipboardData,"cut");var{selection:he}=v;if(he)if(Be.isExpanded(he))P.deleteFragment(v);else{var ae=Ye.parent(v,he.anchor.path);P.isVoid(v,ae)&&Ge.delete(v)}}},[i,v,E.onCut]),onDragOver:h.useCallback(G=>{if(Re.hasTarget(v,G.target)&&!Yr(G,E.onDragOver)){var he=Re.toSlateNode(v,G.target);ot.isElement(he)&&P.isVoid(v,he)&&G.preventDefault()}},[E.onDragOver,v]),onDragStart:h.useCallback(G=>{if(!i&&Re.hasTarget(v,G.target)&&!Yr(G,E.onDragStart)){var he=Re.toSlateNode(v,G.target),ae=Re.findPath(v,he),me=ot.isElement(he)&&P.isVoid(v,he)||P.void(v,{at:ae,voids:!0});if(me){var Me=P.range(v,ae);Ge.select(v,Me)}J.isDraggingInternally=!0,Re.setFragmentData(v,G.dataTransfer,"drag")}},[i,v,E.onDragStart,J]),onDrop:h.useCallback(G=>{if(!i&&Re.hasTarget(v,G.target)&&!Yr(G,E.onDrop)){G.preventDefault();var he=v.selection,ae=Re.findEventRange(v,G),me=G.dataTransfer;Ge.select(v,ae),J.isDraggingInternally&&he&&!Be.equals(he,ae)&&!P.void(v,{at:ae,voids:!0})&&Ge.delete(v,{at:he}),Re.insertData(v,me),Re.isFocused(v)||Re.focus(v)}J.isDraggingInternally=!1},[i,v,E.onDrop,J]),onDragEnd:h.useCallback(G=>{!i&&J.isDraggingInternally&&E.onDragEnd&&Re.hasTarget(v,G.target)&&E.onDragEnd(G),J.isDraggingInternally=!1},[i,J,E,v]),onFocus:h.useCallback(G=>{if(!i&&!J.isUpdatingSelection&&Re.hasEditableTarget(v,G.target)&&!Yr(G,E.onFocus)){var he=Re.toDOMNode(v,v),ae=Re.findDocumentOrShadowRoot(v);if(J.latestElement=ae.activeElement,Od&&G.target!==he){he.focus();return}hi.set(v,!0)}},[i,J,v,E.onFocus]),onKeyDown:h.useCallback(G=>{if(!i&&Re.hasEditableTarget(v,G.target)){var he;(he=ge.current)===null||he===void 0||he.handleKeyDown(G);var{nativeEvent:ae}=G;if(Re.isComposing(v)&&ae.isComposing===!1&&(pi.set(v,!1),S(!1)),Yr(G,E.onKeyDown)||Re.isComposing(v))return;var{selection:me}=v,Me=v.children[me!==null?me.focus.path[0]:0],Pe=iy(Ye.string(Me))==="rtl";if(fr.isRedo(ae)){G.preventDefault();var We=v;typeof We.redo=="function"&&We.redo();return}if(fr.isUndo(ae)){G.preventDefault();var Ke=v;typeof Ke.undo=="function"&&Ke.undo();return}if(fr.isMoveLineBackward(ae)){G.preventDefault(),Ge.move(v,{unit:"line",reverse:!0});return}if(fr.isMoveLineForward(ae)){G.preventDefault(),Ge.move(v,{unit:"line"});return}if(fr.isExtendLineBackward(ae)){G.preventDefault(),Ge.move(v,{unit:"line",edge:"focus",reverse:!0});return}if(fr.isExtendLineForward(ae)){G.preventDefault(),Ge.move(v,{unit:"line",edge:"focus"});return}if(fr.isMoveBackward(ae)){G.preventDefault(),me&&Be.isCollapsed(me)?Ge.move(v,{reverse:!Pe}):Ge.collapse(v,{edge:"start"});return}if(fr.isMoveForward(ae)){G.preventDefault(),me&&Be.isCollapsed(me)?Ge.move(v,{reverse:Pe}):Ge.collapse(v,{edge:"end"});return}if(fr.isMoveWordBackward(ae)){G.preventDefault(),me&&Be.isExpanded(me)&&Ge.collapse(v,{edge:"focus"}),Ge.move(v,{unit:"word",reverse:!Pe});return}if(fr.isMoveWordForward(ae)){G.preventDefault(),me&&Be.isExpanded(me)&&Ge.collapse(v,{edge:"focus"}),Ge.move(v,{unit:"word",reverse:Pe});return}if(Eo){if((Vy||su)&&me&&(fr.isDeleteBackward(ae)||fr.isDeleteForward(ae))&&Be.isCollapsed(me)){var Ne=Ye.parent(v,me.anchor.path);if(ot.isElement(Ne)&&P.isVoid(v,Ne)&&(P.isInline(v,Ne)||P.isBlock(v,Ne))){G.preventDefault(),P.deleteBackward(v,{unit:"block"});return}}}else{if(fr.isBold(ae)||fr.isItalic(ae)||fr.isTransposeCharacter(ae)){G.preventDefault();return}if(fr.isSoftBreak(ae)){G.preventDefault(),P.insertSoftBreak(v);return}if(fr.isSplitBlock(ae)){G.preventDefault(),P.insertBreak(v);return}if(fr.isDeleteBackward(ae)){G.preventDefault(),me&&Be.isExpanded(me)?P.deleteFragment(v,{direction:"backward"}):P.deleteBackward(v);return}if(fr.isDeleteForward(ae)){G.preventDefault(),me&&Be.isExpanded(me)?P.deleteFragment(v,{direction:"forward"}):P.deleteForward(v);return}if(fr.isDeleteLineBackward(ae)){G.preventDefault(),me&&Be.isExpanded(me)?P.deleteFragment(v,{direction:"backward"}):P.deleteBackward(v,{unit:"line"});return}if(fr.isDeleteLineForward(ae)){G.preventDefault(),me&&Be.isExpanded(me)?P.deleteFragment(v,{direction:"forward"}):P.deleteForward(v,{unit:"line"});return}if(fr.isDeleteWordBackward(ae)){G.preventDefault(),me&&Be.isExpanded(me)?P.deleteFragment(v,{direction:"backward"}):P.deleteBackward(v,{unit:"word"});return}if(fr.isDeleteWordForward(ae)){G.preventDefault(),me&&Be.isExpanded(me)?P.deleteFragment(v,{direction:"forward"}):P.deleteForward(v,{unit:"word"});return}}}},[i,v,E.onKeyDown]),onPaste:h.useCallback(G=>{!i&&Re.hasEditableTarget(v,G.target)&&!Yr(G,E.onPaste)&&(!Eo||wT(G.nativeEvent)||su)&&(G.preventDefault(),Re.insertData(v,G.clipboardData))},[i,v,E.onPaste])}),h.createElement(wk,{decorations:W,node:v,renderElement:l,renderPlaceholder:c,renderLeaf:u,selection:v.selection})))))},Dk=e=>{var{attributes:t,children:r}=e;return h.createElement("span",Object.assign({},t),r,ln&&h.createElement("br",null))},Sk=()=>[],Ak=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&Be.isCollapsed(e.selection))){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),_I(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},Yr=(e,t)=>{if(!t)return!1;var r=t(e);return r??(e.isDefaultPrevented()||e.isPropagationStopped())},d2=e=>Ao(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),Fk=(e,t)=>{if(!t)return!1;var r=t(e);return r??e.defaultPrevented},jk=h.createContext(!1),Ik=h.createContext({});function Tk(e){var t=h.useRef([]).current,r=h.useRef({editor:e}).current,n=h.useCallback(o=>{r.editor=o,t.forEach(i=>i(o))},[t,r]),a=h.useMemo(()=>({getSlate:()=>r.editor,addEventListener:o=>(t.push(o),()=>{t.splice(t.indexOf(o),1)})}),[t,r]);return{selectorContext:a,onChange:n}}var kk=["editor","children","onChange","initialValue"],Bk=e=>{var{editor:t,children:r,onChange:n,initialValue:a}=e,o=Es(e,kk),i=h.useRef(!1),[l,u]=h.useState(()=>{if(!Ye.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(jr.stringify(a)));if(!P.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(jr.stringify(t)));return t.children=a,Object.assign(t,o),{v:0,editor:t}}),{selectorContext:c,onChange:m}=Tk(t),p=h.useCallback(()=>{n&&n(t.children),u(E=>({v:E.v+1,editor:t})),m(t)},[t,m,n]);h.useEffect(()=>(dg.set(t,p),()=>{dg.set(t,()=>{}),i.current=!0}),[t,p]);var[x,C]=h.useState(Re.isFocused(t));return h.useEffect(()=>{C(Re.isFocused(t))},[t]),cu(()=>{var E=()=>C(Re.isFocused(t));return _y>=17?(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)})},[]),h.createElement(Ik.Provider,{value:c},h.createElement(l2.Provider,{value:l},h.createElement(og.Provider,{value:l.editor},h.createElement(jk.Provider,{value:x},r))))},f2=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},h2=(e,t,r)=>{var n=Re.toDOMRange(e,t).getBoundingClientRect(),a=Re.toDOMRange(e,r).getBoundingClientRect();return f2(n,a)&&f2(a,n)},Pk=(e,t)=>{var r=P.range(e,Be.end(t)),n=Array.from(P.positions(e,{at:t})),a=0,o=n.length,i=Math.floor(o/2);if(h2(e,P.range(e,n[a]),r))return P.range(e,n[a],r);if(n.length<2)return P.range(e,n[n.length-1],r);for(;i!==n.length&&i!==a;)h2(e,P.range(e,n[i]),r)?o=i:a=i,i=Math.floor((a+o)/2);return P.range(e,n[o],r)};function p2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function g2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p2(Object(r),!0).forEach(function(n){Pd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ok=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",n=t,{apply:a,onChange:o,deleteBackward:i,addMark:l,removeMark:u}=n;return Rd.set(n,new WeakMap),n.addMark=(c,m)=>{var p,x;(p=fg.get(n))===null||p===void 0||p(),!ra.get(n)&&(x=un.get(n))!==null&&x!==void 0&&x.length&&ra.set(n,null),Za.delete(n),l(c,m)},n.removeMark=c=>{var m;!ra.get(n)&&(m=un.get(n))!==null&&m!==void 0&&m.length&&ra.set(n,null),Za.delete(n),u(c)},n.deleteBackward=c=>{if(c!=="line")return i(c);if(n.selection&&Be.isCollapsed(n.selection)){var m=P.above(n,{match:E=>ot.isElement(E)&&P.isBlock(n,E),at:n.selection});if(m){var[,p]=m,x=P.range(n,p,n.selection.anchor),C=Pk(n,x);Be.isCollapsed(C)||Ge.delete(n,{at:C})}}},n.apply=c=>{var m=[],p=un.get(n);if(p!=null&&p.length){var x=p.map(z=>NT(z,c)).filter(Boolean);un.set(n,x)}var C=So.get(n);C&&So.set(n,Ky(n,C,c));var E=Do.get(n);if(E!=null&&E.at){var v=jt.isPoint(E==null?void 0:E.at)?vg(n,E.at,c):Ky(n,E.at,c);Do.set(n,v?g2(g2({},E),{},{at:v}):null)}switch(c.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{m.push(...Ld(n,c.path));break}case"set_selection":{var A;(A=uu.get(n))===null||A===void 0||A.unref(),uu.delete(n);break}case"insert_node":case"remove_node":{m.push(...Ld(n,le.parent(c.path)));break}case"merge_node":{var S=le.previous(c.path);m.push(...Ld(n,S));break}case"move_node":{var j=le.common(le.parent(c.path),le.parent(c.newPath));m.push(...Ld(n,j));break}}a(c);for(var[O,L]of m){var[M]=P.node(n,O);ug.set(M,L)}},n.setFragmentData=c=>{var{selection:m}=n;if(m){var[p,x]=Be.edges(m),C=P.void(n,{at:p.path}),E=P.void(n,{at:x.path});if(!(Be.isCollapsed(m)&&!C)){var v=Re.toDOMRange(n,m),A=v.cloneContents(),S=A.childNodes[0];if(A.childNodes.forEach(ge=>{ge.textContent&&ge.textContent.trim()!==""&&(S=ge)}),E){var[j]=E,O=v.cloneRange(),L=Re.toDOMNode(n,j);O.setEndAfter(L),A=O.cloneContents()}if(C&&(S=A.querySelector("[data-slate-spacer]")),Array.from(A.querySelectorAll("[data-slate-zero-width]")).forEach(ge=>{var xe=ge.getAttribute("data-slate-zero-width")==="n";ge.textContent=xe?`
|
|
119
|
+
`:""}),Zy(S)){var M=S.ownerDocument.createElement("span");M.style.whiteSpace="pre",M.appendChild(S),A.appendChild(M),S=M}var z=n.getFragment(),H=JSON.stringify(z),oe=window.btoa(encodeURIComponent(H));S.setAttribute("data-slate-fragment",oe),c.setData("application/".concat(r),oe);var J=A.ownerDocument.createElement("div");return J.appendChild(A),J.setAttribute("hidden","true"),A.ownerDocument.body.appendChild(J),c.setData("text/html",J.innerHTML),c.setData("text/plain",Xy(J)),A.ownerDocument.body.removeChild(J),c}}},n.insertData=c=>{n.insertFragmentData(c)||n.insertTextData(c)},n.insertFragmentData=c=>{var m=c.getData("application/".concat(r))||FT(c);if(m){var p=decodeURIComponent(window.atob(m)),x=JSON.parse(p);return n.insertFragment(x),!0}return!1},n.insertTextData=c=>{var m=c.getData("text/plain");if(m){var p=m.split(/\r\n|\r|\n/),x=!1;for(var C of p)x&&Ge.splitNodes(n,{always:!0}),n.insertText(C),x=!0;return!0}return!1},n.onChange=c=>{var m=_y<18?Qo.unstable_batchedUpdates:p=>p();m(()=>{var p=dg.get(n);p&&p(),o(c)})},n},Ld=(e,t)=>{var r=[];for(var[n,a]of P.levels(e,{at:t})){var o=Re.findKey(e,n);r.push([a,o])}return r};const Nk=[{type:"paragraph",children:[{text:""}]}];let Mk={bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"}};const Rk=e=>{let t=Object.assign({},e.leaf);delete t.text;let r=Object.entries(t).filter(([a,o])=>o).map(([a,o])=>a),n={};return r.length!=0&&r.map(a=>{Object.entries(Mk[a]).map(([o,i])=>{n[o]=i})}),s.jsx("span",{...e.attributes,style:n,children:e.children})},_d=e=>s.jsx("div",{className:"border-box mr-[5px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-400 p-2",onMouseDown:e.onMouseDown,children:e.name}),$k=()=>{const[e]=h.useState(()=>Ok(j8())),t=h.useCallback(n=>s.jsx(Rk,{...n}),[]),r=(n,a)=>{n.preventDefault();let o=P.marks(e)[a]||!1;console.log(P.marks(e)),P.addMark(e,a,!o)};return s.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded bg-blue-300 shadow-md",children:[s.jsxs("div",{className:"flex w-full flex-row justify-start p-2",children:[s.jsx(_d,{name:"B",onMouseDown:n=>{r(n,"bold")}}),s.jsx(_d,{name:"I",onMouseDown:n=>{r(n,"italic")}}),s.jsx(_d,{name:"U",onMouseDown:n=>{r(n,"underline")}}),s.jsx(_d,{name:"S",onMouseDown:n=>{r(n,"strikethrough")}})]}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("div",{className:"w-full",children:s.jsx(Bk,{editor:e,initialValue:Nk,children:s.jsx(Ek,{renderLeaf:t,className:"h-[150px] p-2",onKeyDown:n=>{if(n.ctrlKey)switch(n.key){case"b":{n.preventDefault(),P.addMark(e,"bold",!0);break}}}})})}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",children:"Submit"})]})};var gi={},mi={};/**
|
|
120
|
+
* @license React
|
|
121
|
+
* react-dom-server-legacy.browser.production.min.js
|
|
122
|
+
*
|
|
123
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the MIT license found in the
|
|
126
|
+
* LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/var m2;function Lk(){if(m2)return mi;m2=1;var e=h;function t(y){for(var T="https://reactjs.org/docs/error-decoder.html?invariant="+y,_=1;_<arguments.length;_++)T+="&args[]="+encodeURIComponent(arguments[_]);return"Minified React error #"+y+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Object.prototype.hasOwnProperty,n=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},o={};function i(y){return r.call(o,y)?!0:r.call(a,y)?!1:n.test(y)?o[y]=!0:(a[y]=!0,!1)}function l(y,T,_,Z,ye,pe,ke){this.acceptsBooleans=T===2||T===3||T===4,this.attributeName=Z,this.attributeNamespace=ye,this.mustUseProperty=_,this.propertyName=y,this.type=T,this.sanitizeURL=pe,this.removeEmptyString=ke}var u={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(y){u[y]=new l(y,0,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var T=y[0];u[T]=new l(T,1,!1,y[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){u[y]=new l(y,2,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){u[y]=new l(y,2,!1,y,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(y){u[y]=new l(y,3,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){u[y]=new l(y,3,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){u[y]=new l(y,4,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){u[y]=new l(y,6,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){u[y]=new l(y,5,!1,y.toLowerCase(),null,!1,!1)});var c=/[\-:]([a-z])/g;function m(y){return y[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(y){var T=y.replace(c,m);u[T]=new l(T,1,!1,y,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(y){var T=y.replace(c,m);u[T]=new l(T,1,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var T=y.replace(c,m);u[T]=new l(T,1,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){u[y]=new l(y,1,!1,y.toLowerCase(),null,!1,!1)}),u.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){u[y]=new l(y,1,!1,y.toLowerCase(),null,!0,!0)});var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},x=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(y){x.forEach(function(T){T=T+y.charAt(0).toUpperCase()+y.substring(1),p[T]=p[y]})});var C=/["'&<>]/;function E(y){if(typeof y=="boolean"||typeof y=="number")return""+y;y=""+y;var T=C.exec(y);if(T){var _="",Z,ye=0;for(Z=T.index;Z<y.length;Z++){switch(y.charCodeAt(Z)){case 34:T=""";break;case 38:T="&";break;case 39:T="'";break;case 60:T="<";break;case 62:T=">";break;default:continue}ye!==Z&&(_+=y.substring(ye,Z)),ye=Z+1,_+=T}y=ye!==Z?_+y.substring(ye,Z):_}return y}var v=/([A-Z])/g,A=/^ms-/,S=Array.isArray;function j(y,T){return{insertionMode:y,selectedValue:T}}function O(y,T,_){switch(T){case"select":return j(1,_.value!=null?_.value:_.defaultValue);case"svg":return j(2,null);case"math":return j(3,null);case"foreignObject":return j(1,null);case"table":return j(4,null);case"thead":case"tbody":case"tfoot":return j(5,null);case"colgroup":return j(7,null);case"tr":return j(6,null)}return 4<=y.insertionMode||y.insertionMode===0?j(1,null):y}var L=new Map;function M(y,T,_){if(typeof _!="object")throw Error(t(62));T=!0;for(var Z in _)if(r.call(_,Z)){var ye=_[Z];if(ye!=null&&typeof ye!="boolean"&&ye!==""){if(Z.indexOf("--")===0){var pe=E(Z);ye=E((""+ye).trim())}else{pe=Z;var ke=L.get(pe);ke!==void 0||(ke=E(pe.replace(v,"-$1").toLowerCase().replace(A,"-ms-")),L.set(pe,ke)),pe=ke,ye=typeof ye=="number"?ye===0||r.call(p,Z)?""+ye:ye+"px":E((""+ye).trim())}T?(T=!1,y.push(' style="',pe,":",ye)):y.push(";",pe,":",ye)}}T||y.push('"')}function z(y,T,_,Z){switch(_){case"style":M(y,T,Z);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){if(T=u.hasOwnProperty(_)?u[_]:null,T!==null){switch(typeof Z){case"function":case"symbol":return;case"boolean":if(!T.acceptsBooleans)return}switch(_=T.attributeName,T.type){case 3:Z&&y.push(" ",_,'=""');break;case 4:Z===!0?y.push(" ",_,'=""'):Z!==!1&&y.push(" ",_,'="',E(Z),'"');break;case 5:isNaN(Z)||y.push(" ",_,'="',E(Z),'"');break;case 6:!isNaN(Z)&&1<=Z&&y.push(" ",_,'="',E(Z),'"');break;default:T.sanitizeURL&&(Z=""+Z),y.push(" ",_,'="',E(Z),'"')}}else if(i(_)){switch(typeof Z){case"function":case"symbol":return;case"boolean":if(T=_.toLowerCase().slice(0,5),T!=="data-"&&T!=="aria-")return}y.push(" ",_,'="',E(Z),'"')}}}function H(y,T,_){if(T!=null){if(_!=null)throw Error(t(60));if(typeof T!="object"||!("__html"in T))throw Error(t(61));T=T.__html,T!=null&&y.push(""+T)}}function oe(y){var T="";return e.Children.forEach(y,function(_){_!=null&&(T+=_)}),T}function J(y,T,_,Z){y.push(Q(_));var ye=_=null,pe;for(pe in T)if(r.call(T,pe)){var ke=T[pe];if(ke!=null)switch(pe){case"children":_=ke;break;case"dangerouslySetInnerHTML":ye=ke;break;default:z(y,Z,pe,ke)}}return y.push(">"),H(y,ye,_),typeof _=="string"?(y.push(E(_)),null):_}var ge=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,xe=new Map;function Q(y){var T=xe.get(y);if(T===void 0){if(!ge.test(y))throw Error(t(65,y));T="<"+y,xe.set(y,T)}return T}function ce(y,T,_,Z,ye){switch(T){case"select":y.push(Q("select"));var pe=null,ke=null;for(ut in _)if(r.call(_,ut)){var Ue=_[ut];if(Ue!=null)switch(ut){case"children":pe=Ue;break;case"dangerouslySetInnerHTML":ke=Ue;break;case"defaultValue":case"value":break;default:z(y,Z,ut,Ue)}}return y.push(">"),H(y,ke,pe),pe;case"option":ke=ye.selectedValue,y.push(Q("option"));var it=Ue=null,ft=null,ut=null;for(pe in _)if(r.call(_,pe)){var Bt=_[pe];if(Bt!=null)switch(pe){case"children":Ue=Bt;break;case"selected":ft=Bt;break;case"dangerouslySetInnerHTML":ut=Bt;break;case"value":it=Bt;default:z(y,Z,pe,Bt)}}if(ke!=null)if(_=it!==null?""+it:oe(Ue),S(ke)){for(Z=0;Z<ke.length;Z++)if(""+ke[Z]===_){y.push(' selected=""');break}}else""+ke===_&&y.push(' selected=""');else ft&&y.push(' selected=""');return y.push(">"),H(y,ut,Ue),Ue;case"textarea":y.push(Q("textarea")),ut=ke=pe=null;for(Ue in _)if(r.call(_,Ue)&&(it=_[Ue],it!=null))switch(Ue){case"children":ut=it;break;case"value":pe=it;break;case"defaultValue":ke=it;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:z(y,Z,Ue,it)}if(pe===null&&ke!==null&&(pe=ke),y.push(">"),ut!=null){if(pe!=null)throw Error(t(92));if(S(ut)&&1<ut.length)throw Error(t(93));pe=""+ut}return typeof pe=="string"&&pe[0]===`
|
|
128
|
+
`&&y.push(`
|
|
129
|
+
`),pe!==null&&y.push(E(""+pe)),null;case"input":y.push(Q("input")),it=ut=Ue=pe=null;for(ke in _)if(r.call(_,ke)&&(ft=_[ke],ft!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":it=ft;break;case"defaultValue":Ue=ft;break;case"checked":ut=ft;break;case"value":pe=ft;break;default:z(y,Z,ke,ft)}return ut!==null?z(y,Z,"checked",ut):it!==null&&z(y,Z,"checked",it),pe!==null?z(y,Z,"value",pe):Ue!==null&&z(y,Z,"value",Ue),y.push("/>"),null;case"menuitem":y.push(Q("menuitem"));for(var $r in _)if(r.call(_,$r)&&(pe=_[$r],pe!=null))switch($r){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:z(y,Z,$r,pe)}return y.push(">"),null;case"title":y.push(Q("title")),pe=null;for(Bt in _)if(r.call(_,Bt)&&(ke=_[Bt],ke!=null))switch(Bt){case"children":pe=ke;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:z(y,Z,Bt,ke)}return y.push(">"),pe;case"listing":case"pre":y.push(Q(T)),ke=pe=null;for(it in _)if(r.call(_,it)&&(Ue=_[it],Ue!=null))switch(it){case"children":pe=Ue;break;case"dangerouslySetInnerHTML":ke=Ue;break;default:z(y,Z,it,Ue)}if(y.push(">"),ke!=null){if(pe!=null)throw Error(t(60));if(typeof ke!="object"||!("__html"in ke))throw Error(t(61));_=ke.__html,_!=null&&(typeof _=="string"&&0<_.length&&_[0]===`
|
|
130
|
+
`?y.push(`
|
|
131
|
+
`,_):y.push(""+_))}return typeof pe=="string"&&pe[0]===`
|
|
132
|
+
`&&y.push(`
|
|
133
|
+
`),pe;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":y.push(Q(T));for(var Dr in _)if(r.call(_,Dr)&&(pe=_[Dr],pe!=null))switch(Dr){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,T));default:z(y,Z,Dr,pe)}return y.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return J(y,_,T,Z);case"html":return ye.insertionMode===0&&y.push("<!DOCTYPE html>"),J(y,_,T,Z);default:if(T.indexOf("-")===-1&&typeof _.is!="string")return J(y,_,T,Z);y.push(Q(T)),ke=pe=null;for(ft in _)if(r.call(_,ft)&&(Ue=_[ft],Ue!=null))switch(ft){case"children":pe=Ue;break;case"dangerouslySetInnerHTML":ke=Ue;break;case"style":M(y,Z,Ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:i(ft)&&typeof Ue!="function"&&typeof Ue!="symbol"&&y.push(" ",ft,'="',E(Ue),'"')}return y.push(">"),H(y,ke,pe),pe}}function N(y,T,_){if(y.push('<!--$?--><template id="'),_===null)throw Error(t(395));return y.push(_),y.push('"></template>')}function W(y,T,_,Z){switch(_.insertionMode){case 0:case 1:return y.push('<div hidden id="'),y.push(T.segmentPrefix),T=Z.toString(16),y.push(T),y.push('">');case 2:return y.push('<svg aria-hidden="true" style="display:none" id="'),y.push(T.segmentPrefix),T=Z.toString(16),y.push(T),y.push('">');case 3:return y.push('<math aria-hidden="true" style="display:none" id="'),y.push(T.segmentPrefix),T=Z.toString(16),y.push(T),y.push('">');case 4:return y.push('<table hidden id="'),y.push(T.segmentPrefix),T=Z.toString(16),y.push(T),y.push('">');case 5:return y.push('<table hidden><tbody id="'),y.push(T.segmentPrefix),T=Z.toString(16),y.push(T),y.push('">');case 6:return y.push('<table hidden><tr id="'),y.push(T.segmentPrefix),T=Z.toString(16),y.push(T),y.push('">');case 7:return y.push('<table hidden><colgroup id="'),y.push(T.segmentPrefix),T=Z.toString(16),y.push(T),y.push('">');default:throw Error(t(397))}}function ee(y,T){switch(T.insertionMode){case 0:case 1:return y.push("</div>");case 2:return y.push("</svg>");case 3:return y.push("</math>");case 4:return y.push("</table>");case 5:return y.push("</tbody></table>");case 6:return y.push("</tr></table>");case 7:return y.push("</colgroup></table>");default:throw Error(t(397))}}var de=/[<\u2028\u2029]/g;function ne(y){return JSON.stringify(y).replace(de,function(T){switch(T){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function te(y,T){return T=T===void 0?"":T,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:T+"P:",segmentPrefix:T+"S:",boundaryPrefix:T+"B:",idPrefix:T,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:y}}function K(y,T,_,Z){return _.generateStaticMarkup?(y.push(E(T)),!1):(T===""?y=Z:(Z&&y.push("<!-- -->"),y.push(E(T)),y=!0),y)}var se=Object.assign,fe=Symbol.for("react.element"),Se=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),Me=Symbol.for("react.context"),Pe=Symbol.for("react.forward_ref"),We=Symbol.for("react.suspense"),Ke=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),Qe=Symbol.for("react.lazy"),nt=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),At=Symbol.for("react.legacy_hidden"),re=Symbol.for("react.default_value"),be=Symbol.iterator;function Ie(y){if(y==null)return null;if(typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case G:return"Fragment";case Se:return"Portal";case ae:return"Profiler";case he:return"StrictMode";case We:return"Suspense";case Ke:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case Me:return(y.displayName||"Context")+".Consumer";case me:return(y._context.displayName||"Context")+".Provider";case Pe:var T=y.render;return y=y.displayName,y||(y=T.displayName||T.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case Ne:return T=y.displayName||null,T!==null?T:Ie(y.type)||"Memo";case Qe:T=y._payload,y=y._init;try{return Ie(y(T))}catch{}}return null}var Ze={};function He(y,T){if(y=y.contextTypes,!y)return Ze;var _={},Z;for(Z in y)_[Z]=T[Z];return _}var Te=null;function Ee(y,T){if(y!==T){y.context._currentValue2=y.parentValue,y=y.parent;var _=T.parent;if(y===null){if(_!==null)throw Error(t(401))}else{if(_===null)throw Error(t(401));Ee(y,_)}T.context._currentValue2=T.value}}function ze(y){y.context._currentValue2=y.parentValue,y=y.parent,y!==null&&ze(y)}function tt(y){var T=y.parent;T!==null&&tt(T),y.context._currentValue2=y.value}function bt(y,T){if(y.context._currentValue2=y.parentValue,y=y.parent,y===null)throw Error(t(402));y.depth===T.depth?Ee(y,T):bt(y,T)}function Ot(y,T){var _=T.parent;if(_===null)throw Error(t(402));y.depth===_.depth?Ee(y,_):Ot(y,_),T.context._currentValue2=T.value}function gt(y){var T=Te;T!==y&&(T===null?tt(y):y===null?ze(T):T.depth===y.depth?Ee(T,y):T.depth>y.depth?bt(T,y):Ot(T,y),Te=y)}var Wt={isMounted:function(){return!1},enqueueSetState:function(y,T){y=y._reactInternals,y.queue!==null&&y.queue.push(T)},enqueueReplaceState:function(y,T){y=y._reactInternals,y.replace=!0,y.queue=[T]},enqueueForceUpdate:function(){}};function pr(y,T,_,Z){var ye=y.state!==void 0?y.state:null;y.updater=Wt,y.props=_,y.state=ye;var pe={queue:[],replace:!1};y._reactInternals=pe;var ke=T.contextType;if(y.context=typeof ke=="object"&&ke!==null?ke._currentValue2:Z,ke=T.getDerivedStateFromProps,typeof ke=="function"&&(ke=ke(_,ye),ye=ke==null?ye:se({},ye,ke),y.state=ye),typeof T.getDerivedStateFromProps!="function"&&typeof y.getSnapshotBeforeUpdate!="function"&&(typeof y.UNSAFE_componentWillMount=="function"||typeof y.componentWillMount=="function"))if(T=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),T!==y.state&&Wt.enqueueReplaceState(y,y.state,null),pe.queue!==null&&0<pe.queue.length)if(T=pe.queue,ke=pe.replace,pe.queue=null,pe.replace=!1,ke&&T.length===1)y.state=T[0];else{for(pe=ke?T[0]:y.state,ye=!0,ke=ke?1:0;ke<T.length;ke++){var Ue=T[ke];Ue=typeof Ue=="function"?Ue.call(y,pe,_,Z):Ue,Ue!=null&&(ye?(ye=!1,pe=se({},pe,Ue)):se(pe,Ue))}y.state=pe}else pe.queue=null}var Yt={id:1,overflow:""};function Cr(y,T,_){var Z=y.id;y=y.overflow;var ye=32-gr(Z)-1;Z&=~(1<<ye),_+=1;var pe=32-gr(T)+ye;if(30<pe){var ke=ye-ye%5;return pe=(Z&(1<<ke)-1).toString(32),Z>>=ke,ye-=ke,{id:1<<32-gr(T)+ye|_<<ye|Z,overflow:pe+y}}return{id:1<<pe|_<<ye|Z,overflow:y}}var gr=Math.clz32?Math.clz32:xr,Or=Math.log,Nr=Math.LN2;function xr(y){return y>>>=0,y===0?32:31-(Or(y)/Nr|0)|0}function Mr(y,T){return y===T&&(y!==0||1/y===1/T)||y!==y&&T!==T}var cn=typeof Object.is=="function"?Object.is:Mr,cr=null,wr=null,Er=null,It=null,Gr=!1,Tn=!1,kn=0,Rr=null,_n=0;function Zr(){if(cr===null)throw Error(t(321));return cr}function Xt(){if(0<_n)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function ia(){return It===null?Er===null?(Gr=!1,Er=It=Xt()):(Gr=!0,It=Er):It.next===null?(Gr=!1,It=It.next=Xt()):(Gr=!0,It=It.next),It}function sa(){wr=cr=null,Tn=!1,Er=null,_n=0,It=Rr=null}function la(y,T){return typeof T=="function"?T(y):T}function tr(y,T,_){if(cr=Zr(),It=ia(),Gr){var Z=It.queue;if(T=Z.dispatch,Rr!==null&&(_=Rr.get(Z),_!==void 0)){Rr.delete(Z),Z=It.memoizedState;do Z=y(Z,_.action),_=_.next;while(_!==null);return It.memoizedState=Z,[Z,T]}return[It.memoizedState,T]}return y=y===la?typeof T=="function"?T():T:_!==void 0?_(T):T,It.memoizedState=y,y=It.queue={last:null,dispatch:null},y=y.dispatch=Ya.bind(null,cr,y),[It.memoizedState,y]}function ua(y,T){if(cr=Zr(),It=ia(),T=T===void 0?null:T,It!==null){var _=It.memoizedState;if(_!==null&&T!==null){var Z=_[1];e:if(Z===null)Z=!1;else{for(var ye=0;ye<Z.length&&ye<T.length;ye++)if(!cn(T[ye],Z[ye])){Z=!1;break e}Z=!0}if(Z)return _[0]}}return y=y(),It.memoizedState=[y,T],y}function Ya(y,T,_){if(25<=_n)throw Error(t(301));if(y===cr)if(Tn=!0,y={action:_,next:null},Rr===null&&(Rr=new Map),_=Rr.get(T),_===void 0)Rr.set(T,y);else{for(T=_;T.next!==null;)T=T.next;T.next=y}}function Ja(){throw Error(t(394))}function q(){}var _e={readContext:function(y){return y._currentValue2},useContext:function(y){return Zr(),y._currentValue2},useMemo:ua,useReducer:tr,useRef:function(y){cr=Zr(),It=ia();var T=It.memoizedState;return T===null?(y={current:y},It.memoizedState=y):T},useState:function(y){return tr(la,y)},useInsertionEffect:q,useLayoutEffect:function(){},useCallback:function(y,T){return ua(function(){return y},T)},useImperativeHandle:q,useEffect:q,useDebugValue:q,useDeferredValue:function(y){return Zr(),y},useTransition:function(){return Zr(),[!1,Ja]},useId:function(){var y=wr.treeContext,T=y.overflow;y=y.id,y=(y&~(1<<32-gr(y)-1)).toString(32)+T;var _=Je;if(_===null)throw Error(t(404));return T=kn++,y=":"+_.idPrefix+"R"+y,0<T&&(y+="H"+T.toString(32)),y+":"},useMutableSource:function(y,T){return Zr(),T(y._source)},useSyncExternalStore:function(y,T,_){if(_===void 0)throw Error(t(407));return _()}},Je=null,ct=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function wt(y){return console.error(y),null}function Ft(){}function Dt(y,T,_,Z,ye,pe,ke,Ue,it){var ft=[],ut=new Set;return T={destination:null,responseState:T,progressiveChunkSize:Z===void 0?12800:Z,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ut,pingedTasks:ft,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ye===void 0?wt:ye,onAllReady:pe===void 0?Ft:pe,onShellReady:ke===void 0?Ft:ke,onShellError:Ue===void 0?Ft:Ue,onFatalError:it===void 0?Ft:it},_=rr(T,0,null,_,!1,!1),_.parentFlushed=!0,y=xt(T,y,null,_,ut,Ze,null,Yt),ft.push(y),T}function xt(y,T,_,Z,ye,pe,ke,Ue){y.allPendingTasks++,_===null?y.pendingRootTasks++:_.pendingTasks++;var it={node:T,ping:function(){var ft=y.pingedTasks;ft.push(it),ft.length===1&&Tr(y)},blockedBoundary:_,blockedSegment:Z,abortSet:ye,legacyContext:pe,context:ke,treeContext:Ue};return ye.add(it),it}function rr(y,T,_,Z,ye,pe){return{status:0,id:-1,index:T,parentFlushed:!1,chunks:[],children:[],formatContext:Z,boundary:_,lastPushedText:ye,textEmbedded:pe}}function Nt(y,T){if(y=y.onError(T),y!=null&&typeof y!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof y+'" instead');return y}function Mt(y,T){var _=y.onShellError;_(T),_=y.onFatalError,_(T),y.destination!==null?(y.status=2,y.destination.destroy(T)):(y.status=1,y.fatalError=T)}function Jt(y,T,_,Z,ye){for(cr={},wr=T,kn=0,y=_(Z,ye);Tn;)Tn=!1,kn=0,_n+=1,It=null,y=_(Z,ye);return sa(),y}function Ir(y,T,_,Z){var ye=_.render(),pe=Z.childContextTypes;if(pe!=null){var ke=T.legacyContext;if(typeof _.getChildContext!="function")Z=ke;else{_=_.getChildContext();for(var Ue in _)if(!(Ue in pe))throw Error(t(108,Ie(Z)||"Unknown",Ue));Z=se({},ke,_)}T.legacyContext=Z,ar(y,T,ye),T.legacyContext=ke}else ar(y,T,ye)}function dn(y,T){if(y&&y.defaultProps){T=se({},T),y=y.defaultProps;for(var _ in y)T[_]===void 0&&(T[_]=y[_]);return T}return T}function nr(y,T,_,Z,ye){if(typeof _=="function")if(_.prototype&&_.prototype.isReactComponent){ye=He(_,T.legacyContext);var pe=_.contextType;pe=new _(Z,typeof pe=="object"&&pe!==null?pe._currentValue2:ye),pr(pe,_,Z,ye),Ir(y,T,pe,_)}else{pe=He(_,T.legacyContext),ye=Jt(y,T,_,Z,pe);var ke=kn!==0;if(typeof ye=="object"&&ye!==null&&typeof ye.render=="function"&&ye.$$typeof===void 0)pr(ye,_,Z,pe),Ir(y,T,ye,_);else if(ke){Z=T.treeContext,T.treeContext=Cr(Z,1,0);try{ar(y,T,ye)}finally{T.treeContext=Z}}else ar(y,T,ye)}else if(typeof _=="string"){switch(ye=T.blockedSegment,pe=ce(ye.chunks,_,Z,y.responseState,ye.formatContext),ye.lastPushedText=!1,ke=ye.formatContext,ye.formatContext=O(ke,_,Z),Qr(y,T,pe),ye.formatContext=ke,_){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ye.chunks.push("</",_,">")}ye.lastPushedText=!1}else{switch(_){case At:case vt:case he:case ae:case G:ar(y,T,Z.children);return;case Ke:ar(y,T,Z.children);return;case nt:throw Error(t(343));case We:e:{_=T.blockedBoundary,ye=T.blockedSegment,pe=Z.fallback,Z=Z.children,ke=new Set;var Ue={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ke,errorDigest:null},it=rr(y,ye.chunks.length,Ue,ye.formatContext,!1,!1);ye.children.push(it),ye.lastPushedText=!1;var ft=rr(y,0,null,ye.formatContext,!1,!1);ft.parentFlushed=!0,T.blockedBoundary=Ue,T.blockedSegment=ft;try{if(Qr(y,T,Z),y.responseState.generateStaticMarkup||ft.lastPushedText&&ft.textEmbedded&&ft.chunks.push("<!-- -->"),ft.status=1,hn(Ue,ft),Ue.pendingTasks===0)break e}catch(ut){ft.status=4,Ue.forceClientRender=!0,Ue.errorDigest=Nt(y,ut)}finally{T.blockedBoundary=_,T.blockedSegment=ye}T=xt(y,pe,_,it,ke,T.legacyContext,T.context,T.treeContext),y.pingedTasks.push(T)}return}if(typeof _=="object"&&_!==null)switch(_.$$typeof){case Pe:if(Z=Jt(y,T,_.render,Z,ye),kn!==0){_=T.treeContext,T.treeContext=Cr(_,1,0);try{ar(y,T,Z)}finally{T.treeContext=_}}else ar(y,T,Z);return;case Ne:_=_.type,Z=dn(_,Z),nr(y,T,_,Z,ye);return;case me:if(ye=Z.children,_=_._context,Z=Z.value,pe=_._currentValue2,_._currentValue2=Z,ke=Te,Te=Z={parent:ke,depth:ke===null?0:ke.depth+1,context:_,parentValue:pe,value:Z},T.context=Z,ar(y,T,ye),y=Te,y===null)throw Error(t(403));Z=y.parentValue,y.context._currentValue2=Z===re?y.context._defaultValue:Z,y=Te=y.parent,T.context=y;return;case Me:Z=Z.children,Z=Z(_._currentValue2),ar(y,T,Z);return;case Qe:ye=_._init,_=ye(_._payload),Z=dn(_,Z),nr(y,T,_,Z,void 0);return}throw Error(t(130,_==null?_:typeof _,""))}}function ar(y,T,_){if(T.node=_,typeof _=="object"&&_!==null){switch(_.$$typeof){case fe:nr(y,T,_.type,_.props,_.ref);return;case Se:throw Error(t(257));case Qe:var Z=_._init;_=Z(_._payload),ar(y,T,_);return}if(S(_)){fn(y,T,_);return}if(_===null||typeof _!="object"?Z=null:(Z=be&&_[be]||_["@@iterator"],Z=typeof Z=="function"?Z:null),Z&&(Z=Z.call(_))){if(_=Z.next(),!_.done){var ye=[];do ye.push(_.value),_=Z.next();while(!_.done);fn(y,T,ye)}return}throw y=Object.prototype.toString.call(_),Error(t(31,y==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":y))}typeof _=="string"?(Z=T.blockedSegment,Z.lastPushedText=K(T.blockedSegment.chunks,_,y.responseState,Z.lastPushedText)):typeof _=="number"&&(Z=T.blockedSegment,Z.lastPushedText=K(T.blockedSegment.chunks,""+_,y.responseState,Z.lastPushedText))}function fn(y,T,_){for(var Z=_.length,ye=0;ye<Z;ye++){var pe=T.treeContext;T.treeContext=Cr(pe,Z,ye);try{Qr(y,T,_[ye])}finally{T.treeContext=pe}}}function Qr(y,T,_){var Z=T.blockedSegment.formatContext,ye=T.legacyContext,pe=T.context;try{return ar(y,T,_)}catch(it){if(sa(),typeof it=="object"&&it!==null&&typeof it.then=="function"){_=it;var ke=T.blockedSegment,Ue=rr(y,ke.chunks.length,null,ke.formatContext,ke.lastPushedText,!0);ke.children.push(Ue),ke.lastPushedText=!1,y=xt(y,T.node,T.blockedBoundary,Ue,T.abortSet,T.legacyContext,T.context,T.treeContext).ping,_.then(y,y),T.blockedSegment.formatContext=Z,T.legacyContext=ye,T.context=pe,gt(pe)}else throw T.blockedSegment.formatContext=Z,T.legacyContext=ye,T.context=pe,gt(pe),it}}function vr(y){var T=y.blockedBoundary;y=y.blockedSegment,y.status=3,pn(this,T,y)}function Fa(y,T,_){var Z=y.blockedBoundary;y.blockedSegment.status=3,Z===null?(T.allPendingTasks--,T.status!==2&&(T.status=2,T.destination!==null&&T.destination.push(null))):(Z.pendingTasks--,Z.forceClientRender||(Z.forceClientRender=!0,y=_===void 0?Error(t(432)):_,Z.errorDigest=T.onError(y),Z.parentFlushed&&T.clientRenderedBoundaries.push(Z)),Z.fallbackAbortableTasks.forEach(function(ye){return Fa(ye,T,_)}),Z.fallbackAbortableTasks.clear(),T.allPendingTasks--,T.allPendingTasks===0&&(Z=T.onAllReady,Z()))}function hn(y,T){if(T.chunks.length===0&&T.children.length===1&&T.children[0].boundary===null){var _=T.children[0];_.id=T.id,_.parentFlushed=!0,_.status===1&&hn(y,_)}else y.completedSegments.push(T)}function pn(y,T,_){if(T===null){if(_.parentFlushed){if(y.completedRootSegment!==null)throw Error(t(389));y.completedRootSegment=_}y.pendingRootTasks--,y.pendingRootTasks===0&&(y.onShellError=Ft,T=y.onShellReady,T())}else T.pendingTasks--,T.forceClientRender||(T.pendingTasks===0?(_.parentFlushed&&_.status===1&&hn(T,_),T.parentFlushed&&y.completedBoundaries.push(T),T.fallbackAbortableTasks.forEach(vr,y),T.fallbackAbortableTasks.clear()):_.parentFlushed&&_.status===1&&(hn(T,_),T.completedSegments.length===1&&T.parentFlushed&&y.partialBoundaries.push(T)));y.allPendingTasks--,y.allPendingTasks===0&&(y=y.onAllReady,y())}function Tr(y){if(y.status!==2){var T=Te,_=ct.current;ct.current=_e;var Z=Je;Je=y.responseState;try{var ye=y.pingedTasks,pe;for(pe=0;pe<ye.length;pe++){var ke=ye[pe],Ue=y,it=ke.blockedSegment;if(it.status===0){gt(ke.context);try{ar(Ue,ke,ke.node),Ue.responseState.generateStaticMarkup||it.lastPushedText&&it.textEmbedded&&it.chunks.push("<!-- -->"),ke.abortSet.delete(ke),it.status=1,pn(Ue,ke.blockedBoundary,it)}catch(Sr){if(sa(),typeof Sr=="object"&&Sr!==null&&typeof Sr.then=="function"){var ft=ke.ping;Sr.then(ft,ft)}else{ke.abortSet.delete(ke),it.status=4;var ut=ke.blockedBoundary,Bt=Sr,$r=Nt(Ue,Bt);if(ut===null?Mt(Ue,Bt):(ut.pendingTasks--,ut.forceClientRender||(ut.forceClientRender=!0,ut.errorDigest=$r,ut.parentFlushed&&Ue.clientRenderedBoundaries.push(ut))),Ue.allPendingTasks--,Ue.allPendingTasks===0){var Dr=Ue.onAllReady;Dr()}}}finally{}}}ye.splice(0,pe),y.destination!==null&&Vn(y,y.destination)}catch(Sr){Nt(y,Sr),Mt(y,Sr)}finally{Je=Z,ct.current=_,_===_e&>(T)}}}function Bn(y,T,_){switch(_.parentFlushed=!0,_.status){case 0:var Z=_.id=y.nextSegmentId++;return _.lastPushedText=!1,_.textEmbedded=!1,y=y.responseState,T.push('<template id="'),T.push(y.placeholderPrefix),y=Z.toString(16),T.push(y),T.push('"></template>');case 1:_.status=2;var ye=!0;Z=_.chunks;var pe=0;_=_.children;for(var ke=0;ke<_.length;ke++){for(ye=_[ke];pe<ye.index;pe++)T.push(Z[pe]);ye=Wn(y,T,ye)}for(;pe<Z.length-1;pe++)T.push(Z[pe]);return pe<Z.length&&(ye=T.push(Z[pe])),ye;default:throw Error(t(390))}}function Wn(y,T,_){var Z=_.boundary;if(Z===null)return Bn(y,T,_);if(Z.parentFlushed=!0,Z.forceClientRender)return y.responseState.generateStaticMarkup||(Z=Z.errorDigest,T.push("<!--$!-->"),T.push("<template"),Z&&(T.push(' data-dgst="'),Z=E(Z),T.push(Z),T.push('"')),T.push("></template>")),Bn(y,T,_),y=y.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),y;if(0<Z.pendingTasks){Z.rootSegmentID=y.nextSegmentId++,0<Z.completedSegments.length&&y.partialBoundaries.push(Z);var ye=y.responseState,pe=ye.nextSuspenseID++;return ye=ye.boundaryPrefix+pe.toString(16),Z=Z.id=ye,N(T,y.responseState,Z),Bn(y,T,_),T.push("<!--/$-->")}if(Z.byteSize>y.progressiveChunkSize)return Z.rootSegmentID=y.nextSegmentId++,y.completedBoundaries.push(Z),N(T,y.responseState,Z.id),Bn(y,T,_),T.push("<!--/$-->");if(y.responseState.generateStaticMarkup||T.push("<!--$-->"),_=Z.completedSegments,_.length!==1)throw Error(t(391));return Wn(y,T,_[0]),y=y.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),y}function Qa(y,T,_){return W(T,y.responseState,_.formatContext,_.id),Wn(y,T,_),ee(T,_.formatContext)}function Ka(y,T,_){for(var Z=_.completedSegments,ye=0;ye<Z.length;ye++)ja(y,T,_,Z[ye]);if(Z.length=0,y=y.responseState,Z=_.id,_=_.rootSegmentID,T.push(y.startInlineScript),y.sentCompleteBoundaryFunction?T.push('$RC("'):(y.sentCompleteBoundaryFunction=!0,T.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),Z===null)throw Error(t(395));return _=_.toString(16),T.push(Z),T.push('","'),T.push(y.segmentPrefix),T.push(_),T.push('")<\/script>')}function ja(y,T,_,Z){if(Z.status===2)return!0;var ye=Z.id;if(ye===-1){if((Z.id=_.rootSegmentID)===-1)throw Error(t(392));return Qa(y,T,Z)}return Qa(y,T,Z),y=y.responseState,T.push(y.startInlineScript),y.sentCompleteSegmentFunction?T.push('$RS("'):(y.sentCompleteSegmentFunction=!0,T.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),T.push(y.segmentPrefix),ye=ye.toString(16),T.push(ye),T.push('","'),T.push(y.placeholderPrefix),T.push(ye),T.push('")<\/script>')}function Vn(y,T){try{var _=y.completedRootSegment;if(_!==null&&y.pendingRootTasks===0){Wn(y,T,_),y.completedRootSegment=null;var Z=y.responseState.bootstrapChunks;for(_=0;_<Z.length-1;_++)T.push(Z[_]);_<Z.length&&T.push(Z[_])}var ye=y.clientRenderedBoundaries,pe;for(pe=0;pe<ye.length;pe++){var ke=ye[pe];Z=T;var Ue=y.responseState,it=ke.id,ft=ke.errorDigest,ut=ke.errorMessage,Bt=ke.errorComponentStack;if(Z.push(Ue.startInlineScript),Ue.sentClientRenderFunction?Z.push('$RX("'):(Ue.sentClientRenderFunction=!0,Z.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),it===null)throw Error(t(395));if(Z.push(it),Z.push('"'),ft||ut||Bt){Z.push(",");var $r=ne(ft||"");Z.push($r)}if(ut||Bt){Z.push(",");var Dr=ne(ut||"");Z.push(Dr)}if(Bt){Z.push(",");var Sr=ne(Bt);Z.push(Sr)}if(!Z.push(")<\/script>")){y.destination=null,pe++,ye.splice(0,pe);return}}ye.splice(0,pe);var Pn=y.completedBoundaries;for(pe=0;pe<Pn.length;pe++)if(!Ka(y,T,Pn[pe])){y.destination=null,pe++,Pn.splice(0,pe);return}Pn.splice(0,pe);var Kr=y.partialBoundaries;for(pe=0;pe<Kr.length;pe++){var ka=Kr[pe];e:{ye=y,ke=T;var Hn=ka.completedSegments;for(Ue=0;Ue<Hn.length;Ue++)if(!ja(ye,ke,ka,Hn[Ue])){Ue++,Hn.splice(0,Ue);var ca=!1;break e}Hn.splice(0,Ue),ca=!0}if(!ca){y.destination=null,pe++,Kr.splice(0,pe);return}}Kr.splice(0,pe);var On=y.completedBoundaries;for(pe=0;pe<On.length;pe++)if(!Ka(y,T,On[pe])){y.destination=null,pe++,On.splice(0,pe);return}On.splice(0,pe)}finally{y.allPendingTasks===0&&y.pingedTasks.length===0&&y.clientRenderedBoundaries.length===0&&y.completedBoundaries.length===0&&T.push(null)}}function qa(y,T){try{var _=y.abortableTasks;_.forEach(function(Z){return Fa(Z,y,T)}),_.clear(),y.destination!==null&&Vn(y,y.destination)}catch(Z){Nt(y,Z),Mt(y,Z)}}function Ia(){}function Ta(y,T,_,Z){var ye=!1,pe=null,ke="",Ue={push:function(ft){return ft!==null&&(ke+=ft),!0},destroy:function(ft){ye=!0,pe=ft}},it=!1;if(y=Dt(y,te(_,T?T.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Ia,void 0,function(){it=!0},void 0,void 0),Tr(y),qa(y,Z),y.status===1)y.status=2,Ue.destroy(y.fatalError);else if(y.status!==2&&y.destination===null){y.destination=Ue;try{Vn(y,Ue)}catch(ft){Nt(y,ft),Mt(y,ft)}}if(ye)throw pe;if(!it)throw Error(t(426));return ke}return mi.renderToNodeStream=function(){throw Error(t(207))},mi.renderToStaticMarkup=function(y,T){return Ta(y,T,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},mi.renderToStaticNodeStream=function(){throw Error(t(208))},mi.renderToString=function(y,T){return Ta(y,T,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},mi.version="18.2.0",mi}var Wd={};/**
|
|
134
|
+
* @license React
|
|
135
|
+
* react-dom-server.browser.production.min.js
|
|
136
|
+
*
|
|
137
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the MIT license found in the
|
|
140
|
+
* LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/var v2;function _k(){if(v2)return Wd;v2=1;var e=h;function t(w){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+w,$=1;$<arguments.length;$++)k+="&args[]="+encodeURIComponent(arguments[$]);return"Minified React error #"+w+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=null,n=0;function a(w,k){if(k.length!==0)if(512<k.length)0<n&&(w.enqueue(new Uint8Array(r.buffer,0,n)),r=new Uint8Array(512),n=0),w.enqueue(k);else{var $=r.length-n;$<k.length&&($===0?w.enqueue(r):(r.set(k.subarray(0,$),n),w.enqueue(r),k=k.subarray($)),r=new Uint8Array(512),n=0),r.set(k,n),n+=k.length}}function o(w,k){return a(w,k),!0}function i(w){r&&0<n&&(w.enqueue(new Uint8Array(r.buffer,0,n)),r=null,n=0)}var l=new TextEncoder;function u(w){return l.encode(w)}function c(w){return l.encode(w)}function m(w,k){typeof w.error=="function"?w.error(k):w.close()}var p=Object.prototype.hasOwnProperty,x=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},E={};function v(w){return p.call(E,w)?!0:p.call(C,w)?!1:x.test(w)?E[w]=!0:(C[w]=!0,!1)}function A(w,k,$,U,Ce,ve,Oe){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=U,this.attributeNamespace=Ce,this.mustUseProperty=$,this.propertyName=w,this.type=k,this.sanitizeURL=ve,this.removeEmptyString=Oe}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(w){S[w]=new A(w,0,!1,w,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(w){var k=w[0];S[k]=new A(k,1,!1,w[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(w){S[w]=new A(w,2,!1,w.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(w){S[w]=new A(w,2,!1,w,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(w){S[w]=new A(w,3,!1,w.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(w){S[w]=new A(w,3,!0,w,null,!1,!1)}),["capture","download"].forEach(function(w){S[w]=new A(w,4,!1,w,null,!1,!1)}),["cols","rows","size","span"].forEach(function(w){S[w]=new A(w,6,!1,w,null,!1,!1)}),["rowSpan","start"].forEach(function(w){S[w]=new A(w,5,!1,w.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function O(w){return w[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(w){var k=w.replace(j,O);S[k]=new A(k,1,!1,w,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(w){var k=w.replace(j,O);S[k]=new A(k,1,!1,w,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(w){var k=w.replace(j,O);S[k]=new A(k,1,!1,w,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(w){S[w]=new A(w,1,!1,w.toLowerCase(),null,!1,!1)}),S.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(w){S[w]=new A(w,1,!1,w.toLowerCase(),null,!0,!0)});var L={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},M=["Webkit","ms","Moz","O"];Object.keys(L).forEach(function(w){M.forEach(function(k){k=k+w.charAt(0).toUpperCase()+w.substring(1),L[k]=L[w]})});var z=/["'&<>]/;function H(w){if(typeof w=="boolean"||typeof w=="number")return""+w;w=""+w;var k=z.exec(w);if(k){var $="",U,Ce=0;for(U=k.index;U<w.length;U++){switch(w.charCodeAt(U)){case 34:k=""";break;case 38:k="&";break;case 39:k="'";break;case 60:k="<";break;case 62:k=">";break;default:continue}Ce!==U&&($+=w.substring(Ce,U)),Ce=U+1,$+=k}w=Ce!==U?$+w.substring(Ce,U):$}return w}var oe=/([A-Z])/g,J=/^ms-/,ge=Array.isArray,xe=c("<script>"),Q=c("<\/script>"),ce=c('<script src="'),N=c('<script type="module" src="'),W=c('" async=""><\/script>'),ee=/(<\/|<)(s)(cript)/gi;function de(w,k,$,U){return""+k+($==="s"?"\\u0073":"\\u0053")+U}function ne(w,k,$,U,Ce){w=w===void 0?"":w,k=k===void 0?xe:c('<script nonce="'+H(k)+'">');var ve=[];if($!==void 0&&ve.push(k,u((""+$).replace(ee,de)),Q),U!==void 0)for($=0;$<U.length;$++)ve.push(ce,u(H(U[$])),W);if(Ce!==void 0)for(U=0;U<Ce.length;U++)ve.push(N,u(H(Ce[U])),W);return{bootstrapChunks:ve,startInlineScript:k,placeholderPrefix:c(w+"P:"),segmentPrefix:c(w+"S:"),boundaryPrefix:w+"B:",idPrefix:w,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function te(w,k){return{insertionMode:w,selectedValue:k}}function K(w){return te(w==="http://www.w3.org/2000/svg"?2:w==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function se(w,k,$){switch(k){case"select":return te(1,$.value!=null?$.value:$.defaultValue);case"svg":return te(2,null);case"math":return te(3,null);case"foreignObject":return te(1,null);case"table":return te(4,null);case"thead":case"tbody":case"tfoot":return te(5,null);case"colgroup":return te(7,null);case"tr":return te(6,null)}return 4<=w.insertionMode||w.insertionMode===0?te(1,null):w}var fe=c("<!-- -->");function Se(w,k,$,U){return k===""?U:(U&&w.push(fe),w.push(u(H(k))),!0)}var G=new Map,he=c(' style="'),ae=c(":"),me=c(";");function Me(w,k,$){if(typeof $!="object")throw Error(t(62));k=!0;for(var U in $)if(p.call($,U)){var Ce=$[U];if(Ce!=null&&typeof Ce!="boolean"&&Ce!==""){if(U.indexOf("--")===0){var ve=u(H(U));Ce=u(H((""+Ce).trim()))}else{ve=U;var Oe=G.get(ve);Oe!==void 0||(Oe=c(H(ve.replace(oe,"-$1").toLowerCase().replace(J,"-ms-"))),G.set(ve,Oe)),ve=Oe,Ce=typeof Ce=="number"?Ce===0||p.call(L,U)?u(""+Ce):u(Ce+"px"):u(H((""+Ce).trim()))}k?(k=!1,w.push(he,ve,ae,Ce)):w.push(me,ve,ae,Ce)}}k||w.push(Ke)}var Pe=c(" "),We=c('="'),Ke=c('"'),Ne=c('=""');function Qe(w,k,$,U){switch($){case"style":Me(w,k,U);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"){if(k=S.hasOwnProperty($)?S[$]:null,k!==null){switch(typeof U){case"function":case"symbol":return;case"boolean":if(!k.acceptsBooleans)return}switch($=u(k.attributeName),k.type){case 3:U&&w.push(Pe,$,Ne);break;case 4:U===!0?w.push(Pe,$,Ne):U!==!1&&w.push(Pe,$,We,u(H(U)),Ke);break;case 5:isNaN(U)||w.push(Pe,$,We,u(H(U)),Ke);break;case 6:!isNaN(U)&&1<=U&&w.push(Pe,$,We,u(H(U)),Ke);break;default:k.sanitizeURL&&(U=""+U),w.push(Pe,$,We,u(H(U)),Ke)}}else if(v($)){switch(typeof U){case"function":case"symbol":return;case"boolean":if(k=$.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")return}w.push(Pe,u($),We,u(H(U)),Ke)}}}var nt=c(">"),vt=c("/>");function At(w,k,$){if(k!=null){if($!=null)throw Error(t(60));if(typeof k!="object"||!("__html"in k))throw Error(t(61));k=k.__html,k!=null&&w.push(u(""+k))}}function re(w){var k="";return e.Children.forEach(w,function($){$!=null&&(k+=$)}),k}var be=c(' selected=""');function Ie(w,k,$,U){w.push(Ee($));var Ce=$=null,ve;for(ve in k)if(p.call(k,ve)){var Oe=k[ve];if(Oe!=null)switch(ve){case"children":$=Oe;break;case"dangerouslySetInnerHTML":Ce=Oe;break;default:Qe(w,U,ve,Oe)}}return w.push(nt),At(w,Ce,$),typeof $=="string"?(w.push(u(H($))),null):$}var Ze=c(`
|
|
142
|
+
`),He=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Te=new Map;function Ee(w){var k=Te.get(w);if(k===void 0){if(!He.test(w))throw Error(t(65,w));k=c("<"+w),Te.set(w,k)}return k}var ze=c("<!DOCTYPE html>");function tt(w,k,$,U,Ce){switch(k){case"select":w.push(Ee("select"));var ve=null,Oe=null;for(Ct in $)if(p.call($,Ct)){var Xe=$[Ct];if(Xe!=null)switch(Ct){case"children":ve=Xe;break;case"dangerouslySetInnerHTML":Oe=Xe;break;case"defaultValue":case"value":break;default:Qe(w,U,Ct,Xe)}}return w.push(nt),At(w,Oe,ve),ve;case"option":Oe=Ce.selectedValue,w.push(Ee("option"));var ht=Xe=null,Et=null,Ct=null;for(ve in $)if(p.call($,ve)){var Ut=$[ve];if(Ut!=null)switch(ve){case"children":Xe=Ut;break;case"selected":Et=Ut;break;case"dangerouslySetInnerHTML":Ct=Ut;break;case"value":ht=Ut;default:Qe(w,U,ve,Ut)}}if(Oe!=null)if($=ht!==null?""+ht:re(Xe),ge(Oe)){for(U=0;U<Oe.length;U++)if(""+Oe[U]===$){w.push(be);break}}else""+Oe===$&&w.push(be);else Et&&w.push(be);return w.push(nt),At(w,Ct,Xe),Xe;case"textarea":w.push(Ee("textarea")),Ct=Oe=ve=null;for(Xe in $)if(p.call($,Xe)&&(ht=$[Xe],ht!=null))switch(Xe){case"children":Ct=ht;break;case"value":ve=ht;break;case"defaultValue":Oe=ht;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:Qe(w,U,Xe,ht)}if(ve===null&&Oe!==null&&(ve=Oe),w.push(nt),Ct!=null){if(ve!=null)throw Error(t(92));if(ge(Ct)&&1<Ct.length)throw Error(t(93));ve=""+Ct}return typeof ve=="string"&&ve[0]===`
|
|
143
|
+
`&&w.push(Ze),ve!==null&&w.push(u(H(""+ve))),null;case"input":w.push(Ee("input")),ht=Ct=Xe=ve=null;for(Oe in $)if(p.call($,Oe)&&(Et=$[Oe],Et!=null))switch(Oe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":ht=Et;break;case"defaultValue":Xe=Et;break;case"checked":Ct=Et;break;case"value":ve=Et;break;default:Qe(w,U,Oe,Et)}return Ct!==null?Qe(w,U,"checked",Ct):ht!==null&&Qe(w,U,"checked",ht),ve!==null?Qe(w,U,"value",ve):Xe!==null&&Qe(w,U,"value",Xe),w.push(vt),null;case"menuitem":w.push(Ee("menuitem"));for(var Wr in $)if(p.call($,Wr)&&(ve=$[Wr],ve!=null))switch(Wr){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:Qe(w,U,Wr,ve)}return w.push(nt),null;case"title":w.push(Ee("title")),ve=null;for(Ut in $)if(p.call($,Ut)&&(Oe=$[Ut],Oe!=null))switch(Ut){case"children":ve=Oe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:Qe(w,U,Ut,Oe)}return w.push(nt),ve;case"listing":case"pre":w.push(Ee(k)),Oe=ve=null;for(ht in $)if(p.call($,ht)&&(Xe=$[ht],Xe!=null))switch(ht){case"children":ve=Xe;break;case"dangerouslySetInnerHTML":Oe=Xe;break;default:Qe(w,U,ht,Xe)}if(w.push(nt),Oe!=null){if(ve!=null)throw Error(t(60));if(typeof Oe!="object"||!("__html"in Oe))throw Error(t(61));$=Oe.__html,$!=null&&(typeof $=="string"&&0<$.length&&$[0]===`
|
|
144
|
+
`?w.push(Ze,u($)):w.push(u(""+$)))}return typeof ve=="string"&&ve[0]===`
|
|
145
|
+
`&&w.push(Ze),ve;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":w.push(Ee(k));for(var en in $)if(p.call($,en)&&(ve=$[en],ve!=null))switch(en){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,k));default:Qe(w,U,en,ve)}return w.push(vt),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ie(w,$,k,U);case"html":return Ce.insertionMode===0&&w.push(ze),Ie(w,$,k,U);default:if(k.indexOf("-")===-1&&typeof $.is!="string")return Ie(w,$,k,U);w.push(Ee(k)),Oe=ve=null;for(Et in $)if(p.call($,Et)&&(Xe=$[Et],Xe!=null))switch(Et){case"children":ve=Xe;break;case"dangerouslySetInnerHTML":Oe=Xe;break;case"style":Me(w,U,Xe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(Et)&&typeof Xe!="function"&&typeof Xe!="symbol"&&w.push(Pe,u(Et),We,u(H(Xe)),Ke)}return w.push(nt),At(w,Oe,ve),ve}}var bt=c("</"),Ot=c(">"),gt=c('<template id="'),Wt=c('"></template>'),pr=c("<!--$-->"),Yt=c('<!--$?--><template id="'),Cr=c('"></template>'),gr=c("<!--$!-->"),Or=c("<!--/$-->"),Nr=c("<template"),xr=c('"'),Mr=c(' data-dgst="');c(' data-msg="'),c(' data-stck="');var cn=c("></template>");function cr(w,k,$){if(a(w,Yt),$===null)throw Error(t(395));return a(w,$),o(w,Cr)}var wr=c('<div hidden id="'),Er=c('">'),It=c("</div>"),Gr=c('<svg aria-hidden="true" style="display:none" id="'),Tn=c('">'),kn=c("</svg>"),Rr=c('<math aria-hidden="true" style="display:none" id="'),_n=c('">'),Zr=c("</math>"),Xt=c('<table hidden id="'),ia=c('">'),sa=c("</table>"),la=c('<table hidden><tbody id="'),tr=c('">'),ua=c("</tbody></table>"),Ya=c('<table hidden><tr id="'),Ja=c('">'),q=c("</tr></table>"),_e=c('<table hidden><colgroup id="'),Je=c('">'),ct=c("</colgroup></table>");function wt(w,k,$,U){switch($.insertionMode){case 0:case 1:return a(w,wr),a(w,k.segmentPrefix),a(w,u(U.toString(16))),o(w,Er);case 2:return a(w,Gr),a(w,k.segmentPrefix),a(w,u(U.toString(16))),o(w,Tn);case 3:return a(w,Rr),a(w,k.segmentPrefix),a(w,u(U.toString(16))),o(w,_n);case 4:return a(w,Xt),a(w,k.segmentPrefix),a(w,u(U.toString(16))),o(w,ia);case 5:return a(w,la),a(w,k.segmentPrefix),a(w,u(U.toString(16))),o(w,tr);case 6:return a(w,Ya),a(w,k.segmentPrefix),a(w,u(U.toString(16))),o(w,Ja);case 7:return a(w,_e),a(w,k.segmentPrefix),a(w,u(U.toString(16))),o(w,Je);default:throw Error(t(397))}}function Ft(w,k){switch(k.insertionMode){case 0:case 1:return o(w,It);case 2:return o(w,kn);case 3:return o(w,Zr);case 4:return o(w,sa);case 5:return o(w,ua);case 6:return o(w,q);case 7:return o(w,ct);default:throw Error(t(397))}}var Dt=c('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),xt=c('$RS("'),rr=c('","'),Nt=c('")<\/script>'),Mt=c('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Jt=c('$RC("'),Ir=c('","'),dn=c('")<\/script>'),nr=c('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),ar=c('$RX("'),fn=c('"'),Qr=c(")<\/script>"),vr=c(","),Fa=/[<\u2028\u2029]/g;function hn(w){return JSON.stringify(w).replace(Fa,function(k){switch(k){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var pn=Object.assign,Tr=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Wn=Symbol.for("react.fragment"),Qa=Symbol.for("react.strict_mode"),Ka=Symbol.for("react.profiler"),ja=Symbol.for("react.provider"),Vn=Symbol.for("react.context"),qa=Symbol.for("react.forward_ref"),Ia=Symbol.for("react.suspense"),Ta=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),_=Symbol.for("react.scope"),Z=Symbol.for("react.debug_trace_mode"),ye=Symbol.for("react.legacy_hidden"),pe=Symbol.for("react.default_value"),ke=Symbol.iterator;function Ue(w){if(w==null)return null;if(typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case Wn:return"Fragment";case Bn:return"Portal";case Ka:return"Profiler";case Qa:return"StrictMode";case Ia:return"Suspense";case Ta:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case Vn:return(w.displayName||"Context")+".Consumer";case ja:return(w._context.displayName||"Context")+".Provider";case qa:var k=w.render;return w=w.displayName,w||(w=k.displayName||k.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case y:return k=w.displayName||null,k!==null?k:Ue(w.type)||"Memo";case T:k=w._payload,w=w._init;try{return Ue(w(k))}catch{}}return null}var it={};function ft(w,k){if(w=w.contextTypes,!w)return it;var $={},U;for(U in w)$[U]=k[U];return $}var ut=null;function Bt(w,k){if(w!==k){w.context._currentValue=w.parentValue,w=w.parent;var $=k.parent;if(w===null){if($!==null)throw Error(t(401))}else{if($===null)throw Error(t(401));Bt(w,$)}k.context._currentValue=k.value}}function $r(w){w.context._currentValue=w.parentValue,w=w.parent,w!==null&&$r(w)}function Dr(w){var k=w.parent;k!==null&&Dr(k),w.context._currentValue=w.value}function Sr(w,k){if(w.context._currentValue=w.parentValue,w=w.parent,w===null)throw Error(t(402));w.depth===k.depth?Bt(w,k):Sr(w,k)}function Pn(w,k){var $=k.parent;if($===null)throw Error(t(402));w.depth===$.depth?Bt(w,$):Pn(w,$),k.context._currentValue=k.value}function Kr(w){var k=ut;k!==w&&(k===null?Dr(w):w===null?$r(k):k.depth===w.depth?Bt(k,w):k.depth>w.depth?Sr(k,w):Pn(k,w),ut=w)}var ka={isMounted:function(){return!1},enqueueSetState:function(w,k){w=w._reactInternals,w.queue!==null&&w.queue.push(k)},enqueueReplaceState:function(w,k){w=w._reactInternals,w.replace=!0,w.queue=[k]},enqueueForceUpdate:function(){}};function Hn(w,k,$,U){var Ce=w.state!==void 0?w.state:null;w.updater=ka,w.props=$,w.state=Ce;var ve={queue:[],replace:!1};w._reactInternals=ve;var Oe=k.contextType;if(w.context=typeof Oe=="object"&&Oe!==null?Oe._currentValue:U,Oe=k.getDerivedStateFromProps,typeof Oe=="function"&&(Oe=Oe($,Ce),Ce=Oe==null?Ce:pn({},Ce,Oe),w.state=Ce),typeof k.getDerivedStateFromProps!="function"&&typeof w.getSnapshotBeforeUpdate!="function"&&(typeof w.UNSAFE_componentWillMount=="function"||typeof w.componentWillMount=="function"))if(k=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),k!==w.state&&ka.enqueueReplaceState(w,w.state,null),ve.queue!==null&&0<ve.queue.length)if(k=ve.queue,Oe=ve.replace,ve.queue=null,ve.replace=!1,Oe&&k.length===1)w.state=k[0];else{for(ve=Oe?k[0]:w.state,Ce=!0,Oe=Oe?1:0;Oe<k.length;Oe++){var Xe=k[Oe];Xe=typeof Xe=="function"?Xe.call(w,ve,$,U):Xe,Xe!=null&&(Ce?(Ce=!1,ve=pn({},ve,Xe)):pn(ve,Xe))}w.state=ve}else ve.queue=null}var ca={id:1,overflow:""};function On(w,k,$){var U=w.id;w=w.overflow;var Ce=32-eo(U)-1;U&=~(1<<Ce),$+=1;var ve=32-eo(k)+Ce;if(30<ve){var Oe=Ce-Ce%5;return ve=(U&(1<<Oe)-1).toString(32),U>>=Oe,Ce-=Oe,{id:1<<32-eo(k)+Ce|$<<Ce|U,overflow:ve+w}}return{id:1<<ve|$<<Ce|U,overflow:w}}var eo=Math.clz32?Math.clz32:Ci,xu=Math.log,yu=Math.LN2;function Ci(w){return w>>>=0,w===0?32:31-(xu(w)/yu|0)|0}function Cu(w,k){return w===k&&(w!==0||1/w===1/k)||w!==w&&k!==k}var wi=typeof Object.is=="function"?Object.is:Cu,Nn=null,to=null,ko=null,Zt=null,zn=!1,Lr=!1,da=0,Gn=null,Bo=0;function Zn(){if(Nn===null)throw Error(t(321));return Nn}function qr(){if(0<Bo)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Ei(){return Zt===null?ko===null?(zn=!1,ko=Zt=qr()):(zn=!0,Zt=ko):Zt.next===null?(zn=!1,Zt=Zt.next=qr()):(zn=!0,Zt=Zt.next),Zt}function Di(){to=Nn=null,Lr=!1,ko=null,Bo=0,Zt=Gn=null}function Is(w,k){return typeof k=="function"?k(w):k}function Ts(w,k,$){if(Nn=Zn(),Zt=Ei(),zn){var U=Zt.queue;if(k=U.dispatch,Gn!==null&&($=Gn.get(U),$!==void 0)){Gn.delete(U),U=Zt.memoizedState;do U=w(U,$.action),$=$.next;while($!==null);return Zt.memoizedState=U,[U,k]}return[Zt.memoizedState,k]}return w=w===Is?typeof k=="function"?k():k:$!==void 0?$(k):k,Zt.memoizedState=w,w=Zt.queue={last:null,dispatch:null},w=w.dispatch=wu.bind(null,Nn,w),[Zt.memoizedState,w]}function ks(w,k){if(Nn=Zn(),Zt=Ei(),k=k===void 0?null:k,Zt!==null){var $=Zt.memoizedState;if($!==null&&k!==null){var U=$[1];e:if(U===null)U=!1;else{for(var Ce=0;Ce<U.length&&Ce<k.length;Ce++)if(!wi(k[Ce],U[Ce])){U=!1;break e}U=!0}if(U)return $[0]}}return w=w(),Zt.memoizedState=[w,k],w}function wu(w,k,$){if(25<=Bo)throw Error(t(301));if(w===Nn)if(Lr=!0,w={action:$,next:null},Gn===null&&(Gn=new Map),$=Gn.get(k),$===void 0)Gn.set(k,w);else{for(k=$;k.next!==null;)k=k.next;k.next=w}}function Eu(){throw Error(t(394))}function Po(){}var Oo={readContext:function(w){return w._currentValue},useContext:function(w){return Zn(),w._currentValue},useMemo:ks,useReducer:Ts,useRef:function(w){Nn=Zn(),Zt=Ei();var k=Zt.memoizedState;return k===null?(w={current:w},Zt.memoizedState=w):k},useState:function(w){return Ts(Is,w)},useInsertionEffect:Po,useLayoutEffect:function(){},useCallback:function(w,k){return ks(function(){return w},k)},useImperativeHandle:Po,useEffect:Po,useDebugValue:Po,useDeferredValue:function(w){return Zn(),w},useTransition:function(){return Zn(),[!1,Eu]},useId:function(){var w=to.treeContext,k=w.overflow;w=w.id,w=(w&~(1<<32-eo(w)-1)).toString(32)+k;var $=No;if($===null)throw Error(t(404));return k=da++,w=":"+$.idPrefix+"R"+w,0<k&&(w+="H"+k.toString(32)),w+":"},useMutableSource:function(w,k){return Zn(),k(w._source)},useSyncExternalStore:function(w,k,$){if($===void 0)throw Error(t(407));return $()}},No=null,ro=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Du(w){return console.error(w),null}function no(){}function Si(w,k,$,U,Ce,ve,Oe,Xe,ht){var Et=[],Ct=new Set;return k={destination:null,responseState:k,progressiveChunkSize:U===void 0?12800:U,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ct,pingedTasks:Et,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ce===void 0?Du:Ce,onAllReady:ve===void 0?no:ve,onShellReady:Oe===void 0?no:Oe,onShellError:Xe===void 0?no:Xe,onFatalError:ht===void 0?no:ht},$=Ba(k,0,null,$,!1,!1),$.parentFlushed=!0,w=Ai(k,w,null,$,Ct,it,null,ca),Et.push(w),k}function Ai(w,k,$,U,Ce,ve,Oe,Xe){w.allPendingTasks++,$===null?w.pendingRootTasks++:$.pendingTasks++;var ht={node:k,ping:function(){var Et=w.pingedTasks;Et.push(ht),Et.length===1&&Rs(w)},blockedBoundary:$,blockedSegment:U,abortSet:Ce,legacyContext:ve,context:Oe,treeContext:Xe};return Ce.add(ht),ht}function Ba(w,k,$,U,Ce,ve){return{status:0,id:-1,index:k,parentFlushed:!1,chunks:[],children:[],formatContext:U,boundary:$,lastPushedText:Ce,textEmbedded:ve}}function Pa(w,k){if(w=w.onError(k),w!=null&&typeof w!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof w+'" instead');return w}function Mo(w,k){var $=w.onShellError;$(k),$=w.onFatalError,$(k),w.destination!==null?(w.status=2,m(w.destination,k)):(w.status=1,w.fatalError=k)}function Bs(w,k,$,U,Ce){for(Nn={},to=k,da=0,w=$(U,Ce);Lr;)Lr=!1,da=0,Bo+=1,Zt=null,w=$(U,Ce);return Di(),w}function Fi(w,k,$,U){var Ce=$.render(),ve=U.childContextTypes;if(ve!=null){var Oe=k.legacyContext;if(typeof $.getChildContext!="function")U=Oe;else{$=$.getChildContext();for(var Xe in $)if(!(Xe in ve))throw Error(t(108,Ue(U)||"Unknown",Xe));U=pn({},Oe,$)}k.legacyContext=U,_r(w,k,Ce),k.legacyContext=Oe}else _r(w,k,Ce)}function Ps(w,k){if(w&&w.defaultProps){k=pn({},k),w=w.defaultProps;for(var $ in w)k[$]===void 0&&(k[$]=w[$]);return k}return k}function Ro(w,k,$,U,Ce){if(typeof $=="function")if($.prototype&&$.prototype.isReactComponent){Ce=ft($,k.legacyContext);var ve=$.contextType;ve=new $(U,typeof ve=="object"&&ve!==null?ve._currentValue:Ce),Hn(ve,$,U,Ce),Fi(w,k,ve,$)}else{ve=ft($,k.legacyContext),Ce=Bs(w,k,$,U,ve);var Oe=da!==0;if(typeof Ce=="object"&&Ce!==null&&typeof Ce.render=="function"&&Ce.$$typeof===void 0)Hn(Ce,$,U,ve),Fi(w,k,Ce,$);else if(Oe){U=k.treeContext,k.treeContext=On(U,1,0);try{_r(w,k,Ce)}finally{k.treeContext=U}}else _r(w,k,Ce)}else if(typeof $=="string"){switch(Ce=k.blockedSegment,ve=tt(Ce.chunks,$,U,w.responseState,Ce.formatContext),Ce.lastPushedText=!1,Oe=Ce.formatContext,Ce.formatContext=se(Oe,$,U),$o(w,k,ve),Ce.formatContext=Oe,$){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ce.chunks.push(bt,u($),Ot)}Ce.lastPushedText=!1}else{switch($){case ye:case Z:case Qa:case Ka:case Wn:_r(w,k,U.children);return;case Ta:_r(w,k,U.children);return;case _:throw Error(t(343));case Ia:e:{$=k.blockedBoundary,Ce=k.blockedSegment,ve=U.fallback,U=U.children,Oe=new Set;var Xe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Oe,errorDigest:null},ht=Ba(w,Ce.chunks.length,Xe,Ce.formatContext,!1,!1);Ce.children.push(ht),Ce.lastPushedText=!1;var Et=Ba(w,0,null,Ce.formatContext,!1,!1);Et.parentFlushed=!0,k.blockedBoundary=Xe,k.blockedSegment=Et;try{if($o(w,k,U),Et.lastPushedText&&Et.textEmbedded&&Et.chunks.push(fe),Et.status=1,Lo(Xe,Et),Xe.pendingTasks===0)break e}catch(Ct){Et.status=4,Xe.forceClientRender=!0,Xe.errorDigest=Pa(w,Ct)}finally{k.blockedBoundary=$,k.blockedSegment=Ce}k=Ai(w,ve,$,ht,Oe,k.legacyContext,k.context,k.treeContext),w.pingedTasks.push(k)}return}if(typeof $=="object"&&$!==null)switch($.$$typeof){case qa:if(U=Bs(w,k,$.render,U,Ce),da!==0){$=k.treeContext,k.treeContext=On($,1,0);try{_r(w,k,U)}finally{k.treeContext=$}}else _r(w,k,U);return;case y:$=$.type,U=Ps($,U),Ro(w,k,$,U,Ce);return;case ja:if(Ce=U.children,$=$._context,U=U.value,ve=$._currentValue,$._currentValue=U,Oe=ut,ut=U={parent:Oe,depth:Oe===null?0:Oe.depth+1,context:$,parentValue:ve,value:U},k.context=U,_r(w,k,Ce),w=ut,w===null)throw Error(t(403));U=w.parentValue,w.context._currentValue=U===pe?w.context._defaultValue:U,w=ut=w.parent,k.context=w;return;case Vn:U=U.children,U=U($._currentValue),_r(w,k,U);return;case T:Ce=$._init,$=Ce($._payload),U=Ps($,U),Ro(w,k,$,U,void 0);return}throw Error(t(130,$==null?$:typeof $,""))}}function _r(w,k,$){if(k.node=$,typeof $=="object"&&$!==null){switch($.$$typeof){case Tr:Ro(w,k,$.type,$.props,$.ref);return;case Bn:throw Error(t(257));case T:var U=$._init;$=U($._payload),_r(w,k,$);return}if(ge($)){Os(w,k,$);return}if($===null||typeof $!="object"?U=null:(U=ke&&$[ke]||$["@@iterator"],U=typeof U=="function"?U:null),U&&(U=U.call($))){if($=U.next(),!$.done){var Ce=[];do Ce.push($.value),$=U.next();while(!$.done);Os(w,k,Ce)}return}throw w=Object.prototype.toString.call($),Error(t(31,w==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":w))}typeof $=="string"?(U=k.blockedSegment,U.lastPushedText=Se(k.blockedSegment.chunks,$,w.responseState,U.lastPushedText)):typeof $=="number"&&(U=k.blockedSegment,U.lastPushedText=Se(k.blockedSegment.chunks,""+$,w.responseState,U.lastPushedText))}function Os(w,k,$){for(var U=$.length,Ce=0;Ce<U;Ce++){var ve=k.treeContext;k.treeContext=On(ve,U,Ce);try{$o(w,k,$[Ce])}finally{k.treeContext=ve}}}function $o(w,k,$){var U=k.blockedSegment.formatContext,Ce=k.legacyContext,ve=k.context;try{return _r(w,k,$)}catch(ht){if(Di(),typeof ht=="object"&&ht!==null&&typeof ht.then=="function"){$=ht;var Oe=k.blockedSegment,Xe=Ba(w,Oe.chunks.length,null,Oe.formatContext,Oe.lastPushedText,!0);Oe.children.push(Xe),Oe.lastPushedText=!1,w=Ai(w,k.node,k.blockedBoundary,Xe,k.abortSet,k.legacyContext,k.context,k.treeContext).ping,$.then(w,w),k.blockedSegment.formatContext=U,k.legacyContext=Ce,k.context=ve,Kr(ve)}else throw k.blockedSegment.formatContext=U,k.legacyContext=Ce,k.context=ve,Kr(ve),ht}}function Su(w){var k=w.blockedBoundary;w=w.blockedSegment,w.status=3,Ms(this,k,w)}function Ns(w,k,$){var U=w.blockedBoundary;w.blockedSegment.status=3,U===null?(k.allPendingTasks--,k.status!==2&&(k.status=2,k.destination!==null&&k.destination.close())):(U.pendingTasks--,U.forceClientRender||(U.forceClientRender=!0,w=$===void 0?Error(t(432)):$,U.errorDigest=k.onError(w),U.parentFlushed&&k.clientRenderedBoundaries.push(U)),U.fallbackAbortableTasks.forEach(function(Ce){return Ns(Ce,k,$)}),U.fallbackAbortableTasks.clear(),k.allPendingTasks--,k.allPendingTasks===0&&(U=k.onAllReady,U()))}function Lo(w,k){if(k.chunks.length===0&&k.children.length===1&&k.children[0].boundary===null){var $=k.children[0];$.id=k.id,$.parentFlushed=!0,$.status===1&&Lo(w,$)}else w.completedSegments.push(k)}function Ms(w,k,$){if(k===null){if($.parentFlushed){if(w.completedRootSegment!==null)throw Error(t(389));w.completedRootSegment=$}w.pendingRootTasks--,w.pendingRootTasks===0&&(w.onShellError=no,k=w.onShellReady,k())}else k.pendingTasks--,k.forceClientRender||(k.pendingTasks===0?($.parentFlushed&&$.status===1&&Lo(k,$),k.parentFlushed&&w.completedBoundaries.push(k),k.fallbackAbortableTasks.forEach(Su,w),k.fallbackAbortableTasks.clear()):$.parentFlushed&&$.status===1&&(Lo(k,$),k.completedSegments.length===1&&k.parentFlushed&&w.partialBoundaries.push(k)));w.allPendingTasks--,w.allPendingTasks===0&&(w=w.onAllReady,w())}function Rs(w){if(w.status!==2){var k=ut,$=ro.current;ro.current=Oo;var U=No;No=w.responseState;try{var Ce=w.pingedTasks,ve;for(ve=0;ve<Ce.length;ve++){var Oe=Ce[ve],Xe=w,ht=Oe.blockedSegment;if(ht.status===0){Kr(Oe.context);try{_r(Xe,Oe,Oe.node),ht.lastPushedText&&ht.textEmbedded&&ht.chunks.push(fe),Oe.abortSet.delete(Oe),ht.status=1,Ms(Xe,Oe.blockedBoundary,ht)}catch(tn){if(Di(),typeof tn=="object"&&tn!==null&&typeof tn.then=="function"){var Et=Oe.ping;tn.then(Et,Et)}else{Oe.abortSet.delete(Oe),ht.status=4;var Ct=Oe.blockedBoundary,Ut=tn,Wr=Pa(Xe,Ut);if(Ct===null?Mo(Xe,Ut):(Ct.pendingTasks--,Ct.forceClientRender||(Ct.forceClientRender=!0,Ct.errorDigest=Wr,Ct.parentFlushed&&Xe.clientRenderedBoundaries.push(Ct))),Xe.allPendingTasks--,Xe.allPendingTasks===0){var en=Xe.onAllReady;en()}}}finally{}}}Ce.splice(0,ve),w.destination!==null&&ji(w,w.destination)}catch(tn){Pa(w,tn),Mo(w,tn)}finally{No=U,ro.current=$,$===Oo&&Kr(k)}}}function _o(w,k,$){switch($.parentFlushed=!0,$.status){case 0:var U=$.id=w.nextSegmentId++;return $.lastPushedText=!1,$.textEmbedded=!1,w=w.responseState,a(k,gt),a(k,w.placeholderPrefix),w=u(U.toString(16)),a(k,w),o(k,Wt);case 1:$.status=2;var Ce=!0;U=$.chunks;var ve=0;$=$.children;for(var Oe=0;Oe<$.length;Oe++){for(Ce=$[Oe];ve<Ce.index;ve++)a(k,U[ve]);Ce=Wo(w,k,Ce)}for(;ve<U.length-1;ve++)a(k,U[ve]);return ve<U.length&&(Ce=o(k,U[ve])),Ce;default:throw Error(t(390))}}function Wo(w,k,$){var U=$.boundary;if(U===null)return _o(w,k,$);if(U.parentFlushed=!0,U.forceClientRender)U=U.errorDigest,o(k,gr),a(k,Nr),U&&(a(k,Mr),a(k,u(H(U))),a(k,xr)),o(k,cn),_o(w,k,$);else if(0<U.pendingTasks){U.rootSegmentID=w.nextSegmentId++,0<U.completedSegments.length&&w.partialBoundaries.push(U);var Ce=w.responseState,ve=Ce.nextSuspenseID++;Ce=c(Ce.boundaryPrefix+ve.toString(16)),U=U.id=Ce,cr(k,w.responseState,U),_o(w,k,$)}else if(U.byteSize>w.progressiveChunkSize)U.rootSegmentID=w.nextSegmentId++,w.completedBoundaries.push(U),cr(k,w.responseState,U.id),_o(w,k,$);else{if(o(k,pr),$=U.completedSegments,$.length!==1)throw Error(t(391));Wo(w,k,$[0])}return o(k,Or)}function $s(w,k,$){return wt(k,w.responseState,$.formatContext,$.id),Wo(w,k,$),Ft(k,$.formatContext)}function Ls(w,k,$){for(var U=$.completedSegments,Ce=0;Ce<U.length;Ce++)_s(w,k,$,U[Ce]);if(U.length=0,w=w.responseState,U=$.id,$=$.rootSegmentID,a(k,w.startInlineScript),w.sentCompleteBoundaryFunction?a(k,Jt):(w.sentCompleteBoundaryFunction=!0,a(k,Mt)),U===null)throw Error(t(395));return $=u($.toString(16)),a(k,U),a(k,Ir),a(k,w.segmentPrefix),a(k,$),o(k,dn)}function _s(w,k,$,U){if(U.status===2)return!0;var Ce=U.id;if(Ce===-1){if((U.id=$.rootSegmentID)===-1)throw Error(t(392));return $s(w,k,U)}return $s(w,k,U),w=w.responseState,a(k,w.startInlineScript),w.sentCompleteSegmentFunction?a(k,xt):(w.sentCompleteSegmentFunction=!0,a(k,Dt)),a(k,w.segmentPrefix),Ce=u(Ce.toString(16)),a(k,Ce),a(k,rr),a(k,w.placeholderPrefix),a(k,Ce),o(k,Nt)}function ji(w,k){r=new Uint8Array(512),n=0;try{var $=w.completedRootSegment;if($!==null&&w.pendingRootTasks===0){Wo(w,k,$),w.completedRootSegment=null;var U=w.responseState.bootstrapChunks;for($=0;$<U.length-1;$++)a(k,U[$]);$<U.length&&o(k,U[$])}var Ce=w.clientRenderedBoundaries,ve;for(ve=0;ve<Ce.length;ve++){var Oe=Ce[ve];U=k;var Xe=w.responseState,ht=Oe.id,Et=Oe.errorDigest,Ct=Oe.errorMessage,Ut=Oe.errorComponentStack;if(a(U,Xe.startInlineScript),Xe.sentClientRenderFunction?a(U,ar):(Xe.sentClientRenderFunction=!0,a(U,nr)),ht===null)throw Error(t(395));a(U,ht),a(U,fn),(Et||Ct||Ut)&&(a(U,vr),a(U,u(hn(Et||"")))),(Ct||Ut)&&(a(U,vr),a(U,u(hn(Ct||"")))),Ut&&(a(U,vr),a(U,u(hn(Ut)))),o(U,Qr)}Ce.splice(0,ve);var Wr=w.completedBoundaries;for(ve=0;ve<Wr.length;ve++)Ls(w,k,Wr[ve]);Wr.splice(0,ve),i(k),r=new Uint8Array(512),n=0;var en=w.partialBoundaries;for(ve=0;ve<en.length;ve++){var tn=en[ve];e:{Ce=w,Oe=k;var Vo=tn.completedSegments;for(Xe=0;Xe<Vo.length;Xe++)if(!_s(Ce,Oe,tn,Vo[Xe])){Xe++,Vo.splice(0,Xe);var Vs=!1;break e}Vo.splice(0,Xe),Vs=!0}if(!Vs){w.destination=null,ve++,en.splice(0,ve);return}}en.splice(0,ve);var Ii=w.completedBoundaries;for(ve=0;ve<Ii.length;ve++)Ls(w,k,Ii[ve]);Ii.splice(0,ve)}finally{i(k),w.allPendingTasks===0&&w.pingedTasks.length===0&&w.clientRenderedBoundaries.length===0&&w.completedBoundaries.length===0&&k.close()}}function Ws(w,k){try{var $=w.abortableTasks;$.forEach(function(U){return Ns(U,w,k)}),$.clear(),w.destination!==null&&ji(w,w.destination)}catch(U){Pa(w,U),Mo(w,U)}}return Wd.renderToReadableStream=function(w,k){return new Promise(function($,U){var Ce,ve,Oe=new Promise(function(Ct,Ut){ve=Ct,Ce=Ut}),Xe=Si(w,ne(k?k.identifierPrefix:void 0,k?k.nonce:void 0,k?k.bootstrapScriptContent:void 0,k?k.bootstrapScripts:void 0,k?k.bootstrapModules:void 0),K(k?k.namespaceURI:void 0),k?k.progressiveChunkSize:void 0,k?k.onError:void 0,ve,function(){var Ct=new ReadableStream({type:"bytes",pull:function(Ut){if(Xe.status===1)Xe.status=2,m(Ut,Xe.fatalError);else if(Xe.status!==2&&Xe.destination===null){Xe.destination=Ut;try{ji(Xe,Ut)}catch(Wr){Pa(Xe,Wr),Mo(Xe,Wr)}}},cancel:function(){Ws(Xe)}},{highWaterMark:0});Ct.allReady=Oe,$(Ct)},function(Ct){Oe.catch(function(){}),U(Ct)},Ce);if(k&&k.signal){var ht=k.signal,Et=function(){Ws(Xe,ht.reason),ht.removeEventListener("abort",Et)};ht.addEventListener("abort",Et)}Rs(Xe)})},Wd.version="18.2.0",Wd}var bi={};/**
|
|
146
|
+
* @license React
|
|
147
|
+
* react-dom-server-legacy.browser.development.js
|
|
148
|
+
*
|
|
149
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the MIT license found in the
|
|
152
|
+
* LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/var b2;function Wk(){return b2||(b2=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t="18.2.0",r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(d){{for(var g=arguments.length,D=new Array(g>1?g-1:0),I=1;I<g;I++)D[I-1]=arguments[I];o("warn",d,D)}}function a(d){{for(var g=arguments.length,D=new Array(g>1?g-1:0),I=1;I<g;I++)D[I-1]=arguments[I];o("error",d,D)}}function o(d,g,D){{var I=r.ReactDebugCurrentFrame,R=I.getStackAddendum();R!==""&&(g+="%s",D=D.concat([R]));var X=D.map(function(ie){return String(ie)});X.unshift("Warning: "+g),Function.prototype.apply.call(console[d],console,X)}}function i(d){d()}function l(d){}function u(d,g){c(d,g)}function c(d,g){return d.push(g)}function m(d){}function p(d){d.push(null)}function x(d){return d}function C(d){return d}function E(d,g){d.destroy(g)}function v(d){{var g=typeof Symbol=="function"&&Symbol.toStringTag,D=g&&d[Symbol.toStringTag]||d.constructor.name||"Object";return D}}function A(d){try{return S(d),!1}catch{return!0}}function S(d){return""+d}function j(d,g){if(A(d))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",g,v(d)),S(d)}function O(d,g){if(A(d))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",g,v(d)),S(d)}function L(d){if(A(d))return a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",v(d)),S(d)}var M=Object.prototype.hasOwnProperty,z=0,H=1,oe=2,J=3,ge=4,xe=5,Q=6,ce=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",N=ce+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",W=new RegExp("^["+ce+"]["+N+"]*$"),ee={},de={};function ne(d){return M.call(de,d)?!0:M.call(ee,d)?!1:W.test(d)?(de[d]=!0,!0):(ee[d]=!0,a("Invalid attribute name: `%s`",d),!1)}function te(d,g,D,I){if(D!==null&&D.type===z)return!1;switch(typeof g){case"function":case"symbol":return!0;case"boolean":{if(I)return!1;if(D!==null)return!D.acceptsBooleans;var R=d.toLowerCase().slice(0,5);return R!=="data-"&&R!=="aria-"}default:return!1}}function K(d){return fe.hasOwnProperty(d)?fe[d]:null}function se(d,g,D,I,R,X,ie){this.acceptsBooleans=g===oe||g===J||g===ge,this.attributeName=I,this.attributeNamespace=R,this.mustUseProperty=D,this.propertyName=d,this.type=g,this.sanitizeURL=X,this.removeEmptyString=ie}var fe={},Se=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Se.forEach(function(d){fe[d]=new se(d,z,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var g=d[0],D=d[1];fe[g]=new se(g,H,!1,D,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){fe[d]=new se(d,oe,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){fe[d]=new se(d,oe,!1,d,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(d){fe[d]=new se(d,J,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){fe[d]=new se(d,J,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){fe[d]=new se(d,ge,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){fe[d]=new se(d,Q,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){fe[d]=new se(d,xe,!1,d.toLowerCase(),null,!1,!1)});var G=/[\-\:]([a-z])/g,he=function(d){return d[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(d){var g=d.replace(G,he);fe[g]=new se(g,H,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var g=d.replace(G,he);fe[g]=new se(g,H,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var g=d.replace(G,he);fe[g]=new se(g,H,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){fe[d]=new se(d,H,!1,d.toLowerCase(),null,!1,!1)});var ae="xlinkHref";fe[ae]=new se("xlinkHref",H,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){fe[d]=new se(d,H,!1,d.toLowerCase(),null,!0,!0)});var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Me(d,g){return d+g.charAt(0).toUpperCase()+g.substring(1)}var Pe=["Webkit","ms","Moz","O"];Object.keys(me).forEach(function(d){Pe.forEach(function(g){me[Me(g,d)]=me[d]})});var We={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ke(d,g){We[g.type]||g.onChange||g.onInput||g.readOnly||g.disabled||g.value==null||a("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),g.onChange||g.readOnly||g.disabled||g.checked==null||a("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ne(d,g){if(d.indexOf("-")===-1)return typeof g.is=="string";switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qe={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},nt={},vt=new RegExp("^(aria)-["+N+"]*$"),At=new RegExp("^(aria)[A-Z]["+N+"]*$");function re(d,g){{if(M.call(nt,g)&&nt[g])return!0;if(At.test(g)){var D="aria-"+g.slice(4).toLowerCase(),I=Qe.hasOwnProperty(D)?D:null;if(I==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",g),nt[g]=!0,!0;if(g!==I)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",g,I),nt[g]=!0,!0}if(vt.test(g)){var R=g.toLowerCase(),X=Qe.hasOwnProperty(R)?R:null;if(X==null)return nt[g]=!0,!1;if(g!==X)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",g,X),nt[g]=!0,!0}}return!0}function be(d,g){{var D=[];for(var I in g){var R=re(d,I);R||D.push(I)}var X=D.map(function(ie){return"`"+ie+"`"}).join(", ");D.length===1?a("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",X,d):D.length>1&&a("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",X,d)}}function Ie(d,g){Ne(d,g)||be(d,g)}var Ze=!1;function He(d,g){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;g!=null&&g.value===null&&!Ze&&(Ze=!0,d==="select"&&g.multiple?a("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var Te={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Ee=function(){};{var ze={},tt=/^on./,bt=/^on[^A-Z]/,Ot=new RegExp("^(aria)-["+N+"]*$"),gt=new RegExp("^(aria)[A-Z]["+N+"]*$");Ee=function(d,g,D,I){if(M.call(ze,g)&&ze[g])return!0;var R=g.toLowerCase();if(R==="onfocusin"||R==="onfocusout")return a("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ze[g]=!0,!0;if(I!=null){var X=I.registrationNameDependencies,ie=I.possibleRegistrationNames;if(X.hasOwnProperty(g))return!0;var De=ie.hasOwnProperty(R)?ie[R]:null;if(De!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",g,De),ze[g]=!0,!0;if(tt.test(g))return a("Unknown event handler property `%s`. It will be ignored.",g),ze[g]=!0,!0}else if(tt.test(g))return bt.test(g)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",g),ze[g]=!0,!0;if(Ot.test(g)||gt.test(g))return!0;if(R==="innerhtml")return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ze[g]=!0,!0;if(R==="aria")return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ze[g]=!0,!0;if(R==="is"&&D!==null&&D!==void 0&&typeof D!="string")return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof D),ze[g]=!0,!0;if(typeof D=="number"&&isNaN(D))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",g),ze[g]=!0,!0;var Le=K(g),rt=Le!==null&&Le.type===z;if(Te.hasOwnProperty(R)){var st=Te[R];if(st!==g)return a("Invalid DOM property `%s`. Did you mean `%s`?",g,st),ze[g]=!0,!0}else if(!rt&&g!==R)return a("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",g,R),ze[g]=!0,!0;return typeof D=="boolean"&&te(g,D,Le,!1)?(D?a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',D,g,g,D,g):a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',D,g,g,D,g,g,g),ze[g]=!0,!0):rt?!0:te(g,D,Le,!1)?(ze[g]=!0,!1):((D==="false"||D==="true")&&Le!==null&&Le.type===J&&(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",D,g,D==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',g,D),ze[g]=!0),!0)}}var Wt=function(d,g,D){{var I=[];for(var R in g){var X=Ee(d,R,g[R],D);X||I.push(R)}var ie=I.map(function(De){return"`"+De+"`"}).join(", ");I.length===1?a("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ie,d):I.length>1&&a("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ie,d)}};function pr(d,g,D){Ne(d,g)||Wt(d,g,D)}var Yt=function(){};{var Cr=/^(?:webkit|moz|o)[A-Z]/,gr=/^-ms-/,Or=/-(.)/g,Nr=/;\s*$/,xr={},Mr={},cn=!1,cr=!1,wr=function(d){return d.replace(Or,function(g,D){return D.toUpperCase()})},Er=function(d){xr.hasOwnProperty(d)&&xr[d]||(xr[d]=!0,a("Unsupported style property %s. Did you mean %s?",d,wr(d.replace(gr,"ms-"))))},It=function(d){xr.hasOwnProperty(d)&&xr[d]||(xr[d]=!0,a("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},Gr=function(d,g){Mr.hasOwnProperty(g)&&Mr[g]||(Mr[g]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,g.replace(Nr,"")))},Tn=function(d,g){cn||(cn=!0,a("`NaN` is an invalid value for the `%s` css style property.",d))},kn=function(d,g){cr||(cr=!0,a("`Infinity` is an invalid value for the `%s` css style property.",d))};Yt=function(d,g){d.indexOf("-")>-1?Er(d):Cr.test(d)?It(d):Nr.test(g)&&Gr(d,g),typeof g=="number"&&(isNaN(g)?Tn(d,g):isFinite(g)||kn(d,g))}}var Rr=Yt,_n=/["'&<>]/;function Zr(d){L(d);var g=""+d,D=_n.exec(g);if(!D)return g;var I,R="",X,ie=0;for(X=D.index;X<g.length;X++){switch(g.charCodeAt(X)){case 34:I=""";break;case 38:I="&";break;case 39:I="'";break;case 60:I="<";break;case 62:I=">";break;default:continue}ie!==X&&(R+=g.substring(ie,X)),ie=X+1,R+=I}return ie!==X?R+g.substring(ie,X):R}function Xt(d){return typeof d=="boolean"||typeof d=="number"?""+d:Zr(d)}var ia=/([A-Z])/g,sa=/^ms-/;function la(d){return d.replace(ia,"-$1").toLowerCase().replace(sa,"-ms-")}var tr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ua=!1;function Ya(d){!ua&&tr.test(d)&&(ua=!0,a("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(d)))}var Ja=Array.isArray;function q(d){return Ja(d)}var _e="<script>",Je="<\/script>",ct='<script src="',wt='<script type="module" src="',Ft='" async=""><\/script>';function Dt(d){return L(d),(""+d).replace(xt,rr)}var xt=/(<\/|<)(s)(cript)/gi,rr=function(d,g,D,I){return""+g+(D==="s"?"\\u0073":"\\u0053")+I};function Nt(d,g,D,I,R){var X=d===void 0?"":d,ie=g===void 0?_e:'<script nonce="'+Xt(g)+'">',De=[];if(D!==void 0&&De.push(ie,Dt(D),Je),I!==void 0)for(var Le=0;Le<I.length;Le++)De.push(ct,Xt(I[Le]),Ft);if(R!==void 0)for(var rt=0;rt<R.length;rt++)De.push(wt,Xt(R[rt]),Ft);return{bootstrapChunks:De,startInlineScript:ie,placeholderPrefix:X+"P:",segmentPrefix:X+"S:",boundaryPrefix:X+"B:",idPrefix:X,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Mt=0,Jt=1,Ir=2,dn=3,nr=4,ar=5,fn=6,Qr=7;function vr(d,g){return{insertionMode:d,selectedValue:g}}function Fa(d,g,D){switch(g){case"select":return vr(Jt,D.value!=null?D.value:D.defaultValue);case"svg":return vr(Ir,null);case"math":return vr(dn,null);case"foreignObject":return vr(Jt,null);case"table":return vr(nr,null);case"thead":case"tbody":case"tfoot":return vr(ar,null);case"colgroup":return vr(Qr,null);case"tr":return vr(fn,null)}return d.insertionMode>=nr||d.insertionMode===Mt?vr(Jt,null):d}var hn=null;function pn(d){var g=d.nextSuspenseID++;return d.boundaryPrefix+g.toString(16)}function Tr(d,g,D){var I=d.idPrefix,R=":"+I+"R"+g;return D>0&&(R+="H"+D.toString(32)),R+":"}function Bn(d){return Xt(d)}var Wn="<!-- -->";function Qa(d,g,D,I){return g===""?I:(I&&d.push(Wn),d.push(Bn(g)),!0)}function Ka(d,g,D,I){D&&I&&d.push(Wn)}var ja=new Map;function Vn(d){var g=ja.get(d);if(g!==void 0)return g;var D=Xt(la(d));return ja.set(d,D),D}var qa=' style="',Ia=":",Ta=";";function y(d,g,D){if(typeof D!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var I=!0;for(var R in D)if(M.call(D,R)){var X=D[R];if(!(X==null||typeof X=="boolean"||X==="")){var ie=void 0,De=void 0,Le=R.indexOf("--")===0;Le?(ie=Xt(R),O(X,R),De=Xt((""+X).trim())):(Rr(R,X),ie=Vn(R),typeof X=="number"?X!==0&&!M.call(me,R)?De=X+"px":De=""+X:(O(X,R),De=Xt((""+X).trim()))),I?(I=!1,d.push(qa,ie,Ia,De)):d.push(Ta,ie,Ia,De)}}I||d.push(Z)}var T=" ",_='="',Z='"',ye='=""';function pe(d,g,D,I){switch(D){case"style":{y(d,g,I);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(D.length>2&&(D[0]==="o"||D[0]==="O")&&(D[1]==="n"||D[1]==="N"))){var R=K(D);if(R!==null){switch(typeof I){case"function":case"symbol":return;case"boolean":if(!R.acceptsBooleans)return}var X=R.attributeName,ie=X;switch(R.type){case J:I&&d.push(T,ie,ye);return;case ge:I===!0?d.push(T,ie,ye):I===!1||d.push(T,ie,_,Xt(I),Z);return;case xe:isNaN(I)||d.push(T,ie,_,Xt(I),Z);break;case Q:!isNaN(I)&&I>=1&&d.push(T,ie,_,Xt(I),Z);break;default:R.sanitizeURL&&(j(I,X),I=""+I,Ya(I)),d.push(T,ie,_,Xt(I),Z)}}else if(ne(D)){switch(typeof I){case"function":case"symbol":return;case"boolean":{var De=D.toLowerCase().slice(0,5);if(De!=="data-"&&De!=="aria-")return}}d.push(T,D,_,Xt(I),Z)}}}var ke=">",Ue="/>";function it(d,g,D){if(g!=null){if(D!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof g!="object"||!("__html"in g))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var I=g.__html;I!=null&&(L(I),d.push(""+I))}}var ft=!1,ut=!1,Bt=!1,$r=!1,Dr=!1,Sr=!1,Pn=!1;function Kr(d,g){{var D=d[g];if(D!=null){var I=q(D);d.multiple&&!I?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",g):!d.multiple&&I&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",g)}}}function ka(d,g,D){Ke("select",g),Kr(g,"value"),Kr(g,"defaultValue"),g.value!==void 0&&g.defaultValue!==void 0&&!Bt&&(a("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Bt=!0),d.push(Lr("select"));var I=null,R=null;for(var X in g)if(M.call(g,X)){var ie=g[X];if(ie==null)continue;switch(X){case"children":I=ie;break;case"dangerouslySetInnerHTML":R=ie;break;case"defaultValue":case"value":break;default:pe(d,D,X,ie);break}}return d.push(ke),it(d,R,I),I}function Hn(d){var g="";return e.Children.forEach(d,function(D){D!=null&&(g+=D,!Dr&&typeof D!="string"&&typeof D!="number"&&(Dr=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),g}var ca=' selected=""';function On(d,g,D,I){var R=I.selectedValue;d.push(Lr("option"));var X=null,ie=null,De=null,Le=null;for(var rt in g)if(M.call(g,rt)){var st=g[rt];if(st==null)continue;switch(rt){case"children":X=st;break;case"selected":De=st,Pn||(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pn=!0);break;case"dangerouslySetInnerHTML":Le=st;break;case"value":ie=st;default:pe(d,D,rt,st);break}}if(R!=null){var mt;if(ie!==null?(j(ie,"value"),mt=""+ie):(Le!==null&&(Sr||(Sr=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),mt=Hn(X)),q(R))for(var Qt=0;Qt<R.length;Qt++){j(R[Qt],"value");var Fr=""+R[Qt];if(Fr===mt){d.push(ca);break}}else j(R,"select.value"),""+R===mt&&d.push(ca)}else De&&d.push(ca);return d.push(ke),it(d,Le,X),X}function eo(d,g,D){Ke("input",g),g.checked!==void 0&&g.defaultChecked!==void 0&&!ut&&(a("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",g.type),ut=!0),g.value!==void 0&&g.defaultValue!==void 0&&!ft&&(a("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",g.type),ft=!0),d.push(Lr("input"));var I=null,R=null,X=null,ie=null;for(var De in g)if(M.call(g,De)){var Le=g[De];if(Le==null)continue;switch(De){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ie=Le;break;case"defaultValue":R=Le;break;case"checked":X=Le;break;case"value":I=Le;break;default:pe(d,D,De,Le);break}}return X!==null?pe(d,D,"checked",X):ie!==null&&pe(d,D,"checked",ie),I!==null?pe(d,D,"value",I):R!==null&&pe(d,D,"value",R),d.push(Ue),null}function xu(d,g,D){Ke("textarea",g),g.value!==void 0&&g.defaultValue!==void 0&&!$r&&(a("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),$r=!0),d.push(Lr("textarea"));var I=null,R=null,X=null;for(var ie in g)if(M.call(g,ie)){var De=g[ie];if(De==null)continue;switch(ie){case"children":X=De;break;case"value":I=De;break;case"defaultValue":R=De;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:pe(d,D,ie,De);break}}if(I===null&&R!==null&&(I=R),d.push(ke),X!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),I!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(q(X)){if(X.length>1)throw new Error("<textarea> can only have at most one child.");L(X[0]),I=""+X[0]}L(X),I=""+X}return typeof I=="string"&&I[0]===`
|
|
154
|
+
`&&d.push(to),I!==null&&(j(I,"value"),d.push(Bn(""+I))),null}function yu(d,g,D,I){d.push(Lr(D));for(var R in g)if(M.call(g,R)){var X=g[R];if(X==null)continue;switch(R){case"children":case"dangerouslySetInnerHTML":throw new Error(D+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pe(d,I,R,X);break}}return d.push(Ue),null}function Ci(d,g,D){d.push(Lr("menuitem"));for(var I in g)if(M.call(g,I)){var R=g[I];if(R==null)continue;switch(I){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:pe(d,D,I,R);break}}return d.push(ke),null}function Cu(d,g,D){d.push(Lr("title"));var I=null;for(var R in g)if(M.call(g,R)){var X=g[R];if(X==null)continue;switch(R){case"children":I=X;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:pe(d,D,R,X);break}}d.push(ke);{var ie=Array.isArray(I)&&I.length<2?I[0]||null:I;Array.isArray(I)&&I.length>1?a("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ie!=null&&ie.$$typeof!=null?a("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ie!=null&&typeof ie!="string"&&typeof ie!="number"&&a("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return I}function wi(d,g,D,I){d.push(Lr(D));var R=null,X=null;for(var ie in g)if(M.call(g,ie)){var De=g[ie];if(De==null)continue;switch(ie){case"children":R=De;break;case"dangerouslySetInnerHTML":X=De;break;default:pe(d,I,ie,De);break}}return d.push(ke),it(d,X,R),typeof R=="string"?(d.push(Bn(R)),null):R}function Nn(d,g,D,I){d.push(Lr(D));var R=null,X=null;for(var ie in g)if(M.call(g,ie)){var De=g[ie];if(De==null)continue;switch(ie){case"children":R=De;break;case"dangerouslySetInnerHTML":X=De;break;case"style":y(d,I,De);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ne(ie)&&typeof De!="function"&&typeof De!="symbol"&&d.push(T,ie,_,Xt(De),Z);break}}return d.push(ke),it(d,X,R),R}var to=`
|
|
155
|
+
`;function ko(d,g,D,I){d.push(Lr(D));var R=null,X=null;for(var ie in g)if(M.call(g,ie)){var De=g[ie];if(De==null)continue;switch(ie){case"children":R=De;break;case"dangerouslySetInnerHTML":X=De;break;default:pe(d,I,ie,De);break}}if(d.push(ke),X!=null){if(R!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof X!="object"||!("__html"in X))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Le=X.__html;Le!=null&&(typeof Le=="string"&&Le.length>0&&Le[0]===`
|
|
156
|
+
`?d.push(to,Le):(L(Le),d.push(""+Le)))}return typeof R=="string"&&R[0]===`
|
|
157
|
+
`&&d.push(to),R}var Zt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,zn=new Map;function Lr(d){var g=zn.get(d);if(g===void 0){if(!Zt.test(d))throw new Error("Invalid tag: "+d);g="<"+d,zn.set(d,g)}return g}var da="<!DOCTYPE html>";function Gn(d,g,D,I,R){switch(Ie(g,D),He(g,D),pr(g,D,null),!D.suppressContentEditableWarning&&D.contentEditable&&D.children!=null&&a("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),R.insertionMode!==Ir&&R.insertionMode!==dn&&g.indexOf("-")===-1&&typeof D.is!="string"&&g.toLowerCase()!==g&&a("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",g),g){case"select":return ka(d,D,I);case"option":return On(d,D,I,R);case"textarea":return xu(d,D,I);case"input":return eo(d,D,I);case"menuitem":return Ci(d,D,I);case"title":return Cu(d,D,I);case"listing":case"pre":return ko(d,D,g,I);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return yu(d,D,g,I);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return wi(d,D,g,I);case"html":return R.insertionMode===Mt&&d.push(da),wi(d,D,g,I);default:return g.indexOf("-")===-1&&typeof D.is!="string"?wi(d,D,g,I):Nn(d,D,g,I)}}var Bo="</",Zn=">";function qr(d,g,D){switch(g){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:d.push(Bo,g,Zn)}}function Ei(d,g){for(var D=g.bootstrapChunks,I=0;I<D.length-1;I++)u(d,D[I]);return I<D.length?c(d,D[I]):!0}var Di='<template id="',Is='"></template>';function Ts(d,g,D){u(d,Di),u(d,g.placeholderPrefix);var I=D.toString(16);return u(d,I),c(d,Is)}var ks="<!--$-->",wu='<!--$?--><template id="',Eu='"></template>',Po="<!--$!-->",Oo="<!--/$-->",No="<template",ro='"',Du=' data-dgst="',no=' data-msg="',Si=' data-stck="',Ai="></template>";function Ba(d,g){return c(d,ks)}function Pa(d,g,D){if(u(d,wu),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(d,D),c(d,Eu)}function Mo(d,g,D,I,R){var X;return X=c(d,Po),u(d,No),D&&(u(d,Du),u(d,Xt(D)),u(d,ro)),I&&(u(d,no),u(d,Xt(I)),u(d,ro)),R&&(u(d,Si),u(d,Xt(R)),u(d,ro)),X=c(d,Ai),X}function Bs(d,g){return c(d,Oo)}function Fi(d,g){return c(d,Oo)}function Ps(d,g){return c(d,Oo)}var Ro='<div hidden id="',_r='">',Os="</div>",$o='<svg aria-hidden="true" style="display:none" id="',Su='">',Ns="</svg>",Lo='<math aria-hidden="true" style="display:none" id="',Ms='">',Rs="</math>",_o='<table hidden id="',Wo='">',$s="</table>",Ls='<table hidden><tbody id="',_s='">',ji="</tbody></table>",Ws='<table hidden><tr id="',w='">',k="</tr></table>",$='<table hidden><colgroup id="',U='">',Ce="</colgroup></table>";function ve(d,g,D,I){switch(D.insertionMode){case Mt:case Jt:return u(d,Ro),u(d,g.segmentPrefix),u(d,I.toString(16)),c(d,_r);case Ir:return u(d,$o),u(d,g.segmentPrefix),u(d,I.toString(16)),c(d,Su);case dn:return u(d,Lo),u(d,g.segmentPrefix),u(d,I.toString(16)),c(d,Ms);case nr:return u(d,_o),u(d,g.segmentPrefix),u(d,I.toString(16)),c(d,Wo);case ar:return u(d,Ls),u(d,g.segmentPrefix),u(d,I.toString(16)),c(d,_s);case fn:return u(d,Ws),u(d,g.segmentPrefix),u(d,I.toString(16)),c(d,w);case Qr:return u(d,$),u(d,g.segmentPrefix),u(d,I.toString(16)),c(d,U);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Oe(d,g){switch(g.insertionMode){case Mt:case Jt:return c(d,Os);case Ir:return c(d,Ns);case dn:return c(d,Rs);case nr:return c(d,$s);case ar:return c(d,ji);case fn:return c(d,k);case Qr:return c(d,Ce);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Xe="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",ht='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Et='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Ct=Xe+';$RS("',Ut='$RS("',Wr='","',en='")<\/script>';function tn(d,g,D){u(d,g.startInlineScript),g.sentCompleteSegmentFunction?u(d,Ut):(g.sentCompleteSegmentFunction=!0,u(d,Ct)),u(d,g.segmentPrefix);var I=D.toString(16);return u(d,I),u(d,Wr),u(d,g.placeholderPrefix),u(d,I),c(d,en)}var Vo=ht+';$RC("',Vs='$RC("',Ii='","',om='")<\/script>';function im(d,g,D,I){if(u(d,g.startInlineScript),g.sentCompleteBoundaryFunction?u(d,Vs):(g.sentCompleteBoundaryFunction=!0,u(d,Vo)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var R=I.toString(16);return u(d,D),u(d,Ii),u(d,g.segmentPrefix),u(d,R),c(d,om)}var sm=Et+';$RX("',lm='$RX("',um='"',cm=")<\/script>",Au=",";function dm(d,g,D,I,R,X){if(u(d,g.startInlineScript),g.sentClientRenderFunction?u(d,lm):(g.sentClientRenderFunction=!0,u(d,sm)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(d,D),u(d,um),(I||R||X)&&(u(d,Au),u(d,Fu(I||""))),(R||X)&&(u(d,Au),u(d,Fu(R||""))),X&&(u(d,Au),u(d,Fu(X))),c(d,cm)}var fm=/[<\u2028\u2029]/g;function Fu(d){var g=JSON.stringify(d);return g.replace(fm,function(D){switch(D){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function hm(d,g){var D=Nt(g,void 0);return{bootstrapChunks:D.bootstrapChunks,startInlineScript:D.startInlineScript,placeholderPrefix:D.placeholderPrefix,segmentPrefix:D.segmentPrefix,boundaryPrefix:D.boundaryPrefix,idPrefix:D.idPrefix,nextSuspenseID:D.nextSuspenseID,sentCompleteSegmentFunction:D.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:D.sentCompleteBoundaryFunction,sentClientRenderFunction:D.sentClientRenderFunction,generateStaticMarkup:d}}function ju(){return{insertionMode:Jt,selectedValue:null}}function af(d,g,D,I){return D.generateStaticMarkup?(d.push(Xt(g)),!1):Qa(d,g,D,I)}function of(d,g,D,I){if(!g.generateStaticMarkup)return Ka(d,g,D,I)}function Iu(d,g){return g.generateStaticMarkup?!0:Ba(d)}function gn(d,g,D,I,R){return g.generateStaticMarkup?!0:Mo(d,g,D,I,R)}function pm(d,g){return g.generateStaticMarkup?!0:Bs(d)}function sf(d,g){return g.generateStaticMarkup?!0:Ps(d)}var rn=Object.assign,lf=Symbol.for("react.element"),Tu=Symbol.for("react.portal"),Hs=Symbol.for("react.fragment"),zs=Symbol.for("react.strict_mode"),Gs=Symbol.for("react.profiler"),Ti=Symbol.for("react.provider"),ki=Symbol.for("react.context"),Bi=Symbol.for("react.forward_ref"),Ho=Symbol.for("react.suspense"),ku=Symbol.for("react.suspense_list"),Bu=Symbol.for("react.memo"),Zs=Symbol.for("react.lazy"),gm=Symbol.for("react.scope"),uf=Symbol.for("react.debug_trace_mode"),mm=Symbol.for("react.legacy_hidden"),vm=Symbol.for("react.default_value"),cf=Symbol.iterator,df="@@iterator";function sr(d){if(d===null||typeof d!="object")return null;var g=cf&&d[cf]||d[df];return typeof g=="function"?g:null}function Pi(d,g,D){var I=d.displayName;if(I)return I;var R=g.displayName||g.name||"";return R!==""?D+"("+R+")":D}function Pu(d){return d.displayName||"Context"}function or(d){if(d==null)return null;if(typeof d.tag=="number"&&a("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case Hs:return"Fragment";case Tu:return"Portal";case Gs:return"Profiler";case zs:return"StrictMode";case Ho:return"Suspense";case ku:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case ki:var g=d;return Pu(g)+".Consumer";case Ti:var D=d;return Pu(D._context)+".Provider";case Bi:return Pi(d,d.render,"ForwardRef");case Bu:var I=d.displayName||null;return I!==null?I:or(d.type)||"Memo";case Zs:{var R=d,X=R._payload,ie=R._init;try{return or(ie(X))}catch{return null}}}return null}var zo=0,Ou,Nu,Mu,Ru,$u,ff,hf;function Us(){}Us.__reactDisabledLog=!0;function Lu(){{if(zo===0){Ou=console.log,Nu=console.info,Mu=console.warn,Ru=console.error,$u=console.group,ff=console.groupCollapsed,hf=console.groupEnd;var d={configurable:!0,enumerable:!0,value:Us,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}zo++}}function Oi(){{if(zo--,zo===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rn({},d,{value:Ou}),info:rn({},d,{value:Nu}),warn:rn({},d,{value:Mu}),error:rn({},d,{value:Ru}),group:rn({},d,{value:$u}),groupCollapsed:rn({},d,{value:ff}),groupEnd:rn({},d,{value:hf})})}zo<0&&a("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ni=r.ReactCurrentDispatcher,Go;function Mi(d,g,D){{if(Go===void 0)try{throw Error()}catch(R){var I=R.stack.trim().match(/\n( *(at )?)/);Go=I&&I[1]||""}return`
|
|
158
|
+
`+Go+d}}var Ri=!1,Xs;{var pf=typeof WeakMap=="function"?WeakMap:Map;Xs=new pf}function _u(d,g){if(!d||Ri)return"";{var D=Xs.get(d);if(D!==void 0)return D}var I;Ri=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var X;X=Ni.current,Ni.current=null,Lu();try{if(g){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(xn){I=xn}Reflect.construct(d,[],ie)}else{try{ie.call()}catch(xn){I=xn}d.call(ie.prototype)}}else{try{throw Error()}catch(xn){I=xn}d()}}catch(xn){if(xn&&I&&typeof xn.stack=="string"){for(var De=xn.stack.split(`
|
|
159
|
+
`),Le=I.stack.split(`
|
|
160
|
+
`),rt=De.length-1,st=Le.length-1;rt>=1&&st>=0&&De[rt]!==Le[st];)st--;for(;rt>=1&&st>=0;rt--,st--)if(De[rt]!==Le[st]){if(rt!==1||st!==1)do if(rt--,st--,st<0||De[rt]!==Le[st]){var mt=`
|
|
161
|
+
`+De[rt].replace(" at new "," at ");return d.displayName&&mt.includes("<anonymous>")&&(mt=mt.replace("<anonymous>",d.displayName)),typeof d=="function"&&Xs.set(d,mt),mt}while(rt>=1&&st>=0);break}}}finally{Ri=!1,Ni.current=X,Oi(),Error.prepareStackTrace=R}var Qt=d?d.displayName||d.name:"",Fr=Qt?Mi(Qt):"";return typeof d=="function"&&Xs.set(d,Fr),Fr}function Wu(d,g,D){return _u(d,!0)}function Vu(d,g,D){return _u(d,!1)}function gf(d){var g=d.prototype;return!!(g&&g.isReactComponent)}function Zo(d,g,D){if(d==null)return"";if(typeof d=="function")return _u(d,gf(d));if(typeof d=="string")return Mi(d);switch(d){case Ho:return Mi("Suspense");case ku:return Mi("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case Bi:return Vu(d.render);case Bu:return Zo(d.type,g,D);case Zs:{var I=d,R=I._payload,X=I._init;try{return Zo(X(R),g,D)}catch{}}}return""}var Hu={},Ys=r.ReactDebugCurrentFrame;function ao(d){if(d){var g=d._owner,D=Zo(d.type,d._source,g?g.type:null);Ys.setExtraStackFrame(D)}else Ys.setExtraStackFrame(null)}function zu(d,g,D,I,R){{var X=Function.call.bind(M);for(var ie in d)if(X(d,ie)){var De=void 0;try{if(typeof d[ie]!="function"){var Le=Error((I||"React class")+": "+D+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}De=d[ie](g,ie,I,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(rt){De=rt}De&&!(De instanceof Error)&&(ao(R),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",D,ie,typeof De),ao(null)),De instanceof Error&&!(De.message in Hu)&&(Hu[De.message]=!0,ao(R),a("Failed %s type: %s",D,De.message),ao(null))}}}var Gu;Gu={};var Oa={};Object.freeze(Oa);function mf(d,g){{var D=d.contextTypes;if(!D)return Oa;var I={};for(var R in D)I[R]=g[R];{var X=or(d)||"Unknown";zu(D,I,"context",X)}return I}}function oo(d,g,D,I){{if(typeof d.getChildContext!="function"){{var R=or(g)||"Unknown";Gu[R]||(Gu[R]=!0,a("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",R,R))}return D}var X=d.getChildContext();for(var ie in X)if(!(ie in I))throw new Error((or(g)||"Unknown")+'.getChildContext(): key "'+ie+'" is not defined in childContextTypes.');{var De=or(g)||"Unknown";zu(I,X,"child context",De)}return rn({},D,X)}}var io;io={};var Zu=null,Un=null;function Js(d){d.context._currentValue2=d.parentValue}function Qs(d){d.context._currentValue2=d.value}function $i(d,g){if(d!==g){Js(d);var D=d.parent,I=g.parent;if(D===null){if(I!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(I===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");$i(D,I)}Qs(g)}}function Uu(d){Js(d);var g=d.parent;g!==null&&Uu(g)}function Li(d){var g=d.parent;g!==null&&Li(g),Qs(d)}function vf(d,g){Js(d);var D=d.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");D.depth===g.depth?$i(D,g):vf(D,g)}function bf(d,g){var D=g.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===D.depth?$i(d,D):bf(d,D),Qs(g)}function Ks(d){var g=Un,D=d;g!==D&&(g===null?Li(D):D===null?Uu(g):g.depth===D.depth?$i(g,D):g.depth>D.depth?vf(g,D):bf(g,D),Un=D)}function _i(d,g){var D;D=d._currentValue2,d._currentValue2=g,d._currentRenderer2!==void 0&&d._currentRenderer2!==null&&d._currentRenderer2!==io&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),d._currentRenderer2=io;var I=Un,R={parent:I,depth:I===null?0:I.depth+1,context:d,parentValue:D,value:g};return Un=R,R}function Xu(d){var g=Un;if(g===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");g.context!==d&&a("The parent context is not the expected context. This is probably a bug in React.");{var D=g.parentValue;D===vm?g.context._currentValue2=g.context._defaultValue:g.context._currentValue2=D,d._currentRenderer2!==void 0&&d._currentRenderer2!==null&&d._currentRenderer2!==io&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),d._currentRenderer2=io}return Un=g.parent}function bm(){return Un}function Uo(d){var g=d._currentValue2;return g}function qs(d){return d._reactInternals}function Yu(d,g){d._reactInternals=g}var el={},tl={},Wi,rl,Xo,Vi,nl,Yo,al,ol,il;{Wi=new Set,rl=new Set,Xo=new Set,al=new Set,Vi=new Set,ol=new Set,il=new Set;var xf=new Set;Yo=function(d,g){if(!(d===null||typeof d=="function")){var D=g+"_"+d;xf.has(D)||(xf.add(D),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",g,d))}},nl=function(d,g){if(g===void 0){var D=or(d)||"Component";Vi.has(D)||(Vi.add(D),a("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",D))}}}function yf(d,g){{var D=d.constructor,I=D&&or(D)||"ReactClass",R=I+"."+g;if(el[R])return;a(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
162
|
+
|
|
163
|
+
Please check the code for the %s component.`,g,g,I),el[R]=!0}}var Cf={isMounted:function(d){return!1},enqueueSetState:function(d,g,D){var I=qs(d);I.queue===null?yf(d,"setState"):(I.queue.push(g),D!=null&&Yo(D,"setState"))},enqueueReplaceState:function(d,g,D){var I=qs(d);I.replace=!0,I.queue=[g],D!=null&&Yo(D,"setState")},enqueueForceUpdate:function(d,g){var D=qs(d);D.queue===null?yf(d,"forceUpdate"):g!=null&&Yo(g,"setState")}};function xm(d,g,D,I,R){var X=D(R,I);nl(g,X);var ie=X==null?I:rn({},I,X);return ie}function ym(d,g,D){var I=Oa,R=d.contextType;if("contextType"in d){var X=R===null||R!==void 0&&R.$$typeof===ki&&R._context===void 0;if(!X&&!il.has(d)){il.add(d);var ie="";R===void 0?ie=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof R!="object"?ie=" However, it is set to a "+typeof R+".":R.$$typeof===Ti?ie=" Did you accidentally pass the Context.Provider instead?":R._context!==void 0?ie=" Did you accidentally pass the Context.Consumer instead?":ie=" However, it is set to an object with keys {"+Object.keys(R).join(", ")+"}.",a("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",or(d)||"Component",ie)}}typeof R=="object"&&R!==null?I=Uo(R):I=D;var De=new d(g,I);{if(typeof d.getDerivedStateFromProps=="function"&&(De.state===null||De.state===void 0)){var Le=or(d)||"Component";Wi.has(Le)||(Wi.add(Le),a("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Le,De.state===null?"null":"undefined",Le))}if(typeof d.getDerivedStateFromProps=="function"||typeof De.getSnapshotBeforeUpdate=="function"){var rt=null,st=null,mt=null;if(typeof De.componentWillMount=="function"&&De.componentWillMount.__suppressDeprecationWarning!==!0?rt="componentWillMount":typeof De.UNSAFE_componentWillMount=="function"&&(rt="UNSAFE_componentWillMount"),typeof De.componentWillReceiveProps=="function"&&De.componentWillReceiveProps.__suppressDeprecationWarning!==!0?st="componentWillReceiveProps":typeof De.UNSAFE_componentWillReceiveProps=="function"&&(st="UNSAFE_componentWillReceiveProps"),typeof De.componentWillUpdate=="function"&&De.componentWillUpdate.__suppressDeprecationWarning!==!0?mt="componentWillUpdate":typeof De.UNSAFE_componentWillUpdate=="function"&&(mt="UNSAFE_componentWillUpdate"),rt!==null||st!==null||mt!==null){var Qt=or(d)||"Component",Fr=typeof d.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Xo.has(Qt)||(Xo.add(Qt),a(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
164
|
+
|
|
165
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
166
|
+
|
|
167
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
168
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Qt,Fr,rt!==null?`
|
|
169
|
+
`+rt:"",st!==null?`
|
|
170
|
+
`+st:"",mt!==null?`
|
|
171
|
+
`+mt:""))}}}return De}function wf(d,g,D){{var I=or(g)||"Component",R=d.render;R||(g.prototype&&typeof g.prototype.render=="function"?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",I):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",I)),d.getInitialState&&!d.getInitialState.isReactClassApproved&&!d.state&&a("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",I),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&a("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",I),d.propTypes&&a("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",I),d.contextType&&a("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",I),d.contextTypes&&a("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",I),g.contextType&&g.contextTypes&&!ol.has(g)&&(ol.add(g),a("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",I)),typeof d.componentShouldUpdate=="function"&&a("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",I),g.prototype&&g.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&a("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",or(g)||"A pure component"),typeof d.componentDidUnmount=="function"&&a("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",I),typeof d.componentDidReceiveProps=="function"&&a("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",I),typeof d.componentWillRecieveProps=="function"&&a("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",I),typeof d.UNSAFE_componentWillRecieveProps=="function"&&a("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",I);var X=d.props!==D;d.props!==void 0&&X&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",I,I),d.defaultProps&&a("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",I,I),typeof d.getSnapshotBeforeUpdate=="function"&&typeof d.componentDidUpdate!="function"&&!rl.has(g)&&(rl.add(g),a("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",or(g))),typeof d.getDerivedStateFromProps=="function"&&a("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof d.getDerivedStateFromError=="function"&&a("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof g.getSnapshotBeforeUpdate=="function"&&a("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",I);var ie=d.state;ie&&(typeof ie!="object"||q(ie))&&a("%s.state: must be set to an object or null",I),typeof d.getChildContext=="function"&&typeof g.childContextTypes!="object"&&a("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",I)}}function Cm(d,g){var D=g.state;if(typeof g.componentWillMount=="function"){if(g.componentWillMount.__suppressDeprecationWarning!==!0){var I=or(d)||"Unknown";tl[I]||(n(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
172
|
+
|
|
173
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
174
|
+
|
|
175
|
+
Please update the following components: %s`,I),tl[I]=!0)}g.componentWillMount()}typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),D!==g.state&&(a("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",or(d)||"Component"),Cf.enqueueReplaceState(g,g.state,null))}function wm(d,g,D,I){if(d.queue!==null&&d.queue.length>0){var R=d.queue,X=d.replace;if(d.queue=null,d.replace=!1,X&&R.length===1)g.state=R[0];else{for(var ie=X?R[0]:g.state,De=!0,Le=X?1:0;Le<R.length;Le++){var rt=R[Le],st=typeof rt=="function"?rt.call(g,ie,D,I):rt;st!=null&&(De?(De=!1,ie=rn({},ie,st)):rn(ie,st))}g.state=ie}}else d.queue=null}function sl(d,g,D,I){wf(d,g,D);var R=d.state!==void 0?d.state:null;d.updater=Cf,d.props=D,d.state=R;var X={queue:[],replace:!1};Yu(d,X);var ie=g.contextType;if(typeof ie=="object"&&ie!==null?d.context=Uo(ie):d.context=I,d.state===D){var De=or(g)||"Component";al.has(De)||(al.add(De),a("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",De))}var Le=g.getDerivedStateFromProps;typeof Le=="function"&&(d.state=xm(d,g,Le,R,D)),typeof g.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(Cm(g,d),wm(X,d,D,I))}var ll={id:1,overflow:""};function Em(d){var g=d.overflow,D=d.id,I=D&~Dm(D);return I.toString(32)+g}function Ju(d,g,D){var I=d.id,R=d.overflow,X=ul(I)-1,ie=I&~(1<<X),De=D+1,Le=ul(g)+X;if(Le>30){var rt=X-X%5,st=(1<<rt)-1,mt=(ie&st).toString(32),Qt=ie>>rt,Fr=X-rt,xn=ul(g)+Fr,zf=De<<Fr,Gf=zf|Qt,Zf=mt+R;return{id:1<<xn|Gf,overflow:Zf}}else{var Sl=De<<X,pN=Sl|ie,gN=R;return{id:1<<Le|pN,overflow:gN}}}function ul(d){return 32-Sm(d)}function Dm(d){return 1<<ul(d)-1}var Sm=Math.clz32?Math.clz32:fa,Am=Math.log,Fm=Math.LN2;function fa(d){var g=d>>>0;return g===0?32:31-(Am(g)/Fm|0)|0}function Qu(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}var cl=typeof Object.is=="function"?Object.is:Qu,Pt=null,so=null,lo=null,Vt=null,mn=!1,uo=!1,dl=0,Ar=null,ha=0,co=25,Xn=!1,fo;function pa(){if(Pt===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
176
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
177
|
+
2. You might be breaking the Rules of Hooks
|
|
178
|
+
3. You might have more than one copy of React in the same app
|
|
179
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Xn&&a("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Pt}function jm(d,g){if(g===null)return a("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",fo),!1;d.length!==g.length&&a(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
180
|
+
|
|
181
|
+
Previous: %s
|
|
182
|
+
Incoming: %s`,fo,"["+d.join(", ")+"]","["+g.join(", ")+"]");for(var D=0;D<g.length&&D<d.length;D++)if(!cl(d[D],g[D]))return!1;return!0}function Ef(){if(ha>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function fl(){return Vt===null?lo===null?(mn=!1,lo=Vt=Ef()):(mn=!0,Vt=lo):Vt.next===null?(mn=!1,Vt=Vt.next=Ef()):(mn=!0,Vt=Vt.next),Vt}function Ku(d,g){Pt=g,so=d,Xn=!1,dl=0}function Im(d,g,D,I){for(;uo;)uo=!1,dl=0,ha+=1,Vt=null,D=d(g,I);return Hi(),D}function Df(){var d=dl!==0;return d}function Hi(){Xn=!1,Pt=null,so=null,uo=!1,lo=null,ha=0,Ar=null,Vt=null}function Tm(d){return Xn&&a("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Uo(d)}function Sf(d){return fo="useContext",pa(),Uo(d)}function hl(d,g){return typeof g=="function"?g(d):g}function km(d){return fo="useState",Af(hl,d)}function Af(d,g,D){if(d!==hl&&(fo="useReducer"),Pt=pa(),Vt=fl(),mn){var I=Vt.queue,R=I.dispatch;if(Ar!==null){var X=Ar.get(I);if(X!==void 0){Ar.delete(I);var ie=Vt.memoizedState,De=X;do{var Le=De.action;Xn=!0,ie=d(ie,Le),Xn=!1,De=De.next}while(De!==null);return Vt.memoizedState=ie,[ie,R]}}return[Vt.memoizedState,R]}else{Xn=!0;var rt;d===hl?rt=typeof g=="function"?g():g:rt=D!==void 0?D(g):g,Xn=!1,Vt.memoizedState=rt;var st=Vt.queue={last:null,dispatch:null},mt=st.dispatch=Om.bind(null,Pt,st);return[Vt.memoizedState,mt]}}function Ff(d,g){Pt=pa(),Vt=fl();var D=g===void 0?null:g;if(Vt!==null){var I=Vt.memoizedState;if(I!==null&&D!==null){var R=I[1];if(jm(D,R))return I[0]}}Xn=!0;var X=d();return Xn=!1,Vt.memoizedState=[X,D],X}function Bm(d){Pt=pa(),Vt=fl();var g=Vt.memoizedState;if(g===null){var D={current:d};return Object.seal(D),Vt.memoizedState=D,D}else return g}function Pm(d,g){fo="useLayoutEffect",a("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Om(d,g,D){if(ha>=co)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(d===Pt){uo=!0;var I={action:D,next:null};Ar===null&&(Ar=new Map);var R=Ar.get(g);if(R===void 0)Ar.set(g,I);else{for(var X=R;X.next!==null;)X=X.next;X.next=I}}}function Nm(d,g){return Ff(function(){return d},g)}function Mm(d,g,D){return pa(),g(d._source)}function Rm(d,g,D){if(D===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return D()}function $m(d){return pa(),d}function pl(){throw new Error("startTransition cannot be called during server rendering.")}function jf(){return pa(),[!1,pl]}function qu(){var d=so,g=Em(d.treeContext),D=Gi;if(D===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var I=dl++;return Tr(D,g,I)}function zi(){}var If={readContext:Tm,useContext:Sf,useMemo:Ff,useReducer:Af,useRef:Bm,useState:km,useInsertionEffect:zi,useLayoutEffect:Pm,useCallback:Nm,useImperativeHandle:zi,useEffect:zi,useDebugValue:zi,useDeferredValue:$m,useTransition:jf,useId:qu,useMutableSource:Mm,useSyncExternalStore:Rm},Gi=null;function gl(d){Gi=d}function ec(d){try{var g="",D=d;do{switch(D.tag){case 0:g+=Mi(D.type,null,null);break;case 1:g+=Vu(D.type,null,null);break;case 2:g+=Wu(D.type,null,null);break}D=D.parent}while(D);return g}catch(I){return`
|
|
183
|
+
Error generating stack: `+I.message+`
|
|
184
|
+
`+I.stack}}var Na=r.ReactCurrentDispatcher,ml=r.ReactDebugCurrentFrame,vl=0,ho=1,Tf=2,tc=3,po=4,Lm=0,kf=1,Yn=2,_m=12800;function Wm(d){return console.error(d),null}function Zi(){}function rc(d,g,D,I,R,X,ie,De,Le){var rt=[],st=new Set,mt={destination:null,responseState:g,progressiveChunkSize:I===void 0?_m:I,status:Lm,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:st,pingedTasks:rt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:R===void 0?Wm:R,onAllReady:X===void 0?Zi:X,onShellReady:ie===void 0?Zi:ie,onShellError:De===void 0?Zi:De,onFatalError:Le===void 0?Zi:Le},Qt=Ma(mt,0,null,D,!1,!1);Qt.parentFlushed=!0;var Fr=Ui(mt,d,null,Qt,st,Oa,Zu,ll);return rt.push(Fr),mt}function bl(d,g){var D=d.pingedTasks;D.push(g),D.length===1&&i(function(){return Vf(d)})}function ga(d,g){return{id:hn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:g,errorDigest:null}}function Ui(d,g,D,I,R,X,ie,De){d.allPendingTasks++,D===null?d.pendingRootTasks++:D.pendingTasks++;var Le={node:g,ping:function(){return bl(d,Le)},blockedBoundary:D,blockedSegment:I,abortSet:R,legacyContext:X,context:ie,treeContext:De};return Le.componentStack=null,R.add(Le),Le}function Ma(d,g,D,I,R,X){return{status:vl,id:-1,index:g,parentFlushed:!1,chunks:[],children:[],formatContext:I,boundary:D,lastPushedText:R,textEmbedded:X}}var Jn=null;function nc(){return Jn===null||Jn.componentStack===null?"":ec(Jn.componentStack)}function vn(d,g){d.componentStack={tag:0,parent:d.componentStack,type:g}}function Jo(d,g){d.componentStack={tag:1,parent:d.componentStack,type:g}}function ac(d,g){d.componentStack={tag:2,parent:d.componentStack,type:g}}function bn(d){d.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var Ra=null;function oc(d,g){{var D;typeof g=="string"?D=g:g&&typeof g.message=="string"?D=g.message:D=String(g);var I=Ra||nc();Ra=null,d.errorMessage=D,d.errorComponentStack=I}}function Xi(d,g){var D=d.onError(g);if(D!=null&&typeof D!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function xl(d,g){var D=d.onShellError;D(g);var I=d.onFatalError;I(g),d.destination!==null?(d.status=Yn,E(d.destination,g)):(d.status=kf,d.fatalError=g)}function Bf(d,g,D){vn(g,"Suspense");var I=g.blockedBoundary,R=g.blockedSegment,X=D.fallback,ie=D.children,De=new Set,Le=ga(d,De),rt=R.chunks.length,st=Ma(d,rt,Le,R.formatContext,!1,!1);R.children.push(st),R.lastPushedText=!1;var mt=Ma(d,0,null,R.formatContext,!1,!1);mt.parentFlushed=!0,g.blockedBoundary=Le,g.blockedSegment=mt;try{if(yl(d,g,ie),of(mt.chunks,d.responseState,mt.lastPushedText,mt.textEmbedded),mt.status=ho,Qi(Le,mt),Le.pendingTasks===0){bn(g);return}}catch(Fr){mt.status=po,Le.forceClientRender=!0,Le.errorDigest=Xi(d,Fr),oc(Le,Fr)}finally{g.blockedBoundary=I,g.blockedSegment=R}var Qt=Ui(d,X,I,st,De,g.legacyContext,g.context,g.treeContext);Qt.componentStack=g.componentStack,d.pingedTasks.push(Qt),bn(g)}function Pf(d,g,D,I){vn(g,D);var R=g.blockedSegment,X=Gn(R.chunks,D,I,d.responseState,R.formatContext);R.lastPushedText=!1;var ie=R.formatContext;R.formatContext=Fa(ie,D,I),yl(d,g,X),R.formatContext=ie,qr(R.chunks,D),R.lastPushedText=!1,bn(g)}function Vm(d){return d.prototype&&d.prototype.isReactComponent}function ic(d,g,D,I,R){var X={};Ku(g,X);var ie=D(I,R);return Im(D,I,ie,R)}function Yi(d,g,D,I,R){var X=D.render();D.props!==R&&(cc||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",or(I)||"a component"),cc=!0);{var ie=I.childContextTypes;if(ie!=null){var De=g.legacyContext,Le=oo(D,I,De,ie);g.legacyContext=Le,an(d,g,X),g.legacyContext=De;return}}an(d,g,X)}function Of(d,g,D,I){ac(g,D);var R=mf(D,g.legacyContext),X=ym(D,I,R);sl(X,D,I,R),Yi(d,g,X,D,I),bn(g)}var sc={},Ji={},lc={},uc={},cc=!1,Nf=!1,Mf=!1,dc=!1;function Hm(d,g,D,I){var R;if(R=mf(D,g.legacyContext),Jo(g,D),D.prototype&&typeof D.prototype.render=="function"){var X=or(D)||"Unknown";sc[X]||(a("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",X,X),sc[X]=!0)}var ie=ic(d,g,D,I,R),De=Df();if(typeof ie=="object"&&ie!==null&&typeof ie.render=="function"&&ie.$$typeof===void 0){var Le=or(D)||"Unknown";Ji[Le]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Le,Le,Le),Ji[Le]=!0)}if(typeof ie=="object"&&ie!==null&&typeof ie.render=="function"&&ie.$$typeof===void 0){{var rt=or(D)||"Unknown";Ji[rt]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",rt,rt,rt),Ji[rt]=!0)}sl(ie,D,I,R),Yi(d,g,ie,D,I)}else if(zm(D),De){var st=g.treeContext,mt=1,Qt=0;g.treeContext=Ju(st,mt,Qt);try{an(d,g,ie)}finally{g.treeContext=st}}else an(d,g,ie);bn(g)}function zm(d){{if(d&&d.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),typeof d.getDerivedStateFromProps=="function"){var g=or(d)||"Unknown";uc[g]||(a("%s: Function components do not support getDerivedStateFromProps.",g),uc[g]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var D=or(d)||"Unknown";lc[D]||(a("%s: Function components do not support contextType.",D),lc[D]=!0)}}}function Rf(d,g){if(d&&d.defaultProps){var D=rn({},g),I=d.defaultProps;for(var R in I)D[R]===void 0&&(D[R]=I[R]);return D}return g}function Gm(d,g,D,I,R){Jo(g,D.render);var X=ic(d,g,D.render,I,R),ie=Df();if(ie){var De=g.treeContext,Le=1,rt=0;g.treeContext=Ju(De,Le,rt);try{an(d,g,X)}finally{g.treeContext=De}}else an(d,g,X);bn(g)}function Zm(d,g,D,I,R){var X=D.type,ie=Rf(X,I);hc(d,g,X,ie,R)}function fc(d,g,D,I){D._context===void 0?D!==D.Consumer&&(dc||(dc=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):D=D._context;var R=I.children;typeof R!="function"&&a("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var X=Uo(D),ie=R(X);an(d,g,ie)}function Um(d,g,D,I){var R=D._context,X=I.value,ie=I.children,De;De=g.context,g.context=_i(R,X),an(d,g,ie),g.context=Xu(R),De!==g.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function nn(d,g,D,I,R){vn(g,"Lazy");var X=D._payload,ie=D._init,De=ie(X),Le=Rf(De,I);hc(d,g,De,Le,R),bn(g)}function hc(d,g,D,I,R){if(typeof D=="function")if(Vm(D)){Of(d,g,D,I);return}else{Hm(d,g,D,I);return}if(typeof D=="string"){Pf(d,g,D,I);return}switch(D){case mm:case uf:case zs:case Gs:case Hs:{an(d,g,I.children);return}case ku:{vn(g,"SuspenseList"),an(d,g,I.children),bn(g);return}case gm:throw new Error("ReactDOMServer does not yet support scope components.");case Ho:{Bf(d,g,I);return}}if(typeof D=="object"&&D!==null)switch(D.$$typeof){case Bi:{Gm(d,g,D,I,R);return}case Bu:{Zm(d,g,D,I,R);return}case Ti:{Um(d,g,D,I);return}case ki:{fc(d,g,D,I);return}case Zs:{nn(d,g,D,I);return}}var X="";throw(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(D==null?D:typeof D)+"."+X))}function $f(d,g){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(Nf||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Nf=!0),d.entries===g&&(Mf||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mf=!0)}function an(d,g,D){try{return pc(d,g,D)}catch(I){throw typeof I=="object"&&I!==null&&typeof I.then=="function"||(Ra=Ra!==null?Ra:nc()),I}}function pc(d,g,D){if(g.node=D,typeof D=="object"&&D!==null){switch(D.$$typeof){case lf:{var I=D,R=I.type,X=I.props,ie=I.ref;hc(d,g,R,X,ie);return}case Tu:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Zs:{var De=D,Le=De._payload,rt=De._init,st;try{st=rt(Le)}catch(Sl){throw typeof Sl=="object"&&Sl!==null&&typeof Sl.then=="function"&&vn(g,"Lazy"),Sl}an(d,g,st);return}}if(q(D)){Lf(d,g,D);return}var mt=sr(D);if(mt){$f(D,mt);var Qt=mt.call(D);if(Qt){var Fr=Qt.next();if(!Fr.done){var xn=[];do xn.push(Fr.value),Fr=Qt.next();while(!Fr.done);Lf(d,g,xn);return}return}}var zf=Object.prototype.toString.call(D);throw new Error("Objects are not valid as a React child (found: "+(zf==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":zf)+"). If you meant to render a collection of children, use an array instead.")}if(typeof D=="string"){var Gf=g.blockedSegment;Gf.lastPushedText=af(g.blockedSegment.chunks,D,d.responseState,Gf.lastPushedText);return}if(typeof D=="number"){var Zf=g.blockedSegment;Zf.lastPushedText=af(g.blockedSegment.chunks,""+D,d.responseState,Zf.lastPushedText);return}typeof D=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Lf(d,g,D){for(var I=D.length,R=0;R<I;R++){var X=g.treeContext;g.treeContext=Ju(X,I,R);try{yl(d,g,D[R])}finally{g.treeContext=X}}}function Xm(d,g,D){var I=g.blockedSegment,R=I.chunks.length,X=Ma(d,R,null,I.formatContext,I.lastPushedText,!0);I.children.push(X),I.lastPushedText=!1;var ie=Ui(d,g.node,g.blockedBoundary,X,g.abortSet,g.legacyContext,g.context,g.treeContext);g.componentStack!==null&&(ie.componentStack=g.componentStack.parent);var De=ie.ping;D.then(De,De)}function yl(d,g,D){var I=g.blockedSegment.formatContext,R=g.legacyContext,X=g.context,ie=null;ie=g.componentStack;try{return an(d,g,D)}catch(De){if(Hi(),typeof De=="object"&&De!==null&&typeof De.then=="function"){Xm(d,g,De),g.blockedSegment.formatContext=I,g.legacyContext=R,g.context=X,Ks(X),g.componentStack=ie;return}else throw g.blockedSegment.formatContext=I,g.legacyContext=R,g.context=X,Ks(X),g.componentStack=ie,De}}function Cl(d,g,D,I){var R=Xi(d,I);if(g===null?xl(d,I):(g.pendingTasks--,g.forceClientRender||(g.forceClientRender=!0,g.errorDigest=R,oc(g,I),g.parentFlushed&&d.clientRenderedBoundaries.push(g))),d.allPendingTasks--,d.allPendingTasks===0){var X=d.onAllReady;X()}}function _f(d){var g=this,D=d.blockedBoundary,I=d.blockedSegment;I.status=tc,Ki(g,D,I)}function Wf(d,g,D){var I=d.blockedBoundary,R=d.blockedSegment;if(R.status=tc,I===null)g.allPendingTasks--,g.status!==Yn&&(g.status=Yn,g.destination!==null&&p(g.destination));else{if(I.pendingTasks--,!I.forceClientRender){I.forceClientRender=!0;var X=D===void 0?new Error("The render was aborted by the server without a reason."):D;I.errorDigest=g.onError(X);{var ie="The server did not finish this Suspense boundary: ";X&&typeof X.message=="string"?X=ie+X.message:X=ie+String(X);var De=Jn;Jn=d;try{oc(I,X)}finally{Jn=De}}I.parentFlushed&&g.clientRenderedBoundaries.push(I)}if(I.fallbackAbortableTasks.forEach(function(rt){return Wf(rt,g,D)}),I.fallbackAbortableTasks.clear(),g.allPendingTasks--,g.allPendingTasks===0){var Le=g.onAllReady;Le()}}}function Qi(d,g){if(g.chunks.length===0&&g.children.length===1&&g.children[0].boundary===null){var D=g.children[0];D.id=g.id,D.parentFlushed=!0,D.status===ho&&Qi(d,D)}else{var I=d.completedSegments;I.push(g)}}function Ki(d,g,D){if(g===null){if(D.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=D}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=Zi;var I=d.onShellReady;I()}}else if(g.pendingTasks--,!g.forceClientRender){if(g.pendingTasks===0)D.parentFlushed&&D.status===ho&&Qi(g,D),g.parentFlushed&&d.completedBoundaries.push(g),g.fallbackAbortableTasks.forEach(_f,d),g.fallbackAbortableTasks.clear();else if(D.parentFlushed&&D.status===ho){Qi(g,D);var R=g.completedSegments;R.length===1&&g.parentFlushed&&d.partialBoundaries.push(g)}}if(d.allPendingTasks--,d.allPendingTasks===0){var X=d.onAllReady;X()}}function wl(d,g){var D=g.blockedSegment;if(D.status===vl){Ks(g.context);var I=null;I=Jn,Jn=g;try{an(d,g,g.node),of(D.chunks,d.responseState,D.lastPushedText,D.textEmbedded),g.abortSet.delete(g),D.status=ho,Ki(d,g.blockedBoundary,D)}catch(X){if(Hi(),typeof X=="object"&&X!==null&&typeof X.then=="function"){var R=g.ping;X.then(R,R)}else g.abortSet.delete(g),D.status=po,Cl(d,g.blockedBoundary,D,X)}finally{Jn=I}}}function Vf(d){if(d.status!==Yn){var g=bm(),D=Na.current;Na.current=If;var I;I=ml.getCurrentStack,ml.getCurrentStack=nc;var R=Gi;gl(d.responseState);try{var X=d.pingedTasks,ie;for(ie=0;ie<X.length;ie++){var De=X[ie];wl(d,De)}X.splice(0,ie),d.destination!==null&&Dl(d,d.destination)}catch(Le){Xi(d,Le),xl(d,Le)}finally{gl(R),Na.current=D,ml.getCurrentStack=I,D===If&&Ks(g)}}}function qi(d,g,D){switch(D.parentFlushed=!0,D.status){case vl:{var I=D.id=d.nextSegmentId++;return D.lastPushedText=!1,D.textEmbedded=!1,Ts(g,d.responseState,I)}case ho:{D.status=Tf;for(var R=!0,X=D.chunks,ie=0,De=D.children,Le=0;Le<De.length;Le++){for(var rt=De[Le];ie<rt.index;ie++)u(g,X[ie]);R=es(d,g,rt)}for(;ie<X.length-1;ie++)u(g,X[ie]);return ie<X.length&&(R=c(g,X[ie])),R}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function es(d,g,D){var I=D.boundary;if(I===null)return qi(d,g,D);if(I.parentFlushed=!0,I.forceClientRender)return gn(g,d.responseState,I.errorDigest,I.errorMessage,I.errorComponentStack),qi(d,g,D),sf(g,d.responseState);if(I.pendingTasks>0){I.rootSegmentID=d.nextSegmentId++,I.completedSegments.length>0&&d.partialBoundaries.push(I);var R=I.id=pn(d.responseState);return Pa(g,d.responseState,R),qi(d,g,D),Fi(g,d.responseState)}else{if(I.byteSize>d.progressiveChunkSize)return I.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(I),Pa(g,d.responseState,I.id),qi(d,g,D),Fi(g,d.responseState);Iu(g,d.responseState);var X=I.completedSegments;if(X.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ie=X[0];return es(d,g,ie),pm(g,d.responseState)}}function Ym(d,g,D){return dm(g,d.responseState,D.id,D.errorDigest,D.errorMessage,D.errorComponentStack)}function gc(d,g,D){return ve(g,d.responseState,D.formatContext,D.id),es(d,g,D),Oe(g,D.formatContext)}function El(d,g,D){for(var I=D.completedSegments,R=0;R<I.length;R++){var X=I[R];Hf(d,g,D,X)}return I.length=0,im(g,d.responseState,D.id,D.rootSegmentID)}function Jm(d,g,D){for(var I=D.completedSegments,R=0;R<I.length;R++){var X=I[R];if(!Hf(d,g,D,X))return R++,I.splice(0,R),!1}return I.splice(0,R),!0}function Hf(d,g,D,I){if(I.status===Tf)return!0;var R=I.id;if(R===-1){var X=I.id=D.rootSegmentID;if(X===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return gc(d,g,I)}else return gc(d,g,I),tn(g,d.responseState,R)}function Dl(d,g){try{var D=d.completedRootSegment;D!==null&&d.pendingRootTasks===0&&(es(d,g,D),d.completedRootSegment=null,Ei(g,d.responseState));var I=d.clientRenderedBoundaries,R;for(R=0;R<I.length;R++){var X=I[R];if(!Ym(d,g,X)){d.destination=null,R++,I.splice(0,R);return}}I.splice(0,R);var ie=d.completedBoundaries;for(R=0;R<ie.length;R++){var De=ie[R];if(!El(d,g,De)){d.destination=null,R++,ie.splice(0,R);return}}ie.splice(0,R);var Le=d.partialBoundaries;for(R=0;R<Le.length;R++){var rt=Le[R];if(!Jm(d,g,rt)){d.destination=null,R++,Le.splice(0,R);return}}Le.splice(0,R);var st=d.completedBoundaries;for(R=0;R<st.length;R++){var mt=st[R];if(!El(d,g,mt)){d.destination=null,R++,st.splice(0,R);return}}st.splice(0,R)}finally{d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),p(g))}}function Qm(d){i(function(){return Vf(d)})}function f(d,g){if(d.status===kf){d.status=Yn,E(g,d.fatalError);return}if(d.status!==Yn&&d.destination===null){d.destination=g;try{Dl(d,g)}catch(D){Xi(d,D),xl(d,D)}}}function b(d,g){try{var D=d.abortableTasks;D.forEach(function(I){return Wf(I,d,g)}),D.clear(),d.destination!==null&&Dl(d,d.destination)}catch(I){Xi(d,I),xl(d,I)}}function F(){}function B(d,g,D,I){var R=!1,X=null,ie="",De={push:function(mt){return mt!==null&&(ie+=mt),!0},destroy:function(mt){R=!0,X=mt}},Le=!1;function rt(){Le=!0}var st=rc(d,hm(D,g?g.identifierPrefix:void 0),ju(),1/0,F,void 0,rt,void 0,void 0);if(Qm(st),b(st,I),f(st,De),R)throw X;if(!Le)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return ie}function V(d,g){return B(d,g,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Y(d,g){return B(d,g,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function ue(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function Ae(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}bi.renderToNodeStream=ue,bi.renderToStaticMarkup=Y,bi.renderToStaticNodeStream=Ae,bi.renderToString=V,bi.version=t}()),bi}var Vd={};/**
|
|
185
|
+
* @license React
|
|
186
|
+
* react-dom-server.browser.development.js
|
|
187
|
+
*
|
|
188
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the MIT license found in the
|
|
191
|
+
* LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/var x2;function Vk(){return x2||(x2=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t="18.2.0",r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(f){{for(var b=arguments.length,F=new Array(b>1?b-1:0),B=1;B<b;B++)F[B-1]=arguments[B];o("warn",f,F)}}function a(f){{for(var b=arguments.length,F=new Array(b>1?b-1:0),B=1;B<b;B++)F[B-1]=arguments[B];o("error",f,F)}}function o(f,b,F){{var B=r.ReactDebugCurrentFrame,V=B.getStackAddendum();V!==""&&(b+="%s",F=F.concat([V]));var Y=F.map(function(ue){return String(ue)});Y.unshift("Warning: "+b),Function.prototype.apply.call(console[f],console,Y)}}function i(f){f()}var l=512,u=null,c=0;function m(f){u=new Uint8Array(l),c=0}function p(f,b){if(b.length!==0){if(b.length>l){c>0&&(f.enqueue(new Uint8Array(u.buffer,0,c)),u=new Uint8Array(l),c=0),f.enqueue(b);return}var F=b,B=u.length-c;B<F.length&&(B===0?f.enqueue(u):(u.set(F.subarray(0,B),c),f.enqueue(u),F=F.subarray(B)),u=new Uint8Array(l),c=0),u.set(F,c),c+=F.length}}function x(f,b){return p(f,b),!0}function C(f){u&&c>0&&(f.enqueue(new Uint8Array(u.buffer,0,c)),u=null,c=0)}function E(f){f.close()}var v=new TextEncoder;function A(f){return v.encode(f)}function S(f){return v.encode(f)}function j(f,b){typeof f.error=="function"?f.error(b):f.close()}function O(f){{var b=typeof Symbol=="function"&&Symbol.toStringTag,F=b&&f[Symbol.toStringTag]||f.constructor.name||"Object";return F}}function L(f){try{return M(f),!1}catch{return!0}}function M(f){return""+f}function z(f,b){if(L(f))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,O(f)),M(f)}function H(f,b){if(L(f))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",b,O(f)),M(f)}function oe(f){if(L(f))return a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(f)),M(f)}var J=Object.prototype.hasOwnProperty,ge=0,xe=1,Q=2,ce=3,N=4,W=5,ee=6,de=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ne=de+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",te=new RegExp("^["+de+"]["+ne+"]*$"),K={},se={};function fe(f){return J.call(se,f)?!0:J.call(K,f)?!1:te.test(f)?(se[f]=!0,!0):(K[f]=!0,a("Invalid attribute name: `%s`",f),!1)}function Se(f,b,F,B){if(F!==null&&F.type===ge)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(B)return!1;if(F!==null)return!F.acceptsBooleans;var V=f.toLowerCase().slice(0,5);return V!=="data-"&&V!=="aria-"}default:return!1}}function G(f){return ae.hasOwnProperty(f)?ae[f]:null}function he(f,b,F,B,V,Y,ue){this.acceptsBooleans=b===Q||b===ce||b===N,this.attributeName=B,this.attributeNamespace=V,this.mustUseProperty=F,this.propertyName=f,this.type=b,this.sanitizeURL=Y,this.removeEmptyString=ue}var ae={},me=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];me.forEach(function(f){ae[f]=new he(f,ge,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var b=f[0],F=f[1];ae[b]=new he(b,xe,!1,F,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){ae[f]=new he(f,Q,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){ae[f]=new he(f,Q,!1,f,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(f){ae[f]=new he(f,ce,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){ae[f]=new he(f,ce,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){ae[f]=new he(f,N,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){ae[f]=new he(f,ee,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){ae[f]=new he(f,W,!1,f.toLowerCase(),null,!1,!1)});var Me=/[\-\:]([a-z])/g,Pe=function(f){return f[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(f){var b=f.replace(Me,Pe);ae[b]=new he(b,xe,!1,f,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(f){var b=f.replace(Me,Pe);ae[b]=new he(b,xe,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var b=f.replace(Me,Pe);ae[b]=new he(b,xe,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){ae[f]=new he(f,xe,!1,f.toLowerCase(),null,!1,!1)});var We="xlinkHref";ae[We]=new he("xlinkHref",xe,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){ae[f]=new he(f,xe,!1,f.toLowerCase(),null,!0,!0)});var Ke={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Ne(f,b){return f+b.charAt(0).toUpperCase()+b.substring(1)}var Qe=["Webkit","ms","Moz","O"];Object.keys(Ke).forEach(function(f){Qe.forEach(function(b){Ke[Ne(b,f)]=Ke[f]})});var nt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function vt(f,b){nt[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.value==null||a("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),b.onChange||b.readOnly||b.disabled||b.checked==null||a("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function At(f,b){if(f.indexOf("-")===-1)return typeof b.is=="string";switch(f){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var re={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},be={},Ie=new RegExp("^(aria)-["+ne+"]*$"),Ze=new RegExp("^(aria)[A-Z]["+ne+"]*$");function He(f,b){{if(J.call(be,b)&&be[b])return!0;if(Ze.test(b)){var F="aria-"+b.slice(4).toLowerCase(),B=re.hasOwnProperty(F)?F:null;if(B==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),be[b]=!0,!0;if(b!==B)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,B),be[b]=!0,!0}if(Ie.test(b)){var V=b.toLowerCase(),Y=re.hasOwnProperty(V)?V:null;if(Y==null)return be[b]=!0,!1;if(b!==Y)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,Y),be[b]=!0,!0}}return!0}function Te(f,b){{var F=[];for(var B in b){var V=He(f,B);V||F.push(B)}var Y=F.map(function(ue){return"`"+ue+"`"}).join(", ");F.length===1?a("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Y,f):F.length>1&&a("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",Y,f)}}function Ee(f,b){At(f,b)||Te(f,b)}var ze=!1;function tt(f,b){{if(f!=="input"&&f!=="textarea"&&f!=="select")return;b!=null&&b.value===null&&!ze&&(ze=!0,f==="select"&&b.multiple?a("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",f):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",f))}}var bt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Ot=function(){};{var gt={},Wt=/^on./,pr=/^on[^A-Z]/,Yt=new RegExp("^(aria)-["+ne+"]*$"),Cr=new RegExp("^(aria)[A-Z]["+ne+"]*$");Ot=function(f,b,F,B){if(J.call(gt,b)&>[b])return!0;var V=b.toLowerCase();if(V==="onfocusin"||V==="onfocusout")return a("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),gt[b]=!0,!0;if(B!=null){var Y=B.registrationNameDependencies,ue=B.possibleRegistrationNames;if(Y.hasOwnProperty(b))return!0;var Ae=ue.hasOwnProperty(V)?ue[V]:null;if(Ae!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",b,Ae),gt[b]=!0,!0;if(Wt.test(b))return a("Unknown event handler property `%s`. It will be ignored.",b),gt[b]=!0,!0}else if(Wt.test(b))return pr.test(b)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),gt[b]=!0,!0;if(Yt.test(b)||Cr.test(b))return!0;if(V==="innerhtml")return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),gt[b]=!0,!0;if(V==="aria")return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),gt[b]=!0,!0;if(V==="is"&&F!==null&&F!==void 0&&typeof F!="string")return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof F),gt[b]=!0,!0;if(typeof F=="number"&&isNaN(F))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),gt[b]=!0,!0;var d=G(b),g=d!==null&&d.type===ge;if(bt.hasOwnProperty(V)){var D=bt[V];if(D!==b)return a("Invalid DOM property `%s`. Did you mean `%s`?",b,D),gt[b]=!0,!0}else if(!g&&b!==V)return a("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",b,V),gt[b]=!0,!0;return typeof F=="boolean"&&Se(b,F,d,!1)?(F?a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',F,b,b,F,b):a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',F,b,b,F,b,b,b),gt[b]=!0,!0):g?!0:Se(b,F,d,!1)?(gt[b]=!0,!1):((F==="false"||F==="true")&&d!==null&&d.type===ce&&(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",F,b,F==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,F),gt[b]=!0),!0)}}var gr=function(f,b,F){{var B=[];for(var V in b){var Y=Ot(f,V,b[V],F);Y||B.push(V)}var ue=B.map(function(Ae){return"`"+Ae+"`"}).join(", ");B.length===1?a("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ue,f):B.length>1&&a("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ue,f)}};function Or(f,b,F){At(f,b)||gr(f,b,F)}var Nr=function(){};{var xr=/^(?:webkit|moz|o)[A-Z]/,Mr=/^-ms-/,cn=/-(.)/g,cr=/;\s*$/,wr={},Er={},It=!1,Gr=!1,Tn=function(f){return f.replace(cn,function(b,F){return F.toUpperCase()})},kn=function(f){wr.hasOwnProperty(f)&&wr[f]||(wr[f]=!0,a("Unsupported style property %s. Did you mean %s?",f,Tn(f.replace(Mr,"ms-"))))},Rr=function(f){wr.hasOwnProperty(f)&&wr[f]||(wr[f]=!0,a("Unsupported vendor-prefixed style property %s. Did you mean %s?",f,f.charAt(0).toUpperCase()+f.slice(1)))},_n=function(f,b){Er.hasOwnProperty(b)&&Er[b]||(Er[b]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,f,b.replace(cr,"")))},Zr=function(f,b){It||(It=!0,a("`NaN` is an invalid value for the `%s` css style property.",f))},Xt=function(f,b){Gr||(Gr=!0,a("`Infinity` is an invalid value for the `%s` css style property.",f))};Nr=function(f,b){f.indexOf("-")>-1?kn(f):xr.test(f)?Rr(f):cr.test(b)&&_n(f,b),typeof b=="number"&&(isNaN(b)?Zr(f,b):isFinite(b)||Xt(f,b))}}var ia=Nr,sa=/["'&<>]/;function la(f){oe(f);var b=""+f,F=sa.exec(b);if(!F)return b;var B,V="",Y,ue=0;for(Y=F.index;Y<b.length;Y++){switch(b.charCodeAt(Y)){case 34:B=""";break;case 38:B="&";break;case 39:B="'";break;case 60:B="<";break;case 62:B=">";break;default:continue}ue!==Y&&(V+=b.substring(ue,Y)),ue=Y+1,V+=B}return ue!==Y?V+b.substring(ue,Y):V}function tr(f){return typeof f=="boolean"||typeof f=="number"?""+f:la(f)}var ua=/([A-Z])/g,Ya=/^ms-/;function Ja(f){return f.replace(ua,"-$1").toLowerCase().replace(Ya,"-ms-")}var q=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,_e=!1;function Je(f){!_e&&q.test(f)&&(_e=!0,a("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(f)))}var ct=Array.isArray;function wt(f){return ct(f)}var Ft=S("<script>"),Dt=S("<\/script>"),xt=S('<script src="'),rr=S('<script type="module" src="'),Nt=S('" async=""><\/script>');function Mt(f){return oe(f),(""+f).replace(Jt,Ir)}var Jt=/(<\/|<)(s)(cript)/gi,Ir=function(f,b,F,B){return""+b+(F==="s"?"\\u0073":"\\u0053")+B};function dn(f,b,F,B,V){var Y=f===void 0?"":f,ue=b===void 0?Ft:S('<script nonce="'+tr(b)+'">'),Ae=[];if(F!==void 0&&Ae.push(ue,A(Mt(F)),Dt),B!==void 0)for(var d=0;d<B.length;d++)Ae.push(xt,A(tr(B[d])),Nt);if(V!==void 0)for(var g=0;g<V.length;g++)Ae.push(rr,A(tr(V[g])),Nt);return{bootstrapChunks:Ae,startInlineScript:ue,placeholderPrefix:S(Y+"P:"),segmentPrefix:S(Y+"S:"),boundaryPrefix:Y+"B:",idPrefix:Y,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var nr=0,ar=1,fn=2,Qr=3,vr=4,Fa=5,hn=6,pn=7;function Tr(f,b){return{insertionMode:f,selectedValue:b}}function Bn(f){var b=f==="http://www.w3.org/2000/svg"?fn:f==="http://www.w3.org/1998/Math/MathML"?Qr:nr;return Tr(b,null)}function Wn(f,b,F){switch(b){case"select":return Tr(ar,F.value!=null?F.value:F.defaultValue);case"svg":return Tr(fn,null);case"math":return Tr(Qr,null);case"foreignObject":return Tr(ar,null);case"table":return Tr(vr,null);case"thead":case"tbody":case"tfoot":return Tr(Fa,null);case"colgroup":return Tr(pn,null);case"tr":return Tr(hn,null)}return f.insertionMode>=vr||f.insertionMode===nr?Tr(ar,null):f}var Qa=null;function Ka(f){var b=f.nextSuspenseID++;return S(f.boundaryPrefix+b.toString(16))}function ja(f,b,F){var B=f.idPrefix,V=":"+B+"R"+b;return F>0&&(V+="H"+F.toString(32)),V+":"}function Vn(f){return tr(f)}var qa=S("<!-- -->");function Ia(f,b,F,B){return b===""?B:(B&&f.push(qa),f.push(A(Vn(b))),!0)}function Ta(f,b,F,B){F&&B&&f.push(qa)}var y=new Map;function T(f){var b=y.get(f);if(b!==void 0)return b;var F=S(tr(Ja(f)));return y.set(f,F),F}var _=S(' style="'),Z=S(":"),ye=S(";");function pe(f,b,F){if(typeof F!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var B=!0;for(var V in F)if(J.call(F,V)){var Y=F[V];if(!(Y==null||typeof Y=="boolean"||Y==="")){var ue=void 0,Ae=void 0,d=V.indexOf("--")===0;d?(ue=A(tr(V)),H(Y,V),Ae=A(tr((""+Y).trim()))):(ia(V,Y),ue=T(V),typeof Y=="number"?Y!==0&&!J.call(Ke,V)?Ae=A(Y+"px"):Ae=A(""+Y):(H(Y,V),Ae=A(tr((""+Y).trim())))),B?(B=!1,f.push(_,ue,Z,Ae)):f.push(ye,ue,Z,Ae)}}B||f.push(it)}var ke=S(" "),Ue=S('="'),it=S('"'),ft=S('=""');function ut(f,b,F,B){switch(F){case"style":{pe(f,b,B);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(F.length>2&&(F[0]==="o"||F[0]==="O")&&(F[1]==="n"||F[1]==="N"))){var V=G(F);if(V!==null){switch(typeof B){case"function":case"symbol":return;case"boolean":if(!V.acceptsBooleans)return}var Y=V.attributeName,ue=A(Y);switch(V.type){case ce:B&&f.push(ke,ue,ft);return;case N:B===!0?f.push(ke,ue,ft):B===!1||f.push(ke,ue,Ue,A(tr(B)),it);return;case W:isNaN(B)||f.push(ke,ue,Ue,A(tr(B)),it);break;case ee:!isNaN(B)&&B>=1&&f.push(ke,ue,Ue,A(tr(B)),it);break;default:V.sanitizeURL&&(z(B,Y),B=""+B,Je(B)),f.push(ke,ue,Ue,A(tr(B)),it)}}else if(fe(F)){switch(typeof B){case"function":case"symbol":return;case"boolean":{var Ae=F.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}f.push(ke,A(F),Ue,A(tr(B)),it)}}}var Bt=S(">"),$r=S("/>");function Dr(f,b,F){if(b!=null){if(F!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var B=b.__html;B!=null&&(oe(B),f.push(A(""+B)))}}var Sr=!1,Pn=!1,Kr=!1,ka=!1,Hn=!1,ca=!1,On=!1;function eo(f,b){{var F=f[b];if(F!=null){var B=wt(F);f.multiple&&!B?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",b):!f.multiple&&B&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",b)}}}function xu(f,b,F){vt("select",b),eo(b,"value"),eo(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Kr&&(a("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Kr=!0),f.push(qr("select"));var B=null,V=null;for(var Y in b)if(J.call(b,Y)){var ue=b[Y];if(ue==null)continue;switch(Y){case"children":B=ue;break;case"dangerouslySetInnerHTML":V=ue;break;case"defaultValue":case"value":break;default:ut(f,F,Y,ue);break}}return f.push(Bt),Dr(f,V,B),B}function yu(f){var b="";return e.Children.forEach(f,function(F){F!=null&&(b+=F,!Hn&&typeof F!="string"&&typeof F!="number"&&(Hn=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var Ci=S(' selected=""');function Cu(f,b,F,B){var V=B.selectedValue;f.push(qr("option"));var Y=null,ue=null,Ae=null,d=null;for(var g in b)if(J.call(b,g)){var D=b[g];if(D==null)continue;switch(g){case"children":Y=D;break;case"selected":Ae=D,On||(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),On=!0);break;case"dangerouslySetInnerHTML":d=D;break;case"value":ue=D;default:ut(f,F,g,D);break}}if(V!=null){var I;if(ue!==null?(z(ue,"value"),I=""+ue):(d!==null&&(ca||(ca=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),I=yu(Y)),wt(V))for(var R=0;R<V.length;R++){z(V[R],"value");var X=""+V[R];if(X===I){f.push(Ci);break}}else z(V,"select.value"),""+V===I&&f.push(Ci)}else Ae&&f.push(Ci);return f.push(Bt),Dr(f,d,Y),Y}function wi(f,b,F){vt("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!Pn&&(a("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),Pn=!0),b.value!==void 0&&b.defaultValue!==void 0&&!Sr&&(a("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),Sr=!0),f.push(qr("input"));var B=null,V=null,Y=null,ue=null;for(var Ae in b)if(J.call(b,Ae)){var d=b[Ae];if(d==null)continue;switch(Ae){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ue=d;break;case"defaultValue":V=d;break;case"checked":Y=d;break;case"value":B=d;break;default:ut(f,F,Ae,d);break}}return Y!==null?ut(f,F,"checked",Y):ue!==null&&ut(f,F,"checked",ue),B!==null?ut(f,F,"value",B):V!==null&&ut(f,F,"value",V),f.push($r),null}function Nn(f,b,F){vt("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!ka&&(a("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ka=!0),f.push(qr("textarea"));var B=null,V=null,Y=null;for(var ue in b)if(J.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":Y=Ae;break;case"value":B=Ae;break;case"defaultValue":V=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ut(f,F,ue,Ae);break}}if(B===null&&V!==null&&(B=V),f.push(Bt),Y!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),B!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(wt(Y)){if(Y.length>1)throw new Error("<textarea> can only have at most one child.");oe(Y[0]),B=""+Y[0]}oe(Y),B=""+Y}return typeof B=="string"&&B[0]===`
|
|
193
|
+
`&&f.push(da),B!==null&&(z(B,"value"),f.push(A(Vn(""+B)))),null}function to(f,b,F,B){f.push(qr(F));for(var V in b)if(J.call(b,V)){var Y=b[V];if(Y==null)continue;switch(V){case"children":case"dangerouslySetInnerHTML":throw new Error(F+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ut(f,B,V,Y);break}}return f.push($r),null}function ko(f,b,F){f.push(qr("menuitem"));for(var B in b)if(J.call(b,B)){var V=b[B];if(V==null)continue;switch(B){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ut(f,F,B,V);break}}return f.push(Bt),null}function Zt(f,b,F){f.push(qr("title"));var B=null;for(var V in b)if(J.call(b,V)){var Y=b[V];if(Y==null)continue;switch(V){case"children":B=Y;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ut(f,F,V,Y);break}}f.push(Bt);{var ue=Array.isArray(B)&&B.length<2?B[0]||null:B;Array.isArray(B)&&B.length>1?a("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ue!=null&&ue.$$typeof!=null?a("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ue!=null&&typeof ue!="string"&&typeof ue!="number"&&a("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return B}function zn(f,b,F,B){f.push(qr(F));var V=null,Y=null;for(var ue in b)if(J.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":V=Ae;break;case"dangerouslySetInnerHTML":Y=Ae;break;default:ut(f,B,ue,Ae);break}}return f.push(Bt),Dr(f,Y,V),typeof V=="string"?(f.push(A(Vn(V))),null):V}function Lr(f,b,F,B){f.push(qr(F));var V=null,Y=null;for(var ue in b)if(J.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":V=Ae;break;case"dangerouslySetInnerHTML":Y=Ae;break;case"style":pe(f,B,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:fe(ue)&&typeof Ae!="function"&&typeof Ae!="symbol"&&f.push(ke,A(ue),Ue,A(tr(Ae)),it);break}}return f.push(Bt),Dr(f,Y,V),V}var da=S(`
|
|
194
|
+
`);function Gn(f,b,F,B){f.push(qr(F));var V=null,Y=null;for(var ue in b)if(J.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":V=Ae;break;case"dangerouslySetInnerHTML":Y=Ae;break;default:ut(f,B,ue,Ae);break}}if(f.push(Bt),Y!=null){if(V!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Y!="object"||!("__html"in Y))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var d=Y.__html;d!=null&&(typeof d=="string"&&d.length>0&&d[0]===`
|
|
195
|
+
`?f.push(da,A(d)):(oe(d),f.push(A(""+d))))}return typeof V=="string"&&V[0]===`
|
|
196
|
+
`&&f.push(da),V}var Bo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Zn=new Map;function qr(f){var b=Zn.get(f);if(b===void 0){if(!Bo.test(f))throw new Error("Invalid tag: "+f);b=S("<"+f),Zn.set(f,b)}return b}var Ei=S("<!DOCTYPE html>");function Di(f,b,F,B,V){switch(Ee(b,F),tt(b,F),Or(b,F,null),!F.suppressContentEditableWarning&&F.contentEditable&&F.children!=null&&a("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),V.insertionMode!==fn&&V.insertionMode!==Qr&&b.indexOf("-")===-1&&typeof F.is!="string"&&b.toLowerCase()!==b&&a("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",b),b){case"select":return xu(f,F,B);case"option":return Cu(f,F,B,V);case"textarea":return Nn(f,F,B);case"input":return wi(f,F,B);case"menuitem":return ko(f,F,B);case"title":return Zt(f,F,B);case"listing":case"pre":return Gn(f,F,b,B);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return to(f,F,b,B);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return zn(f,F,b,B);case"html":return V.insertionMode===nr&&f.push(Ei),zn(f,F,b,B);default:return b.indexOf("-")===-1&&typeof F.is!="string"?zn(f,F,b,B):Lr(f,F,b,B)}}var Is=S("</"),Ts=S(">");function ks(f,b,F){switch(b){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:f.push(Is,A(b),Ts)}}function wu(f,b){for(var F=b.bootstrapChunks,B=0;B<F.length-1;B++)p(f,F[B]);return B<F.length?x(f,F[B]):!0}var Eu=S('<template id="'),Po=S('"></template>');function Oo(f,b,F){p(f,Eu),p(f,b.placeholderPrefix);var B=A(F.toString(16));return p(f,B),x(f,Po)}var No=S("<!--$-->"),ro=S('<!--$?--><template id="'),Du=S('"></template>'),no=S("<!--$!-->"),Si=S("<!--/$-->"),Ai=S("<template"),Ba=S('"'),Pa=S(' data-dgst="'),Mo=S(' data-msg="'),Bs=S(' data-stck="'),Fi=S("></template>");function Ps(f,b){return x(f,No)}function Ro(f,b,F){if(p(f,ro),F===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(f,F),x(f,Du)}function _r(f,b,F,B,V){var Y;return Y=x(f,no),p(f,Ai),F&&(p(f,Pa),p(f,A(tr(F))),p(f,Ba)),B&&(p(f,Mo),p(f,A(tr(B))),p(f,Ba)),V&&(p(f,Bs),p(f,A(tr(V))),p(f,Ba)),Y=x(f,Fi),Y}function Os(f,b){return x(f,Si)}function $o(f,b){return x(f,Si)}function Su(f,b){return x(f,Si)}var Ns=S('<div hidden id="'),Lo=S('">'),Ms=S("</div>"),Rs=S('<svg aria-hidden="true" style="display:none" id="'),_o=S('">'),Wo=S("</svg>"),$s=S('<math aria-hidden="true" style="display:none" id="'),Ls=S('">'),_s=S("</math>"),ji=S('<table hidden id="'),Ws=S('">'),w=S("</table>"),k=S('<table hidden><tbody id="'),$=S('">'),U=S("</tbody></table>"),Ce=S('<table hidden><tr id="'),ve=S('">'),Oe=S("</tr></table>"),Xe=S('<table hidden><colgroup id="'),ht=S('">'),Et=S("</colgroup></table>");function Ct(f,b,F,B){switch(F.insertionMode){case nr:case ar:return p(f,Ns),p(f,b.segmentPrefix),p(f,A(B.toString(16))),x(f,Lo);case fn:return p(f,Rs),p(f,b.segmentPrefix),p(f,A(B.toString(16))),x(f,_o);case Qr:return p(f,$s),p(f,b.segmentPrefix),p(f,A(B.toString(16))),x(f,Ls);case vr:return p(f,ji),p(f,b.segmentPrefix),p(f,A(B.toString(16))),x(f,Ws);case Fa:return p(f,k),p(f,b.segmentPrefix),p(f,A(B.toString(16))),x(f,$);case hn:return p(f,Ce),p(f,b.segmentPrefix),p(f,A(B.toString(16))),x(f,ve);case pn:return p(f,Xe),p(f,b.segmentPrefix),p(f,A(B.toString(16))),x(f,ht);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ut(f,b){switch(b.insertionMode){case nr:case ar:return x(f,Ms);case fn:return x(f,Wo);case Qr:return x(f,_s);case vr:return x(f,w);case Fa:return x(f,U);case hn:return x(f,Oe);case pn:return x(f,Et);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Wr="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",en='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',tn='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Vo=S(Wr+';$RS("'),Vs=S('$RS("'),Ii=S('","'),om=S('")<\/script>');function im(f,b,F){p(f,b.startInlineScript),b.sentCompleteSegmentFunction?p(f,Vs):(b.sentCompleteSegmentFunction=!0,p(f,Vo)),p(f,b.segmentPrefix);var B=A(F.toString(16));return p(f,B),p(f,Ii),p(f,b.placeholderPrefix),p(f,B),x(f,om)}var sm=S(en+';$RC("'),lm=S('$RC("'),um=S('","'),cm=S('")<\/script>');function Au(f,b,F,B){if(p(f,b.startInlineScript),b.sentCompleteBoundaryFunction?p(f,lm):(b.sentCompleteBoundaryFunction=!0,p(f,sm)),F===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var V=A(B.toString(16));return p(f,F),p(f,um),p(f,b.segmentPrefix),p(f,V),x(f,cm)}var dm=S(tn+';$RX("'),fm=S('$RX("'),Fu=S('"'),hm=S(")<\/script>"),ju=S(",");function af(f,b,F,B,V,Y){if(p(f,b.startInlineScript),b.sentClientRenderFunction?p(f,fm):(b.sentClientRenderFunction=!0,p(f,dm)),F===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(f,F),p(f,Fu),(B||V||Y)&&(p(f,ju),p(f,A(Iu(B||"")))),(V||Y)&&(p(f,ju),p(f,A(Iu(V||"")))),Y&&(p(f,ju),p(f,A(Iu(Y)))),x(f,hm)}var of=/[<\u2028\u2029]/g;function Iu(f){var b=JSON.stringify(f);return b.replace(of,function(F){switch(F){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var gn=Object.assign,pm=Symbol.for("react.element"),sf=Symbol.for("react.portal"),rn=Symbol.for("react.fragment"),lf=Symbol.for("react.strict_mode"),Tu=Symbol.for("react.profiler"),Hs=Symbol.for("react.provider"),zs=Symbol.for("react.context"),Gs=Symbol.for("react.forward_ref"),Ti=Symbol.for("react.suspense"),ki=Symbol.for("react.suspense_list"),Bi=Symbol.for("react.memo"),Ho=Symbol.for("react.lazy"),ku=Symbol.for("react.scope"),Bu=Symbol.for("react.debug_trace_mode"),Zs=Symbol.for("react.legacy_hidden"),gm=Symbol.for("react.default_value"),uf=Symbol.iterator,mm="@@iterator";function vm(f){if(f===null||typeof f!="object")return null;var b=uf&&f[uf]||f[mm];return typeof b=="function"?b:null}function cf(f,b,F){var B=f.displayName;if(B)return B;var V=b.displayName||b.name||"";return V!==""?F+"("+V+")":F}function df(f){return f.displayName||"Context"}function sr(f){if(f==null)return null;if(typeof f.tag=="number"&&a("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case rn:return"Fragment";case sf:return"Portal";case Tu:return"Profiler";case lf:return"StrictMode";case Ti:return"Suspense";case ki:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case zs:var b=f;return df(b)+".Consumer";case Hs:var F=f;return df(F._context)+".Provider";case Gs:return cf(f,f.render,"ForwardRef");case Bi:var B=f.displayName||null;return B!==null?B:sr(f.type)||"Memo";case Ho:{var V=f,Y=V._payload,ue=V._init;try{return sr(ue(Y))}catch{return null}}}return null}var Pi=0,Pu,or,zo,Ou,Nu,Mu,Ru;function $u(){}$u.__reactDisabledLog=!0;function ff(){{if(Pi===0){Pu=console.log,or=console.info,zo=console.warn,Ou=console.error,Nu=console.group,Mu=console.groupCollapsed,Ru=console.groupEnd;var f={configurable:!0,enumerable:!0,value:$u,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}Pi++}}function hf(){{if(Pi--,Pi===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:gn({},f,{value:Pu}),info:gn({},f,{value:or}),warn:gn({},f,{value:zo}),error:gn({},f,{value:Ou}),group:gn({},f,{value:Nu}),groupCollapsed:gn({},f,{value:Mu}),groupEnd:gn({},f,{value:Ru})})}Pi<0&&a("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Us=r.ReactCurrentDispatcher,Lu;function Oi(f,b,F){{if(Lu===void 0)try{throw Error()}catch(V){var B=V.stack.trim().match(/\n( *(at )?)/);Lu=B&&B[1]||""}return`
|
|
197
|
+
`+Lu+f}}var Ni=!1,Go;{var Mi=typeof WeakMap=="function"?WeakMap:Map;Go=new Mi}function Ri(f,b){if(!f||Ni)return"";{var F=Go.get(f);if(F!==void 0)return F}var B;Ni=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Y;Y=Us.current,Us.current=null,ff();try{if(b){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(ie){B=ie}Reflect.construct(f,[],ue)}else{try{ue.call()}catch(ie){B=ie}f.call(ue.prototype)}}else{try{throw Error()}catch(ie){B=ie}f()}}catch(ie){if(ie&&B&&typeof ie.stack=="string"){for(var Ae=ie.stack.split(`
|
|
198
|
+
`),d=B.stack.split(`
|
|
199
|
+
`),g=Ae.length-1,D=d.length-1;g>=1&&D>=0&&Ae[g]!==d[D];)D--;for(;g>=1&&D>=0;g--,D--)if(Ae[g]!==d[D]){if(g!==1||D!==1)do if(g--,D--,D<0||Ae[g]!==d[D]){var I=`
|
|
200
|
+
`+Ae[g].replace(" at new "," at ");return f.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",f.displayName)),typeof f=="function"&&Go.set(f,I),I}while(g>=1&&D>=0);break}}}finally{Ni=!1,Us.current=Y,hf(),Error.prepareStackTrace=V}var R=f?f.displayName||f.name:"",X=R?Oi(R):"";return typeof f=="function"&&Go.set(f,X),X}function Xs(f,b,F){return Ri(f,!0)}function pf(f,b,F){return Ri(f,!1)}function _u(f){var b=f.prototype;return!!(b&&b.isReactComponent)}function Wu(f,b,F){if(f==null)return"";if(typeof f=="function")return Ri(f,_u(f));if(typeof f=="string")return Oi(f);switch(f){case Ti:return Oi("Suspense");case ki:return Oi("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case Gs:return pf(f.render);case Bi:return Wu(f.type,b,F);case Ho:{var B=f,V=B._payload,Y=B._init;try{return Wu(Y(V),b,F)}catch{}}}return""}var Vu={},gf=r.ReactDebugCurrentFrame;function Zo(f){if(f){var b=f._owner,F=Wu(f.type,f._source,b?b.type:null);gf.setExtraStackFrame(F)}else gf.setExtraStackFrame(null)}function Hu(f,b,F,B,V){{var Y=Function.call.bind(J);for(var ue in f)if(Y(f,ue)){var Ae=void 0;try{if(typeof f[ue]!="function"){var d=Error((B||"React class")+": "+F+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}Ae=f[ue](b,ue,B,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(g){Ae=g}Ae&&!(Ae instanceof Error)&&(Zo(V),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",B||"React class",F,ue,typeof Ae),Zo(null)),Ae instanceof Error&&!(Ae.message in Vu)&&(Vu[Ae.message]=!0,Zo(V),a("Failed %s type: %s",F,Ae.message),Zo(null))}}}var Ys;Ys={};var ao={};Object.freeze(ao);function zu(f,b){{var F=f.contextTypes;if(!F)return ao;var B={};for(var V in F)B[V]=b[V];{var Y=sr(f)||"Unknown";Hu(F,B,"context",Y)}return B}}function Gu(f,b,F,B){{if(typeof f.getChildContext!="function"){{var V=sr(b)||"Unknown";Ys[V]||(Ys[V]=!0,a("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",V,V))}return F}var Y=f.getChildContext();for(var ue in Y)if(!(ue in B))throw new Error((sr(b)||"Unknown")+'.getChildContext(): key "'+ue+'" is not defined in childContextTypes.');{var Ae=sr(b)||"Unknown";Hu(B,Y,"child context",Ae)}return gn({},F,Y)}}var Oa;Oa={};var mf=null,oo=null;function io(f){f.context._currentValue=f.parentValue}function Zu(f){f.context._currentValue=f.value}function Un(f,b){if(f!==b){io(f);var F=f.parent,B=b.parent;if(F===null){if(B!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(B===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Un(F,B)}Zu(b)}}function Js(f){io(f);var b=f.parent;b!==null&&Js(b)}function Qs(f){var b=f.parent;b!==null&&Qs(b),Zu(f)}function $i(f,b){io(f);var F=f.parent;if(F===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");F.depth===b.depth?Un(F,b):$i(F,b)}function Uu(f,b){var F=b.parent;if(F===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");f.depth===F.depth?Un(f,F):Uu(f,F),Zu(b)}function Li(f){var b=oo,F=f;b!==F&&(b===null?Qs(F):F===null?Js(b):b.depth===F.depth?Un(b,F):b.depth>F.depth?$i(b,F):Uu(b,F),oo=F)}function vf(f,b){var F;F=f._currentValue,f._currentValue=b,f._currentRenderer!==void 0&&f._currentRenderer!==null&&f._currentRenderer!==Oa&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),f._currentRenderer=Oa;var B=oo,V={parent:B,depth:B===null?0:B.depth+1,context:f,parentValue:F,value:b};return oo=V,V}function bf(f){var b=oo;if(b===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");b.context!==f&&a("The parent context is not the expected context. This is probably a bug in React.");{var F=b.parentValue;F===gm?b.context._currentValue=b.context._defaultValue:b.context._currentValue=F,f._currentRenderer!==void 0&&f._currentRenderer!==null&&f._currentRenderer!==Oa&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),f._currentRenderer=Oa}return oo=b.parent}function Ks(){return oo}function _i(f){var b=f._currentValue;return b}function Xu(f){return f._reactInternals}function bm(f,b){f._reactInternals=b}var Uo={},qs={},Yu,el,tl,Wi,rl,Xo,Vi,nl,Yo;{Yu=new Set,el=new Set,tl=new Set,Vi=new Set,Wi=new Set,nl=new Set,Yo=new Set;var al=new Set;Xo=function(f,b){if(!(f===null||typeof f=="function")){var F=b+"_"+f;al.has(F)||(al.add(F),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,f))}},rl=function(f,b){if(b===void 0){var F=sr(f)||"Component";Wi.has(F)||(Wi.add(F),a("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",F))}}}function ol(f,b){{var F=f.constructor,B=F&&sr(F)||"ReactClass",V=B+"."+b;if(Uo[V])return;a(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
201
|
+
|
|
202
|
+
Please check the code for the %s component.`,b,b,B),Uo[V]=!0}}var il={isMounted:function(f){return!1},enqueueSetState:function(f,b,F){var B=Xu(f);B.queue===null?ol(f,"setState"):(B.queue.push(b),F!=null&&Xo(F,"setState"))},enqueueReplaceState:function(f,b,F){var B=Xu(f);B.replace=!0,B.queue=[b],F!=null&&Xo(F,"setState")},enqueueForceUpdate:function(f,b){var F=Xu(f);F.queue===null?ol(f,"forceUpdate"):b!=null&&Xo(b,"setState")}};function xf(f,b,F,B,V){var Y=F(V,B);rl(b,Y);var ue=Y==null?B:gn({},B,Y);return ue}function yf(f,b,F){var B=ao,V=f.contextType;if("contextType"in f){var Y=V===null||V!==void 0&&V.$$typeof===zs&&V._context===void 0;if(!Y&&!Yo.has(f)){Yo.add(f);var ue="";V===void 0?ue=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof V!="object"?ue=" However, it is set to a "+typeof V+".":V.$$typeof===Hs?ue=" Did you accidentally pass the Context.Provider instead?":V._context!==void 0?ue=" Did you accidentally pass the Context.Consumer instead?":ue=" However, it is set to an object with keys {"+Object.keys(V).join(", ")+"}.",a("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",sr(f)||"Component",ue)}}typeof V=="object"&&V!==null?B=_i(V):B=F;var Ae=new f(b,B);{if(typeof f.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var d=sr(f)||"Component";Yu.has(d)||(Yu.add(d),a("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,Ae.state===null?"null":"undefined",d))}if(typeof f.getDerivedStateFromProps=="function"||typeof Ae.getSnapshotBeforeUpdate=="function"){var g=null,D=null,I=null;if(typeof Ae.componentWillMount=="function"&&Ae.componentWillMount.__suppressDeprecationWarning!==!0?g="componentWillMount":typeof Ae.UNSAFE_componentWillMount=="function"&&(g="UNSAFE_componentWillMount"),typeof Ae.componentWillReceiveProps=="function"&&Ae.componentWillReceiveProps.__suppressDeprecationWarning!==!0?D="componentWillReceiveProps":typeof Ae.UNSAFE_componentWillReceiveProps=="function"&&(D="UNSAFE_componentWillReceiveProps"),typeof Ae.componentWillUpdate=="function"&&Ae.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof Ae.UNSAFE_componentWillUpdate=="function"&&(I="UNSAFE_componentWillUpdate"),g!==null||D!==null||I!==null){var R=sr(f)||"Component",X=typeof f.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";tl.has(R)||(tl.add(R),a(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
203
|
+
|
|
204
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
205
|
+
|
|
206
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
207
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,R,X,g!==null?`
|
|
208
|
+
`+g:"",D!==null?`
|
|
209
|
+
`+D:"",I!==null?`
|
|
210
|
+
`+I:""))}}}return Ae}function Cf(f,b,F){{var B=sr(b)||"Component",V=f.render;V||(b.prototype&&typeof b.prototype.render=="function"?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",B):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",B)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&a("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",B),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&a("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",B),f.propTypes&&a("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",B),f.contextType&&a("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",B),f.contextTypes&&a("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",B),b.contextType&&b.contextTypes&&!nl.has(b)&&(nl.add(b),a("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",B)),typeof f.componentShouldUpdate=="function"&&a("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",B),b.prototype&&b.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&a("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",sr(b)||"A pure component"),typeof f.componentDidUnmount=="function"&&a("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",B),typeof f.componentDidReceiveProps=="function"&&a("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",B),typeof f.componentWillRecieveProps=="function"&&a("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",B),typeof f.UNSAFE_componentWillRecieveProps=="function"&&a("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",B);var Y=f.props!==F;f.props!==void 0&&Y&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",B,B),f.defaultProps&&a("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",B,B),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!el.has(b)&&(el.add(b),a("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",sr(b))),typeof f.getDerivedStateFromProps=="function"&&a("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof f.getDerivedStateFromError=="function"&&a("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof b.getSnapshotBeforeUpdate=="function"&&a("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",B);var ue=f.state;ue&&(typeof ue!="object"||wt(ue))&&a("%s.state: must be set to an object or null",B),typeof f.getChildContext=="function"&&typeof b.childContextTypes!="object"&&a("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",B)}}function xm(f,b){var F=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var B=sr(f)||"Unknown";qs[B]||(n(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
211
|
+
|
|
212
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
213
|
+
|
|
214
|
+
Please update the following components: %s`,B),qs[B]=!0)}b.componentWillMount()}typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),F!==b.state&&(a("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",sr(f)||"Component"),il.enqueueReplaceState(b,b.state,null))}function ym(f,b,F,B){if(f.queue!==null&&f.queue.length>0){var V=f.queue,Y=f.replace;if(f.queue=null,f.replace=!1,Y&&V.length===1)b.state=V[0];else{for(var ue=Y?V[0]:b.state,Ae=!0,d=Y?1:0;d<V.length;d++){var g=V[d],D=typeof g=="function"?g.call(b,ue,F,B):g;D!=null&&(Ae?(Ae=!1,ue=gn({},ue,D)):gn(ue,D))}b.state=ue}}else f.queue=null}function wf(f,b,F,B){Cf(f,b,F);var V=f.state!==void 0?f.state:null;f.updater=il,f.props=F,f.state=V;var Y={queue:[],replace:!1};bm(f,Y);var ue=b.contextType;if(typeof ue=="object"&&ue!==null?f.context=_i(ue):f.context=B,f.state===F){var Ae=sr(b)||"Component";Vi.has(Ae)||(Vi.add(Ae),a("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Ae))}var d=b.getDerivedStateFromProps;typeof d=="function"&&(f.state=xf(f,b,d,V,F)),typeof b.getDerivedStateFromProps!="function"&&typeof f.getSnapshotBeforeUpdate!="function"&&(typeof f.UNSAFE_componentWillMount=="function"||typeof f.componentWillMount=="function")&&(xm(b,f),ym(Y,f,F,B))}var Cm={id:1,overflow:""};function wm(f){var b=f.overflow,F=f.id,B=F&~Em(F);return B.toString(32)+b}function sl(f,b,F){var B=f.id,V=f.overflow,Y=ll(B)-1,ue=B&~(1<<Y),Ae=F+1,d=ll(b)+Y;if(d>30){var g=Y-Y%5,D=(1<<g)-1,I=(ue&D).toString(32),R=ue>>g,X=Y-g,ie=ll(b)+X,De=Ae<<X,Le=De|R,rt=I+V;return{id:1<<ie|Le,overflow:rt}}else{var st=Ae<<Y,mt=st|ue,Qt=V;return{id:1<<d|mt,overflow:Qt}}}function ll(f){return 32-Ju(f)}function Em(f){return 1<<ll(f)-1}var Ju=Math.clz32?Math.clz32:Sm,ul=Math.log,Dm=Math.LN2;function Sm(f){var b=f>>>0;return b===0?32:31-(ul(b)/Dm|0)|0}function Am(f,b){return f===b&&(f!==0||1/f===1/b)||f!==f&&b!==b}var Fm=typeof Object.is=="function"?Object.is:Am,fa=null,Qu=null,cl=null,Pt=null,so=!1,lo=!1,Vt=0,mn=null,uo=0,dl=25,Ar=!1,ha;function co(){if(fa===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
215
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
216
|
+
2. You might be breaking the Rules of Hooks
|
|
217
|
+
3. You might have more than one copy of React in the same app
|
|
218
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Ar&&a("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),fa}function Xn(f,b){if(b===null)return a("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ha),!1;f.length!==b.length&&a(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
219
|
+
|
|
220
|
+
Previous: %s
|
|
221
|
+
Incoming: %s`,ha,"["+f.join(", ")+"]","["+b.join(", ")+"]");for(var F=0;F<b.length&&F<f.length;F++)if(!Fm(f[F],b[F]))return!1;return!0}function fo(){if(uo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function pa(){return Pt===null?cl===null?(so=!1,cl=Pt=fo()):(so=!0,Pt=cl):Pt.next===null?(so=!1,Pt=Pt.next=fo()):(so=!0,Pt=Pt.next),Pt}function jm(f,b){fa=b,Qu=f,Ar=!1,Vt=0}function Ef(f,b,F,B){for(;lo;)lo=!1,Vt=0,uo+=1,Pt=null,F=f(b,B);return Ku(),F}function fl(){var f=Vt!==0;return f}function Ku(){Ar=!1,fa=null,Qu=null,lo=!1,cl=null,uo=0,mn=null,Pt=null}function Im(f){return Ar&&a("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),_i(f)}function Df(f){return ha="useContext",co(),_i(f)}function Hi(f,b){return typeof b=="function"?b(f):b}function Tm(f){return ha="useState",Sf(Hi,f)}function Sf(f,b,F){if(f!==Hi&&(ha="useReducer"),fa=co(),Pt=pa(),so){var B=Pt.queue,V=B.dispatch;if(mn!==null){var Y=mn.get(B);if(Y!==void 0){mn.delete(B);var ue=Pt.memoizedState,Ae=Y;do{var d=Ae.action;Ar=!0,ue=f(ue,d),Ar=!1,Ae=Ae.next}while(Ae!==null);return Pt.memoizedState=ue,[ue,V]}}return[Pt.memoizedState,V]}else{Ar=!0;var g;f===Hi?g=typeof b=="function"?b():b:g=F!==void 0?F(b):b,Ar=!1,Pt.memoizedState=g;var D=Pt.queue={last:null,dispatch:null},I=D.dispatch=Ff.bind(null,fa,D);return[Pt.memoizedState,I]}}function hl(f,b){fa=co(),Pt=pa();var F=b===void 0?null:b;if(Pt!==null){var B=Pt.memoizedState;if(B!==null&&F!==null){var V=B[1];if(Xn(F,V))return B[0]}}Ar=!0;var Y=f();return Ar=!1,Pt.memoizedState=[Y,F],Y}function km(f){fa=co(),Pt=pa();var b=Pt.memoizedState;if(b===null){var F={current:f};return Object.seal(F),Pt.memoizedState=F,F}else return b}function Af(f,b){ha="useLayoutEffect",a("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Ff(f,b,F){if(uo>=dl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(f===fa){lo=!0;var B={action:F,next:null};mn===null&&(mn=new Map);var V=mn.get(b);if(V===void 0)mn.set(b,B);else{for(var Y=V;Y.next!==null;)Y=Y.next;Y.next=B}}}function Bm(f,b){return hl(function(){return f},b)}function Pm(f,b,F){return co(),b(f._source)}function Om(f,b,F){if(F===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return F()}function Nm(f){return co(),f}function Mm(){throw new Error("startTransition cannot be called during server rendering.")}function Rm(){return co(),[!1,Mm]}function $m(){var f=Qu,b=wm(f.treeContext),F=qu;if(F===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var B=Vt++;return ja(F,b,B)}function pl(){}var jf={readContext:Im,useContext:Df,useMemo:hl,useReducer:Sf,useRef:km,useState:Tm,useInsertionEffect:pl,useLayoutEffect:Af,useCallback:Bm,useImperativeHandle:pl,useEffect:pl,useDebugValue:pl,useDeferredValue:Nm,useTransition:Rm,useId:$m,useMutableSource:Pm,useSyncExternalStore:Om},qu=null;function zi(f){qu=f}function If(f){try{var b="",F=f;do{switch(F.tag){case 0:b+=Oi(F.type,null,null);break;case 1:b+=pf(F.type,null,null);break;case 2:b+=Xs(F.type,null,null);break}F=F.parent}while(F);return b}catch(B){return`
|
|
222
|
+
Error generating stack: `+B.message+`
|
|
223
|
+
`+B.stack}}var Gi=r.ReactCurrentDispatcher,gl=r.ReactDebugCurrentFrame,ec=0,Na=1,ml=2,vl=3,ho=4,Tf=0,tc=1,po=2,Lm=12800;function kf(f){return console.error(f),null}function Yn(){}function _m(f,b,F,B,V,Y,ue,Ae,d){var g=[],D=new Set,I={destination:null,responseState:b,progressiveChunkSize:B===void 0?Lm:B,status:Tf,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:g,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:V===void 0?kf:V,onAllReady:Y===void 0?Yn:Y,onShellReady:ue===void 0?Yn:ue,onShellError:Ae===void 0?Yn:Ae,onFatalError:d===void 0?Yn:d},R=bl(I,0,null,F,!1,!1);R.parentFlushed=!0;var X=rc(I,f,null,R,D,ao,mf,Cm);return g.push(X),I}function Wm(f,b){var F=f.pingedTasks;F.push(b),F.length===1&&i(function(){return Qi(f)})}function Zi(f,b){return{id:Qa,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function rc(f,b,F,B,V,Y,ue,Ae){f.allPendingTasks++,F===null?f.pendingRootTasks++:F.pendingTasks++;var d={node:b,ping:function(){return Wm(f,d)},blockedBoundary:F,blockedSegment:B,abortSet:V,legacyContext:Y,context:ue,treeContext:Ae};return d.componentStack=null,V.add(d),d}function bl(f,b,F,B,V,Y){return{status:ec,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:B,boundary:F,lastPushedText:V,textEmbedded:Y}}var ga=null;function Ui(){return ga===null||ga.componentStack===null?"":If(ga.componentStack)}function Ma(f,b){f.componentStack={tag:0,parent:f.componentStack,type:b}}function Jn(f,b){f.componentStack={tag:1,parent:f.componentStack,type:b}}function nc(f,b){f.componentStack={tag:2,parent:f.componentStack,type:b}}function vn(f){f.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):f.componentStack=f.componentStack.parent}var Jo=null;function ac(f,b){{var F;typeof b=="string"?F=b:b&&typeof b.message=="string"?F=b.message:F=String(b);var B=Jo||Ui();Jo=null,f.errorMessage=F,f.errorComponentStack=B}}function bn(f,b){var F=f.onError(b);if(F!=null&&typeof F!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof F+'" instead');return F}function Ra(f,b){var F=f.onShellError;F(b);var B=f.onFatalError;B(b),f.destination!==null?(f.status=po,j(f.destination,b)):(f.status=tc,f.fatalError=b)}function oc(f,b,F){Ma(b,"Suspense");var B=b.blockedBoundary,V=b.blockedSegment,Y=F.fallback,ue=F.children,Ae=new Set,d=Zi(f,Ae),g=V.chunks.length,D=bl(f,g,d,V.formatContext,!1,!1);V.children.push(D),V.lastPushedText=!1;var I=bl(f,0,null,V.formatContext,!1,!1);I.parentFlushed=!0,b.blockedBoundary=d,b.blockedSegment=I;try{if(pc(f,b,ue),Ta(I.chunks,f.responseState,I.lastPushedText,I.textEmbedded),I.status=Na,Cl(d,I),d.pendingTasks===0){vn(b);return}}catch(X){I.status=ho,d.forceClientRender=!0,d.errorDigest=bn(f,X),ac(d,X)}finally{b.blockedBoundary=B,b.blockedSegment=V}var R=rc(f,Y,B,D,Ae,b.legacyContext,b.context,b.treeContext);R.componentStack=b.componentStack,f.pingedTasks.push(R),vn(b)}function Xi(f,b,F,B){Ma(b,F);var V=b.blockedSegment,Y=Di(V.chunks,F,B,f.responseState,V.formatContext);V.lastPushedText=!1;var ue=V.formatContext;V.formatContext=Wn(ue,F,B),pc(f,b,Y),V.formatContext=ue,ks(V.chunks,F),V.lastPushedText=!1,vn(b)}function xl(f){return f.prototype&&f.prototype.isReactComponent}function Bf(f,b,F,B,V){var Y={};jm(b,Y);var ue=F(B,V);return Ef(F,B,ue,V)}function Pf(f,b,F,B,V){var Y=F.render();F.props!==V&&(Ji||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",sr(B)||"a component"),Ji=!0);{var ue=B.childContextTypes;if(ue!=null){var Ae=b.legacyContext,d=Gu(F,B,Ae,ue);b.legacyContext=d,nn(f,b,Y),b.legacyContext=Ae;return}}nn(f,b,Y)}function Vm(f,b,F,B){nc(b,F);var V=zu(F,b.legacyContext),Y=yf(F,B,V);wf(Y,F,B,V),Pf(f,b,Y,F,B),vn(b)}var ic={},Yi={},Of={},sc={},Ji=!1,lc=!1,uc=!1,cc=!1;function Nf(f,b,F,B){var V;if(V=zu(F,b.legacyContext),Jn(b,F),F.prototype&&typeof F.prototype.render=="function"){var Y=sr(F)||"Unknown";ic[Y]||(a("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",Y,Y),ic[Y]=!0)}var ue=Bf(f,b,F,B,V),Ae=fl();if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){var d=sr(F)||"Unknown";Yi[d]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),Yi[d]=!0)}if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){{var g=sr(F)||"Unknown";Yi[g]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",g,g,g),Yi[g]=!0)}wf(ue,F,B,V),Pf(f,b,ue,F,B)}else if(Mf(F),Ae){var D=b.treeContext,I=1,R=0;b.treeContext=sl(D,I,R);try{nn(f,b,ue)}finally{b.treeContext=D}}else nn(f,b,ue);vn(b)}function Mf(f){{if(f&&f.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",f.displayName||f.name||"Component"),typeof f.getDerivedStateFromProps=="function"){var b=sr(f)||"Unknown";sc[b]||(a("%s: Function components do not support getDerivedStateFromProps.",b),sc[b]=!0)}if(typeof f.contextType=="object"&&f.contextType!==null){var F=sr(f)||"Unknown";Of[F]||(a("%s: Function components do not support contextType.",F),Of[F]=!0)}}}function dc(f,b){if(f&&f.defaultProps){var F=gn({},b),B=f.defaultProps;for(var V in B)F[V]===void 0&&(F[V]=B[V]);return F}return b}function Hm(f,b,F,B,V){Jn(b,F.render);var Y=Bf(f,b,F.render,B,V),ue=fl();if(ue){var Ae=b.treeContext,d=1,g=0;b.treeContext=sl(Ae,d,g);try{nn(f,b,Y)}finally{b.treeContext=Ae}}else nn(f,b,Y);vn(b)}function zm(f,b,F,B,V){var Y=F.type,ue=dc(Y,B);fc(f,b,Y,ue,V)}function Rf(f,b,F,B){F._context===void 0?F!==F.Consumer&&(cc||(cc=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):F=F._context;var V=B.children;typeof V!="function"&&a("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Y=_i(F),ue=V(Y);nn(f,b,ue)}function Gm(f,b,F,B){var V=F._context,Y=B.value,ue=B.children,Ae;Ae=b.context,b.context=vf(V,Y),nn(f,b,ue),b.context=bf(V),Ae!==b.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zm(f,b,F,B,V){Ma(b,"Lazy");var Y=F._payload,ue=F._init,Ae=ue(Y),d=dc(Ae,B);fc(f,b,Ae,d,V),vn(b)}function fc(f,b,F,B,V){if(typeof F=="function")if(xl(F)){Vm(f,b,F,B);return}else{Nf(f,b,F,B);return}if(typeof F=="string"){Xi(f,b,F,B);return}switch(F){case Zs:case Bu:case lf:case Tu:case rn:{nn(f,b,B.children);return}case ki:{Ma(b,"SuspenseList"),nn(f,b,B.children),vn(b);return}case ku:throw new Error("ReactDOMServer does not yet support scope components.");case Ti:{oc(f,b,B);return}}if(typeof F=="object"&&F!==null)switch(F.$$typeof){case Gs:{Hm(f,b,F,B,V);return}case Bi:{zm(f,b,F,B,V);return}case Hs:{Gm(f,b,F,B);return}case zs:{Rf(f,b,F,B);return}case Ho:{Zm(f,b,F,B);return}}var Y="";throw(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(Y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(F==null?F:typeof F)+"."+Y))}function Um(f,b){typeof Symbol=="function"&&f[Symbol.toStringTag]==="Generator"&&(lc||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),lc=!0),f.entries===b&&(uc||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),uc=!0)}function nn(f,b,F){try{return hc(f,b,F)}catch(B){throw typeof B=="object"&&B!==null&&typeof B.then=="function"||(Jo=Jo!==null?Jo:Ui()),B}}function hc(f,b,F){if(b.node=F,typeof F=="object"&&F!==null){switch(F.$$typeof){case pm:{var B=F,V=B.type,Y=B.props,ue=B.ref;fc(f,b,V,Y,ue);return}case sf:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ho:{var Ae=F,d=Ae._payload,g=Ae._init,D;try{D=g(d)}catch(st){throw typeof st=="object"&&st!==null&&typeof st.then=="function"&&Ma(b,"Lazy"),st}nn(f,b,D);return}}if(wt(F)){$f(f,b,F);return}var I=vm(F);if(I){Um(F,I);var R=I.call(F);if(R){var X=R.next();if(!X.done){var ie=[];do ie.push(X.value),X=R.next();while(!X.done);$f(f,b,ie);return}return}}var De=Object.prototype.toString.call(F);throw new Error("Objects are not valid as a React child (found: "+(De==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":De)+"). If you meant to render a collection of children, use an array instead.")}if(typeof F=="string"){var Le=b.blockedSegment;Le.lastPushedText=Ia(b.blockedSegment.chunks,F,f.responseState,Le.lastPushedText);return}if(typeof F=="number"){var rt=b.blockedSegment;rt.lastPushedText=Ia(b.blockedSegment.chunks,""+F,f.responseState,rt.lastPushedText);return}typeof F=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function $f(f,b,F){for(var B=F.length,V=0;V<B;V++){var Y=b.treeContext;b.treeContext=sl(Y,B,V);try{pc(f,b,F[V])}finally{b.treeContext=Y}}}function an(f,b,F){var B=b.blockedSegment,V=B.chunks.length,Y=bl(f,V,null,B.formatContext,B.lastPushedText,!0);B.children.push(Y),B.lastPushedText=!1;var ue=rc(f,b.node,b.blockedBoundary,Y,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(ue.componentStack=b.componentStack.parent);var Ae=ue.ping;F.then(Ae,Ae)}function pc(f,b,F){var B=b.blockedSegment.formatContext,V=b.legacyContext,Y=b.context,ue=null;ue=b.componentStack;try{return nn(f,b,F)}catch(Ae){if(Ku(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){an(f,b,Ae),b.blockedSegment.formatContext=B,b.legacyContext=V,b.context=Y,Li(Y),b.componentStack=ue;return}else throw b.blockedSegment.formatContext=B,b.legacyContext=V,b.context=Y,Li(Y),b.componentStack=ue,Ae}}function Lf(f,b,F,B){var V=bn(f,B);if(b===null?Ra(f,B):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=V,ac(b,B),b.parentFlushed&&f.clientRenderedBoundaries.push(b))),f.allPendingTasks--,f.allPendingTasks===0){var Y=f.onAllReady;Y()}}function Xm(f){var b=this,F=f.blockedBoundary,B=f.blockedSegment;B.status=vl,_f(b,F,B)}function yl(f,b,F){var B=f.blockedBoundary,V=f.blockedSegment;if(V.status=vl,B===null)b.allPendingTasks--,b.status!==po&&(b.status=po,b.destination!==null&&E(b.destination));else{if(B.pendingTasks--,!B.forceClientRender){B.forceClientRender=!0;var Y=F===void 0?new Error("The render was aborted by the server without a reason."):F;B.errorDigest=b.onError(Y);{var ue="The server did not finish this Suspense boundary: ";Y&&typeof Y.message=="string"?Y=ue+Y.message:Y=ue+String(Y);var Ae=ga;ga=f;try{ac(B,Y)}finally{ga=Ae}}B.parentFlushed&&b.clientRenderedBoundaries.push(B)}if(B.fallbackAbortableTasks.forEach(function(g){return yl(g,b,F)}),B.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var d=b.onAllReady;d()}}}function Cl(f,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var F=b.children[0];F.id=b.id,F.parentFlushed=!0,F.status===Na&&Cl(f,F)}else{var B=f.completedSegments;B.push(b)}}function _f(f,b,F){if(b===null){if(F.parentFlushed){if(f.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");f.completedRootSegment=F}if(f.pendingRootTasks--,f.pendingRootTasks===0){f.onShellError=Yn;var B=f.onShellReady;B()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)F.parentFlushed&&F.status===Na&&Cl(b,F),b.parentFlushed&&f.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(Xm,f),b.fallbackAbortableTasks.clear();else if(F.parentFlushed&&F.status===Na){Cl(b,F);var V=b.completedSegments;V.length===1&&b.parentFlushed&&f.partialBoundaries.push(b)}}if(f.allPendingTasks--,f.allPendingTasks===0){var Y=f.onAllReady;Y()}}function Wf(f,b){var F=b.blockedSegment;if(F.status===ec){Li(b.context);var B=null;B=ga,ga=b;try{nn(f,b,b.node),Ta(F.chunks,f.responseState,F.lastPushedText,F.textEmbedded),b.abortSet.delete(b),F.status=Na,_f(f,b.blockedBoundary,F)}catch(Y){if(Ku(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){var V=b.ping;Y.then(V,V)}else b.abortSet.delete(b),F.status=ho,Lf(f,b.blockedBoundary,F,Y)}finally{ga=B}}}function Qi(f){if(f.status!==po){var b=Ks(),F=Gi.current;Gi.current=jf;var B;B=gl.getCurrentStack,gl.getCurrentStack=Ui;var V=qu;zi(f.responseState);try{var Y=f.pingedTasks,ue;for(ue=0;ue<Y.length;ue++){var Ae=Y[ue];Wf(f,Ae)}Y.splice(0,ue),f.destination!==null&&El(f,f.destination)}catch(d){bn(f,d),Ra(f,d)}finally{zi(V),Gi.current=F,gl.getCurrentStack=B,F===jf&&Li(b)}}}function Ki(f,b,F){switch(F.parentFlushed=!0,F.status){case ec:{var B=F.id=f.nextSegmentId++;return F.lastPushedText=!1,F.textEmbedded=!1,Oo(b,f.responseState,B)}case Na:{F.status=ml;for(var V=!0,Y=F.chunks,ue=0,Ae=F.children,d=0;d<Ae.length;d++){for(var g=Ae[d];ue<g.index;ue++)p(b,Y[ue]);V=wl(f,b,g)}for(;ue<Y.length-1;ue++)p(b,Y[ue]);return ue<Y.length&&(V=x(b,Y[ue])),V}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function wl(f,b,F){var B=F.boundary;if(B===null)return Ki(f,b,F);if(B.parentFlushed=!0,B.forceClientRender)return _r(b,f.responseState,B.errorDigest,B.errorMessage,B.errorComponentStack),Ki(f,b,F),Su(b,f.responseState);if(B.pendingTasks>0){B.rootSegmentID=f.nextSegmentId++,B.completedSegments.length>0&&f.partialBoundaries.push(B);var V=B.id=Ka(f.responseState);return Ro(b,f.responseState,V),Ki(f,b,F),$o(b,f.responseState)}else{if(B.byteSize>f.progressiveChunkSize)return B.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(B),Ro(b,f.responseState,B.id),Ki(f,b,F),$o(b,f.responseState);Ps(b,f.responseState);var Y=B.completedSegments;if(Y.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ue=Y[0];return wl(f,b,ue),Os(b,f.responseState)}}function Vf(f,b,F){return af(b,f.responseState,F.id,F.errorDigest,F.errorMessage,F.errorComponentStack)}function qi(f,b,F){return Ct(b,f.responseState,F.formatContext,F.id),wl(f,b,F),Ut(b,F.formatContext)}function es(f,b,F){for(var B=F.completedSegments,V=0;V<B.length;V++){var Y=B[V];gc(f,b,F,Y)}return B.length=0,Au(b,f.responseState,F.id,F.rootSegmentID)}function Ym(f,b,F){for(var B=F.completedSegments,V=0;V<B.length;V++){var Y=B[V];if(!gc(f,b,F,Y))return V++,B.splice(0,V),!1}return B.splice(0,V),!0}function gc(f,b,F,B){if(B.status===ml)return!0;var V=B.id;if(V===-1){var Y=B.id=F.rootSegmentID;if(Y===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return qi(f,b,B)}else return qi(f,b,B),im(b,f.responseState,V)}function El(f,b){m();try{var F=f.completedRootSegment;F!==null&&f.pendingRootTasks===0&&(wl(f,b,F),f.completedRootSegment=null,wu(b,f.responseState));var B=f.clientRenderedBoundaries,V;for(V=0;V<B.length;V++){var Y=B[V];Vf(f,b,Y)}B.splice(0,V);var ue=f.completedBoundaries;for(V=0;V<ue.length;V++){var Ae=ue[V];es(f,b,Ae)}ue.splice(0,V),C(b),m(b);var d=f.partialBoundaries;for(V=0;V<d.length;V++){var g=d[V];if(!Ym(f,b,g)){f.destination=null,V++,d.splice(0,V);return}}d.splice(0,V);var D=f.completedBoundaries;for(V=0;V<D.length;V++){var I=D[V];es(f,b,I)}D.splice(0,V)}finally{C(b),f.allPendingTasks===0&&f.pingedTasks.length===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0&&(f.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),E(b))}}function Jm(f){i(function(){return Qi(f)})}function Hf(f,b){if(f.status===tc){f.status=po,j(b,f.fatalError);return}if(f.status!==po&&f.destination===null){f.destination=b;try{El(f,b)}catch(F){bn(f,F),Ra(f,F)}}}function Dl(f,b){try{var F=f.abortableTasks;F.forEach(function(B){return yl(B,f,b)}),F.clear(),f.destination!==null&&El(f,f.destination)}catch(B){bn(f,B),Ra(f,B)}}function Qm(f,b){return new Promise(function(F,B){var V,Y,ue=new Promise(function(R,X){Y=R,V=X});function Ae(){var R=new ReadableStream({type:"bytes",pull:function(X){Hf(g,X)},cancel:function(X){Dl(g)}},{highWaterMark:0});R.allReady=ue,F(R)}function d(R){ue.catch(function(){}),B(R)}var g=_m(f,dn(b?b.identifierPrefix:void 0,b?b.nonce:void 0,b?b.bootstrapScriptContent:void 0,b?b.bootstrapScripts:void 0,b?b.bootstrapModules:void 0),Bn(b?b.namespaceURI:void 0),b?b.progressiveChunkSize:void 0,b?b.onError:void 0,Y,Ae,d,V);if(b&&b.signal){var D=b.signal,I=function(){Dl(g,D.reason),D.removeEventListener("abort",I)};D.addEventListener("abort",I)}Jm(g)})}Vd.renderToReadableStream=Qm,Vd.version=t}()),Vd}var xi,xg;process.env.NODE_ENV==="production"?(xi=Lk(),xg=_k()):(xi=Wk(),xg=Vk()),gi.version=xi.version,gi.renderToString=xi.renderToString,gi.renderToStaticMarkup=xi.renderToStaticMarkup,gi.renderToNodeStream=xi.renderToNodeStream,gi.renderToStaticNodeStream=xi.renderToStaticNodeStream,gi.renderToReadableStream=xg.renderToReadableStream;let Hk="iVBORw0KGgoAAAANSUhEUgAAANUAAABhCAYAAABBG+TgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACEgSURBVHhe7Z0HWFRXFsfPG1SaFKWDgBUsWLH3lthN1cQYY5ItiellN9mYxGQ3m2rcbDYxuiamJ2qqaa4NK/aOFaWIIgqKIE1Rmbf3f+eNvJl5b2DgDWK8v++bj3nDlDdw/++ce+4550pl5ZdlEggEhmFSfgoEAoMQohIIDEaISiAwGCEqgcBghKgEAoMRohIIDEaISiAwGCEqgcBg6p2oZJmowkx0qULmN9wXCK4l6lVGRckFmbIKJcotluliheWxhh5EjT0tP70bSOTbiP1sKJOfp0SeDWSSJMnyRIGgnlBvRFVWTrQqXaYf98qUUyRzi2XFxHTjw8QU6CVRkC9RMLuF+xGF+UsU5idRqK9MIY0laiCcWUE9oF6ICidw8BTRrDVmOsEEVV18G0lMTDJFMnHFNpGoTQhR21CJmnizLyYMmOAqUS9EdZnNm9akyVxUNT2ZRsw9DPaVKDKAqGMEUb8WEkUFSCS0Jahr6o2oVqeZmahqfyoQkQ+bgwX7SNQ1imhcB4u4BIK6ot7MqQ7lEr25ykwni407nYZsjuXnRTSqrUQ3JZjIn90XCNxNvRHVpQqipCMyfbFdpqILMncDebCCGRl+n1mzmp4o7FQMm3Pd00OiHtESF5uYcwncRb0RFTCzMzleyKxWHkLqTFznJf7zdClRPrsVlMlUflmiC+yx8kvsJ/xGF2ZN3g2JhsdJNLa9iaIDLVFFgcBo6pWoqqLsoky5xRIdLZAp7QxRZr5MeSUyFZwnKr2oPKkKoKOEcKIJXUxszsWsloflcYHAKK4pUdkDIcGqpZ5mt1yZMvIlOsOsmXqNS48QX4lu7UQ0rLVE/t7CZAmM45oWlRW4jaeZxTqYS7TnpEzbjsFdtMzLnIGMjJFtTXRbJxOFNlYeFAhqye8iBwFzI2RWDGwl0dTuEj0+QKJhcSZq1EB5gg6Yny09JNNn28xsLnd1ry0rV66ge+6+i7Zt3ao8IrhW+V0l9kBcgcyVS4yW6A+9JJo+1ERtQpy7duWXiZIzZfpqp3xVhZWedoS++/Ybys4+rjwiuFb5XWbLQVxIVeoZK9FLI0w0LsFEHk6+KYS1gQlrARPWSRfSpAQCLX6XorICcQX7EP2JWa3H+psoADmByu/swTrZ2gyZlhwkKilXHrxGuXz5Mp0+nUcPT3uAMjLS+bFcneiNwBB+16KygrxArE89PsBEzYNI12qhdmvxPjOtTUctl/LgVcRsNtO5wkIqLCigixert2aQf+YMvTzjRerWpRN98vF86turBz35xGN0YP/+ar+HoHZcF6ICEFJv5g7+oZeJ2oWRbpkIxPTxNpl25ygZHQZTXl5O+/fto6SklbRxwwbdORSe978lv9Gr/3yFXn55Bv36y89UcPas8lt9Zr71Ji1auIA6d+5M3RITqbi4mOZ/OI8efOCPlJy8ni5duqQ8U+AurhtRAbiD3aIkuqe7ieJC9TPYS8tl+miTmU4ZmIcI4IIt/d8SevihB+jmcWNo8qQ76I3XXqUTJ7KVZ1Ty9Zdf0F13TqT333uX5s2dQ3975q9ciLBezjhy5DBNumsy/bD4F/pgzjxq1KgRBYeEMAuWT+/9+x3KyjqqPFPgLq4rUQEIKyFcorsTJYptqjyoQVYhQu2WNTCjgJVAhG/f3r00ctRoCggIoELm3tlbDwjnjddfo9at29D051+kBx96mBo0aEArli+j3NxTyrP0adGiBXl4eFBEZAR5+/jQKPZZk++eQtt3bKf0tDQxv3Iz152oAISFFKUH+3pQEyfZFMmZZvplv3PL4AoYzBUVFeTn50/PPPscvffBHHphxkvUvHkL5RkWIKrSslIaOmw4PfvcdHrxxZfopptvoeT16ykzI1N5ljYtWrSkefPm0urVq+idWbMoLDSM/vTnB2nEyFHUqlUrunDhQpXWTlA7fhcZFTUFVmgT84ZeS6rQbTDTLFCiV0dLFNZYX3zVAYLCQH/2L09zFy2hY0eKjW3Oe2wkdu9OPsyiPPn4Y/TVgkU0bvxN1Dwminy8fahZdDP++pM5J7mb2KZNHAUEBvDX4T2tP0OZeCCW3bt20cmTORQTE8sjgPhdu/btuTU8evQozftwPo0ZO45MpuvyelonXNeiAlij+i7FzEtOtEDC7ZDWEj01qHaDEAP+lb+/TG/PfJNbKwAXDYMbg3zQ4MFXRHXLrbfRnRNvp59/WsyfVx3wXsD63j179eJuZllZGT8Go0aPobfensUsVmvlEYE7uO5FBU6ck+mdtWbapzNdQS3W04Mkig+tubWCxVizZjVt3rRJeaSS+Ph47gIuW7aUCepWatu2HX/8t19/oT27d1NBQQGtSlpJJiacYcwlDA0LpfLyi+Tl5cncOcuiWkCAPxcu5l6dOnWh3n36UElJCS357VduofD5N944gkcERQcq9yJExYAbuD5Dpv+sZ3MZjaUchN9viDfRQ33rplQE856cnBN80TZlzx76+qsvuaj+8c9XadpDj1DDhg2VZwrqI/VGVFgfKrko80F9/pJEF5lbhgJF68k1ZBdXzwaW/hP+nhLvBYiAg1GcuyDTlztkWnJAJvaxDrQKkmlaXw9KiHD/VR7W7ObxY6ioqIgfY741ZOgwem76C9zSCOo3V1VUzCOh06VIZJUou9BMRwuITrFxdKaUDXLm1RSft4gK3gr6/gUwIaHfX3QTE7VsStSc3dCazMuACzc+Z/sxM320hSirwPFPgoz3iZ0lurOrye39BTEXevKJR/kCcHBwCCUkdKQJE++gjp06Kc8Q1GeuiqjgbmUXyrTrhEwHcolX8WKh1ZUWz7BaLYOI2oeZeFZ6hzCZPVY7K3L+EjFRybQ81dJy2p7EZkR/7uPBhKw84CZgoZB1geBDeEQ4RUU1uxKIENR/6lxUqMxdn24pJEw9w9y9WiavwgWMbSpRLyas4fFEzWrRjgyWc2e2TB9slHnwwp7GzO18YoBE/Vu63wUUXLvU2WIFrNC+k2zAJsu0YDfR7pzaCwrA6h09K9PP+800l4kBn1HTqwTczHbhlq63WgEy9MhApgUsmkCgR52ICk2P1mWgA61MW7LQJUk2NP0HFqaMDXS4k++uk2nnCYvYaoI3cysHtDDxOZw9eM/NWUR5xcoDAoEGbhcVBuLSQ2Z6e42lUaZWZE0PWAvrrTrAGh5nbttbq8x0+LQl+OAq+Kx+LZirh3CjBtmFRCU1qKBA0OGZvzxNPmwyqL716dVdeYY+Z86cpscfe8Thtc0iw5RnVM3KFcspsUsnh/fAbdzokXT0qPP0J+Qi+vt62byuQ9s4/r20wLrYpo0byderoc1rcBs+dJDyLG1+/OF7h9c88vA0ystjE3An/PLzTxQbHenwWtymTJ5Ex4+zOUcd4FZRYTucH/bK9D5z+aoKQmBu5MWsRKAXUYQfUcdIiQayucvgVpafnaOQKoSOs1Xv7nGOWcJXV5gpp4bl8QjZB/lqv/b8JbREM9bSuhsM8L17U3h6lBa7du+ilcuX8+fp4ePjTZ6ensqRBSw2lxRrm21kdmDxWus9UfKCkhQ9UPJiT0R4BPn66nfnweesWpVExcoyhD3r162j48eOO/2ORuE2UWHdadVhM320ueqQHvpKIHP8lo4mem64B71/m4lmjmX3h5no2aGWn6+PNtG7t3jQo/0k6t9C4sJztk6FUP2/1pn5+pOrIC3uxjhJ10JuO2amC9fQvAqFjsePH7+SwmTP2fx8Sk9P17U6ICYmlucXqkE+4YkTzNfWAIJLSlqhHDmSzc5Hj4MHDyj3LHh7e1NERAT/qQes+SH2Or3vACt3YP++OinUdIuocBXfelymz7YrD+iA7ATUN01JJHpmqERTezCLFGnZIsceCCiQ/U3RMenJgSZ6sK+JesVYWjjrceAU0U/7lAMX6RatX2+196RE56+hRJQUZqVWLFvm9CqdmnqIjh1jE0YduvfoQXHx8cqRhZKSYlq/fq1yZAs+69gxfXdr3bo1yj1bMOhzT9m6eW3i4iiubVunScCwRMjgd/YdkdBcWlKiHLkPt4jqaD5z+1LMVOjESgT5SHQbs0wPMcszpr2Jb4NTXTwbEvWKlWgaey129fDSmf/g09GCbP8p1wUQwNxMPUsF62eWq3++VxMMstxTpxyKE/38mKlXsXnzJp5nqDcoIyOjuLVQr5chWRfZH7BK9qQdOUJF584pR458+80i3dcVFhYoRxZatmxFsbGxypEjOGcsmMNaWYEAGze2dReRe3ny5EnlyH0YLqoyZl2XH5YpPR8lCcqDdmBrG1inO7pKvLSipoQ2lmgSe4+bEiTdvhMQwNJDyoELIIMC/da1wNKesytifQL9LbZv2+bg+t119xTlngU8D6Uleu4TBqm/f4BN3qG1wcz58+eVRypZuOBrm8/E69WJvAcOHNCc/6xeneRQtNk0KIiaNNGvKMV5w2VUnwdSu8aOG68cWUA7gh07trv9f2e4qNAhdusxmc05tE8cc6G7mBCGtDHxDQNqCwIX49pLNKyNtjgRIEEkMJNZT1fAuyU20/7zVDArVXTh2rBU2dnZ9P1339oMpL79+tFfn3nWIUtjdVKSZmm/lQ4JCRQYaJtOAnetuNhRHCtWLFPuWQQVERHJROmvPMJex8Sbk5OjHFWya+dOLlYrsDYxMTFcJHqghmxvSorNd+zduw9vK+DlZbt/0o/ff6fccx+GigrrT9vZXEqvtwMXQIKJZyR4MktgFEHs7z2UiTTCT3ug55WY+TqZq2AjAy3wvzO6f4U7wCBDlM2+BP/BaQ/zQe7r66s8YmHt2jVXykS0GH7DDbxEX83Z/LPMShxUjipRz6eQZjV2/HiKjql04WDFkpPXKUeVwFVVf354eATPfdSbT8GFzMzM4Fn9aibccSf/js2aRSuPWIALeOqUe11AQ0WVWShRCrv4aIWbPUwS9WF/05FsrmukoAC8ivgQooGttUV1gV348kpdF0G0kxy/jPyqo5pXG8x5vvziMwfXD/VacMVQoq8GVifnhKXkRAsM0uCgYBs3DoLdyVwqNZi/wZ200q5dO7r//j/azIvwWViPUoMLwCkmKvVcKzIqkltIPbD2tHXLFl4uo6Zf//4UHBLM68rUwL1NWrlSOXIPhokKFbSH87R7kuN/0CyAeH9zH43InhHAlUTmelMfx/fHhQ8bGLhqXZyJ/7LZmO9x+dJl7nI5u6GUviZRq9LSEj63UYMeFn7+liDFo4894WABPpw3l86e1feVAwIDbdzGc+fO8eCCWohokaYmKDiYCyosLOzKnAzWCN9L3XZt27at/P3UNG7sR0FMyHqkpaXRls2blSML+I4o+gwJCWXiGsALN9XMnTNbd3nBCAwTFQICmLtogdB5lyiJOtt6DoaD3elb6/z9z5RIzLooB9VExwviZFXdgq9aHD6cSgP79XV6Gz92NP20+EflFdUHIWb7wMPkKfdcGaRBwUFMYJXzHICgxuk8nX8kA/007Ocp+Ax1kABt2KxAgBAiujphnUu9gIzXqedV25mo1PMzfA7EYR/FswJrl5WZ6eDeTpl6L79Y4LOjohC1jFR+Y2Hnjh1VZpDUBkNEhcF3tpR0Q9d+zDohK0IPpC4Z0RE20FPiGRlalFxi51jZrqHegEgXGrU4u2HQlJayP7CLvPXm6zbzE4Amm9ZJv7eXN/Xu1ZvfV7N9+zblniOjx4zl1kMNyv3z88/w+zwiqBIlBJzQIYFbqC5du/IIopUiJqAtmyvbC2AhWe3GIeI3YOBA5cgRRB6XL1/mEC0cOXKUco/N59icqm3btspRJaikdheGiApzqDz2P9cbtM0CmR8fqhyo4OH3VJm+3C7Twl1m2nSUTaxrkAFhBVa+gU5NFaKArla5OHt2U/1gVL0AgztppW1GAwIGGORWl6+xnx9Nmny3gwv4wez3dedV6OYUyCyPmqyjR+lwaiq/n56eRueKKl04zIm69+jJ72N+ExLK3AkFhNS3bt3CXTEIAy2r1QLBWlr7Dh2UI0fQINTe9UNgomWrVsoRcbezW2J3hxYE6L9oPw8zCkNEdZmpKldnvoL5VFyI4zoSggfIuPhkq0wLmKAW7pJp/haZVqdbSuprAuQk6UhBZueoFUBxRoWTeVMTHxffrI5BlMv+Cn7jiBHUomVlj0HMNeBe2btz+/amXLE8WqDxjBoEC9LSjnCriEYzZSqrioahCIkDuH/oQ2gVMc4PgRHMF2GRYXnUQQpvH6Qn2bpuVvDalJQ9Ngu+YMy4cTZRTVjl5i1acBdUzeHUw7yxqDswRFRYtzmtN49mY6+Txt8FdU+r08w8ORXABTxRhIVamY7ZLqhXG7yHnnAkE4StLxItss7qR/iiAgz501GTpk1591hnt9snTKS4ONsUoap4/dVXHFw/DOBPPv6Yt0mz3r5ZtJA87UQFvvj8M+WeI2jyqQauKawGBjrWjDDXARAP1rVgEa3ENG9uE+goLimm3LxcnhGRc6JyfgXBd+3azSHsbwVzOEQP7QMOebm59K9ZM22+48YNycpvK0EQZ/nypcqRsRhS+Ytiw9kbZVp1xHEQYhx/PtlEwXZRuS93mOnbPdhtXnlAAVG8Z4aYqE9z1wQAECxBoeLqNMevhKggcgtHxFf/fd9LNtNvB7T/PLNv9aBW+kEpBzApf/H56bw3upqEjp1o+Yok5UibM8xqzJr5Fn326SfKIxaQaZCdo10OEREa5BBJQ5DA3g2CZcC52Q9OROwys7IdImcAlim+dUvlyMLjTzxFz784gybefgutXbOGCzqwSROa8dLLfF3MCjLX75s6hbdPA7CUr73xJl9nwmYM1mggLMxHH39KN99yKz+2B65il84J/KcaJN3aL2prfUcIfujQYbToux+cJurWBIMsFaJr+ld1e0EBM3etHB9HwMKVmis1Gez/kXlW+8Vw1xDWdwV0r9UCSbx+XjU8STs8mF+Mwef0xlyXRnZlF85ASzOt1CEMLAxm9Q1rWVrhZQxW+xw8K9HRMQ7uFIQGi5CXa+mKC/z9/GngwMH8vpXBQ4YywVRaH4gJWRQFZwvoguqcef/Czp2VI0d+ZeK0FxTA967Od4TQTp46RRnp6cojxmGMD8Mw6+Z0a+PriZJ1x4GJKuEsJgxXS9ZR6r47G6X1ygMqcGYR/iZqHVz9c0QQRa9spBG72KvWP+sd8/47x2E+VRPmzJ6t3HMkPMw23QSNarA+dVo1x4FljIy09f3hzqmzMuAqIsMB63HqwAFcUr35FPjs04+VezUH87hVq1Y6uMm1xRBRYXz5apSfW4FQ7EHXV70k2C3HZV4PVV3w/iknidZn6oiAeTBh7OLoSiYHuj3p/a1DfNiV1MX5WV2B2qjCgkKbgQKXLyQ0lFsYvRssj33nWogE1k0Le7cMqULIVEDtFsB7IaBhvw4G2re3jejtYvOwHTt22Jxz3779dN0yfEeIWA0EjJQmre9mvWG9S/0d4Wpi43K9wsaaYoioIA5/J96JViZDDPMePHUGJpJfN2aSblKuGgQmsD72wx4z5Wh0QALY/7ebbQqYU/C/XXJIX1T9Wki8l0V95Ouvv+QTfzXYkudvz03nfdT1buPH3+Qw34LblJGRoRzZguCJOhQPi4PonTVIgXkNesTbz28AehiqST10kBcYqrFPoVLz+eefOlQOoyfic88/r/ndrLdBg4fYfEeIGG4rCjSNxBhLxbSB6l0tMDDhztmD+ql4jbUrgHkVyvB/O+h83Qou36ojMn26zUwpOn3QIfi2oRJ1idQ+Py3wmXuwk6JyrKYBGyPtI0y8pqs+siE52eHKiyK/qffezweq3g0CwDqWmqKic/TtooU2FsRKfNu2DpkO6udBcMOH36gc2dJ/wECbrHO4qvbuao+elrUtLbDGZM+AAYNo4sQ7Nb+b9Xbb7RPIxy6aiIvGnt27bEL5tcUwS6W7GMrG8qE8xwGN14xP0B/oRWxgL9xNvAffmjR2RWFWqJh5IlhgRjrU0oNmen8DBCXTQSf9QJBhcXNHfVdTiw1HLZ+vRQi7GKBTbvUlWnegehcTf/UAgVsU1axZlRGufv3684wHtXuESf+mTRs0gx54HgoX9cDvretT9kCMYXZzMjUoEdF774MHDjisL+H92rRpYxO612LY8OEUEly5+AwQ7EBltLOCSlcxRFRoxBKq05MDF6/0M9pXgQ5hEi+P1wMWY006FoXNvEPSy8sq6JUVFfSvtRX02XaZVjMrdcbJ3AvjY2JX13brQIBkU5bMW55p0SdWojDn/7urBvYFtmY2WIH1wdY8arFogRB6WHi4jbsGy4NoHtaQ7MH7Db9B2xKBuHhmyZwMcpTn6wE3Te8igIph+5Qt7L/VvkOCpqupBgm29hkauABhsTsrS7+VgKsYIipMjYJwBde5GJ44J/GaJnsQQLi3p/NSeojyNPsbHmHWaT9z8WCVEOErYBdPfTlZGNXWRCPiTS5ZlXUZZnYRsHyuPWgrjbUpbI5QH0HWt3VTAytNmjahbt0SlSPndOnSlfduV4MAxOIff7Bx7QDcu1tvu91mXqVmwkTbOZc9d066S7nnCNw0PbZs2eQQHo9nAm7ZynbdTI8RI0Y6XGCwYI3KYaNcQENEBQK9ZYoP0R6+xWzuukYnIwSVwE8ONmaTATWDmAX8cx/2vi4EFM5dINp+nLkEZdpybR+G3T/0G8JcTeD6HWY3+3kNRFLdxU0M5jZxbZQjC9ZtfRC0sCcsPEw342H8TTcr97Sxn1epadeuvXLPFljMjPQMm++IjcKxI2XTpkHKI85B8SJcYjVYyzp08KBuuzVXMayXeulFmQcXvt7pGDWDJUuMkmj6Ddol9NgMYCObxyAbAs1itKxEdcBgR2dZlNZPSZR4pXF1wTn8yM7/K3b+9lkeAOH4KYkmur1zfZSUoD5hmKVC8WHLpiZN1whh78wCYsIxa7psDT0k6ttcokf6S9SOWQNXrRasOV4D1wzu5NTuJpcEhfNLzbMEKLQEhXdqySxUxzrYm0pw7WOYqDDcYpvKzEXSHnhnmUsFa4S9p7RAISOE9Wg/E41pZ6I45to7W1AGEBOie+3D0fzFRE8N8qCx7STydWHOA6uIdbRfDshMWNomEhvN9WnOfHedJQCBQI2hW+lg98PF+8y0aLd2+YY/E8AdXSQazQa+t06vPoB20QgWpJ6W+RoXhIh5GRaDIT4f9trGTHAhjYmaN5EoLlRigiZiBs9lSsqJb6L98wFmRTX+EhBux3CipwebKEynsYxAoMbw/anS84lmJ1fwzdy0aMEGPzZOQyfa6mT6YNCjPKT0osTFhvA9gg8+jWSeKVGbjd7g6qGea1mqWTfXMJC5kU8Mkqh3bO0EhaI/7DaPIr6p997Ha4uQFfD3l2bw9RMsSqoXNd94c6ZNEADdVTesX0+Tp0zhPRjQbxxVr6hyxZrP/PkfKs8kmv78CzRr5kwqv2ibYpSQkMCDEfYRPoGxGOb+WYkJlKlXLOZW2oMwi82tUOWbU810K8zRogMlXjncKcISgcMOiuHMatRGULB6czaa+Y4kzpJ3RzGrih0UawvCwOjmCmFZSzIuXDhPX3z+Kc/SbtSwEe3etZPmfziPzpeVMQtp+93279vL12jQEjkjI51mvPA8Ja9bx7MlkNF95HAqf+2Z06d51A89GJD+8+nH8y1iTjvCQ+5GJNoKnGO4qBB0GNIaQpA1Q88ICqBA8b9sQBe5p5q5SjC/e2u1TElHZF6BrEcH5vZN6Iwd6WtnpaoDGqr07NWbi+ne+/+gGwa/XHGZnnzsUW7xvlq4iLdERsoQNtrGa5FXB0s0e85ceuff7/Gq3sTE7jR33kf0+BNP8gVQgXsxXFQAqTyTujJr5VhQykG91I5smWYsreAlFnUF5kxYPP77cjPfvM1Zsxm4lv8Y4aG5+Zs7wHqLZyNLhKWxr202tZoXpv+NkpPX0zff/XClGhhJotaSeKz9ILMALiGyxPE+ECgyuFFlrFV0KDAWt4gK46FHtEQj4iTdeRMs1qE8omnfm3mraIOndjbgswrZvOzXAzK9nmTm4XOzzmIYThcdb18b08ClKGJdkJ19nLl0h3gmOMoyjEwCFRiHW0QFIKzJiSY2H9EXFkDDmNdWyvR9imXz6osGigu6yS+zWMW311jmUHkl+u+P04zwl+jxgR4U08S487ACq1FefvFKmk1hYSGf/3h565h0OxDsQANMdCVa8PVXvBZIUP9wm6gAsieeGmyirlGWrHQ9sPPhgl2W/Xoxz0E9ldYibHWAkNAzA40zkYw7b5OZWyf0eIfF0gPCR1j+/p6S5XydXAhqAlwyuHjHj2XxKB627kQrMPTQ69WrD8/ZQ6kFQEWqlhWCSzdg0CB6/Y2Z5B8QQA9Pe4AX2iGFCIWJIC+vsqZJcHVwq6gA5iYP9DFRzxjJ6UDF/CaFuYEfbpZp7qYKvtaFSt6MfNRUKU/SAaH2nCKZV/8uTzXTV0ygH2ysoFlrzbSWCauqeRt6TiBj/r6eJr7vFdbCjAaiwm4byJL+z7v/pscefZh+XryYRo8dyzO20VQymYkNeW0fvP+eZvNMzI0aNmjIn4/e5IgCIpSOnLglS37jr0U0saq9cQXuxfB1Ki1gPY4WEC3YaaYtx7Rz6+yB+4iAR7i/zDshNWEeUgCb63ipwujYfxeCKUKdValMZ88jo13iJSP4zOrQiAkIlbw3JViyOKqzdlZTUJqOjdWw925ZWSlfq+rarRvf+hPl4Rs2rFeeSXTP1Pts+vFBOPv376PBQ4Zwi4Wy9W++WcjfA1Wv2CjbyoQJd/CgBOqgFjI3MTomhkcHqyqNEBhDnYgKwPWCNfl5n0yr0ohKyl37WAx2LPqqxwWmJrBSWj0wqoOvp0STuhANaIkaKTeqSXBdUWeiAvigEmZF1jK3buFOS/rR1QBWsFc00dQeHhTh73oCr0DgjDoVlZUKZrZOFBF9xOZP2HWxroCY0HDmji6WuVNVCbsCQU24KqKygnkPSte/2W3m6UuYazmL0NUEuI2ohQr3s6QcDWaunr9OkxqBwAiuqqisnL/ILFY20do0mYsLTSwRgKipwBB88G2EIkXLZnPog4HFaGGZBHVBvRCVFZSOQFQpJ82Ulm+pvSo6b6kqvnBZ4gvDCEpAbLA1sEDYdAA/vRvKPPk2wEviJfooKmwXDndPWCVB3VKvRKUG+YGnimTKLZGooMySfAvrdbFC4ntNkSRzy4NSEH8mpEBvS892dDpCvp47Q+MCgTPqragEgmsVt2dUCATXG0JUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBIZC9H8N2KynRYkKgQAAAABJRU5ErkJggg==";const y2=e=>s.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-fit min-w-[32px] items-center justify-center rounded bg-gray-300 p-2 transition-all hover:opacity-50",onMouseDown:e.onMouseDown,children:e.name}),zk=e=>s.jsxs("div",{className:"group relative w-fit",children:[s.jsx("img",{src:`data:image/pngg;charset=utf-8;base64,${Hk}`}),s.jsx("div",{className:"absolute right-0 top-0 text-red-900 opacity-0 transition-all hover:opacity-50 group-hover:opacity-100",children:s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),Gk={bold:"B",italic:"I",underline:"U",strikeThrough:"S",subscript:"SubS",superscript:"SuperS",removeFormat:"Plain"},Zk=e=>s.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[s.jsxs("div",{className:"flex w-full flex-row justify-start p-2",children:[Object.entries(Gk).map(([t,r])=>s.jsx(y2,{name:r,onMouseDown:n=>{n.preventDefault(),document.execCommand(t,!1,null),console.log(`Executing ${t}`)}},`property-${t}`)),s.jsx(y2,{name:"Image",onMouseDown:t=>{t.preventDefault();let r=gi.renderToString(s.jsx(zk,{}));document.execCommand("insertHTML",!1,r)}},"property-insertImage")]}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("div",{className:" box-border w-full p-2",children:s.jsx("div",{contentEditable:"true",className:"rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none"})}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:()=>{},children:"Submit"})]}),Uk=({...e})=>{const[t,r]=h.useState(!1),[n,a]=h.useState(null),o=h.useRef(n),i=x=>{o.current=x,a(x)},l=h.useRef(null),u=()=>{let x=e.anchor.current;return[x.scrollTop,x.scrollLeft]},c=()=>{let[x,C]=u(),E=e.anchor.current.getBoundingClientRect();r(x>=E.height+(e.paddingThreshold||100))},m=()=>{e.anchor.current.scrollTo({top:0,behavior:"smooth"})};h.useEffect(()=>{if(!e.anchor.current)return;e.anchor.current.addEventListener("scroll",c);let x=setInterval(()=>{if(!e.anchor.current)return;let C=e.anchor.current.getBoundingClientRect();if(o.current==null)return i(C);o.current.top==C.top&&o.current.left==C.left&&o.current.width==C.width&&o.current.height==C.height||i(C)},1);return()=>{var C;(C=e.anchor.current)==null||C.removeEventListener("scroll",c),clearInterval(x)}},[]);const p=()=>{if(!e.anchor.current)return{};let x=e.corner||"bottom-right",[C,E]=x.split("-"),v=e.anchor.current.getBoundingClientRect(),A=l.current.getBoundingClientRect(),S=E=="right"?v.width-A.width:0,j=C=="bottom"?v.height-A.height:0;return{top:v.y+j+(C=="bottom"?-1:1)*(e.paddingX||10),left:v.x+S+(E=="right"?-1:1)*(e.paddingX||25)}};return s.jsx(qe,{className:Ve("fixed cursor-pointer rounded transition-all",t?"pointer-events-all opacity-100":"pointer-events-none opacity-0"),onClick:m,style:{...p(),transitionProperty:"opacity, background-color"},ref:l,size:"icon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 rotate-180 transition-all disabled:bg-gray-200"),"aria-label":"Arrow Icon",viewBox:"0 0 20 20",fill:"currentColor",children:s.jsx("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})})},Xk=e=>s.jsx("code",{className:"inline-code",children:e.text}),Yk=e=>s.jsx("div",{children:s.jsx("ol",{className:"relative border-l border-gray-200 dark:border-gray-700",children:e.steps.map(t=>s.jsxs("li",{className:"mb-10 ml-4",children:[s.jsx("div",{className:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"}),s.jsx("time",{className:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",children:t.date}),s.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:t.title}),s.jsx("p",{className:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400",children:t.description}),t.actions]}))})}),yg=({label:e,icon:t,digits:r,width:n="normal",getPins:a,...o})=>{const[i,l]=h.useState(Array.from(Array(r))),u=(m,p)=>{let x=0;if(m.key==="Backspace"){m.target.value.length===0?x=p-1:x=p;const C=document.getElementById(`input-${x}`);C==null||C.focus()}};h.useEffect(()=>{i.includes(void 0)||a(i)});const c=(m,p)=>{if(/^\d*$/.test(m.target.value)){const x=[...i];if(x[p]=m.target.value,l(x),m.target.value.length===1){const C=document.getElementById(`input-${p+1}`);C==null||C.focus()}else if(m.target.value.length===0){const C=document.getElementById(`input-${p-1}`);C==null||C.focus()}}else{const x=[...i];x[p]="",l(x);return}};return s.jsx("div",{className:"flex w-full flex-row justify-center gap-2",children:i.map((m,p)=>s.jsx("input",{type:"text",maxLength:1,value:m,id:`input-${p}`,pattern:"[0-9]*",className:$e("h-10 rounded border bg-background text-center",n==="full"?"w-full":"w-10"),onChange:x=>c(x,p),onKeyDown:x=>u(x,p),onFocus:x=>x.target.select(),...o},p))})},Jk=({actions:e,counts:t,content:r,headerActions:n,clickableImage:a,clickableImageAction:o,clickableImageActionText:i,clickableImageActionIcon:l,header:u,cardImage:c,orientation:m="vertical",...p})=>{let x="block rounded border border-gray-200 bg-white shadow-sm hover:shadow-lg transition-all dark:border-gray-700 dark:bg-gray-800 ",C={vertical:"max-w-sm",horizontal:"flex flex-row w-full"},E={vertical:"h-auto max-h-56 w-full rounded-t-lg object-cover",horizontal:"h-full w-48 rounded-l object-cover"},v="inline-block rounded p-1 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700";const[A,S]=h.useState(!1);function j(){S(!A)}return h.useEffect(()=>(window.onclick=()=>{A&&S(!1)},()=>window.onclick=null),[A]),s.jsxs("div",{className:$e(x,C[m]),...p,children:[c&&s.jsxs("div",{className:"group relative overflow-clip",children:[s.jsx("img",{src:"https://via.placeholder.com/50",className:$e(E[m],a?"overflow-clip transition-all group-hover:blur-lg":"")}),a&&s.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full items-center justify-center opacity-0 transition-all group-hover:opacity-100 ",children:s.jsxs(qe,{variant:"secondary",onClick:o,className:"flex flex-row gap-2",children:[l,i]})})]}),s.jsxs("div",{className:"relative w-full p-6",children:[n&&s.jsx("div",{className:"max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3",children:s.jsx(Xl,{items:n,trigger:s.jsxs("div",{className:$e(v),onClick:j,children:[s.jsx("span",{className:"sr-only",children:"Open dropdown"}),s.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})]})})}),u&&s.jsx("h5",{className:"mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:u}),r&&s.jsx("span",{className:"w-full font-normal text-gray-700 dark:text-gray-400",children:r}),e||t?s.jsxs("div",{className:$e("mt-3 flex items-center rounded-b-lg dark:text-white ",e&&t?"justify-between":"justify-end"),children:[t,e]}):null]})]})},C2=({size:e="medium",direction:t="ltr",currentPlan:r=!1,...n})=>{var i;let a=t==="rtl",o={small:"mx-1 w-full max-w-sm rounded border dark:border-gray-700 bg-background ",medium:"mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",large:"mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "};return s.jsxs("div",{dir:a?"rtl":"ltr",className:$e(r?"border-primary":"bg-background",o[e],"flex flex-col gap-4 rounded border-2 p-4"),children:[s.jsx("h5",{className:"text-md 0 font-bold text-primary/70",children:n.texts.title}),s.jsxs("div",{className:" text-primary/ flex items-baseline",children:[s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-5xl font-extrabold tracking-tight",children:n.price}),s.jsx("span",{className:"mx-1 text-sm font-semibold",children:n.texts.currencyText})]}),s.jsxs("span",{className:"ml-1 text-xl font-normal text-primary/70",children:["/ ",n.texts.cycleText]})]}),s.jsx("h5",{className:"text-md font-normal text-primary/70",children:n.texts.subtitle}),n.features&&s.jsx("ul",{role:"list",className:"space-y-0 ",children:(i=n.features)==null?void 0:i.map((l,u)=>s.jsxs("li",{className:"flex ",children:[s.jsx("svg",{"aria-label":"Check Icon","aria-hidden":"true",className:"m-2 h-5 w-5 flex-shrink-0 text-primary",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),s.jsx("span",{className:"flex items-center text-center font-normal leading-tight text-primary/70 ",children:l.text})]},u))}),s.jsx(qe,{onClick:n.onPlanClicked,disabled:r,className:"w-full",children:n.texts.buttonText})]})},Qk=({orientation:e,...t})=>{const r=h.useRef(null),[n,a]=h.useState(!1);let o=0;h.useEffect(()=>{},[o]);let i={horizontal:"flex flex-row max-w-xl rounded border-gray-200 bg-gray-100 shadow-md p-2 gap-2 items-center relative dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex flex-col max-w-[200px] justify-start rounded border-gray-200 bg-gray-100 gap-2 shadow-md p-2 relative dark:border-gray-700 dark:bg-gray-800 "},l={horizontal:"w-auto h-full bg-blue-500 rounded-inner",vertical:"bg-blue-500 rounded-inner w-auto "};return s.jsx("div",{ref:r,children:s.jsxs("div",{className:$e(i[e],"dark:text-white"),...t,children:[s.jsx("div",{className:"flex aspect-square w-full max-w-fit items-start ",children:s.jsx("img",{src:t.imageURL?t.imageURL:"https://via.placeholder.com/50",className:l[e]})}),s.jsxs("div",{className:"w-full text-xs",children:[s.jsx("div",{className:"font-bold",children:t.title}),s.jsx("div",{className:"text-[12px]",children:t.description})]}),s.jsx("span",{onClick:()=>{t.canHide?(a(!0),setTimeout(()=>{r.current.removeChild(r.current.children[0])},200)):t.handleCantHide()},className:"absolute right-0 top-0 h-fit cursor-pointer select-none rounded-bl-lg rounded-tr-lg bg-blue-100 px-2.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:bg-blue-200 dark:text-blue-800",children:"Hide"})]})})},Kk=({orientation:e="horizontal",...t})=>{var n,a,o,i,l,u,c,m;let r={horizontal:"flex max-w-xl rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex max-w-xs rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 "};return s.jsxs("div",{className:$e(r[e],"flex flex-col p-10","relative overflow-hidden dark:text-white",t.className),...t,children:[((n=t.texts)==null?void 0:n.titleTip)&&s.jsx("div",{className:"text-sm text-red-600",children:(a=t.texts)==null?void 0:a.titleTip}),t.imageURL&&s.jsx("img",{className:"absolute -bottom-10 -right-10 h-40 w-auto ",src:t.imageURL}),((o=t.texts)==null?void 0:o.title)&&s.jsxs("div",{className:"mt-2 text-lg font-medium",children:[(i=t.texts)==null?void 0:i.title," "]}),((l=t.texts)==null?void 0:l.description)&&s.jsx("div",{className:"z-10 mt-4 text-sm",children:(u=t.texts)==null?void 0:u.description}),((c=t.texts)==null?void 0:c.linkText)&&s.jsx("div",{className:"z-10 mt-6 text-sm underline underline-offset-8",children:(m=t.texts)==null?void 0:m.linkText})]})},qk="cursor-default pointer-events-none",eB={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},w2="cursor-pointer justify-center items-center text-center font-medium transition-all ",E2={icon:"h-10 w-10",xs:"px-1.5 py-2 text-[9px] h-fit",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",default:"h-10 px-4 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},D2={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},tB={full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"},S2={contained:"border-transparent",outlined:"border border-input bg-background hover:bg-accent hover:text-accent-foreground"},rB={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",gray:"text-neutral-900 bg-gray-200 hover:bg-gray-300",dark:"text-neutral-900 bg-gray-200 hover:bg-gray-300"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",primary:"text-black hover:bg-gray-50 dark:text-white",secondary:" dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",gray:"border-gray-300 hover:bg-gray-200",dark:"border-gray-900 hover:bg-gray-700"}},nB=({className:e,variant:t="contained",color:r="default",size:n="default",width:a="normal",disabled:o=!1,isLoading:i=!1,tooltip:l,tooltipSize:u="normal",tooltipPosition:c="top-left",tooltipDirection:m="ltr",margins:p="2",children:x,badge:C,edgeCorner:E=!1,feedback:v,...A})=>{const[S,j]=h.useState(!1),[O,L]=h.useState(x),M=z=>{A.onClick&&A.onClick(z),v&&!S&&(L(v),j(!0),setTimeout(()=>{L(x),j(!1)},2e3))};return s.jsxs("div",{className:$e("relative",p!=="none"?`my-${p}`:"m-0",tB[a]),children:[s.jsx("button",{className:o?$e(e,w2,E?"rounded-inner":"rounded",S2[t],E2[n],D2[a],qk,eB[t]):$e(e,"overflow-x-clip",w2,E?"rounded-inner":"rounded",S2[t],E2[n],rB[t][r],D2[a]),disabled:o,onClick:M,children:i?s.jsx(us,{design:"dots-pulse",color:"bg-white",size:"button"}):s.jsxs("div",{className:$e(" s flex flex-col-reverse items-start justify-center gap-4 transition-all",S&&v?" -translate-y-8 pb-1 pt-1":"translate-y-0"),children:[S&&v?s.jsx("div",{className:"w-full text-center",children:O}):null,s.jsxs("div",{className:"flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap",children:[A.startIcon&&A.startIcon,x,A.endIcon&&A.endIcon]})]})}),C&&s.jsx("div",{className:$e(typeof C=="boolean"?"h-5 w-5":typeof C=="string"?"h-5 w-7":"h-6 w-6","absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900"),children:typeof C=="number"&&C>100?"+99":C})]})},aB=e=>s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{children:e.store==="apple"?e.mode==="dark"?s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[s.jsx("div",{className:"mr-3",children:s.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:s.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"Download on the"}),s.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-transparent text-black",children:[s.jsx("div",{className:"mr-3",children:s.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:s.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"Download on the"}),s.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):e.mode==="dark"?s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[s.jsx("div",{className:"mr-3",children:s.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[s.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),s.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),s.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),s.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"GET IT ON"}),s.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]}):s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-white text-black",children:[s.jsx("div",{className:"mr-3",children:s.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[s.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),s.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),s.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),s.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"GET IT ON"}),s.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]})})}),oB=e=>{const[t,r]=h.useState(!1);return s.jsxs("div",{className:"flex h-full w-full flex-col gap-1 ",children:[s.jsxs("div",{className:"group relative h-full w-full rounded border bg-background bg-cover bg-center transition-all duration-500 hover:drop-shadow-2xl",style:{backgroundImage:`url(${e.blank?"":e.cardImage})`},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[e.blank?s.jsx("div",{className:"flex h-full flex-col items-center justify-center ",children:s.jsx("svg",{className:"h-10 w-10 text-foreground",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"})})}):s.jsx("div",{className:"absolute inset-0 rounded bg-black opacity-50"}),s.jsx("div",{className:"absolute bottom-2 right-2 z-10 opacity-0 transition-all duration-200 group-hover:opacity-100",children:e.inCardActions}),!e.blank&&s.jsxs("div",{className:"relative p-4",children:[s.jsx("h1",{className:"text-white",children:e.title}),s.jsx("p",{className:"text-white",children:e.subtitle})]})]}),s.jsx("div",{className:`flex flex-row justify-between text-sm transition-all duration-200 ${t?"opacity-100":"opacity-0"}`,children:e.bottomElement})]})},iB=e=>s.jsx("div",{className:"bg-white py-24 sm:py-32",children:s.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-start gap-10 px-6 md:flex-row lg:px-8",children:[s.jsxs("div",{className:"w-full md:sticky md:top-10 md:w-[28rem]",children:[s.jsx("h2",{className:"text-lg font-semibold leading-8 tracking-tight text-indigo-600",children:e.tag}),s.jsx("p",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl",children:e.title}),s.jsx("p",{className:"mb-2 mt-6 text-base leading-7 text-gray-600",children:e.description})]}),s.jsx("div",{className:"mt-5 w-full min-w-0 flex-1 md:mt-0",children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-8 gap-y-10 md:max-w-xl lg:max-w-none lg:gap-y-16",children:e.features.map(t=>s.jsxs("div",{className:"relative rounded-lg bg-gray-50 p-10",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600",children:t.icon}),s.jsx("dt",{className:"mt-4 text-lg font-semibold leading-7 text-gray-900",children:t.title}),s.jsx("dd",{className:"mt-2 text-base leading-7 text-gray-600",children:t.description})]}))})})]})}),sB=({position:e="bottom-right",...t})=>{const[r,n]=h.useState(!1);h.useState(!1),h.useState(null);const[a,o]=h.useState(5),i=h.useRef(null),l={"bottom-right":"right-4","bottom-left":"left-4"};h.useEffect(()=>{const c=setTimeout(()=>{a>=0&&o(a-1)},1e3);return()=>{clearTimeout(c)}},[a]);const u=()=>{n(!0),setTimeout(()=>{i.current.removeChild(i.current.children[0])},200)};return s.jsxs(Gt,{ref:i,className:$e("fixed bottom-4 p-0 ",l[e]),children:[s.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>u(),children:s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:$e("flex flex-col gap-4",r?"opacity-0":"opacity-100"),children:[s.jsx("div",{className:"mt-4 font-bold",children:t.question}),s.jsx("div",{className:"flex w-full flex-row gap-1 rounded ",children:s.jsx(yn,{orientation:"vertical",options:t.options})}),s.jsx("div",{children:s.jsx(xd,{})})]}),s.jsx(qe,{className:"mt-4 w-full",children:"Submit"})]})]})},zr={logo:e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:[s.jsx("rect",{width:"256",height:"256",fill:"none"}),s.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]}),mail:e=>s.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),s.jsx("polyline",{points:"22,6 12,13 2,6"})]}),phone:e=>s.jsx("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","aria-hidden":"true",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"})}),twitter:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"})}),microsoft:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:s.jsx("path",{fill:"currentColor",d:"M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"})}),gitHub:e=>s.jsx("svg",{viewBox:"0 0 438.549 438.549",...e,children:s.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),radix:e=>s.jsxs("svg",{viewBox:"0 0 25 25",fill:"none",...e,children:[s.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",fill:"currentcolor"}),s.jsx("path",{d:"M12 0H4V8H12V0Z",fill:"currentcolor"}),s.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",fill:"currentcolor"})]}),aria:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",...e,children:s.jsx("path",{d:"M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z"})}),npm:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",fill:"currentColor"})}),yarn:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",fill:"currentColor"})}),pnpm:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",fill:"currentColor"})}),react:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",fill:"currentColor"})}),tailwind:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",fill:"currentColor"})}),google:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}),apple:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),paypal:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",fill:"currentColor"})}),spinner:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:s.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})},lB=e=>{const[t,r]=h.useState(!1),[n,a]=h.useState(0),[o,i]=h.useState(0),l=h.useRef(null),u=E=>Math.round(E/e)*e,c=E=>{r(!0),a(E.pageX-l.current.offsetLeft),i(l.current.scrollLeft)},m=()=>{t&&x()},p=()=>{t&&x()},x=()=>{r(!1);const E=u(l.current.scrollLeft);l.current.scrollTo({left:E,behavior:"smooth"})};return{containerRef:l,handleMouseDown:c,handleMouseLeave:m,handleMouseUp:p,handleMouseMove:E=>{if(!t)return;E.preventDefault();const A=E.pageX-l.current.offsetLeft-n;l.current.scrollLeft=o-A}}},uB=({images:e})=>{const{containerRef:r,handleMouseDown:n,handleMouseLeave:a,handleMouseUp:o,handleMouseMove:i}=lB(1016);return s.jsx("div",{className:"flex cursor-pointer snap-x items-center justify-center gap-4 overflow-x-hidden",onMouseDown:n,onMouseLeave:a,onMouseUp:o,onMouseMove:i,ref:r,children:e.map((l,u)=>s.jsx("div",{className:"h-96 w-[1000px] flex-shrink-0",children:s.jsx("img",{src:l,alt:`Carousel Image ${u}`,width:1016,className:"h-full w-full rounded-lg object-cover"})},u))})},As=je.forwardRef(({className:e,preview:t,type:r,...n},a)=>s.jsx("input",{type:r,className:Ve("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e,t&&" disabled:cursor-default disabled:opacity-100 border-opacity-25 "),disabled:t,ref:a,...n}));As.displayName="Input";const Cg=({orientation:e="horizontal",width:t="default",...r})=>{const[n,a]=h.useState(r.currentColorMode),[o,i]=h.useState(r.currentLanguage);let l={horizontal:"flex flex-row justify-between",vertical:"flex flex-col items-center gap-2"};return s.jsxs("div",{className:Ve(l[e]),children:[s.jsx(yn,{width:t,defaultValue:o,onChangeTab:u=>{r.handleLanguage(u),i(u)},design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),s.jsx(yn,{width:t,defaultValue:n,onChangeTab:u=>{r.handleColorMode(u),a(u)},design:"tabs",options:[{value:"light",label:s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:s.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor"})})},{value:"dark",label:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:s.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})},A2="Tabs",[cB,TN]=Dn(A2,[Kc]),F2=Kc(),[dB,wg]=cB(A2),fB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:l,activationMode:u="automatic",...c}=e,m=Zc(l),[p,x]=Rn({prop:n,onChange:a,defaultProp:o});return h.createElement(dB,{scope:r,baseId:Sn(),value:p,onValueChange:x,orientation:i,dir:m,activationMode:u},h.createElement(St.div,we({dir:m,"data-orientation":i},c,{ref:t})))}),hB="TabsList",pB=h.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...a}=e,o=wg(hB,r),i=F2(r);return h.createElement(F1,we({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:n}),h.createElement(St.div,we({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))}),gB="TabsTrigger",mB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:a=!1,...o}=e,i=wg(gB,r),l=F2(r),u=j2(i.baseId,n),c=I2(i.baseId,n),m=n===i.value;return h.createElement(j1,we({asChild:!0},l,{focusable:!a,active:m}),h.createElement(St.button,we({type:"button",role:"tab","aria-selected":m,"aria-controls":c,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:u},o,{ref:t,onMouseDown:at(e.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?i.onValueChange(n):p.preventDefault()}),onKeyDown:at(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(n)}),onFocus:at(e.onFocus,()=>{const p=i.activationMode!=="manual";!m&&!a&&p&&i.onValueChange(n)})})))}),vB="TabsContent",bB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:a,children:o,...i}=e,l=wg(vB,r),u=j2(l.baseId,n),c=I2(l.baseId,n),m=n===l.value,p=h.useRef(m);return h.useEffect(()=>{const x=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(x)},[]),h.createElement(sn,{present:a||m},({present:x})=>h.createElement(St.div,we({"data-state":m?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!x,id:c,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0}}),x&&o))});function j2(e,t){return`${e}-trigger-${t}`}function I2(e,t){return`${e}-content-${t}`}const T2=fB,k2=pB,B2=mB,P2=bB,O2=je.createContext({orientation:"vertical"}),N2=je.forwardRef(({className:e,orientation:t,...r},n)=>s.jsx(T2,{ref:n,className:Ve("flex gap-2",t==="horizontal"?"flex-row":"flex-col",e),...r,children:s.jsx(O2.Provider,{value:{orientation:t},children:r.children})}));N2.displayName=T2.displayName;const M2=je.forwardRef(({className:e,...t},r)=>{const{orientation:n}=je.useContext(O2);return s.jsx(k2,{ref:r,className:Ve("flex w-fit flex-wrap items-center justify-start gap-1 rounded border bg-muted p-1 text-muted-foreground dark:border-primary/10 ",n==="horizontal"?"flex-col":"flex-row",e),...t})});M2.displayName=k2.displayName;const R2=je.forwardRef(({className:e,...t},r)=>s.jsx(B2,{ref:r,className:Ve("inline-flex w-full flex-1 select-none items-center justify-center whitespace-nowrap rounded border px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm dark:border-primary/10",e),...t}));R2.displayName=B2.displayName;const $2=je.forwardRef(({className:e,...t},r)=>s.jsx(P2,{ref:r,className:Ve("w-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));$2.displayName=P2.displayName;const Eg="horizontal",xB=["horizontal","vertical"],L2=h.forwardRef((e,t)=>{const{decorative:r,orientation:n=Eg,...a}=e,o=_2(n)?n:Eg,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return h.createElement(St.div,we({"data-orientation":o},l,a,{ref:t}))});L2.propTypes={orientation(e,t,r){const n=e[t],a=String(n);return n&&!_2(n)?new Error(yB(a,r)):null}};function yB(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
|
|
224
|
+
- horizontal
|
|
225
|
+
- vertical
|
|
226
|
+
|
|
227
|
+
Defaulting to \`${Eg}\`.`}function _2(e){return xB.includes(e)}const W2=L2,V2=je.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>s.jsx(W2,{ref:a,decorative:r,orientation:t,className:Ve("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));V2.displayName=W2.displayName;const H2="ToastProvider",[Dg,CB,wB]=Gc("Toast"),[z2,kN]=Dn("Toast",[wB]),[EB,Hd]=z2(H2),G2=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:i}=e,[l,u]=h.useState(null),[c,m]=h.useState(0),p=h.useRef(!1),x=h.useRef(!1);return h.createElement(Dg.Provider,{scope:t},h.createElement(EB,{scope:t,label:r,duration:n,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:h.useCallback(()=>m(C=>C+1),[]),onToastRemove:h.useCallback(()=>m(C=>C-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:x},i))};G2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${H2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const DB="ToastViewport",SB=["F8"],Sg="toast.viewportPause",Ag="toast.viewportResume",AB=h.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=SB,label:a="Notifications ({hotkey})",...o}=e,i=Hd(DB,r),l=CB(r),u=h.useRef(null),c=h.useRef(null),m=h.useRef(null),p=h.useRef(null),x=Kt(t,p,i.onViewportChange),C=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=i.toastCount>0;h.useEffect(()=>{const A=S=>{var j;n.every(L=>S[L]||S.code===L)&&((j=p.current)===null||j===void 0||j.focus())};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[n]),h.useEffect(()=>{const A=u.current,S=p.current;if(E&&A&&S){const j=()=>{if(!i.isClosePausedRef.current){const z=new CustomEvent(Sg);S.dispatchEvent(z),i.isClosePausedRef.current=!0}},O=()=>{if(i.isClosePausedRef.current){const z=new CustomEvent(Ag);S.dispatchEvent(z),i.isClosePausedRef.current=!1}},L=z=>{!A.contains(z.relatedTarget)&&O()},M=()=>{A.contains(document.activeElement)||O()};return A.addEventListener("focusin",j),A.addEventListener("focusout",L),A.addEventListener("pointermove",j),A.addEventListener("pointerleave",M),window.addEventListener("blur",j),window.addEventListener("focus",O),()=>{A.removeEventListener("focusin",j),A.removeEventListener("focusout",L),A.removeEventListener("pointermove",j),A.removeEventListener("pointerleave",M),window.removeEventListener("blur",j),window.removeEventListener("focus",O)}}},[E,i.isClosePausedRef]);const v=h.useCallback(({tabbingDirection:A})=>{const j=l().map(O=>{const L=O.ref.current,M=[L,...VB(L)];return A==="forwards"?M:M.reverse()});return(A==="forwards"?j.reverse():j).flat()},[l]);return h.useEffect(()=>{const A=p.current;if(A){const S=j=>{const O=j.altKey||j.ctrlKey||j.metaKey;if(j.key==="Tab"&&!O){const oe=document.activeElement,J=j.shiftKey;if(j.target===A&&J){var M;(M=c.current)===null||M===void 0||M.focus();return}const Q=v({tabbingDirection:J?"backwards":"forwards"}),ce=Q.findIndex(N=>N===oe);if(Fg(Q.slice(ce+1)))j.preventDefault();else{var z,H;J?(z=c.current)===null||z===void 0||z.focus():(H=m.current)===null||H===void 0||H.focus()}}};return A.addEventListener("keydown",S),()=>A.removeEventListener("keydown",S)}},[l,v]),h.createElement(iD,{ref:u,role:"region","aria-label":a.replace("{hotkey}",C),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&h.createElement(Z2,{ref:c,onFocusFromOutsideViewport:()=>{const A=v({tabbingDirection:"forwards"});Fg(A)}}),h.createElement(Dg.Slot,{scope:r},h.createElement(St.ol,we({tabIndex:-1},o,{ref:x}))),E&&h.createElement(Z2,{ref:m,onFocusFromOutsideViewport:()=>{const A=v({tabbingDirection:"backwards"});Fg(A)}}))}),FB="ToastFocusProxy",Z2=h.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,o=Hd(FB,r);return h.createElement(cp,we({"aria-hidden":!0,tabIndex:0},a,{ref:t,style:{position:"fixed"},onFocus:i=>{var l;const u=i.relatedTarget;!((l=o.viewport)!==null&&l!==void 0&&l.contains(u))&&n()}}))}),zd="Toast",jB="toast.swipeStart",IB="toast.swipeMove",TB="toast.swipeCancel",kB="toast.swipeEnd",BB=h.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:o,...i}=e,[l=!0,u]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(sn,{present:r||l},h.createElement(U2,we({open:l},i,{ref:t,onClose:()=>u(!1),onPause:Ur(e.onPause),onResume:Ur(e.onResume),onSwipeStart:at(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:at(e.onSwipeMove,c=>{const{x:m,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:at(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:at(e.onSwipeEnd,c=>{const{x:m,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})))}),[PB,OB]=z2(zd,{onClose(){}}),U2=h.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:a,open:o,onClose:i,onEscapeKeyDown:l,onPause:u,onResume:c,onSwipeStart:m,onSwipeMove:p,onSwipeCancel:x,onSwipeEnd:C,...E}=e,v=Hd(zd,r),[A,S]=h.useState(null),j=Kt(t,N=>S(N)),O=h.useRef(null),L=h.useRef(null),M=a||v.duration,z=h.useRef(0),H=h.useRef(M),oe=h.useRef(0),{onToastAdd:J,onToastRemove:ge}=v,xe=Ur(()=>{var N;(A==null?void 0:A.contains(document.activeElement))&&((N=v.viewport)===null||N===void 0||N.focus()),i()}),Q=h.useCallback(N=>{!N||N===1/0||(window.clearTimeout(oe.current),z.current=new Date().getTime(),oe.current=window.setTimeout(xe,N))},[xe]);h.useEffect(()=>{const N=v.viewport;if(N){const W=()=>{Q(H.current),c==null||c()},ee=()=>{const de=new Date().getTime()-z.current;H.current=H.current-de,window.clearTimeout(oe.current),u==null||u()};return N.addEventListener(Sg,ee),N.addEventListener(Ag,W),()=>{N.removeEventListener(Sg,ee),N.removeEventListener(Ag,W)}}},[v.viewport,M,u,c,Q]),h.useEffect(()=>{o&&!v.isClosePausedRef.current&&Q(M)},[o,M,v.isClosePausedRef,Q]),h.useEffect(()=>(J(),()=>ge()),[J,ge]);const ce=h.useMemo(()=>A?Q2(A):null,[A]);return v.viewport?h.createElement(h.Fragment,null,ce&&h.createElement(NB,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},ce),h.createElement(PB,{scope:r,onClose:xe},Qo.createPortal(h.createElement(Dg.ItemSlot,{scope:r},h.createElement(oD,{asChild:!0,onEscapeKeyDown:at(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||xe(),v.isFocusedToastEscapeKeyDownRef.current=!1})},h.createElement(St.li,we({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection},E,{ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:at(e.onKeyDown,N=>{N.key==="Escape"&&(l==null||l(N.nativeEvent),N.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,xe()))}),onPointerDown:at(e.onPointerDown,N=>{N.button===0&&(O.current={x:N.clientX,y:N.clientY})}),onPointerMove:at(e.onPointerMove,N=>{if(!O.current)return;const W=N.clientX-O.current.x,ee=N.clientY-O.current.y,de=!!L.current,ne=["left","right"].includes(v.swipeDirection),te=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,K=ne?te(0,W):0,se=ne?0:te(0,ee),fe=N.pointerType==="touch"?10:2,Se={x:K,y:se},G={originalEvent:N,delta:Se};de?(L.current=Se,Gd(IB,p,G,{discrete:!1})):K2(Se,v.swipeDirection,fe)?(L.current=Se,Gd(jB,m,G,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(W)>fe||Math.abs(ee)>fe)&&(O.current=null)}),onPointerUp:at(e.onPointerUp,N=>{const W=L.current,ee=N.target;if(ee.hasPointerCapture(N.pointerId)&&ee.releasePointerCapture(N.pointerId),L.current=null,O.current=null,W){const de=N.currentTarget,ne={originalEvent:N,delta:W};K2(W,v.swipeDirection,v.swipeThreshold)?Gd(kB,C,ne,{discrete:!0}):Gd(TB,x,ne,{discrete:!0}),de.addEventListener("click",te=>te.preventDefault(),{once:!0})}})})))),v.viewport))):null});U2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${zd}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const NB=e=>{const{__scopeToast:t,children:r,...n}=e,a=Hd(zd,t),[o,i]=h.useState(!1),[l,u]=h.useState(!1);return _B(()=>i(!0)),h.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),l?null:h.createElement(Jc,{asChild:!0},h.createElement(cp,n,o&&h.createElement(h.Fragment,null,a.label," ",r)))},MB=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),RB=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),$B="ToastAction",X2=h.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?h.createElement(J2,{altText:r,asChild:!0},h.createElement(Y2,we({},n,{ref:t}))):null});X2.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${$B}\``)}};const LB="ToastClose",Y2=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,a=OB(LB,r);return h.createElement(J2,{asChild:!0},h.createElement(St.button,we({type:"button"},n,{ref:t,onClick:at(e.onClick,a.onClose)})))}),J2=h.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return h.createElement(St.div,we({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},a,{ref:t}))});function Q2(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),WB(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Q2(n))}}),t}function Gd(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Jf(a,o):a.dispatchEvent(o)}const K2=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),o=n>a;return t==="left"||t==="right"?o&&n>r:!o&&a>r};function _B(e=()=>{}){const t=Ur(e);xo(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function WB(e){return e.nodeType===e.ELEMENT_NODE}function VB(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Fg(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const HB=G2,q2=AB,eC=BB,tC=MB,rC=RB,nC=X2,aC=Y2,zB=Qf("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"},severity:{info:"info group text-info-foreground bg-info",warning:"warning group text-warning-foreground bg-warning",error:"error group border-error bg-error text-error-foreground",success:"success group text-success-foreground bg-success",none:""}},defaultVariants:{variant:"default"}}),oC=HB,jg=je.forwardRef(({className:e,...t},r)=>s.jsx(q2,{ref:r,className:Ve("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));jg.displayName=q2.displayName;const Ig=je.forwardRef(({className:e,variant:t,severity:r="none",direction:n,...a},o)=>s.jsx(eC,{ref:o,className:Ve(zB({variant:t,severity:r}),e,n==="rtl"?"p-6 pl-0 pr-10 data-[state=closed]:slide-out-to-left-full":"p-6 pr-8 data-[state=closed]:slide-out-to-right-full"),dir:n,...a}));Ig.displayName=eC.displayName;const iC=je.forwardRef(({className:e,...t},r)=>s.jsx(nC,{ref:r,className:Ve("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group-[.info]:border-muted/40 group-[.info]:hover:border-info/30 group-[.info]:hover:bg-info group-[.info]:hover:text-info-foreground group-[.info]:focus:ring-info","group-[.error]:border-muted/40 group-[.error]:hover:border-error/30 group-[.error]:hover:bg-error group-[.error]:hover:text-error-foreground group-[.error]:focus:ring-error","group-[.success]:border-muted/40 group-[.success]:hover:border-success/30 group-[.success]:hover:bg-success group-[.success]:hover:text-success-foreground group-[.success]:focus:ring-success","group-[.warning]:border-muted/40 group-[.warning]:hover:border-warning/30 group-[.warning]:hover:bg-warning group-[.warning]:hover:text-warning-foreground group-[.warning]:focus:ring-warning",e),...t}));iC.displayName=nC.displayName;const Tg=je.forwardRef(({className:e,...t},r)=>s.jsx(aC,{ref:r,className:Ve("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}));Tg.displayName=aC.displayName;const kg=je.forwardRef(({className:e,...t},r)=>s.jsx(tC,{ref:r,className:Ve("text-sm font-semibold",e),...t}));kg.displayName=tC.displayName;const Bg=je.forwardRef(({className:e,...t},r)=>s.jsx(rC,{ref:r,className:Ve("text-sm opacity-90",e),...t}));Bg.displayName=rC.displayName;const GB=5,ZB=1e5;let Pg=0;function UB(){return Pg=(Pg+1)%Number.MAX_VALUE,Pg.toString()}const Og=new Map,sC=e=>{if(Og.has(e))return;const t=setTimeout(()=>{Og.delete(e),du({type:"REMOVE_TOAST",toastId:e})},ZB);Og.set(e,t)},lC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,GB)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?sC(r):e.toasts.forEach(n=>{sC(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Zd=[];let Ud={toasts:[]};function du(e){Ud=lC(Ud,e),Zd.forEach(t=>{t(Ud)})}function uC({...e}){const t=UB(),r=a=>du({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>du({type:"DISMISS_TOAST",toastId:t});return du({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:r}}function cC(){const[e,t]=je.useState(Ud);return je.useEffect(()=>(Zd.push(t),()=>{const r=Zd.indexOf(t);r>-1&&Zd.splice(r,1)}),[e]),{...e,toast:uC,dismiss:r=>du({type:"DISMISS_TOAST",toastId:r})}}function XB(e){const{toasts:t}=cC();let r=e.direction==="rtl";return s.jsxs(oC,{swipeDirection:r?"left":"right",children:[t.map(function({id:n,title:a,description:o,action:i,...l}){return s.jsxs(Ig,{direction:e.direction,...l,children:[s.jsxs("div",{className:"grid gap-1 text-start",children:[a&&s.jsx(kg,{children:a}),o&&s.jsx(Bg,{children:o})]}),i,s.jsx(Tg,{})]},n)}),s.jsx(jg,{className:Ve("gap-2",r&&"fixed left-0")})]})}const dC="Dialog",[fC,BN]=Dn(dC),[YB,na]=fC(dC),JB=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=h.useRef(null),u=h.useRef(null),[c=!1,m]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(YB,{scope:t,triggerRef:l,contentRef:u,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:c,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(p=>!p),[m]),modal:i},r)},QB="DialogTrigger",KB=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(QB,r),o=Kt(t,a.triggerRef);return h.createElement(St.button,we({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Mg(a.open)},n,{ref:o,onClick:at(e.onClick,a.onOpenToggle)}))}),hC="DialogPortal",[qB,pC]=fC(hC,{forceMount:void 0}),eP=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=na(hC,t);return h.createElement(qB,{scope:t,forceMount:r},h.Children.map(n,i=>h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},i))))},Ng="DialogOverlay",tP=h.forwardRef((e,t)=>{const r=pC(Ng,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=na(Ng,e.__scopeDialog);return o.modal?h.createElement(sn,{present:n||o.open},h.createElement(rP,we({},a,{ref:t}))):null}),rP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(Ng,r);return h.createElement(rp,{as:Ko,allowPinchZoom:!0,shards:[a.contentRef]},h.createElement(St.div,we({"data-state":Mg(a.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),fu="DialogContent",nP=h.forwardRef((e,t)=>{const r=pC(fu,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=na(fu,e.__scopeDialog);return h.createElement(sn,{present:n||o.open},o.modal?h.createElement(aP,we({},a,{ref:t})):h.createElement(oP,we({},a,{ref:t})))}),aP=h.forwardRef((e,t)=>{const r=na(fu,e.__scopeDialog),n=h.useRef(null),a=Kt(t,r.contentRef,n);return h.useEffect(()=>{const o=n.current;if(o)return Kh(o)},[]),h.createElement(gC,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:at(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:at(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&o.preventDefault()}),onFocusOutside:at(e.onFocusOutside,o=>o.preventDefault())}))}),oP=h.forwardRef((e,t)=>{const r=na(fu,e.__scopeDialog),n=h.useRef(!1),a=h.useRef(!1);return h.createElement(gC,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),gC=h.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=na(fu,r),u=h.useRef(null),c=Kt(t,u);return Vh(),h.createElement(h.Fragment,null,h.createElement(Gh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},h.createElement(zl,we({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Mg(l.open)},i,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),iP="DialogTitle",sP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(iP,r);return h.createElement(St.h2,we({id:a.titleId},n,{ref:t}))}),lP="DialogDescription",uP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(lP,r);return h.createElement(St.p,we({id:a.descriptionId},n,{ref:t}))}),cP="DialogClose",dP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(cP,r);return h.createElement(St.button,we({type:"button"},n,{ref:t,onClick:at(e.onClick,()=>a.onOpenChange(!1))}))});function Mg(e){return e?"open":"closed"}const fP=JB,hP=KB,mC=eP,vC=tP,bC=nP,xC=sP,yC=uP,pP=dP,gP=fP,mP=hP,CC=({className:e,...t})=>s.jsx(mC,{className:Ve(e),...t});CC.displayName=mC.displayName;const wC=je.forwardRef(({className:e,...t},r)=>s.jsx(vC,{ref:r,className:Ve("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));wC.displayName=vC.displayName;const EC=je.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(CC,{children:[s.jsx(wC,{}),s.jsxs(bC,{ref:n,className:Ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...r,children:[t,s.jsxs(pP,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));EC.displayName=bC.displayName;const DC=({className:e,...t})=>s.jsx("div",{className:Ve("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});DC.displayName="DialogHeader";const SC=({className:e,...t})=>s.jsx("div",{className:Ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});SC.displayName="DialogFooter";const AC=je.forwardRef(({className:e,...t},r)=>s.jsx(xC,{ref:r,className:Ve("text-lg font-semibold leading-none tracking-tight",e),...t}));AC.displayName=xC.displayName;const FC=je.forwardRef(({className:e,...t},r)=>s.jsx(yC,{ref:r,className:Ve("text-sm text-muted-foreground",e),...t}));FC.displayName=yC.displayName;const vP=e=>s.jsx("div",{children:e.children}),bP=e=>s.jsx("div",{className:"fixed bottom-0 top-auto left-0 m-0 w-full max-w-full p-1",children:s.jsx("div",{className:"flex w-full flex-row items-center justify-evenly rounded bg-gray-200",children:e.appBarContent.map((t,r)=>s.jsxs("div",{className:"m-1 flex h-full w-full flex-col items-center justify-center rounded p-2 transition-all hover:cursor-pointer hover:bg-buttonPrimary-700 hover:text-white",onClick:t.action,children:[s.jsx("div",{children:t.icon}),s.jsx("div",{className:"mt-2 text-sm",children:t.label})]},r))})}),Rg=(e=!1)=>{const[t,r]=h.useState(e);return{isOpen:t,onOpen:()=>r(!0),onClose:()=>r(!1)}},Xd=()=>{const[e,t]=h.useState(window==null?void 0:window.innerWidth),r=()=>{t(window==null?void 0:window.innerWidth)};return h.useEffect(()=>{if(typeof window<"u")return window==null||window.addEventListener("resize",r),()=>{window==null||window.removeEventListener("resize",r)}},[]),e},xP=({direction:e="rtl",navigationSize:t="md",...r})=>{var m;const[n,a]=h.useState(!1);h.useState(!1),Rg(!1);const o=h.useRef(null);h.useRef(null);let i;typeof window<"u"?i=Xd():i=1200;const[l,u]=h.useState(!1);h.useEffect(()=>{const p=x=>{o.current&&!o.current.contains(x.target)&&!l&&a(!1)};return document.addEventListener("click",p,!0),()=>{document.removeEventListener("click",p,!0)}},[l]);let c={sm:"h-10",md:"",lg:"h-24"};return s.jsxs("div",{className:"h-full w-full",children:[s.jsxs("div",{className:$e("z-30 flex w-auto select-none flex-row items-start justify-between bg-layoutPrimary-500 transition-all",c[t],"rounded p-3 ",n?"h-44":"h-14",r.stickyNav?"fixed left-4 right-4 top-4":"",e==="rtl"?"flex-row":"flex-row-reverse"),children:[i>600?s.jsx("div",{className:"flex flex-row h-8 items-center gap-4 px-3",children:(m=r.navItems)==null?void 0:m.map(({label:p},x)=>s.jsx("div",{onClick:()=>a(!n),className:"cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black",children:p},x))}):s.jsxs("div",{className:"flex items-center justify-center",children:[s.jsxs("div",{onClick:()=>a(!n),className:"cursor-pointer rounded p-1 transition-all hover:bg-gray-100",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),r.pageTitle?s.jsx("div",{children:r.pageTitle}):s.jsx("div",{})]}),s.jsx("div",{className:"h-full",children:s.jsx("img",{className:"h-full max-h-8 ",src:`https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${e==="rtl"?"ar":"en"}-white.svg`})})]}),s.jsx("div",{className:$e(" relative top-14"),children:r.children})]})},jC="Collapsible",[yP,IC]=Dn(jC),[CP,$g]=yP(jC),wP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:o,onOpenChange:i,...l}=e,[u=!1,c]=Rn({prop:n,defaultProp:a,onChange:i});return h.createElement(CP,{scope:r,disabled:o,contentId:Sn(),open:u,onOpenToggle:h.useCallback(()=>c(m=>!m),[c])},h.createElement(St.div,we({"data-state":Lg(u),"data-disabled":o?"":void 0},l,{ref:t})))}),EP="CollapsibleTrigger",DP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,a=$g(EP,r);return h.createElement(St.button,we({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Lg(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},n,{ref:t,onClick:at(e.onClick,a.onOpenToggle)}))}),TC="CollapsibleContent",SP=h.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=$g(TC,e.__scopeCollapsible);return h.createElement(sn,{present:r||a.open},({present:o})=>h.createElement(AP,we({},n,{ref:t,present:o})))}),AP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:a,...o}=e,i=$g(TC,r),[l,u]=h.useState(n),c=h.useRef(null),m=Kt(t,c),p=h.useRef(0),x=p.current,C=h.useRef(0),E=C.current,v=i.open||l,A=h.useRef(v),S=h.useRef();return h.useEffect(()=>{const j=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(j)},[]),xo(()=>{const j=c.current;if(j){S.current=S.current||{transitionDuration:j.style.transitionDuration,animationName:j.style.animationName},j.style.transitionDuration="0s",j.style.animationName="none";const O=j.getBoundingClientRect();p.current=O.height,C.current=O.width,A.current||(j.style.transitionDuration=S.current.transitionDuration,j.style.animationName=S.current.animationName),u(n)}},[i.open,n]),h.createElement(St.div,we({"data-state":Lg(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v},o,{ref:m,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style}}),v&&a)});function Lg(e){return e?"open":"closed"}const FP=wP,jP=DP,IP=SP,Fo="Accordion",TP=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_g,kP,BP]=Gc(Fo),[Yd,NN]=Dn(Fo,[BP,IC]),Wg=IC(),kC=h.forwardRef((e,t)=>{const{type:r,...n}=e,a=n,o=n;return h.createElement(_g.Provider,{scope:e.__scopeAccordion},r==="multiple"?h.createElement(MP,we({},o,{ref:t})):h.createElement(NP,we({},a,{ref:t})))});kC.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[BC,PP]=Yd(Fo),[PC,OP]=Yd(Fo,{collapsible:!1}),NP=h.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:o=!1,...i}=e,[l,u]=Rn({prop:r,defaultProp:n,onChange:a});return h.createElement(BC,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:u,onItemClose:h.useCallback(()=>o&&u(""),[o,u])},h.createElement(PC,{scope:e.__scopeAccordion,collapsible:o},h.createElement(OC,we({},i,{ref:t}))))}),MP=h.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=e,[i=[],l]=Rn({prop:r,defaultProp:n,onChange:a}),u=h.useCallback(m=>l((p=[])=>[...p,m]),[l]),c=h.useCallback(m=>l((p=[])=>p.filter(x=>x!==m)),[l]);return h.createElement(BC,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:c},h.createElement(PC,{scope:e.__scopeAccordion,collapsible:!0},h.createElement(OC,we({},o,{ref:t}))))}),[RP,Jd]=Yd(Fo),OC=h.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:o="vertical",...i}=e,l=h.useRef(null),u=Kt(l,t),c=kP(r),p=Zc(a)==="ltr",x=at(e.onKeyDown,C=>{var E;if(!TP.includes(C.key))return;const v=C.target,A=c().filter(J=>{var ge;return!((ge=J.ref.current)!==null&&ge!==void 0&&ge.disabled)}),S=A.findIndex(J=>J.ref.current===v),j=A.length;if(S===-1)return;C.preventDefault();let O=S;const L=0,M=j-1,z=()=>{O=S+1,O>M&&(O=L)},H=()=>{O=S-1,O<L&&(O=M)};switch(C.key){case"Home":O=L;break;case"End":O=M;break;case"ArrowRight":o==="horizontal"&&(p?z():H());break;case"ArrowDown":o==="vertical"&&z();break;case"ArrowLeft":o==="horizontal"&&(p?H():z());break;case"ArrowUp":o==="vertical"&&H();break}const oe=O%j;(E=A[oe].ref.current)===null||E===void 0||E.focus()});return h.createElement(RP,{scope:r,disabled:n,direction:a,orientation:o},h.createElement(_g.Slot,{scope:r},h.createElement(St.div,we({},i,{"data-orientation":o,ref:u,onKeyDown:n?void 0:x}))))}),Vg="AccordionItem",[$P,Hg]=Yd(Vg),LP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...a}=e,o=Jd(Vg,r),i=PP(Vg,r),l=Wg(r),u=Sn(),c=n&&i.value.includes(n)||!1,m=o.disabled||e.disabled;return h.createElement($P,{scope:r,open:c,disabled:m,triggerId:u},h.createElement(FP,we({"data-orientation":o.orientation,"data-state":MC(c)},l,a,{ref:t,disabled:m,open:c,onOpenChange:p=>{p?i.onItemOpen(n):i.onItemClose(n)}})))}),_P="AccordionHeader",WP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(_P,r);return h.createElement(St.h3,we({"data-orientation":a.orientation,"data-state":MC(o.open),"data-disabled":o.disabled?"":void 0},n,{ref:t}))}),NC="AccordionTrigger",VP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(NC,r),i=OP(NC,r),l=Wg(r);return h.createElement(_g.ItemSlot,{scope:r},h.createElement(jP,we({"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId},l,n,{ref:t})))}),HP="AccordionContent",zP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(HP,r),i=Wg(r);return h.createElement(IP,we({role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation},i,n,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function MC(e){return e?"open":"closed"}const GP=kC,ZP=LP,UP=WP,RC=VP,$C=zP,XP=GP;let LC="flex flex-1 items-center select-none cursor-pointer bg-primary-foreground rounded justify-between p-2 px-3 font-medium transition-all [&[data-state=open]>svg]:-rotate-90";const _C=je.forwardRef(({className:e,...t},r)=>s.jsx(ZP,{ref:r,className:Ve(e),...t}));_C.displayName="AccordionItem";const WC=je.forwardRef(({className:e,showArrow:t,children:r,...n},a)=>s.jsx(UP,{className:"flex",children:s.jsxs(RC,{ref:a,className:Ve(LC,e),...n,children:[r,t&&s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",className:"h-4 w-4 shrink-0 rotate-90 transition-transform duration-200",children:s.jsx("path",{d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]})}));WC.displayName=RC.displayName;const VC=je.forwardRef(({className:e,children:t,...r},n)=>s.jsx($C,{ref:n,className:Ve("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...r,children:s.jsx("div",{children:t})}));VC.displayName=$C.displayName;const HC=({title:e,items:t,selectedItem:r,openedItem:n,setOpenedItem:a,onItemClick:o,onSubItemClick:i,direction:l,isOpen:u})=>s.jsxs("div",{children:[e&&s.jsx("h3",{className:"mb-1 font-bold",children:e}),s.jsx("ul",{className:"flex flex-col gap-2",children:s.jsx(XP,{value:n,type:"single",onValueChange:c=>{a(c)},collapsible:!0,className:"flex flex-col gap-1",children:t.map((c,m)=>s.jsx(zC,{isOpen:u,selectedItem:r,direction:l,item:c,onItemClick:o,onSubItemClick:i},m))})})]}),zC=({item:e,onItemClick:t,onSubItemClick:r,direction:n,isOpen:a=!0,...o})=>{const i=l=>o.selectedItem===l?"bg-primary text-primary-foreground cursor-default":"hover:bg-primary/10";return e.subitems?s.jsxs(_C,{value:e.value,className:"overflow-x-clip",dir:n,children:[s.jsx(WC,{className:Ve("overflow-x-clip",o.selectedItem===e.value?"cursor-default bg-primary text-primary-foreground":"hover:bg-primary/10",e.subitems&&e.subitems.some(l=>o.selectedItem===l.value)?"bg-primary text-primary-foreground hover:bg-primary":""),showArrow:a,children:s.jsxs("div",{className:Ve(!a&&"py-1","flex w-fit flex-row items-center gap-2"),children:[e.icon,a&&s.jsx("span",{className:Ve("transition-all ",a?"opacity-100":"opacity-0"),children:e.label})]})}),e.subitems&&s.jsx(VC,{className:" mt-1 h-full rounded ",children:s.jsx("div",{className:Ve("flex h-full flex-col gap-2 bg-foreground/5 p-1"),children:e.subitems.map((l,u)=>s.jsxs("li",{onClick:c=>{c.stopPropagation(),l.onClick(),r&&r([e.value,l.value])},className:Ve("flex h-full cursor-pointer flex-row items-center gap-2 rounded p-2 transition-all",i(l.value)),children:[l.icon,l.label]},u))})})]}):s.jsx("div",{dir:n,onClick:()=>{e.onClick(),t&&t([e.value])},className:Ve(LC,i(e.value),"overflow-x-clip "),children:s.jsxs("div",{className:"flex flex-row items-center gap-2 ",children:[e.icon,s.jsx("span",{className:Ve("whitespace-nowrap transition-all",a?"opacity-100":"opacity-0"),children:e.label})]})})},YP=({direction:e="ltr",drawerSize:t="md",onSettingsClick:r,DrawerFooterActions:n,currentPage:a,clickedItem:o,design:i="default",...l})=>{var M,z;let u=56,c=200,m={opened:{sm:"100",md:c,lg:"250"},closed:{sm:u,md:u,lg:u}};const p=h.useRef(null),x=e==="rtl",[C,E]=h.useState("");h.useState(a);let v;typeof window<"u"?v=Xd():v=1200;const[A,S]=h.useState(()=>v>600?l.keepDrawerOpen!==void 0?l.keepDrawerOpen:!0:!1),[j,O]=h.useState(v>600);let L=v>600?m[A?"opened":"closed"][t]:0;return h.useEffect(()=>{const H=oe=>{p.current&&!p.current.contains(oe.target)&&!A&&O(!1)};return document.addEventListener("click",H,!0),()=>{document.removeEventListener("click",H,!0)}},[A]),s.jsxs("div",{className:"fixed left-0",children:[l.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",x?"flex-row-reverse":"flex-row"),children:[v>600?s.jsx("div",{className:$e("dark:text-white",x?[v>600?"mr-14":"mr-2",A?"mr-40":""]:[v>600?"ml-14":"ml-2",A?"ml-40":""]),style:x?{marginRight:`${m[A?"opened":"closed"][t]}px`}:{marginLeft:`${m[A?"opened":"closed"][t]}px`},children:l.pageTitle}):s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[s.jsx("div",{onClick:()=>O(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"})})}),l.pageTitle?s.jsx("div",{className:"text-sm",children:l.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2 dark:text-white",x?"flex-row-reverse":"flex-row"),children:[v>600?s.jsxs("div",{className:x?"text-left text-xs":"text-right text-xs",children:[s.jsx("div",{className:"font-bold",children:l.username})," ",s.jsx("div",{children:l.email})]}):null,s.jsx(Xl,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,width:l.profileMenuWidth,direction:x?"rtl":"ltr",items:l.profileMenuItems,onItemSelect:H=>console.log("selecting item ",H),trigger:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:l.avatarImage?s.jsx("img",{src:l.avatarImage,alt:"User Avatar"}):s.jsx("svg",{"aria-label":"Avatar Icon",className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),s.jsxs("div",{className:$e("fixed z-40 flex flex-col justify-between overflow-x-clip transition-all",i==="floating"?x?"right-5 top-5":"bottom-5 left-5 top-5":x?"right-0 top-0 h-full":"left-0 top-0 h-full"),style:{width:v>600?j?`${m.opened[t]}px`:`${m.closed[t]}px`:j?`${m.opened[t]}px`:"0px"},onMouseEnter:()=>{O(!0)},onMouseLeave:()=>{A?O(!0):(E(""),O(!1))},ref:p,children:[s.jsxs("div",{dir:e,className:"fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all",style:{width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:[s.jsx("img",{className:$e("h-9 opacity-0 transition-all",j?"visible opacity-100":"invisible opacity-0"),src:l.logoLink}),v>600?s.jsx("img",{className:$e("fixed h-9 transition-all",i==="floating"?x?"right-7.5 top-7":"left-7.5 top-7":x?"right-2.5 top-2.5":"left-2.5 top-2.5",j?"invisible opacity-0":"visible opacity-100"),src:l.logoSymbol}):null]}),s.jsx("div",{className:$e("fixed bottom-14 bg-primary-foreground p-2 py-2 transition-all",i==="floating"?"top-[76px]":"top-14",j?"overflow-auto":"overflow-hidden"),style:{height:i==="floating"?"calc(100% - 152px)":"calc(100% - 112px)",width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:s.jsx(HC,{direction:e,onItemClick:H=>{o&&o(H)},onSubItemClick:H=>{o&&o(H)},selectedItem:a,openedItem:C,setOpenedItem:H=>E(H),isOpen:j,items:l.drawerItems})}),s.jsxs("div",{className:$e("fixed flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row",i==="floating"?"bottom-5":"bottom-0"),style:{width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:[n&&j?s.jsx(s.Fragment,{children:n}):null,v>600&&j?s.jsx(ms,{side:"left",delayDuration:500,content:A?((M=l.texts)==null?void 0:M.collapseSidebar)||"Collapse Sidebar":((z=l.texts)==null?void 0:z.expandSidebar)||"Expand Sidebar",children:s.jsx(qe,{variant:"light",onClick:()=>{S(!A),l.onDrawerExpand&&l.onDrawerExpand(A)},size:"smallIcon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",A?x?"-rotate-90":"rotate-90":x?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),s.jsx("div",{className:"fixed overflow-y-auto transition-all",style:i==="floating"?x?{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L+20}px)`,left:"0px",top:l.topBar?"56px":"0px"}:{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L+20}px)`,left:`${L+20}px`,top:l.topBar?"56px":"0px"}:x?{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L}px)`,left:"0px",top:l.topBar?"56px":"0px"}:{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L}px)`,left:`${L}px`,top:l.topBar?"56px":"0px"},children:l.children})]})};var GC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ZC=h.createContext&&h.createContext(GC),jo=globalThis&&globalThis.__assign||function(){return jo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},jo.apply(this,arguments)},JP=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function UC(e){return e&&e.map(function(t,r){return h.createElement(t.tag,jo({key:r},t.attr),UC(t.child))})}function hu(e){return function(t){return h.createElement(QP,jo({attr:jo({},e.attr)},t),UC(e.child))}}function QP(e){var t=function(r){var n=e.attr,a=e.size,o=e.title,i=JP(e,["attr","size","title"]),l=a||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),h.createElement("svg",jo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:jo(jo({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&h.createElement("title",null,o),e.children)};return ZC!==void 0?h.createElement(ZC.Consumer,null,function(r){return t(r)}):t(GC)}function KP(e){return hu({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}}]})(e)}function qP(e){return hu({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function XC(e){return hu({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}const eO=({direction:e="rtl",drawerSize:t="md",onSettingsClick:r,...n})=>{var A;const[a,o]=h.useState(!1),[i,l]=h.useState("");Rg(!1);const[u,c]=h.useState(!1),m=h.useRef(null),p=e==="rtl";let x;typeof window<"u"?x=Xd():x=1200,h.useEffect(()=>{const S=j=>{m.current&&!m.current.contains(j.target)&&!u&&o(!1)};return document.addEventListener("click",S,!0),()=>{document.removeEventListener("click",S,!0)}},[u]);let C="fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",E={opened:{sm:"100",md:"160",lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},v=x>600?E[u?"opened":"closed"][t]:0;return s.jsxs("div",{className:"fixed",children:[n.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-layoutPrimary-500 p-2",p?"flex-row-reverse":"flex-row"),children:[x>600?n.pageTitle?s.jsx("div",{className:$e(p?[x>600?"mr-14":"mr-2",u?"mr-40":""]:[x>600?"ml-14":"ml-2",u?"ml-40":""]),style:p?{marginRight:`${E[u?"opened":"closed"][t]}px`}:{marginLeft:`${E[u?"opened":"closed"][t]}px`},children:n.pageTitle}):null:s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5 ",children:[s.jsxs("div",{onClick:()=>o(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),n.pageTitle?s.jsx("div",{className:"text-sm",children:n.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2",p?"flex-row-reverse":"flex-row"),children:[x>600?s.jsxs("div",{className:$e(p?"text-left text-xs":"text-right text-xs"),children:[s.jsx("div",{className:"font-bold",children:n.username})," ",s.jsx("div",{children:n.email})]}):null,s.jsx(dd,{direction:e,withHeader:!(x>600),headerTitle:x>600?"":n.username,headerSubtitle:x>600?"":n.email,menuItems:n.profileMenuItems,position:"bottom-left",children:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-hidden rounded-full ring-1 ring-buttonPrimary-500 dark:bg-gray-600",children:s.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),s.jsx("div",{onMouseEnter:()=>{o(!0)},onMouseLeave:()=>o(!!u),ref:m,className:$e(C,E[t],p?"right-0":"left-0"),style:{width:x>600?a?`${E.opened[t]}px`:`${E.closed[t]}px`:a?`${E.opened[t]}px`:"0px"},children:s.jsxs("div",{className:$e("no-scrollbar",n.topBar?"":"mt-2",a?"overflow-auto":"overflow-hidden"),children:[s.jsxs("div",{dir:e,className:$e("fixed z-50 mb-2 flex h-14 flex-row items-center transition-all ",x>600||a?"bg-layoutPrimary-500":"w-0 bg-transparent"),style:{width:x>600?`${E[a?"opened":"closed"][t]-16}px`:"full"},children:[s.jsx("img",{className:$e("fixed top-2.5 h-9 opacity-0 transition-all",p?"right-2.5":"left-2.5",a?"visible opacity-100":"invisible opacity-0"),src:n.logoLink}),x>600?s.jsx("img",{className:$e("fixed top-2.5 h-9 transition-all",p?"right-2.5":"left-2.5",a?"invisible opacity-0":"visible opacity-100"),src:n.logoSymbol}):null]}),s.jsx("div",{className:"mb-10 mt-14",children:(A=n.drawerItems)==null?void 0:A.map((S,j)=>s.jsxs("div",{className:$e("flex flex-col items-stretch justify-center"),children:[S==null?void 0:S.map((O,L)=>{var M,z,H;return s.jsxs("div",{id:"test",className:"flex flex-col",children:[s.jsxs("div",{onClick:()=>{O.subItems?i===O.slug?l(""):l(O.slug):O.action()},className:$e(n.currentPage===O.slug||(M=O.subItems)!=null&&M.find(oe=>oe.slug===n.currentPage)?"bg-buttonPrimary-500 text-white":"hover:bg-layoutPrimary-300","m-2 my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",p?"flex-row-reverse pr-3":""),children:[s.jsxs("div",{className:"flex flex-row",dir:e,children:[s.jsx("div",{className:"flex items-center justify-center",children:O.icon}),s.jsx("div",{className:$e("mx-2 whitespace-nowrap text-sm transition-all",a?"opacity-100":"opacity-0"),children:O.label})]}),O.subItems&&s.jsx("div",{className:$e(i&&O.slug===i?"-rotate-90":"rotate-90"),children:s.jsx(XC,{fontSize:11})})]}),O.subItems&&s.jsx("div",{className:$e("m-1 flex cursor-pointer flex-col gap-0 overflow-clip whitespace-nowrap rounded bg-layoutPrimary-300 p-1 transition-all",i==O.slug&&a?"":"my-0 py-0",p?"text-right":"text-left"),style:{height:i==O.slug&&a?6+33*((z=O.subItems)==null?void 0:z.length):0},children:(H=O.subItems)==null?void 0:H.map((oe,J)=>s.jsxs("div",{className:$e("flex flex-row gap-2 overflow-x-clip rounded p-2 px-2 text-xs",p?"text-right":"text-left",n.currentPage===oe.slug?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-500"),dir:e,onClick:()=>{oe.action()},children:[s.jsx("div",{className:"flex items-center justify-center",children:oe.icon}),s.jsx("div",{className:"flex flex-row justify-between",children:oe.label})]},J))})]},L)}),j!==n.drawerItems.length-1&&s.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center "})]},j))}),a&&s.jsxs("div",{className:$e("fixed bottom-0 flex flex-row items-center bg-layoutPrimary-500 p-4 transition-all",a?"bg-layoutPrimary-500 ":"bg-red-500",r?"justify-between":"justify-end",e==="rtl"?"right-0":"left-0"),style:{width:`${E[a?"opened":"closed"][t]-16}px`},children:[r&&s.jsx("div",{className:" cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",onClick:()=>r(),children:s.jsxs("svg",{"aria-label":"Settings Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}),x>600?s.jsx("div",{className:$e("w-fit transition-all"),style:p?{right:`${E[a?"opened":"closed"][t]-35}px`}:{left:`${E[a?"opened":"closed"][t]-35}px`},children:s.jsx("div",{dir:e,className:$e("relative left-0 top-0 transition-all",a?" opacity-100":" opacity-0"),children:s.jsx("div",{onClick:()=>c(!u),className:"w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400",children:s.jsx(XC,{fontSize:14,className:$e("transition-all",p?u?"rotate-0":"rotate-180":u?"rotate-180":"rotate-0")})})})}):null]})]})}),s.jsx("div",{className:"fixed overflow-y-auto",style:p?{height:`calc(100% - ${n.topBar?"56":"0"}px)`,width:`calc(100% - ${v}px)`,left:"0px",top:n.topBar?"56px":"0px"}:{height:`calc(100% - ${n.topBar?"56":"0"}px)`,width:`calc(100% - ${v}px)`,left:`${v}px`,top:n.topBar?"56px":"0px"},children:n.children})]})},tO=({direction:e="rtl",drawerSize:t="md",onSettingsClick:r,DrawerFooterActions:n,...a})=>{var S,j,O;const[o,i]=h.useState(!1),[l,u]=h.useState("");Rg(!1);const[c,m]=h.useState(!1),p=h.useRef(null),x=e==="rtl";let C;typeof window<"u"?C=Xd():C=1200,h.useEffect(()=>{const L=M=>{p.current&&!p.current.contains(M.target)&&!c&&i(!1)};return document.addEventListener("click",L,!0),()=>{document.removeEventListener("click",L,!0)}},[c]);let E=200,v={opened:{sm:"100",md:E,lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},A=C>600?v[c?"opened":"closed"][t]:0;return s.jsxs("div",{className:"fixed left-0",children:[a.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",x?"flex-row-reverse":"flex-row"),children:[C>600?s.jsx("div",{className:$e("dark:text-white",x?[C>600?"mr-14":"mr-2",c?"mr-40":""]:[C>600?"ml-14":"ml-2",c?"ml-40":""]),style:x?{marginRight:`${v[c?"opened":"closed"][t]}px`}:{marginLeft:`${v[c?"opened":"closed"][t]}px`},children:a.pageTitle}):s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[s.jsx("div",{onClick:()=>i(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}),a.pageTitle?s.jsx("div",{className:"text-sm",children:a.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2 dark:text-white",x?"flex-row-reverse":"flex-row"),children:[C>600?s.jsxs("div",{className:x?"text-left text-xs":"text-right text-xs",children:[s.jsx("div",{className:"font-bold",children:a.username})," ",s.jsx("div",{children:a.email})]}):null,s.jsx(Xl,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,direction:x?"rtl":"ltr",trigger:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:s.jsx(rO,{})}),items:a.profileMenuItems,onItemSelect:L=>console.log("selecting item ",L)})]})]}),s.jsxs("div",{className:$e("fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip transition-all",x?"right-0":"left-0"),style:{width:C>600?o?`${v.opened[t]}px`:`${v.closed[t]}px`:o?`${v.opened[t]}px`:"0px"},onMouseEnter:()=>{i(!0)},onMouseLeave:()=>i(!!c),ref:p,children:[s.jsxs("div",{dir:e,className:$e("fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all"),style:{width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:[s.jsx("img",{className:$e("h-9 opacity-0 transition-all",o?"visible opacity-100":"invisible opacity-0"),src:a.logoLink}),C>600?s.jsx("img",{className:$e("fixed top-2.5 h-9 transition-all",x?"right-2.5":"left-2.5",o?"invisible opacity-0":"visible opacity-100"),src:a.logoSymbol}):null]}),s.jsx("div",{className:$e("fixed bottom-14 top-14 bg-primary-foreground py-2 transition-all",o?"overflow-auto":"overflow-hidden"),style:{height:"calc(100% - 112px)",width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:(S=a.drawerItems)==null?void 0:S.map((L,M)=>s.jsxs("div",{className:$e("flex select-none flex-col items-stretch justify-center transition-all"),children:[L==null?void 0:L.map((z,H)=>{var oe,J,ge;return s.jsxs("div",{id:"test",className:"flex flex-col",children:[s.jsxs("div",{onClick:()=>{z.subItems?l===z.slug?u(""):u(z.slug):z.action()},className:$e(a.currentPage===z.slug||(oe=z.subItems)!=null&&oe.find(xe=>xe.slug===a.currentPage)?"bg-primary text-primary-foreground ":"hover:bg-primary/20","my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",x?"flex-row-reverse pr-3":"","m-2"),children:[s.jsxs("div",{className:"flex flex-row",dir:e,children:[s.jsx("div",{className:"flex items-center justify-center ",children:z.icon}),s.jsx("div",{className:$e("mx-2 whitespace-nowrap text-sm transition-all",o?"opacity-100":"opacity-0"),children:z.label})]}),z.subItems&&s.jsx(nO,{pointing:l&&z.slug===l?"up":"down"})]}),z.subItems&&s.jsx("div",{className:$e("m-1 mx-2 flex cursor-pointer flex-col gap-[2px] overflow-clip whitespace-nowrap rounded bg-primary/10 p-1 transition-all",l==z.slug&&o?"":"my-0 py-0",x?"text-right":"text-left"),style:{height:l==z.slug&&o?6+35*((J=z.subItems)==null?void 0:J.length):0},children:(ge=z.subItems)==null?void 0:ge.map((xe,Q)=>s.jsxs("div",{className:$e("flex flex-row gap-2 overflow-x-clip rounded-inner p-2 px-2 text-xs",x?"text-right":"text-left",a.currentPage===xe.slug?"bg-primary text-white":"hover:bg-primary-foreground hover:text-primary "),dir:e,onClick:()=>{xe.action()},children:[s.jsx("div",{className:"flex items-center justify-center",children:xe.icon}),s.jsx("div",{className:"flex flex-row justify-between",children:xe.label})]},Q))})]},H)}),M!==a.drawerItems.length-1&&s.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 bg-red-500 text-center "})]},M))}),s.jsxs("div",{className:$e("fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row"),style:{width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:[n&&o?s.jsx(s.Fragment,{children:n}):null,C>600&&o?s.jsx(ms,{side:"left",delayDuration:500,content:c?((j=a.texts)==null?void 0:j.collapseSidebar)||"Collapse Sidebar":((O=a.texts)==null?void 0:O.expandSidebar)||"Expand Sidebar",children:s.jsx(qe,{variant:"light",onClick:()=>m(!c),size:"smallIcon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",c?x?"-rotate-90":"rotate-90":x?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),s.jsx("div",{className:"fixed overflow-y-auto",style:x?{height:`calc(100% - ${a.topBar?"56":"0"}px)`,width:`calc(100% - ${A}px)`,left:"0px",top:a.topBar?"56px":"0px"}:{height:`calc(100% - ${a.topBar?"56":"0"}px)`,width:`calc(100% - ${A}px)`,left:`${A}px`,top:a.topBar?"56px":"0px"},children:a.children})]})},rO=()=>s.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})}),nO=({pointing:e})=>{let t;switch(e){case"right":t="-rotate-90";break;case"left":t="rotate-90";break;case"up":t="-rotate-180";break;case"down":t="rotate-0";break}return s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary-foreground transition-all disabled:bg-gray-200 ",t),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})},aO=({maxWidth:e="normal",variant:t="contained",centered:r=!1,direction:n="ltr",...a})=>{let o="flex w-full flex-col rounded p-4",i={full:"md:max-w-xl",small:"md:max-w-sm w-1/3 min-w-min",normal:"max-w-sm md:max-w-md"},l={contained:"bg-background border",outlined:"bg-transparent border border-black w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white"};return s.jsx("div",{className:$e(o,i[e],l[t],r?"flex items-center text-center":""),dir:n,children:a.children})},oO=e=>s.jsx("div",{className:" columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8",children:e.children}),iO=({isOpen:e,onClose:t,items:r})=>e?s.jsxs("div",{className:"fixed inset-0 z-40 flex bg-gray-600 bg-opacity-75",children:[s.jsxs("div",{className:"w-1/3 rounded-l-lg bg-gray-800 shadow-2xl",children:[s.jsx("button",{onClick:t,className:"p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none",children:"Close"}),s.jsx("nav",{children:r.map((n,a)=>s.jsx("a",{href:"#",onClick:n.onClick,className:"block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400",children:n.label},a))})]}),s.jsx("div",{className:"w-2/3 bg-gray-50"})]}):null;function sO(e){return hu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"}}]})(e)}function lO(e){return hu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}const uO=({variation:e="default",...t})=>{var n;let r={default:"rounded border",minimal:"border-t"};return s.jsxs("div",{className:Ve("flex w-full flex-row items-center justify-between gap-8 rounded bg-background p-4",r[e]),children:[s.jsxs("div",{className:"flex flex-col items-center gap-2",children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[t.logoURL&&s.jsx("div",{children:s.jsx("img",{className:"h-8",src:t.logoURL})}),t.logoText&&s.jsx("div",{children:s.jsx("div",{className:"text-2xl font-bold text-primary",children:t.logoText})})]}),t.copyRights&&t.footerLinks&&s.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]})]}),t.copyRights&&!t.footerLinks&&s.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]}),(n=t.footerLinks)==null?void 0:n.map(a=>s.jsxs("div",{className:"flex w-32 flex-col gap-2",children:[s.jsx("div",{className:"text-lg font-bold",children:a.title}),s.jsx("div",{className:"flex flex-col gap-1",children:a.pages.map(o=>s.jsx("a",{className:"transition-all hover:font-bold",href:o.link,children:o.label}))})]})),t.socialLinks&&s.jsxs("div",{className:"flex flex-row gap-2",children:[t.socialLinks.twitter&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(lO,{})}),t.socialLinks.instagram&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(sO,{})}),t.socialLinks.tiktok&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(qP,{})}),t.socialLinks.snapchat&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(KP,{})})]})]})},cO=({design:e="floating",...t})=>{const r=h.useRef(null),[n,a]=h.useState(!1);let o={floating:"left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",default:"w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"};return s.jsx("div",{ref:r,children:s.jsxs("div",{dir:t.direction,className:$e(o[e],"fixed flex flex-col justify-between border border-gray-100 bg-white shadow-sm transition-all dark:border-gray-600 dark:bg-gray-700 md:flex-row md:gap-4 ",t.position==="top"?e==="floating"?"top-6":"top-0":e==="floating"?"bottom-6":"bottom-0",n?"opacity-0":"opacity-100"),children:[s.jsxs("div",{className:"mb-3 flex w-full flex-col items-center justify-start md:mb-0 md:flex-row md:items-center",children:[s.jsxs("div",{className:$e(t.direction==="rtl"?"md:ml-4 md:border-l md:pl-4":"md:mr-4 md:border-r md:pr-4","mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"),children:[t.logoURL&&s.jsx("img",{src:t.logoURL,className:"mr-2 h-6",alt:"Flowbite Logo"}),t.title&&s.jsx("span",{className:"self-center whitespace-nowrap text-lg font-semibold dark:text-white",children:t.title})]}),t.text&&s.jsx("p",{className:$e("m-0 flex items-center text-center text-sm font-normal text-gray-500 dark:text-gray-400 ",t.direction==="rtl"?"md:text-right":"md:text-left"),children:t.text})]}),t.actionText&&s.jsx("div",{className:$e("flex flex-shrink-0 items-center justify-center ",t.direction==="rtl"?"ml-0 md:ml-10":"mr-0 md:mr-10"),children:s.jsx(qe,{onClick:t.onActionClick,children:t.actionText})}),s.jsxs("button",{type:"button",className:$e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",t.direction==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{a(!0),setTimeout(()=>{r.current.removeChild(r.current.children[0])},200)},children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})};var pu=e=>e.type==="checkbox",Fs=e=>e instanceof Date,Jr=e=>e==null;const YC=e=>typeof e=="object";var yr=e=>!Jr(e)&&!Array.isArray(e)&&YC(e)&&!Fs(e),JC=e=>yr(e)&&e.target?pu(e.target)?e.target.checked:e.target.value:e,dO=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,QC=(e,t)=>e.has(dO(t)),fO=e=>{const t=e.constructor&&e.constructor.prototype;return yr(t)&&t.hasOwnProperty("isPrototypeOf")},zg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function aa(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zg&&(e instanceof Blob||e instanceof FileList))&&(r||yr(e)))if(t=r?[]:{},!r&&!fO(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=aa(e[n]));else return e;return t}var gu=e=>Array.isArray(e)?e.filter(Boolean):[],mr=e=>e===void 0,et=(e,t,r)=>{if(!t||!yr(e))return r;const n=gu(t.split(/[,[\].]+?/)).reduce((a,o)=>Jr(a)?a:a[o],e);return mr(n)||n===e?mr(e[t])?r:e[t]:n},Io=e=>typeof e=="boolean";const Qd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},oa={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ua={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},KC=h.createContext(null),Gg=()=>h.useContext(KC),mu=e=>{const{children:t,...r}=e;return h.createElement(KC.Provider,{value:r},t)};var qC=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==oa.all&&(t._proxyFormState[i]=!n||oa.all),r&&(r[i]=!0),e[i]}});return a},Ln=e=>yr(e)&&!Object.keys(e).length,ew=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return Ln(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||oa.all))},Kd=e=>Array.isArray(e)?e:[e],tw=(e,t,r)=>r&&t?e===t||Array.isArray(e)&&e.some(n=>n&&r&&n===t):!e||!t||e===t||Kd(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function Zg(e){const t=h.useRef(e);t.current=e,h.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function hO(e){const t=Gg(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,l]=h.useState(r._formState),u=h.useRef(!0),c=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=h.useRef(a);return m.current=a,Zg({disabled:n,next:p=>u.current&&tw(m.current,p.name,o)&&ew(p,c.current,r._updateFormState)&&l({...r._formState,...p}),subject:r._subjects.state}),h.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),qC(i,r,c.current,!1)}var Aa=e=>typeof e=="string",rw=(e,t,r,n,a)=>Aa(e)?(n&&t.watch.add(e),et(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),et(r,o))):(n&&(t.watchAll=!0),r);function pO(e){const t=Gg(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},l=h.useRef(n);l.current=n,Zg({disabled:o,subject:r._subjects.values,next:m=>{tw(l.current,m.name,i)&&c(aa(rw(l.current,r._names,m.values||r._formValues,!1,a)))}});const[u,c]=h.useState(r._getWatch(n,a));return h.useEffect(()=>r._removeUnmounted()),u}var Ug=e=>/^\w*$/.test(e),nw=e=>gu(e.replace(/["|']|\]/g,"").split(/\.|\[/));function er(e,t,r){let n=-1;const a=Ug(t)?[t]:nw(t),o=a.length,i=o-1;for(;++n<o;){const l=a[n];let u=r;if(n!==i){const c=e[l];u=yr(c)||Array.isArray(c)?c:isNaN(+a[n+1])?{}:[]}e[l]=u,e=e[l]}return e}function gO(e){const t=Gg(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=QC(a._names.array,r),l=pO({control:a,name:r,defaultValue:et(a._formValues,r,et(a._defaultValues,r,e.defaultValue)),exact:!0}),u=hO({control:a,name:r}),c=h.useRef(a.register(r,{...e.rules,value:l}));return c.current=a.register(r,e.rules),h.useEffect(()=>{const m=a._options.shouldUnregister||o,p=(x,C)=>{const E=et(a._fields,x);E&&(E._f.mount=C)};if(p(r,!0),m){const x=aa(et(a._options.defaultValues,r));er(a._defaultValues,r,x),mr(et(a._formValues,r))&&er(a._formValues,r,x)}return()=>{(i?m&&!a._state.action:m)?a.unregister(r):p(r,!1)}},[r,a,i,o]),h.useEffect(()=>{a._updateDisabledField({disabled:n,fields:a._fields,name:r})},[n,r,a]),{field:{name:r,value:l,...Io(n)?{disabled:n}:{},onChange:h.useCallback(m=>c.current.onChange({target:{value:JC(m),name:r},type:Qd.CHANGE}),[r]),onBlur:h.useCallback(()=>c.current.onBlur({target:{value:et(a._formValues,r),name:r},type:Qd.BLUR}),[r,a]),ref:m=>{const p=et(a._fields,r);p&&m&&(p._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:x=>m.setCustomValidity(x),reportValidity:()=>m.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!et(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!et(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!et(u.touchedFields,r)},error:{enumerable:!0,get:()=>et(u.errors,r)}})}}const kt=e=>e.render(gO(e));var mO=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{};const Xg=(e,t,r)=>{for(const n of r||Object.keys(e)){const a=et(e,n);if(a){const{_f:o,...i}=a;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else yr(i)&&Xg(i,t)}}};var aw=e=>({isOnSubmit:!e||e===oa.onSubmit,isOnBlur:e===oa.onBlur,isOnChange:e===oa.onChange,isOnAll:e===oa.all,isOnTouch:e===oa.onTouched}),ow=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),vO=(e,t,r)=>{const n=gu(et(e,r));return er(n,"root",t[r]),er(e,r,n),e},Yg=e=>e.type==="file",To=e=>typeof e=="function",qd=e=>{if(!zg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ef=e=>Aa(e),Jg=e=>e.type==="radio",tf=e=>e instanceof RegExp;const iw={value:!1,isValid:!1},sw={value:!0,isValid:!0};var lw=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!mr(e[0].attributes.value)?mr(e[0].value)||e[0].value===""?sw:{value:e[0].value,isValid:!0}:sw:iw}return iw};const uw={isValid:!1,value:null};var cw=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,uw):uw;function dw(e,t,r="validate"){if(ef(e)||Array.isArray(e)&&e.every(ef)||Io(e)&&!e)return{type:r,message:ef(e)?e:"",ref:t}}var js=e=>yr(e)&&!tf(e)?e:{value:e,message:""},fw=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:l,maxLength:u,minLength:c,min:m,max:p,pattern:x,validate:C,name:E,valueAsNumber:v,mount:A,disabled:S}=e._f,j=et(t,E);if(!A||S)return{};const O=i?i[0]:o,L=Q=>{n&&O.reportValidity&&(O.setCustomValidity(Io(Q)?"":Q||""),O.reportValidity())},M={},z=Jg(o),H=pu(o),oe=z||H,J=(v||Yg(o))&&mr(o.value)&&mr(j)||qd(o)&&o.value===""||j===""||Array.isArray(j)&&!j.length,ge=mO.bind(null,E,r,M),xe=(Q,ce,N,W=Ua.maxLength,ee=Ua.minLength)=>{const de=Q?ce:N;M[E]={type:Q?W:ee,message:de,ref:o,...ge(Q?W:ee,de)}};if(a?!Array.isArray(j)||!j.length:l&&(!oe&&(J||Jr(j))||Io(j)&&!j||H&&!lw(i).isValid||z&&!cw(i).isValid)){const{value:Q,message:ce}=ef(l)?{value:!!l,message:l}:js(l);if(Q&&(M[E]={type:Ua.required,message:ce,ref:O,...ge(Ua.required,ce)},!r))return L(ce),M}if(!J&&(!Jr(m)||!Jr(p))){let Q,ce;const N=js(p),W=js(m);if(!Jr(j)&&!isNaN(j)){const ee=o.valueAsNumber||j&&+j;Jr(N.value)||(Q=ee>N.value),Jr(W.value)||(ce=ee<W.value)}else{const ee=o.valueAsDate||new Date(j),de=K=>new Date(new Date().toDateString()+" "+K),ne=o.type=="time",te=o.type=="week";Aa(N.value)&&j&&(Q=ne?de(j)>de(N.value):te?j>N.value:ee>new Date(N.value)),Aa(W.value)&&j&&(ce=ne?de(j)<de(W.value):te?j<W.value:ee<new Date(W.value))}if((Q||ce)&&(xe(!!Q,N.message,W.message,Ua.max,Ua.min),!r))return L(M[E].message),M}if((u||c)&&!J&&(Aa(j)||a&&Array.isArray(j))){const Q=js(u),ce=js(c),N=!Jr(Q.value)&&j.length>+Q.value,W=!Jr(ce.value)&&j.length<+ce.value;if((N||W)&&(xe(N,Q.message,ce.message),!r))return L(M[E].message),M}if(x&&!J&&Aa(j)){const{value:Q,message:ce}=js(x);if(tf(Q)&&!j.match(Q)&&(M[E]={type:Ua.pattern,message:ce,ref:o,...ge(Ua.pattern,ce)},!r))return L(ce),M}if(C){if(To(C)){const Q=await C(j,t),ce=dw(Q,O);if(ce&&(M[E]={...ce,...ge(Ua.validate,ce.message)},!r))return L(ce.message),M}else if(yr(C)){let Q={};for(const ce in C){if(!Ln(Q)&&!r)break;const N=dw(await C[ce](j,t),O,ce);N&&(Q={...N,...ge(ce,N.message)},L(N.message),r&&(M[E]=Q))}if(!Ln(Q)&&(M[E]={ref:O,...Q},!r))return M}}return L(!0),M};function bO(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=mr(e)?n++:e[t[n++]];return e}function xO(e){for(const t in e)if(e.hasOwnProperty(t)&&!mr(e[t]))return!1;return!0}function Pr(e,t){const r=Array.isArray(t)?t:Ug(t)?[t]:nw(t),n=r.length===1?e:bO(e,r),a=r.length-1,o=r[a];return n&&delete n[o],a!==0&&(yr(n)&&Ln(n)||Array.isArray(n)&&xO(n))&&Pr(e,r.slice(0,-1)),e}function Qg(){let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}}var rf=e=>Jr(e)||!YC(e);function yi(e,t){if(rf(e)||rf(t))return e===t;if(Fs(e)&&Fs(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Fs(o)&&Fs(i)||yr(o)&&yr(i)||Array.isArray(o)&&Array.isArray(i)?!yi(o,i):o!==i)return!1}}return!0}var hw=e=>e.type==="select-multiple",yO=e=>Jg(e)||pu(e),Kg=e=>qd(e)&&e.isConnected,pw=e=>{for(const t in e)if(To(e[t]))return!0;return!1};function nf(e,t={}){const r=Array.isArray(e);if(yr(e)||r)for(const n in e)Array.isArray(e[n])||yr(e[n])&&!pw(e[n])?(t[n]=Array.isArray(e[n])?[]:{},nf(e[n],t[n])):Jr(e[n])||(t[n]=!0);return t}function gw(e,t,r){const n=Array.isArray(e);if(yr(e)||n)for(const a in e)Array.isArray(e[a])||yr(e[a])&&!pw(e[a])?mr(t)||rf(r[a])?r[a]=Array.isArray(e[a])?nf(e[a],[]):{...nf(e[a])}:gw(e[a],Jr(t)?{}:t[a],r[a]):r[a]=!yi(e[a],t[a]);return r}var qg=(e,t)=>gw(e,t,nf(t)),mw=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>mr(e)?e:t?e===""?NaN:e&&+e:r&&Aa(e)?new Date(e):n?n(e):e;function em(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Yg(t)?t.files:Jg(t)?cw(e.refs).value:hw(t)?[...t.selectedOptions].map(({value:r})=>r):pu(t)?lw(e.refs).value:mw(mr(t.value)?e.ref.value:t.value,e)}var CO=(e,t,r,n)=>{const a={};for(const o of e){const i=et(t,o);i&&er(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},vu=e=>mr(e)?e:tf(e)?e.source:yr(e)?tf(e.value)?e.value.source:e.value:e,wO=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function vw(e,t,r){const n=et(e,r);if(n||Ug(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=et(t,o),l=et(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:r}}var EO=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,DO=(e,t)=>!gu(et(e,t)).length&&Pr(e,t);const SO={mode:oa.onSubmit,reValidateMode:oa.onChange,shouldFocusError:!0};function AO(e={},t){let r={...SO,...e},n={submitCount:0,isDirty:!1,isLoading:To(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},o=yr(r.defaultValues)||yr(r.values)?aa(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:aa(o),l={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,m=0;const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={values:Qg(),array:Qg(),state:Qg()},C=e.resetOptions&&e.resetOptions.keepDirtyValues,E=aw(r.mode),v=aw(r.reValidateMode),A=r.criteriaMode===oa.all,S=re=>be=>{clearTimeout(m),m=setTimeout(re,be)},j=async re=>{if(p.isValid||re){const be=r.resolver?Ln((await J()).errors):await xe(a,!0);be!==n.isValid&&x.state.next({isValid:be})}},O=re=>p.isValidating&&x.state.next({isValidating:re}),L=(re,be=[],Ie,Ze,He=!0,Te=!0)=>{if(Ze&&Ie){if(l.action=!0,Te&&Array.isArray(et(a,re))){const Ee=Ie(et(a,re),Ze.argA,Ze.argB);He&&er(a,re,Ee)}if(Te&&Array.isArray(et(n.errors,re))){const Ee=Ie(et(n.errors,re),Ze.argA,Ze.argB);He&&er(n.errors,re,Ee),DO(n.errors,re)}if(p.touchedFields&&Te&&Array.isArray(et(n.touchedFields,re))){const Ee=Ie(et(n.touchedFields,re),Ze.argA,Ze.argB);He&&er(n.touchedFields,re,Ee)}p.dirtyFields&&(n.dirtyFields=qg(o,i)),x.state.next({name:re,isDirty:ce(re,be),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else er(i,re,be)},M=(re,be)=>{er(n.errors,re,be),x.state.next({errors:n.errors})},z=(re,be,Ie,Ze)=>{const He=et(a,re);if(He){const Te=et(i,re,mr(Ie)?et(o,re):Ie);mr(Te)||Ze&&Ze.defaultChecked||be?er(i,re,be?Te:em(He._f)):ee(re,Te),l.mount&&j()}},H=(re,be,Ie,Ze,He)=>{let Te=!1,Ee=!1;const ze={name:re};if(!Ie||Ze){p.isDirty&&(Ee=n.isDirty,n.isDirty=ze.isDirty=ce(),Te=Ee!==ze.isDirty);const tt=yi(et(o,re),be);Ee=et(n.dirtyFields,re),tt?Pr(n.dirtyFields,re):er(n.dirtyFields,re,!0),ze.dirtyFields=n.dirtyFields,Te=Te||p.dirtyFields&&Ee!==!tt}if(Ie){const tt=et(n.touchedFields,re);tt||(er(n.touchedFields,re,Ie),ze.touchedFields=n.touchedFields,Te=Te||p.touchedFields&&tt!==Ie)}return Te&&He&&x.state.next(ze),Te?ze:{}},oe=(re,be,Ie,Ze)=>{const He=et(n.errors,re),Te=p.isValid&&Io(be)&&n.isValid!==be;if(e.delayError&&Ie?(c=S(()=>M(re,Ie)),c(e.delayError)):(clearTimeout(m),c=null,Ie?er(n.errors,re,Ie):Pr(n.errors,re)),(Ie?!yi(He,Ie):He)||!Ln(Ze)||Te){const Ee={...Ze,...Te&&Io(be)?{isValid:be}:{},errors:n.errors,name:re};n={...n,...Ee},x.state.next(Ee)}O(!1)},J=async re=>r.resolver(i,r.context,CO(re||u.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),ge=async re=>{const{errors:be}=await J(re);if(re)for(const Ie of re){const Ze=et(be,Ie);Ze?er(n.errors,Ie,Ze):Pr(n.errors,Ie)}else n.errors=be;return be},xe=async(re,be,Ie={valid:!0})=>{for(const Ze in re){const He=re[Ze];if(He){const{_f:Te,...Ee}=He;if(Te){const ze=u.array.has(Te.name),tt=await fw(He,i,A,r.shouldUseNativeValidation&&!be,ze);if(tt[Te.name]&&(Ie.valid=!1,be))break;!be&&(et(tt,Te.name)?ze?vO(n.errors,tt,Te.name):er(n.errors,Te.name,tt[Te.name]):Pr(n.errors,Te.name))}Ee&&await xe(Ee,be,Ie)}}return Ie.valid},Q=()=>{for(const re of u.unMount){const be=et(a,re);be&&(be._f.refs?be._f.refs.every(Ie=>!Kg(Ie)):!Kg(be._f.ref))&&ae(re)}u.unMount=new Set},ce=(re,be)=>(re&&be&&er(i,re,be),!yi(se(),o)),N=(re,be,Ie)=>rw(re,u,{...l.mount?i:mr(be)?o:Aa(re)?{[re]:be}:be},Ie,be),W=re=>gu(et(l.mount?i:o,re,e.shouldUnregister?et(o,re,[]):[])),ee=(re,be,Ie={})=>{const Ze=et(a,re);let He=be;if(Ze){const Te=Ze._f;Te&&(!Te.disabled&&er(i,re,mw(be,Te)),He=qd(Te.ref)&&Jr(be)?"":be,hw(Te.ref)?[...Te.ref.options].forEach(Ee=>Ee.selected=He.includes(Ee.value)):Te.refs?pu(Te.ref)?Te.refs.length>1?Te.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(He)?!!He.find(ze=>ze===Ee.value):He===Ee.value)):Te.refs[0]&&(Te.refs[0].checked=!!He):Te.refs.forEach(Ee=>Ee.checked=Ee.value===He):Yg(Te.ref)?Te.ref.value="":(Te.ref.value=He,Te.ref.type||x.values.next({name:re,values:{...i}})))}(Ie.shouldDirty||Ie.shouldTouch)&&H(re,He,Ie.shouldTouch,Ie.shouldDirty,!0),Ie.shouldValidate&&K(re)},de=(re,be,Ie)=>{for(const Ze in be){const He=be[Ze],Te=`${re}.${Ze}`,Ee=et(a,Te);(u.array.has(re)||!rf(He)||Ee&&!Ee._f)&&!Fs(He)?de(Te,He,Ie):ee(Te,He,Ie)}},ne=(re,be,Ie={})=>{const Ze=et(a,re),He=u.array.has(re),Te=aa(be);er(i,re,Te),He?(x.array.next({name:re,values:{...i}}),(p.isDirty||p.dirtyFields)&&Ie.shouldDirty&&x.state.next({name:re,dirtyFields:qg(o,i),isDirty:ce(re,Te)})):Ze&&!Ze._f&&!Jr(Te)?de(re,Te,Ie):ee(re,Te,Ie),ow(re,u)&&x.state.next({...n}),x.values.next({name:re,values:{...i}}),!l.mount&&t()},te=async re=>{const be=re.target;let Ie=be.name,Ze=!0;const He=et(a,Ie),Te=()=>be.type?em(He._f):JC(re);if(He){let Ee,ze;const tt=Te(),bt=re.type===Qd.BLUR||re.type===Qd.FOCUS_OUT,Ot=!wO(He._f)&&!r.resolver&&!et(n.errors,Ie)&&!He._f.deps||EO(bt,et(n.touchedFields,Ie),n.isSubmitted,v,E),gt=ow(Ie,u,bt);er(i,Ie,tt),bt?(He._f.onBlur&&He._f.onBlur(re),c&&c(0)):He._f.onChange&&He._f.onChange(re);const Wt=H(Ie,tt,bt,!1),pr=!Ln(Wt)||gt;if(!bt&&x.values.next({name:Ie,type:re.type,values:{...i}}),Ot)return p.isValid&&j(),pr&&x.state.next({name:Ie,...gt?{}:Wt});if(!bt&>&&x.state.next({...n}),O(!0),r.resolver){const{errors:Yt}=await J([Ie]),Cr=vw(n.errors,a,Ie),gr=vw(Yt,a,Cr.name||Ie);Ee=gr.error,Ie=gr.name,ze=Ln(Yt)}else Ee=(await fw(He,i,A,r.shouldUseNativeValidation))[Ie],Ze=Number.isNaN(tt)||tt===et(i,Ie,tt),Ze&&(Ee?ze=!1:p.isValid&&(ze=await xe(a,!0)));Ze&&(He._f.deps&&K(He._f.deps),oe(Ie,ze,Ee,Wt))}},K=async(re,be={})=>{let Ie,Ze;const He=Kd(re);if(O(!0),r.resolver){const Te=await ge(mr(re)?re:He);Ie=Ln(Te),Ze=re?!He.some(Ee=>et(Te,Ee)):Ie}else re?(Ze=(await Promise.all(He.map(async Te=>{const Ee=et(a,Te);return await xe(Ee&&Ee._f?{[Te]:Ee}:Ee)}))).every(Boolean),!(!Ze&&!n.isValid)&&j()):Ze=Ie=await xe(a);return x.state.next({...!Aa(re)||p.isValid&&Ie!==n.isValid?{}:{name:re},...r.resolver||!re?{isValid:Ie}:{},errors:n.errors,isValidating:!1}),be.shouldFocus&&!Ze&&Xg(a,Te=>Te&&et(n.errors,Te),re?He:u.mount),Ze},se=re=>{const be={...o,...l.mount?i:{}};return mr(re)?be:Aa(re)?et(be,re):re.map(Ie=>et(be,Ie))},fe=(re,be)=>({invalid:!!et((be||n).errors,re),isDirty:!!et((be||n).dirtyFields,re),isTouched:!!et((be||n).touchedFields,re),error:et((be||n).errors,re)}),Se=re=>{re&&Kd(re).forEach(be=>Pr(n.errors,be)),x.state.next({errors:re?n.errors:{}})},G=(re,be,Ie)=>{const Ze=(et(a,re,{_f:{}})._f||{}).ref;er(n.errors,re,{...be,ref:Ze}),x.state.next({name:re,errors:n.errors,isValid:!1}),Ie&&Ie.shouldFocus&&Ze&&Ze.focus&&Ze.focus()},he=(re,be)=>To(re)?x.values.subscribe({next:Ie=>re(N(void 0,be),Ie)}):N(re,be,!0),ae=(re,be={})=>{for(const Ie of re?Kd(re):u.mount)u.mount.delete(Ie),u.array.delete(Ie),be.keepValue||(Pr(a,Ie),Pr(i,Ie)),!be.keepError&&Pr(n.errors,Ie),!be.keepDirty&&Pr(n.dirtyFields,Ie),!be.keepTouched&&Pr(n.touchedFields,Ie),!r.shouldUnregister&&!be.keepDefaultValue&&Pr(o,Ie);x.values.next({values:{...i}}),x.state.next({...n,...be.keepDirty?{isDirty:ce()}:{}}),!be.keepIsValid&&j()},me=({disabled:re,name:be,field:Ie,fields:Ze})=>{if(Io(re)){const He=re?void 0:et(i,be,em(Ie?Ie._f:et(Ze,be)._f));er(i,be,He),H(be,He,!1,!1,!0)}},Me=(re,be={})=>{let Ie=et(a,re);const Ze=Io(be.disabled);return er(a,re,{...Ie||{},_f:{...Ie&&Ie._f?Ie._f:{ref:{name:re}},name:re,mount:!0,...be}}),u.mount.add(re),Ie?me({field:Ie,disabled:be.disabled,name:re}):z(re,!0,be.value),{...Ze?{disabled:be.disabled}:{},...r.progressive?{required:!!be.required,min:vu(be.min),max:vu(be.max),minLength:vu(be.minLength),maxLength:vu(be.maxLength),pattern:vu(be.pattern)}:{},name:re,onChange:te,onBlur:te,ref:He=>{if(He){Me(re,be),Ie=et(a,re);const Te=mr(He.value)&&He.querySelectorAll&&He.querySelectorAll("input,select,textarea")[0]||He,Ee=yO(Te),ze=Ie._f.refs||[];if(Ee?ze.find(tt=>tt===Te):Te===Ie._f.ref)return;er(a,re,{_f:{...Ie._f,...Ee?{refs:[...ze.filter(Kg),Te,...Array.isArray(et(o,re))?[{}]:[]],ref:{type:Te.type,name:re}}:{ref:Te}}}),z(re,!1,void 0,Te)}else Ie=et(a,re,{}),Ie._f&&(Ie._f.mount=!1),(r.shouldUnregister||be.shouldUnregister)&&!(QC(u.array,re)&&l.action)&&u.unMount.add(re)}}},Pe=()=>r.shouldFocusError&&Xg(a,re=>re&&et(n.errors,re),u.mount),We=(re,be)=>async Ie=>{Ie&&(Ie.preventDefault&&Ie.preventDefault(),Ie.persist&&Ie.persist());let Ze=aa(i);if(x.state.next({isSubmitting:!0}),r.resolver){const{errors:He,values:Te}=await J();n.errors=He,Ze=Te}else await xe(a);Pr(n.errors,"root"),Ln(n.errors)?(x.state.next({errors:{}}),await re(Ze,Ie)):(be&&await be({...n.errors},Ie),Pe(),setTimeout(Pe)),x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ln(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Ke=(re,be={})=>{et(a,re)&&(mr(be.defaultValue)?ne(re,et(o,re)):(ne(re,be.defaultValue),er(o,re,be.defaultValue)),be.keepTouched||Pr(n.touchedFields,re),be.keepDirty||(Pr(n.dirtyFields,re),n.isDirty=be.defaultValue?ce(re,et(o,re)):ce()),be.keepError||(Pr(n.errors,re),p.isValid&&j()),x.state.next({...n}))},Ne=(re,be={})=>{const Ie=re?aa(re):o,Ze=aa(Ie),He=re&&!Ln(re)?Ze:o;if(be.keepDefaultValues||(o=Ie),!be.keepValues){if(be.keepDirtyValues||C)for(const Te of u.mount)et(n.dirtyFields,Te)?er(He,Te,et(i,Te)):ne(Te,et(He,Te));else{if(zg&&mr(re))for(const Te of u.mount){const Ee=et(a,Te);if(Ee&&Ee._f){const ze=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(qd(ze)){const tt=ze.closest("form");if(tt){tt.reset();break}}}}a={}}i=e.shouldUnregister?be.keepDefaultValues?aa(o):{}:aa(He),x.array.next({values:{...He}}),x.values.next({values:{...He}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!p.isValid||!!be.keepIsValid,l.watch=!!e.shouldUnregister,x.state.next({submitCount:be.keepSubmitCount?n.submitCount:0,isDirty:be.keepDirty?n.isDirty:!!(be.keepDefaultValues&&!yi(re,o)),isSubmitted:be.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:be.keepDirtyValues?n.dirtyFields:be.keepDefaultValues&&re?qg(o,re):{},touchedFields:be.keepTouched?n.touchedFields:{},errors:be.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Qe=(re,be)=>Ne(To(re)?re(i):re,be);return{control:{register:Me,unregister:ae,getFieldState:fe,handleSubmit:We,setError:G,_executeSchema:J,_getWatch:N,_getDirty:ce,_updateValid:j,_removeUnmounted:Q,_updateFieldArray:L,_updateDisabledField:me,_getFieldArray:W,_reset:Ne,_resetDefaultValues:()=>To(r.defaultValues)&&r.defaultValues().then(re=>{Qe(re,r.resetOptions),x.state.next({isLoading:!1})}),_updateFormState:re=>{n={...n,...re}},_subjects:x,_proxyFormState:p,get _fields(){return a},get _formValues(){return i},get _state(){return l},set _state(re){l=re},get _defaultValues(){return o},get _names(){return u},set _names(re){u=re},get _formState(){return n},set _formState(re){n=re},get _options(){return r},set _options(re){r={...r,...re}}},trigger:K,register:Me,handleSubmit:We,watch:he,setValue:ne,getValues:se,reset:Qe,resetField:Ke,clearErrors:Se,unregister:ae,setError:G,setFocus:(re,be={})=>{const Ie=et(a,re),Ze=Ie&&Ie._f;if(Ze){const He=Ze.refs?Ze.refs[0]:Ze.ref;He.focus&&(He.focus(),be.shouldSelect&&He.select())}},getFieldState:fe}}function Xa(e={}){const t=h.useRef(),r=h.useRef(),[n,a]=h.useState({isDirty:!1,isValidating:!1,isLoading:To(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:To(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...AO(e,()=>a(i=>({...i}))),formState:n});const o=t.current.control;return o._options=e,Zg({subject:o._subjects.state,next:i=>{ew(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),h.useEffect(()=>{e.values&&!yi(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values):o._resetDefaultValues()},[e.values,o]),h.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=qC(n,o),t.current}const FO=e=>{const t=Xa(),{formState:{errors:r},handleSubmit:n,control:a}=t;return s.jsx(Gt,{children:s.jsxs("form",{onSubmit:n(o=>e.handleUpdateProfile(o)),children:[s.jsx($t,{headless:!0,children:s.jsxs(mu,{...t,children:[s.jsx(kt,{control:a,name:"fullName",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helpertext:(i=r.fullName)==null?void 0:i.message,...o,value:o.value??""})}}),s.jsx(kt,{control:a,name:"phoneNumber",render:({field:o})=>s.jsx(cd,{label:"Phone number"})}),s.jsx(kt,{control:a,name:"email",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.emailLabel,helpertext:(i=r.email)==null?void 0:i.message,placeholder:e.texts.emailPlaceholder,...o,value:o.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),s.jsx(kt,{control:a,name:"password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,...o,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:a,name:"confirmPassword",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(i=r.confirmPassword)==null?void 0:i.message,...o,value:o.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]})}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",type:"submit",children:e.texts.updateProfile})})]})})},jO=e=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{className:"mb-2 text-sm font-bold",children:e.blockTitle}),s.jsx("div",{className:"flex flex-col gap-4 rounded p-2",children:e.children})]})}),IO=e=>{var t,r,n,a,o,i,l;return s.jsxs("div",{dir:e.direction,children:[s.jsx(Gt,{children:s.jsxs($t,{headless:!0,className:"flex flex-col gap-6",children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogle,children:[s.jsx(zr.google,{className:"h-4 w-4"}),((t=e.texts)==null?void 0:t.continueWithGoogle)??"Continue With Google"]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithub,children:[s.jsx(zr.gitHub,{className:"h-4 w-4"}),((r=e.texts)==null?void 0:r.continueWithGithub)??"Continue With Github"]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitter,children:[s.jsx(zr.twitter,{className:"h-4 w-4"}),((n=e.texts)==null?void 0:n.continueWithTwitter)??"Continue With Twitter"]}),e.viaApple&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleApple,children:[s.jsx(zr.apple,{className:"h-4 w-4"}),((a=e.texts)==null?void 0:a.continueWithApple)??"Continue With Apple"]}),e.viaMicrosoft&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleMicrosoft,children:[s.jsx(zr.microsoft,{className:"h-4 w-4"}),((o=e.texts)==null?void 0:o.continueWithMicrosoft)??"Continue With Microsoft"]}),e.viaEmail&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleEmail,children:[s.jsx(zr.mail,{className:"h-4 w-4"}),((i=e.texts)==null?void 0:i.continueWithEmail)??"Continue With Email"]}),e.viaPhone&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handlePhone,children:[s.jsx(zr.phone,{className:"h-4 w-4"}),((l=e.texts)==null?void 0:l.continueWithPhone)??"Continue With Phone"]}),!e.withoutSignUp&&s.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText,s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),s.jsxs("div",{className:"mt-6 flex flex-row justify-between",children:[s.jsx(yn,{onChangeTab:e.handleLanguage,design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),s.jsx(yn,{onChangeTab:e.handleColorMode,design:"tabs",options:[{value:"light",label:s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:s.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},{value:"dark",label:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:s.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})]})},TO=e=>{var j,O,L,M,z;const[t,r]=h.useState(null),n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n,[l,u]=h.useState(null),[c,m]=h.useState(0),[p,x]=h.useState(!1),[C,E]=h.useState(""),[v,A]=h.useState(e.confirmationStage),S=()=>{clearTimeout(l),m(60),x(!0);const oe=setInterval(()=>{m(J=>J>0?J-1:(clearInterval(oe),x(!1),0))},1e3);u(oe)};return s.jsx(Gt,{children:s.jsx($t,{className:"transition-all",headless:!0,children:v?s.jsxs("form",{onSubmit:H=>{H.preventDefault(),t&&e.handleConfirm(t)},children:[s.jsx(yg,{width:"full",digits:6,getPins:H=>r(H)}),s.jsx("div",{className:" py-2 text-center text-xs text-muted-foreground",children:p?s.jsxs("span",{children:["Resend code in ",c," seconds |"," ",s.jsx("span",{className:"clickable-link",onClick:()=>{clearTimeout(l),x(!1)},children:"Cancel"})]}):s.jsxs("span",{children:[((j=e.texts)==null?void 0:j.didntGetCode)??"Didn't get the code?"," ",s.jsx("span",{className:"clickable-link",onClick:()=>{S()},children:((O=e.texts)==null?void 0:O.resendCode)??"Click to resend"})]})}),s.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[s.jsx(qe,{variant:"secondary",onClick:()=>A(!1),children:((L=e.texts)==null?void 0:L.cancel)??"Cancel"}),s.jsx(qe,{isLoading:e.loadingConfirm,children:((M=e.texts)==null?void 0:M.confirm)??"Confirm"})]})]}):s.jsxs("form",{onSubmit:H=>{H.preventDefault(),A(!0),e.handleContinue(C)},children:[s.jsx(kt,{control:i,name:"phone",render:({field:H})=>s.jsx(cd,{country:e.country??"",label:e.label??"",handleChange:oe=>E(oe.target.value),...H}),rules:{required:e.phoneRequiredText}}),s.jsx(qe,{isLoading:e.loadingContinue,className:"w-full",children:((z=e.texts)==null?void 0:z.continue)??"Continue"})]})})})},kO=e=>{const{formState:{errors:t},handleSubmit:r,control:n}=Xa();return s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs(Gt,{dir:e.direction,children:[s.jsx($t,{headless:!0,children:s.jsxs("form",{onSubmit:r(a=>e.handleSignIn(a)),children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),e.signInType==="email"?s.jsx(kt,{control:n,name:"email",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helpertext:(o=t.email)==null?void 0:o.message,placeholder:e.texts.emailPlaceholder,value:a.value??"",onChange:a.onChange})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}):e.signInType==="username"?s.jsx(kt,{control:n,name:"username",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helpertext:(o=t.username)==null?void 0:o.message,placeholder:e.texts.usernamePlaceholder,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.usernameRequired}}):s.jsx(kt,{control:n,name:"phone",render:({field:a})=>s.jsx(cd,{label:"Phone number"}),rules:{required:e.texts.phoneRequiredText}}),e.signInType!=="phone"&&s.jsxs(s.Fragment,{children:[s.jsx(kt,{control:n,name:"password",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",autoComplete:"current-password",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(o=t.password)==null?void 0:o.message,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.passwordRequiredText,minLength:5}}),!e.withoutResetPassword&&s.jsx("div",{onClick:e.handleForgotPassword,className:"mb-3 w-fit cursor-pointer text-xs dark:text-gray-300",children:e.texts.forgotPasswordText})]}),s.jsx(qe,{className:"mt-4 w-full",isLoading:e.isLoading,children:e.texts.signInText}),!e.withoutSignUp&&s.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText," ",s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?s.jsxs(Fn,{className:Ve(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignIn,children:[e.isGoogleLoading?s.jsx(us,{size:"button"}):s.jsx(zr.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGoogleLabel]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignIn,children:[e.isGithubLoading?s.jsx(us,{size:"button"}):s.jsx(zr.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGithubLabel]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignIn,children:[e.isTwitterLoading?s.jsx(us,{size:"button"}):s.jsx(zr.twitter,{className:"h-4 w-4"})," ",!e.logosOnly&&e.texts.signInViaTwitterLabel]})]}):null]}),s.jsx(Cg,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})};function BO(){return s.jsxs(Gt,{children:[s.jsxs(Ca,{className:"space-y-1",children:[s.jsx(wa,{className:"text-2xl",children:"Create an account"}),s.jsx(ii,{children:"Enter your email below to create your account"})]}),s.jsxs($t,{className:"grid gap-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[s.jsxs(qe,{variant:"outline",children:[s.jsx(zr.gitHub,{className:"mr-2 h-4 w-4"}),"Github"]}),s.jsxs(qe,{variant:"outline",children:[s.jsx(zr.google,{className:"mr-2 h-4 w-4"}),"Google"]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-0 flex items-center",children:s.jsx("span",{className:"w-full border-t"})}),s.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:s.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(ti,{htmlFor:"email",children:"Email"}),s.jsx(As,{id:"email",type:"email",placeholder:"m@example.com"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(ti,{htmlFor:"password",children:"Password"}),s.jsx(As,{id:"password",type:"password"})]})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",children:"Create account"})})]})}const PO=e=>{const t=Xa(),{formState:{errors:r},handleSubmit:n,control:a}=t;return s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs(Gt,{dir:e.direction,children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),s.jsx(mu,{...t,children:s.jsxs("form",{onSubmit:n(o=>e.handleSignUp(o)),children:[s.jsx("div",{children:e.signUpFields.map((o,i)=>{if(o==="fullname")return s.jsx(kt,{control:a,name:"fullName",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helpertext:(u=r.fullName)==null?void 0:u.message,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.fullNameRequiredText}},i);if(o==="email")return s.jsx(kt,{control:a,name:"email",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helpertext:(u=r.email)==null?void 0:u.message,placeholder:e.texts.emailPlaceholder,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}},i);if(o==="username")return s.jsx(kt,{control:a,name:"username",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helpertext:(u=r.username)==null?void 0:u.message,placeholder:e.texts.usernamePlaceholder,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.usernameRequired}},i)})}),s.jsx(kt,{control:a,name:"password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:a,name:"confirm_password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(i=r.confirm_password)==null?void 0:i.message,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),e.showRefCode&&s.jsx(kt,{control:a,name:"refCode",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.refCode,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,value:o.value??"",onChange:o.onChange})}}),e.showUserSource&&s.jsx("div",{children:s.jsx(kt,{control:a,name:"reference",render:({field:o})=>s.jsx(Hl,{label:"How did you learn about us?",isCreatable:!1,isMulti:!1,isSearchable:!1,isClearable:!1,options:[{value:"friend",label:"From a friend"},{value:"ad",label:"Advertisement"},{value:"other",label:"Other"}],onChange:i=>{o.onChange(i.value)}})})}),e.showTermsOption&&s.jsx(kt,{control:a,name:"terms_accepted",render:({field:o})=>{var i;return s.jsx(Xf,{id:"terms_accepted",helperText:(i=r.terms_accepted)==null?void 0:i.message,onChange:l=>o.onChange(l),label:s.jsxs("span",{children:[e.texts.iAcceptText," ",s.jsx("a",{onClick:e.handleRouteToTOS,className:"clickable-link",children:e.texts.termsText})]})})},rules:{required:e.texts.termsRequiredText}}),e.showNewsletterOption&&s.jsx(kt,{control:a,name:"newsletter_accepted",render:({field:o})=>s.jsx(Xf,{id:"newsletter_accepted",label:e.texts.subscribeToNewsletter,onChange:o.onChange})}),s.jsx(qe,{className:"w-full",isLoading:e.isLoading,children:e.texts.signUpText})]})}),s.jsxs("div",{className:"flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white",children:[s.jsx("span",{children:e.texts.existingUserText}),s.jsx("span",{onClick:e.handleRouteToSignIn,className:"clickable-link",children:e.texts.signInText})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?s.jsxs(Fn,{className:Ve(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignUp,children:[s.jsx(zr.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGoogleLabel]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignUp,children:[s.jsx(zr.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGithubLabel]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignUp,children:[s.jsx(zr.twitter,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaTwitterLabel]})]}):null]}),s.jsx(Cg,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})},OO=e=>{const[t,r]=h.useState(!1),n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n,l=u=>{u.password===u.confirmPassword?e.handleNewPassword():r(!0)};return s.jsxs(Gt,{dir:e.direction,children:[t&&s.jsx(qn,{text:e.texts.passwordMatchError,severity:"error"}),e.passwordChanged?s.jsx($t,{headless:!0,children:s.jsx("div",{className:"text-center",children:e.texts.passwordChanged})}):s.jsx(mu,{...n,children:s.jsxs("form",{onSubmit:o(l),children:[!e.headless&&s.jsxs(Ca,{children:[s.jsx(wa,{children:"Create Password"}),s.jsx(ii,{children:"Set a new password for your account"})]}),s.jsxs($t,{headless:e.headless,children:[s.jsx(kt,{control:i,name:"password",render:({field:u})=>{var c;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(c=a.password)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:i,name:"confirmPassword",render:({field:u})=>{var c;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(c=a.confirmPassword)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",type:"submit",children:e.texts.updatePassword})})]})})]})},NO=e=>{var i,l,u,c,m,p;const t=Xa(),{formState:{errors:r},handleSubmit:n,register:a,control:o}=t;return s.jsx(Gt,{dir:e.direction,children:e.sent?s.jsx($t,{headless:!0,children:s.jsx("div",{className:"text-center",children:(p=e.texts)==null?void 0:p.emailSentText})}):s.jsxs(s.Fragment,{children:[!e.headless&&s.jsxs(Ca,{children:[s.jsx(wa,{children:"Reset Password"}),s.jsx(ii,{children:"Enter your email to reset your account password"})]}),s.jsxs("form",{onSubmit:n(e.handleResetPassword),children:[s.jsxs($t,{headless:e.headless,children:[s.jsx(kt,{control:o,name:"email",render:({field:x})=>{var C,E,v;return s.jsx(Rt,{width:"full",type:"text",label:(C=e.texts)==null?void 0:C.emailLabel,helpertext:(E=r.email)==null?void 0:E.message,placeholder:(v=e.texts)==null?void 0:v.emailPlaceholder,...x,value:x.value??""})},rules:{required:(i=e.texts)==null?void 0:i.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:(l=e.texts)==null?void 0:l.emailInvalidText}}}),s.jsxs("div",{className:"pb-2 text-start text-sm dark:text-gray-300",children:[((u=e.texts)==null?void 0:u.dontHaveAccount)??"Don't have an account? ",s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:((c=e.texts)==null?void 0:c.signUpText)??"Sign Up"})]})]}),s.jsx(Fn,{children:s.jsx(qe,{type:"submit",className:"w-full",children:(m=e.texts)==null?void 0:m.resetPassword})})]})]})})},MO=e=>{const[t,r]=h.useState(null);return s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),s.jsxs("div",{className:"mb-4 dark:text-white",children:[s.jsx("div",{className:"text-lg font-bold",children:e.texts.checkYourPhone??"Please check your phone"}),s.jsxs("div",{className:"text-muted-foreground",children:[s.jsx("span",{children:e.texts.weSentCode??"We've sent a code to "}),s.jsx("span",{children:e.phoneNumber})]})," "]}),s.jsxs("form",{onSubmit:n=>{n.preventDefault(),t&&e.submitConfirmation(t)},children:[s.jsx(yg,{width:"full",digits:6,getPins:n=>r(n)}),s.jsxs("div",{className:" py-2 text-center text-xs text-muted-foreground",children:[s.jsx("span",{children:e.texts.didntGetCode??"Didn't get the code?"})," ",s.jsx("span",{className:"clickable-link",children:e.texts.resendCode??"Click to resend"})]}),s.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[s.jsx(qe,{variant:"secondary",children:e.texts.cancel??"Cancel"}),s.jsx(qe,{children:e.texts.confirm??"Confirm"})]})]})]})})},RO=({texts:e,handleResend:t})=>s.jsxs(Gt,{children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[s.jsx("div",{className:"flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:s.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"0.5em",width:"0.5em",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),s.jsx("polyline",{points:"22,6 12,13 2,6"})]})}),s.jsx("div",{className:"m-2 text-xl font-bold",children:(e==null?void 0:e.checkEmail)??"Check you email"}),s.jsx("div",{className:"text-sm",children:(e==null?void 0:e.pleaseVerify)??"Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."})]})}),s.jsx(Fn,{className:"flex flex-col justify-center ",children:s.jsx("span",{className:"clickable-link text-sm",onClick:t,children:(e==null?void 0:e.resendEmail)??"Resend Email"})})]}),$O=e=>{const[t,r]=h.useState("");return s.jsxs(Gt,{children:[s.jsxs(Ca,{children:[s.jsx(wa,{children:"Choose Payment Method"}),s.jsx(ii,{children:"And you'll be directed to the next step to complete the payment"})]}),s.jsxs($t,{className:"grid grid-cols-2 gap-4",children:[s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2 pt-6",t==="mada"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaMada,onClick:()=>r("mada"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",className:"h-6"}),s.jsx("span",{children:e.madaLabel})]}),s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2",t==="apple-pay"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaApplePay,onClick:()=>r("apple-pay"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",className:"h-11"}),s.jsx("span",{children:e.applePayLabel})]}),s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2",t==="visa-master"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaCreditCard,onClick:()=>r("visa-master"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",className:"h-6"}),s.jsx("span",{children:e.visaMasterLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("flex w-full flex-col gap-2",t==="wallet"&&"outline outline-4 outline-primary"),disabled:!e.viaWallet,onClick:()=>r("wallet"),children:[s.jsx("svg",{version:"1.1",fill:"currentColor",viewBox:"0 0 223 223",className:"h-6 w-6",children:s.jsxs("g",{children:[s.jsx("path",{d:`M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z
|
|
228
|
+
M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823
|
|
229
|
+
C182.338,118.225,176.597,123.967,169.515,123.967z`}),s.jsx("path",{d:`M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175
|
|
230
|
+
c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z`})]})}),s.jsx("span",{children:e.walletLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("flex w-full flex-col gap-2",t==="stc-pay"&&"outline outline-4 outline-primary"),disabled:!e.viaSTCPay,onClick:()=>r("stc-pay"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",className:"h-6"}),s.jsx("span",{children:e.stcPayLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("flex w-full flex-col gap-2",t==="google-pay"&&"outline outline-4 outline-primary"),disabled:!e.viaGooglePay,onClick:()=>r("google-pay"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",className:"h-6"}),s.jsx("span",{children:e.googlePayLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("col-span-2 flex w-full flex-col gap-2",t==="paypal"&&"outline outline-4 outline-primary"),disabled:!e.viaPayPal,onClick:()=>r("paypal"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",className:"h-6"}),s.jsx("span",{children:e.paypalLabel})]})]}),s.jsx(Fn,{children:s.jsx(qe,{onClick:()=>e.handleContinue(t),className:"w-full",disabled:!t,children:"Continue"})})]})},LO=e=>{const[t,r]=h.useState(""),[n,a]=h.useState(""),o=Xa(),{formState:{errors:i},handleSubmit:l,control:u}=o,c=p=>{const x=/^4[0-9]{0,15}$/m,C=/^5$|^5[0-5][0-9]{0,16}$/m,E=/^3$|^3[47][0-9]{0,13}$/m,v=/^(440647|440795|446404|457865|968208|457997|474491|636120|417633|468540|468541|468542|468543|968201|446393|409201|458456|484783|462220|455708|410621|455036|486094|486095|486096|504300|440533|489318|489319|445564|968211|410685|406996|432328|428671|428672|428673|968206|446672|543357|434107|407197|407395|412565|431361|604906|521076|529415|535825|543085|524130|554180|549760|968209|524514|529741|537767|535989|536023|513213|520058|558563|588982|589005|531095|530906|532013|968204|422817|422818|422819|428331|483010|483011|483012|589206|968207|419593|439954|530060|531196|420132)/,A=/^507803[0-6][0-9]|507808[3-9][0-9]|507809[0-9][0-9]|507810[0-2][0-9]/;let S="visa";return p.replace(/[^\d]/g,"").match(v)?S="mada":p.replace(/[^\d]/g,"").match(A)?S="meeza":p.replace(/[^\d]/g,"").match(x)?S="visa":p.replace(/[^\d]/g,"").match(C)?S="mastercard":p.replace(/[^\d]/g,"").match(E)&&(S="amex"),S},m=p=>{let{value:x,name:C}=p.target,E=x;x=x.replace(/\D/g,""),/^3[47]\d{0,13}$/.test(x)?E=x.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{6})/,"$1 $2 "):/^3(?:0[0-5]|[68]\d)\d{0,11}$/.test(x)?E=x.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{6})/,"$1 $2 "):/^\d{0,16}$/.test(x)&&(E=x.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{4})/,"$1 $2 ").replace(/(\d{4}) (\d{4}) (\d{4})/,"$1 $2 $3 ")),console.log("card number is ",E.trimRight()),r(E.trimRight())};return h.useEffect(()=>{let p=c(t);a(p)}),s.jsx(Gt,{children:s.jsxs("form",{onSubmit:l(e.handle),children:[s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(kt,{control:u,name:"cardNumber",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardNumber",placeholder:"1234 1234 1234 1234",type:"number",onChange:m,label:"Card Number",helpertext:(x=i.password)==null?void 0:x.message,iconInside:s.jsx("img",{src:`https://sikka-images.s3.ap-southeast-1.amazonaws.com/payment-symbols/borderless/${n}.png`,alt:"",className:"h-8"})})},rules:{required:"Card Number is rquired"}}),s.jsx("div",{className:"w-1/4",children:s.jsx(kt,{control:u,name:"cardCVC",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardCVC",maxLength:"3",autoComplete:"cc-number",placeholder:"CVC",type:"number",label:"CVC",helpertext:(x=i.password)==null?void 0:x.message})},rules:{required:"Password is rquired"}})})]}),s.jsx(kt,{control:u,name:"cardExpiry",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardExpiry",placeholder:"MM / YY",type:"password",label:"Expiry Date",helpertext:(x=i.password)==null?void 0:x.message})},rules:{required:"Password is rquired"}}),s.jsx(kt,{control:u,name:"cardName",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardName",type:"text",label:"Name on card",helpertext:(x=i.password)==null?void 0:x.message})},rules:{required:"Card holder name is rquired"}})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",onClick:e.handlePayWithCreditCard,children:"Pay with Credit Card"})})]})})},_O=e=>{const[t,r]=h.useState(0);return s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"p-4 text-center",children:[s.jsx("div",{className:" text-5xl font-extrabold",children:Number(t).toLocaleString("en")||"0"}),s.jsx("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),s.jsxs("div",{className:"mb-2 flex w-full flex-col gap-4 text-center",children:[s.jsxs("div",{className:"mb-2 flex w-full flex-row gap-4 text-center",children:[s.jsx(qe,{variant:"outline",className:"h-full w-full",children:"10 SAR"}),s.jsx(qe,{variant:"outline",className:"h-full w-full",children:"50 SAR"}),s.jsx(qe,{variant:"outline",className:"h-full w-full",children:"100 SAR"})]}),s.jsx(As,{placeholder:"Custom Amount",type:"number",name:"amount"})]}),s.jsx(qe,{className:"mt-6 w-full",children:e.texts.chargeWallet})]})})},WO=e=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"text-center text-5xl font-extrabold",children:[e.walletBalance||"0",s.jsx("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),s.jsx(qe,{className:"mt-6 w-full",onClick:e.handlePayWithWallet,children:"Pay Now"})]})}),VO=e=>{var l,u,c,m,p,x,C,E,v,A;let t=e.lang==="ar";const r=Xa(),{formState:{errors:n},handleSubmit:a,register:o,control:i}=r;return s.jsxs(Gt,{children:[s.jsx(Ca,{children:s.jsx(wa,{children:e.texts.orderDetails})}),s.jsx($t,{children:s.jsx("div",{children:s.jsx("div",{className:"rounded border border-gray-300",children:s.jsx(Cb,{pagination:!1,direction:t?"rtl":"ltr",columns:[{hidden:!1,value:"Product"},{hidden:!0,value:"ID"},{hidden:!1,value:"Price"}],borders:"inner",rows:e.products,bordersWidth:"1"})})})}),s.jsx(Ca,{children:s.jsx(wa,{children:e.texts.billingAddress})}),s.jsxs("form",{onSubmit:a(e.handlePayNow),children:[s.jsx($t,{children:s.jsx("div",{children:s.jsxs(mu,{...r,children:[s.jsxs("div",{children:[s.jsx(kt,{control:i,name:"firstName",rules:{required:(l=e.texts)==null?void 0:l.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{type:"text",label:((j=e.texts)==null?void 0:j.firstNameLabel)+" *",helpertext:(O=n.firstName)==null?void 0:O.message,...S,value:S.value??""})}}),s.jsx("div",{style:{width:20}}),s.jsx(kt,{control:i,name:"lastName",rules:{required:(u=e.texts)==null?void 0:u.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.lastNameLabel)+" *",helpertext:(O=n.lastName)==null?void 0:O.message,...S,value:S.value??""})}})]}),s.jsx(kt,{control:i,name:"email",render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.emailLabel)+" *",helpertext:(O=n.email)==null?void 0:O.message,...S,value:S.value??""})},rules:{required:(c=e.texts)==null?void 0:c.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:(m=e.texts)==null?void 0:m.emailInvalidText}}}),s.jsx("div",{className:"flex flex-col md:flex-row",children:s.jsx(kt,{control:i,name:"streetAddress",rules:{required:(p=e.texts)==null?void 0:p.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.streetAddressLabel)+" *",helpertext:(O=n.streetAddress)==null?void 0:O.message,...S,value:S.value??""})}})}),s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.jsx(kt,{control:i,name:"province",rules:{required:(x=e.texts)==null?void 0:x.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.stateLabel)+" *",helpertext:(O=n.province)==null?void 0:O.message,...S,value:S.value??""})}}),s.jsx("div",{style:{width:20}}),s.jsx(kt,{control:i,name:"city",rules:{required:(C=e.texts)==null?void 0:C.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.cityLabel)+" *",helpertext:(O=n.city)==null?void 0:O.message,...S,value:S.value??""})}})]}),s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.jsx(kt,{control:i,name:"buildingNumber",rules:{required:(E=e.texts)==null?void 0:E.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.buildingNumberLabel)+" *",helpertext:(O=n.buildingNumber)==null?void 0:O.message,...S,value:S.value??""})}}),s.jsx("div",{style:{width:20}}),s.jsx(kt,{control:i,name:"zipCode",rules:{required:(v=e.texts)==null?void 0:v.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"number",label:((j=e.texts)==null?void 0:j.zipCodeLabel)+" *",helpertext:(O=n.zipCode)==null?void 0:O.message,...S,value:S.value??""})}})]}),s.jsx("div",{className:"mb-3",children:s.jsx(kt,{control:i,name:"country",rules:{required:(A=e.texts)==null?void 0:A.required},render:({field:S})=>{var j,O;return s.jsxs(Hl,{native:!0,label:((j=e.texts)==null?void 0:j.countryLabel)+" *",helperText:(O=n.country)==null?void 0:O.message,options:wb,getOptionLabel:L=>L.country_label,onChange:L=>S.onChange(L.country_label),value:S.value??"",children:[s.jsx("option",{}),e.countriesList.map((L,M)=>s.jsx("option",{children:L},M))]})}})})]})})}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",children:e.texts.payNow})})," "]})]})},HO=e=>(e.lang,s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[" ",s.jsx("div",{className:"py-5 text-center text-3xl font-bold dark:text-white",children:e.confirmationTitle}),s.jsxs("div",{className:"py-5 dark:text-white",children:[s.jsxs("div",{className:"mb-2 text-center",children:[e.texts.successMessage," ",s.jsx("strong",{children:e.userEmail})]}),s.jsx("div",{className:"text-center",children:e.texts.yourOrderNumber}),s.jsx("div",{className:"text-center font-bold",children:e.orderNumber})]}),s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-5 pt-0",children:[s.jsx(qe,{className:"w-full",onClick:e.handlePrint,children:e.texts.print}),s.jsx(qe,{className:"w-full",onClick:e.handleHistory,children:e.texts.history}),s.jsx(qe,{className:"w-full",onClick:e.handleHome,children:e.texts.homePage}),s.jsx("div",{className:" text-center text-sm dark:text-white",children:e.texts.fasterPaymentNote}),s.jsx("a",{className:"clickable-link text-xs",onClick:e.handleRefundPolicyLink,children:e.texts.refundPolicy})]})]})})),zO=e=>s.jsxs("div",{children:[s.jsxs("div",{className:"mb-2 flex w-full justify-between",children:[s.jsx(yn,{design:"tabs",defaultValue:e.currentCycle,options:e.billingCycles,onChangeTab:t=>e.onCycleChange(t)}),s.jsx(yn,{design:"tabs",defaultValue:e.currentCurrency,options:e.currencies,onChangeTab:t=>e.onCurrencyChange(t)})]}),s.jsx("div",{className:"flex flex-row justify-between",children:e.plans.map((t,r)=>s.jsx(C2,{onPlanClicked:()=>e.onPlanClicked(t),...t,texts:{...t.texts,currencyText:e.currentCurrency,cycleText:e.currentCycle}},r))})]}),GO=()=>s.jsx("svg",{className:"h-5 w-5 text-green-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),bw=()=>s.jsx("svg",{className:"h-5 w-5 text-red-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),ZO=e=>{var o;const[t,r]=h.useState("sar"),[n,a]=h.useState("month");return s.jsxs("div",{id:"detailed-pricing",className:"w-full overflow-x-auto",children:[s.jsxs("div",{className:"mb-2 flex w-full justify-between",children:[s.jsx(yn,{design:"tabs",defaultValue:n,options:e.billingCycles,onChangeTab:i=>e.onCycleChange(i)}),s.jsx(yn,{design:"tabs",defaultValue:t,options:e.currencies,onChangeTab:i=>e.onCurrencyChange(i)})]}),s.jsxs("div",{className:" overflow-hidden rounded",children:[s.jsxs("div",{className:"grid grid-cols-4 gap-x-2 border-b border-t border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white",children:[s.jsx("div",{className:"flex items-center"}),e.plans.map(i=>s.jsxs("div",{children:[s.jsx("h5",{className:"text-md 0 font-bold text-gray-500 dark:text-gray-400",children:i.texts.title}),s.jsxs("div",{className:" flex items-baseline text-gray-900 dark:text-white",children:[s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-5xl font-extrabold tracking-tight",children:i.price}),s.jsx("span",{className:"mx-1 text-sm font-semibold",children:i.texts.currencyText})]}),s.jsxs("span",{className:"ml-1 text-xl font-normal text-gray-500 dark:text-gray-400",children:["/ ",i.texts.cycleText]})]}),s.jsx("h5",{className:"text-md font-normal text-gray-500 dark:text-gray-400",children:i.texts.subtitle})]}))]}),(o=e.plans)==null?void 0:o.map(i=>i.features.map(l=>s.jsxs("div",{className:"grid grid-cols-4 gap-x-16 border-b border-gray-200 px-4 py-5 text-sm text-gray-700 dark:border-gray-700",children:[s.jsxs("div",{className:" flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400",children:[l.text,l.description&&s.jsx(ms,{side:"right",content:l.description,children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})})]}),s.jsx(bw,{}),s.jsx(GO,{}),s.jsx(bw,{})]})))]})]})},UO=e=>{const[t,r]=h.useState(null);let n=[{title:"basic",price:"$49",cycle:"/mo"},{title:"business",price:"$99",cycle:"/mo"},{title:"enterprise",price:"$149",cycle:"/mo"}];return s.jsx("div",{className:"z-10 w-full max-w-screen-sm",children:s.jsxs("div",{className:"max-w-2xl ",children:[s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx(yn,{design:"tabs",options:e.currencies,defaultValue:e.currentCurrency}),s.jsx(yn,{design:"tabs",options:e.billingCycles,defaultValue:e.currentCycle})]}),n.map(a=>s.jsxs("label",{htmlFor:a.title,className:"",onClick:()=>r(a.title),children:[s.jsx("input",{type:"radio",name:"radio",id:a.title,className:"peer appearance-none"}),s.jsxs("div",{className:$e(t===a.title?"peer-checked:border-blue-500":"","peer flex cursor-pointer items-center justify-between rounded-xl border bg-background px-5 py-4 shadow dark:text-white peer-checked:[&_.active]:block peer-checked:[&_.default]:hidden"),children:[s.jsxs("div",{className:"peer flex items-center gap-4",children:[s.jsx(XO,{}),s.jsx(YO,{title:"Enterprise",subtitle:"For startups and new businesses"})]}),s.jsx(JO,{amount:a.price,cycle:a.cycle})]})]}))]})})},XO=()=>s.jsxs(s.Fragment,{children:[s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"default h-8 w-8 text-neutral-500",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"active hidden h-8 w-8 text-blue-500",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"})})]}),YO=e=>s.jsxs("div",{className:"peer flex flex-col items-start ",children:[s.jsx("h2",{className:"font-medium text-neutral-700 dark:text-gray-100 sm:text-xl",children:e.title}),s.jsxs("p",{className:"text-sm text-neutral-500 dark:text-gray-300",children:[e.subtitle," "]})]}),JO=e=>s.jsxs("h2",{className:"peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl",children:[e.amount,s.jsx("span",{className:"text-base font-medium text-neutral-400",children:e.cycle})]}),QO=({referralLink:e,referralCode:t})=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"my-2 mt-0",children:[s.jsx("div",{className:"mb-1",children:"Referral Code"}),s.jsxs("div",{className:"flex flex-row items-center justify-between rounded border bg-background",children:[s.jsx("span",{className:"ml-3 font-bold",children:t}),s.jsx(qe,{onClick:()=>navigator.clipboard.writeText(t),children:s.jsxs("span",{className:"bg-red flex items-center justify-center",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",children:s.jsx("path",{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"})})," "]})})]})]}),s.jsxs("div",{className:"my-2 mt-0",children:[s.jsx("div",{className:"mb-1",children:"Referral Link"}),s.jsxs("div",{className:"flex flex-row items-center justify-between rounded border bg-background",children:[s.jsx("span",{className:"ml-3 font-bold",children:e}),s.jsx(qe,{onClick:()=>navigator.clipboard.writeText(e),children:s.jsxs("span",{className:"bg-red flex items-center justify-center",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",children:s.jsx("path",{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"})})," "]})})]})]})]})}),KO=({referralLink:e,referralCode:t,withdrawError:r})=>{const n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n;return s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{children:s.jsxs(mu,{...n,children:[s.jsx(Rt,{label:"IBAN"}),s.jsx(Rt,{label:"Holder Name"}),s.jsx(kt,{control:i,name:"bank",render:({field:l})=>s.jsx(Hl,{label:"Bank",isCreatable:!1,isMulti:!1,isSearchable:!1,isClearable:!1,options:[{value:"snb",label:"Saudi National Bank"},{value:"bilad",label:"Al Bilad Bank"},{value:"rajihi",label:"Al Rajihi Bank"}],onInputChange:(u,c)=>console.log("changing",u),...l,onChange:(u,c)=>console.log("chooo",u)})})]})}),s.jsx("div",{children:s.jsx(qe,{className:"mt-6 w-full",children:"Add Bank Account"})}),r&&s.jsx("div",{children:s.jsx(qn,{text:"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",severity:"warning"})}),s.jsxs("div",{className:"mt-3",children:[s.jsx("div",{className:"mb-1",children:"Settlement Accounts"}),s.jsxs("div",{className:"rounded",children:[s.jsx(tm,{bank:"Al Inma Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri",default:!0}),s.jsx(tm,{bank:"Al Rajihi Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri"}),s.jsx(tm,{bank:"Al Inma Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri"})]})]})]})})},tm=e=>s.jsxs("div",{className:"mb-3 flex flex-row items-center justify-between rounded border bg-background p-3",children:[s.jsxs("div",{className:"flex flex-col justify-between",children:[s.jsx("div",{className:"text-xs",children:e.bank}),s.jsx("div",{children:e.accountHolder}),s.jsx("div",{className:"text-xs",children:e.iban})]}),s.jsxs("div",{className:"flex flex-row items-center justify-center gap-2",children:[e.default&&s.jsx(bc,{label:"Default",size:"small"}),s.jsx(dd,{size:"small",menuItems:[[{label:"Set Default",disabled:e.default},{label:"Edit"},{label:"Delete"}]],children:s.jsx(qe,{variant:"outline",size:"icon",children:s.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",className:"rotate-90",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})]})]}),qO=({referralLink:e,referralCode:t,withdrawError:r})=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{className:"mb-1",children:"Stats"}),s.jsxs("div",{className:"justi flex flex-row gap-1",children:[s.jsx(rm,{title:"Clicks",number:22}),s.jsx(rm,{title:"Sign-ups",number:32}),s.jsx(rm,{title:"Commission",number:"213.22 SAR"})]}),s.jsx(qe,{className:"mt-6 w-full",children:"Withdraw Money"}),r&&s.jsx("div",{children:s.jsx(qn,{text:"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",severity:"warning"})}),s.jsxs("div",{className:"mt-3",children:[s.jsx("div",{className:"mb-1",children:"Sign ups"}),s.jsxs("div",{className:"rounded",children:[s.jsx(bu,{date:"2020/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"})]})]})]})}),rm=e=>s.jsxs("div",{className:"w-full rounded border bg-background p-2",children:[s.jsx("div",{className:"text-sm",children:e.title}),s.jsx("div",{className:"font-bold",children:e.number})]}),bu=e=>s.jsxs("div",{className:"mb-3 rounded border-b bg-background p-2",children:[s.jsx("div",{className:"text-xs",children:e.date}),s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx("div",{children:e.email}),s.jsx("div",{children:e.amount})]})]}),eN=({variant:e="contained",texts:t})=>s.jsx(Gt,{children:s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center dark:text-white",children:[s.jsx("div",{className:"text-center text-6xl font-bold ",children:"404"}),s.jsx("div",{className:"m-2 text-center text-xl font-bold ",children:(t==null?void 0:t.pageNotFound)??"Page Not Found"}),s.jsx("div",{className:"mb-4 text-center",children:(t==null?void 0:t.ifLost)??s.jsxs(s.Fragment,{children:["If you're lost please contact us"," ",s.jsx("span",{className:"clickable-link",children:"help@sikka.io"})]})}),s.jsx(qe,{className:"w-full",children:(t==null?void 0:t.home)??"Home"})]})})}),tN=({variant:e="contained",texts:t,onActionClick:r})=>s.jsxs(Gt,{children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center justify-center text-center ",children:[s.jsx("div",{className:"flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.35em",width:"0.35em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})}),s.jsx("div",{className:"m-2 text-xl font-bold",children:(t==null?void 0:t.youreCaughtUp)??"You're all caught up"})]})}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",onClick:()=>r(),children:(t==null?void 0:t.actionText)??"Go Home"})})]}),rN=e=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{children:s.jsx("p",{className:"mb-4 max-w-sm",children:"The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless."})}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:[s.jsx("rect",{width:"48",height:"48",rx:"24",fill:"#45BE8B"}),s.jsx("path",{d:"M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",fill:"#FFFFFF"}),s.jsx("path",{d:"M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",fill:"#FFFFFF"})]}),s.jsx("span",{className:"border border-l "})," ",s.jsxs("div",{children:[s.jsx("strong",{children:"Brent Lassi"}),s.jsx("div",{children:" Chief Information Security Officer"})]})]})]})}),nN=({variant:e="contained",texts:t,handleNewsletterSub:r})=>s.jsxs(Gt,{children:[s.jsxs(Ca,{children:[s.jsx(wa,{children:t==null?void 0:t.title}),s.jsx(ii,{children:t==null?void 0:t.subtitle})]}),s.jsx($t,{children:s.jsxs("form",{className:"flex flex-row gap-2",onSubmit:n=>{n.preventDefault(),r(n.target[0].value)},children:[s.jsx(As,{type:"email",name:"email",placeholder:"example@sikka.io"}),s.jsx(qe,{children:(t==null?void 0:t.submit)??"Submit"})]})})]}),aN=({variant:e="contained",onActionClick:t,...r})=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,className:"flex flex-row items-center justify-between",children:[s.jsxs("div",{className:"flex flex-col items-start justify-center ",children:[s.jsx("span",{className:"text-lg font-bold",children:r.title}),s.jsx("span",{className:"text-sm",children:r.subtitle})]}),s.jsx(qe,{onClick:()=>t(),children:r.actionText})]})}),oN=({texts:e})=>s.jsx(Gt,{children:s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[s.jsxs("div",{className:"flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 448 512",height:"0.35em",width:"0.35em",children:s.jsx("path",{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"})})," "]}),s.jsx("div",{className:"m-2 text-xl font-bold",children:(e==null?void 0:e.title)??"You don't have permission"}),s.jsx("div",{children:(e==null?void 0:e.subtitle)??"If you think this is a problem please contact your administrator or our customer support"})]})})});function iN(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function sN({onBlur:e,onFocus:t}={}){const r=h.useRef(),[n,a]=h.useState(!1),o=h.useRef(!1),i=c=>{a(c),o.current=c},l=c=>{o.current||(i(!0),t==null||t(c))},u=c=>{o.current&&!iN(c)&&(i(!1),e==null||e(c))};return h.useEffect(()=>{if(r.current)return r.current.addEventListener("focusin",l),r.current.addEventListener("focusout",u),()=>{var c,m;(c=r.current)==null||c.removeEventListener("focusin",l),(m=r.current)==null||m.removeEventListener("focusout",u)}},[l,u]),{ref:r,focused:n}}function lN(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function uN(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function cN(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,a]=h.useState(r?t:uN(e,t)),o=h.useRef();return h.useEffect(()=>{if("matchMedia"in window)return o.current=window.matchMedia(e),a(o.current.matches),lN(o.current,i=>a(i.matches))},[e]),n}function dN(e=""){const[t,r]=h.useState(e);return h.useEffect(()=>{const a=()=>{const o=window.location.hash.substring(1);r(o||e)};return window.addEventListener("hashchange",a),a(),()=>{window.removeEventListener("hashchange",a)}},[e]),{activeTab:t,handleTabChange:a=>{r(a),window.location.hash=a}}}function nm(e,t,r){h.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}function am(){return typeof window<"u"?{x:window.pageXOffset,y:window.pageYOffset}:{x:0,y:0}}function fN({x:e,y:t}){if(typeof window<"u"){const r={behavior:"smooth"};typeof e=="number"&&(r.left=e),typeof t=="number"&&(r.top=t),window.scrollTo(r)}}function hN(){const[e,t]=h.useState({x:0,y:0});return nm("scroll",()=>t(am())),nm("resize",()=>t(am())),h.useEffect(()=>{t(am())},[]),[e,fN]}Fe.ActionCard=oB,Fe.Announcement=aN,Fe.AppLanding=IO,Fe.AppLayout=YP,Fe.AppSidebar=iO,Fe.ArrowCarousel=K6,Fe.BackToTop=Uk,Fe.Box=vP,Fe.Button=qe,Fe.Card=Gt,Fe.CardContent=$t,Fe.CardDescription=ii,Fe.CardFooter=Fn,Fe.CardHeader=Ca,Fe.CardTitle=wa,Fe.Carousel=uB,Fe.ChargeWalletForm=_O,Fe.CheckEmail=RO,Fe.CheckoutForm=VO,Fe.CodeConfirmation=MO,Fe.ComparingPlans=ZO,Fe.ConfirmationPage=HO,Fe.CreditCardForm=LO,Fe.Dialog=gP,Fe.DialogContent=EC,Fe.DialogDescription=FC,Fe.DialogFooter=SC,Fe.DialogHeader=DC,Fe.DialogTitle=AC,Fe.DialogTrigger=mP,Fe.DragDropImages=F6,Fe.DraggableCard=j6,Fe.DropdownMenu=Xl,Fe.EmptyState=tN,Fe.FeedbackByEmoji=U6,Fe.FeedbackRating=P6,Fe.FloatingComment=ej,Fe.FloatingCommentExec=Zk,Fe.FloatingCommentSlate=$k,Fe.Footer=uO,Fe.HawaAccordion=YA,Fe.HawaAdCard=Qk,Fe.HawaAlert=qn,Fe.HawaAppLayout=eO,Fe.HawaAppLayoutSimplified=tO,Fe.HawaBanner=cO,Fe.HawaBottomAppBar=bP,Fe.HawaButton=nB,Fe.HawaCheckbox=Xf,Fe.HawaChip=bc,Fe.HawaCodeBlock=jF,Fe.HawaColorPicker=g0,Fe.HawaContainer=aO,Fe.HawaCopyrights=eF,Fe.HawaDatepicker=IF,Fe.HawaGrid=oO,Fe.HawaIconCount=Ew,Fe.HawaInlineCode=Xk,Fe.HawaItemCard=Jk,Fe.HawaLandingCard=Kk,Fe.HawaLoading=us,Fe.HawaMenu=dd,Fe.HawaModal=qA,Fe.HawaPanelTabs=ww,Fe.HawaPhoneInput=cd,Fe.HawaPinInput=yg,Fe.HawaPricingCard=C2,Fe.HawaRadio=yn,Fe.HawaRange=m0,Fe.HawaSearchBar=XA,Fe.HawaSelect=Hl,Fe.HawaSettingsRow=Z9,Fe.HawaSiteLayout=xP,Fe.HawaStats=rF,Fe.HawaStepper=tF,Fe.HawaStoreButtons=aB,Fe.HawaTable=Cb,Fe.HawaTabs=KA,Fe.HawaTextField=Rt,Fe.HawaTypography=U9,Fe.HorizontalPricing=UO,Fe.Icons=zr,Fe.Input=As,Fe.InterfaceSettings=Cg,Fe.InvoiceAccordion=B6,Fe.Label=ti,Fe.LeadGenerator=nN,Fe.NewPasswordForm=OO,Fe.NoPermission=oN,Fe.NotFound=eN,Fe.PayWithWallet=WO,Fe.Popover=lx,Fe.PricingPlans=zO,Fe.ReferralAccount=QO,Fe.ReferralSettlement=KO,Fe.ReferralStats=qO,Fe.ResetPasswordForm=NO,Fe.SelectPayment=$O,Fe.Separator=V2,Fe.SidebarGroup=HC,Fe.SidebarItem=zC,Fe.SignInBlock=BO,Fe.SignInForm=kO,Fe.SignInPhone=TO,Fe.SignUpForm=PO,Fe.Skeleton=ri,Fe.StickyFeatures=iB,Fe.SubsectionList=I6,Fe.Switch=Lh,Fe.Tabs=N2,Fe.TabsContent=$2,Fe.TabsList=M2,Fe.TabsTrigger=R2,Fe.Testimonial=rN,Fe.Textarea=xd,Fe.Timeline=Yk,Fe.Toast=Ig,Fe.ToastAction=iC,Fe.ToastClose=Tg,Fe.ToastDescription=Bg,Fe.ToastProvider=oC,Fe.ToastTitle=kg,Fe.ToastViewport=jg,Fe.Toaster=XB,Fe.Tooltip=ms,Fe.UsageCard=k6,Fe.UserProfileForm=FO,Fe.UserReferralSource=sB,Fe.UserSettingsForm=jO,Fe.buttonVariants=i1,Fe.reducer=lC,Fe.toast=uC,Fe.useClipboard=jb,Fe.useFocusWithin=sN,Fe.useMediaQuery=cN,Fe.useTabs=dN,Fe.useToast=cC,Fe.useWindowEvent=nm,Fe.useWindowScroll=hN,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
|