@okta/odyssey-react-mui 1.53.0 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/dist/assets/{Accordion-CLdY3bef.js → Accordion-D8MMTGBC.js} +1 -1
- package/dist/assets/Accordion.stories-BPJnLVeE.js +85 -0
- package/dist/assets/{AccordionSummary-wkTP8_D6.js → AccordionSummary-BpjNF1hZ.js} +1 -1
- package/dist/assets/{AddCircle-zDqHIKbQ.js → AddCircle-DgNpvHvb.js} +1 -1
- package/dist/assets/{AlertTitle-UQV7DT5q.js → AlertTitle-41lhnhsR.js} +1 -1
- package/dist/assets/{AppSwitcher-Dgfa_AoU.js → AppSwitcher-BlMgsq7d.js} +1 -1
- package/dist/assets/AppSwitcher.stories-DK6TzLjN.js +100 -0
- package/dist/assets/AppTile.stories-D9NfZuTR.js +136 -0
- package/dist/assets/{ArrowDropDown-BbLKA4fg.js → ArrowDropDown-CMSB1a5F.js} +1 -1
- package/dist/assets/ArrowLeft-DKc-rln7.js +1 -0
- package/dist/assets/ArrowRight-CQpox1s-.js +1 -0
- package/dist/assets/{Autocomplete-BwSwXNq_.js → Autocomplete-CcFQPuHI.js} +1 -1
- package/dist/assets/{Autocomplete-BajR4gNT.js → Autocomplete-DxRs9Djj.js} +1 -1
- package/dist/assets/{Autocomplete.stories-C7T-kCUQ.js → Autocomplete.stories-DU9xY7GK.js} +3 -3
- package/dist/assets/{Badge-4k4qHpX4.js → Badge-C9-6xV6N.js} +1 -1
- package/dist/assets/{Banner-CfvXqDEI.js → Banner-BtTBJERs.js} +1 -1
- package/dist/assets/{Banner.stories-NnVFdOhp.js → Banner.stories-BZuwmjR1.js} +3 -3
- package/dist/assets/{BaseButton-C9tiChQu.js → BaseButton-BzcWVv73.js} +1 -1
- package/dist/assets/{BaseMenuButton-BXkyi9Y-.js → BaseMenuButton-B2CeKq3v.js} +1 -1
- package/dist/assets/{Box--NDTewyO.js → Box-B-6W36qW.js} +1 -1
- package/dist/assets/{Box-B3rdnavX.js → Box-BvtEwOZC.js} +1 -1
- package/dist/assets/Box-BzR7wZhO.js +11 -0
- package/dist/assets/{Box-CnVllI1S.js → Box-DduJOSF-.js} +1 -1
- package/dist/assets/{Box.stories-0iw_Ut4E.js → Box.stories-vV2di-KJ.js} +1 -1
- package/dist/assets/Breadcrumb.stories-J2cc8t0d.js +19 -0
- package/dist/assets/BreadcrumbList.stories-B6XEafPI.js +81 -0
- package/dist/assets/{Breadcrumbs-DlF1RjAJ.js → Breadcrumbs-CM2RJrtX.js} +1 -1
- package/dist/assets/{Bug-BnGJL5iO.js → Bug-DbpZDqwO.js} +1 -1
- package/dist/assets/{Button-Dug4qNr3.js → Button-AqSkJ6Nd.js} +1 -1
- package/dist/assets/{Button-0PI4ljbj.js → Button-BX9EXxBV.js} +1 -1
- package/dist/assets/{Button-CQAScxdp.js → Button-CZuGHFIJ.js} +1 -1
- package/dist/assets/{Button-BEdrRzeO.js → Button-ZPlYqHUi.js} +1 -1
- package/dist/assets/{Button.stories-CaESBfZW.js → Button.stories-Bl7P9tek.js} +2 -2
- package/dist/assets/{Button.stories-CNPwpgVA.js → Button.stories-vEg3PKz-.js} +3 -3
- package/dist/assets/{ButtonBase-Rz8p08Xo.js → ButtonBase-CYIo9Kvv.js} +1 -1
- package/dist/assets/{Calendar-Do4wfihU.js → Calendar-DV1h6Fc3.js} +1 -1
- package/dist/assets/{Call-CZmd0zlk.js → Call-2_fpBWhr.js} +1 -1
- package/dist/assets/{Callout-WJN7MCgu.js → Callout-BgusP-7-.js} +1 -1
- package/dist/assets/{Callout.stories-EyhGsZIg.js → Callout.stories-CtAYWft1.js} +3 -3
- package/dist/assets/Card-BosIFVQP.js +8 -0
- package/dist/assets/{Card-CYHxgfcj.js → Card-DSV0thOs.js} +1 -1
- package/dist/assets/{Card.stories-CB7itEof.js → Card.stories-ZHXa0-vk.js} +1 -1
- package/dist/assets/{CardActionArea-CjEHgWqq.js → CardActionArea-j218OlRR.js} +1 -1
- package/dist/assets/{CardActions-AjPk7ICQ.js → CardActions-DEkVEZOo.js} +1 -1
- package/dist/assets/Checkbox-CtLz3m2I.js +1 -0
- package/dist/assets/{Checkbox-mRntsWEy.js → Checkbox-RASNl40G.js} +1 -1
- package/dist/assets/{Checkbox-3Yu84dfy.js → Checkbox-_fXckuhm.js} +1 -1
- package/dist/assets/Checkbox.stories-Bvx8GqiS.js +113 -0
- package/dist/assets/Checkbox.stories-qCSW0Q2j.js +43 -0
- package/dist/assets/{CheckboxGroup-Bris2fCF.js → CheckboxGroup-zMSuzeZ6.js} +1 -1
- package/dist/assets/CheckboxGroup.stories-BHKIdZ7U.js +89 -0
- package/dist/assets/CheckboxGroup.stories-BSflT92t.js +64 -0
- package/dist/assets/{ChevronRight-QYu5EQHS.js → ChevronRight--b1mmNks.js} +1 -1
- package/dist/assets/{ChevronUp-D226bAv0.js → ChevronUp-DL24OTkX.js} +1 -1
- package/dist/assets/{Chip-BgPaZbUf.js → Chip-bDORJbkM.js} +1 -1
- package/dist/assets/{CircularProgress-D6L1y9kt.js → CircularProgress-BgZHFbQE.js} +1 -1
- package/dist/assets/{CircularProgress-B7sj16Me.js → CircularProgress-BoAO9U8M.js} +1 -1
- package/dist/assets/{CircularProgress.stories-CvfXEtcf.js → CircularProgress.stories-CbcXfcmH.js} +3 -3
- package/dist/assets/{Clock-CRMbzsTS.js → Clock-BQK6LLyZ.js} +1 -1
- package/dist/assets/Close-cbwEd5Sp.js +1 -0
- package/dist/assets/{Code Styling Guidelines-CstdJT8e.js → Code Styling Guidelines-CRc7Acxy.js } +1 -1
- package/dist/assets/{Collapse-DULszxZp.js → Collapse-1HAz0LZV.js} +1 -1
- package/dist/assets/{Color-ASIRERSW-D1UGGYVZ.js → Color-ASIRERSW-CzhPgsf8.js} +1 -1
- package/dist/assets/{CssBaseline-BxXlsiez.js → CssBaseline-CPKflVp5.js} +2 -2
- package/dist/assets/{CssBaseline.stories-DVe508J0.js → CssBaseline.stories-BVbDhIF6.js} +1 -1
- package/dist/assets/{Custom Theming-ccLDrBQS.js → Custom Theming-Dcj0M7qI.js } +2 -2
- package/dist/assets/Custom Theming.stories-UirQjvOB.js +95 -0
- package/dist/assets/{DataFilters-BkX84ZQL.js → DataFilters-Cf-ESeWE.js} +2 -2
- package/dist/assets/DataFilters-D5ALxX9D.js +1 -0
- package/dist/assets/{DataFilters.stories-DewPnjr_.js → DataFilters.stories-BEQSD0AZ.js} +1 -1
- package/dist/assets/DataTable-BRz_SDL5.js +41 -0
- package/dist/assets/{DataTable-019cW0Jq.js → DataTable-DrMdrIcq.js} +2 -2
- package/dist/assets/{DataTable-B5iX_c6m.js → DataTable-Duk3yrgE.js} +1 -1
- package/dist/assets/{DataTable.stories-Bn546tQH.js → DataTable.stories-BzrVvUtr.js} +1 -1
- package/dist/assets/{DataTable.stories-CZ38vjC1.js → DataTable.stories-CwDiJD8l.js} +2 -2
- package/dist/assets/{DataView-C1SHLIDp.js → DataView-B0q4EyNh.js} +2 -2
- package/dist/assets/{DataView-BS0E464o.js → DataView-CjTfaBGG.js} +1 -1
- package/dist/assets/{DataView.stories-CzFmgLtp.js → DataView.stories-B33BDgre.js} +1 -1
- package/dist/assets/{DataView.stories-E0Zxfc-o.js → DataView.stories-Dj1si9l-.js} +3 -3
- package/dist/assets/{DatePicker-DE3q9EuO.js → DatePicker-B5X7dx9Q.js} +1 -1
- package/dist/assets/{DatePicker-vZfA4IWy.js → DatePicker-BOqWHXdY.js} +1 -1
- package/dist/assets/DatePicker.stories-Dipl4bQY.js +133 -0
- package/dist/assets/{DateTimePicker-ByepBMwy.js → DateTimePicker-CIersydJ.js} +1 -1
- package/dist/assets/{DateTimePicker.stories-Cas4UCrt.js → DateTimePicker.stories-DjzZocUv.js} +3 -3
- package/dist/assets/DebugMenu-By3Vj_Nv.js +1 -0
- package/dist/assets/Design Tokens-C3WLUx-Q.js +4 -0
- package/dist/assets/Dialog-o5O78_b5.js +1 -0
- package/dist/assets/Dialog.stories-Dp36WpKI.js +352 -0
- package/dist/assets/Dialog.stories-MZqfLw6Z.js +207 -0
- package/dist/assets/{DialogContent-C6DlqjnA.js → DialogContent-BOYeFFEd.js} +1 -1
- package/dist/assets/DialogContentText-D0M3e4sQ.js +1 -0
- package/dist/assets/{DialogTitle-B_QxN4PO.js → DialogTitle-CIzT7Vz-.js} +1 -1
- package/dist/assets/{Divider-C7lvc1xB.js → Divider-6S-pAD7Z.js} +1 -1
- package/dist/assets/Divider.stories-CDGskHHm.js +5 -0
- package/dist/assets/{DocsRenderer-GHJI37HO-DFEQwt06.js → DocsRenderer-GHJI37HO-BX00v8ne.js} +2 -2
- package/dist/assets/{Documentation-nAJnZGCK.js → Documentation-C2_DeFFh.js} +1 -1
- package/dist/assets/{Download-CA8gZ8xE.js → Download-YawXz5G6.js} +1 -1
- package/dist/assets/{Drawer-CYAKZaWu.js → Drawer-DG7c2iM4.js} +1 -1
- package/dist/assets/Drawer.stories-C9ckJovc.js +95 -0
- package/dist/assets/{EmptyState-B1EvR4rn.js → EmptyState-Cw97nR9g.js} +1 -1
- package/dist/assets/EmptyState.stories-DXpOC1wF.js +127 -0
- package/dist/assets/EmptyState.stories-DhZwVE6F.js +11 -0
- package/dist/assets/{ExampleButton.stories-C3scpIjS.js → ExampleButton.stories-BfAyzgTg.js} +2 -2
- package/dist/assets/{Extending Translations-3H_cpfNQ.js → Extending Translations-DyrOgVYP.js } +1 -1
- package/dist/assets/{ExternalLink-3_gWbh_U.js → ExternalLink-DTGSbkQ2.js} +1 -1
- package/dist/assets/{Fade-ZBabHGDm.js → Fade-5EaFioT-.js} +1 -1
- package/dist/assets/{Field-CqIOaZfg.js → Field-4cI0KUzC.js} +1 -1
- package/dist/assets/Field-g_717qKv.js +11 -0
- package/dist/assets/{FieldHint-Cs73lQge.js → FieldHint-Bv45kUgg.js} +1 -1
- package/dist/assets/{Fieldset-emRDW8u7.js → Fieldset-Bu9pgqLo.js} +1 -1
- package/dist/assets/Fieldset.stories-DywDyipj.js +15 -0
- package/dist/assets/{FileUploader.stories-82Cob1aQ.js → FileUploader.stories-BGXUMzQV.js} +3 -3
- package/dist/assets/{Filter-XcwxIcdg.js → Filter-ColuOFTn.js} +1 -1
- package/dist/assets/{Folder-CVKRyg4P.js → Folder-DtBjBkxy.js} +1 -1
- package/dist/assets/{Form Field Accessibility-CZo064GW.js → Form Field Accessibility-4Q_qv-b6.js } +1 -1
- package/dist/assets/{Form-jEIBfmsN.js → Form-BxpHmQzB.js} +1 -1
- package/dist/assets/Form.stories-BIv3u1UC.js +69 -0
- package/dist/assets/{FormControlLabel-BG9mNqQc.js → FormControlLabel-CB3xJ6ut.js} +1 -1
- package/dist/assets/{FormGroup-D8ZDwdpx.js → FormGroup-BhjYepGC.js} +1 -1
- package/dist/assets/{FormHelperText-CVc1kPQJ.js → FormHelperText--Cp1ogV3.js} +1 -1
- package/dist/assets/{FormLabel-CWWbs_c2.js → FormLabel-DB_AmiE2.js} +1 -1
- package/dist/assets/{FullScreenOverlay-GJH3R5s4.js → FullScreenOverlay-BtuzG-CQ.js} +1 -1
- package/dist/assets/{Generating Icons-DzaDzJO9.js → Generating Icons-Dr_ZkyrY.js } +1 -1
- package/dist/assets/{Globe-C0SMdL8H.js → Globe-DhuLu1HO.js} +1 -1
- package/dist/assets/{Grid-DnpTJXeB.js → Grid-DT7vGlwm.js} +1 -1
- package/dist/assets/{Group-BJr9nAnt.js → Group-9XOIBtaE.js} +1 -1
- package/dist/assets/GroupPicker.stories-Bke7SA6x.js +33 -0
- package/dist/assets/{Grow-DvH-Xu1P.js → Grow-DG6yJWeA.js} +1 -1
- package/dist/assets/{Hide-C2jA-JOQ.js → Hide-4CfPQa-Q.js} +1 -1
- package/dist/assets/{Hint-BXue9c6p.js → Hint-BaHNFCSW.js} +1 -1
- package/dist/assets/{HintLink.stories-FqiBpDGQ.js → HintLink.stories-BZvK3msS.js} +3 -3
- package/dist/assets/{Home-D8RWt2JU.js → Home-BD0pfCzQ.js} +1 -1
- package/dist/assets/Icon.stories-BSXh7e2h.js +16 -0
- package/dist/assets/{IconButton-BPR_sq0F.js → IconButton-BJHIZjwd.js} +1 -1
- package/dist/assets/IconWithTooltip.stories-D8GpX4_O.js +19 -0
- package/dist/assets/{IgaComponentsOdysseyStorybookThemeDecorator-DdMym0aA.js → IgaComponentsOdysseyStorybookThemeDecorator-CVt9siFq.js} +1 -1
- package/dist/assets/{InformationCircle-DRZkRWne.js → InformationCircle-C_nheCFB.js} +1 -1
- package/dist/assets/{InputAdornment-Clfg5IS6.js → InputAdornment-CeCSVIa-.js} +1 -1
- package/dist/assets/{InputBase-BYnzr12H.js → InputBase-Bm1MB3pl.js} +1 -1
- package/dist/assets/{Installing odyssey-react-mui-C75NTz-Q.js → Installing odyssey-react-mui-ezN4Xob1.js } +1 -1
- package/dist/assets/{Introduction-DqVi6Ihy.js → Introduction-Vd2VsZIT.js} +1 -1
- package/dist/assets/{Layout-XY1MknZE.js → Layout-Bj5b-E-p.js} +1 -1
- package/dist/assets/{Layout.stories-CnOmeQ-W.js → Layout.stories-C7EVraBE.js} +3 -3
- package/dist/assets/{Legacy Migrations-D05TylMb.js → Legacy Migrations-D0Ct1uEl.js } +1 -1
- package/dist/assets/{LinearProgress-Z53mwHnp.js → LinearProgress-BcCo3aqG.js} +1 -1
- package/dist/assets/{Link-thynTosX.js → Link-4r_7nyI-.js} +1 -1
- package/dist/assets/{Link-Cg_KakDo.js → Link-BXZlWRMJ.js} +1 -1
- package/dist/assets/{Link-BKNciOfr.js → Link-C_gwYBxh.js} +1 -1
- package/dist/assets/Link-CqFkrdZX.js +11 -0
- package/dist/assets/{Link.stories-Clh1Bkzm.js → Link.stories-VkTe4JmO.js} +1 -1
- package/dist/assets/{List-D0N4Xybp.js → List-BcXvgzsa.js} +1 -1
- package/dist/assets/{List-CZ2bN2bA.js → List-CEPzEOaM.js} +1 -1
- package/dist/assets/{ListItem-BNz1zv6N.js → ListItem-B5ux02dQ.js} +1 -1
- package/dist/assets/{ListSubheader-Dwx7m0BA.js → ListSubheader-CB8GDLQK.js} +1 -1
- package/dist/assets/ListSubheader.stories-BrcTqTtL.js +5 -0
- package/dist/assets/{Menu-DB2s3Jn0.js → Menu-BCZiiIwc.js} +1 -1
- package/dist/assets/{MenuButton-BffESdH9.js → MenuButton-ChyskluM.js} +1 -1
- package/dist/assets/{MenuButton-BrxZ5EA2.js → MenuButton-CsX9_3Ov.js} +1 -1
- package/dist/assets/MenuButton.stories-BQzhE18z.js +246 -0
- package/dist/assets/{MenuButton.stories-l4pnLJBo.js → MenuButton.stories-ioM9q6o0.js} +1 -1
- package/dist/assets/{MenuContext-UsOwIWpO.js → MenuContext-BkYpsFtp.js} +1 -1
- package/dist/assets/{MenuItem-Cmq8TfUJ.js → MenuItem-C_SjZMbY.js} +1 -1
- package/dist/assets/{MenuItem-nncwAWHS.js → MenuItem-CbPgBBBa.js} +1 -1
- package/dist/assets/{MenuItem-CpMFWgaz.js → MenuItem-Cu1R78Nk.js} +1 -1
- package/dist/assets/{MenuItem.stories-76iDefqo.js → MenuItem.stories-C0Lk9sD8.js} +1 -1
- package/dist/assets/MenuItem.stories-DneQgCON.js +38 -0
- package/dist/assets/{MenuList-D3GSt85L.js → MenuList-BTp-5mcb.js} +1 -1
- package/dist/assets/{Modal-C5P7v6Gt.js → Modal-DHgQg0pV.js} +1 -1
- package/dist/assets/{More-BAN0OFVF.js → More-D0XSbzen.js} +1 -1
- package/dist/assets/{MuiPropsContext-D6i6qZME.js → MuiPropsContext-DICjNBkr.js} +1 -1
- package/dist/assets/{MuiPropsContext-Df02xyKB.js → MuiPropsContext-ppLtceHL.js} +1 -1
- package/dist/assets/NativeSelect.stories-D0uGEhNl.js +114 -0
- package/dist/assets/{Notification-CqbysXIb.js → Notification-Dv2xKTFA.js} +1 -1
- package/dist/assets/{OdysseyProvider-PxeTd-wx.js → OdysseyProvider-Czbz3dwH.js} +1 -1
- package/dist/assets/{OdysseyProvider-rboSNY26.js → OdysseyProvider-n2ocdJ7D.js} +9 -9
- package/dist/assets/{OdysseyStorybookThemeDecorator-CHlNoX17.js → OdysseyStorybookThemeDecorator-Bokwb0ot.js} +1 -1
- package/dist/assets/OdysseyThemeProvider-DOMFnSU0.js +167 -0
- package/dist/assets/PageHeader-W8g920aE.js +6 -0
- package/dist/assets/{PageHeader.stories-DzO4wv8w.js → PageHeader.stories-DawNc8la.js} +2 -2
- package/dist/assets/PageHeader.stories-DbD6NKau.js +17 -0
- package/dist/assets/{PageHeader.stories-xG6qoBox.js → PageHeader.stories-Feg52Fpw.js} +2 -2
- package/dist/assets/PageTemplate-Ca4rHowX.js +8 -0
- package/dist/assets/{PageTemplate-BUVvgcIj.js → PageTemplate-Dwh4Xczm.js} +1 -1
- package/dist/assets/{PageTemplate.stories-M6ewVPJx.js → PageTemplate.stories-4X4rSj0y.js} +3 -3
- package/dist/assets/{PageTemplate.stories-XizDmXOT.js → PageTemplate.stories-DGwPd5VL.js} +3 -3
- package/dist/assets/{PageTemplate.stories-mpYXgZT4.js → PageTemplate.stories-DgqdwkTB.js} +1 -1
- package/dist/assets/{PaginatedTable.stories-BGRIoKo4.js → PaginatedTable.stories-SgfUVlw_.js} +3 -3
- package/dist/assets/{Paper-vUVrw-QB.js → Paper-DIvrMKVz.js} +1 -1
- package/dist/assets/PasswordField.stories-PoPO1_-6.js +121 -0
- package/dist/assets/PasswordlessComponentsOdysseyStorybookThemeDecorator-DfT96M4p.js +13 -0
- package/dist/assets/Picker.stories-DDz4NbBK.js +44 -0
- package/dist/assets/{PickerWithOptionAdornment.stories-DC1J_qH3.js → PickerWithOptionAdornment.stories-B7mFcKou.js} +3 -3
- package/dist/assets/{PlaceholderLogo-SOqcoUNb.js → PlaceholderLogo-KL8h77Of.js} +1 -1
- package/dist/assets/{Popper-CISS1LuJ.js → Popper-B9cGJ5Ql.js} +1 -1
- package/dist/assets/{Portal-DeJFqeW-.js → Portal-CznYNzyC.js} +1 -1
- package/dist/assets/ProgressBar.stories-Zs6E95x7.js +20 -0
- package/dist/assets/Radio-B6p2YsBk.js +1 -0
- package/dist/assets/{Radio-C5-GzJtb.js → Radio-BI2zWqqk.js} +1 -1
- package/dist/assets/{Radio-BlxlCYZY.js → Radio-DRPDZwez.js} +1 -1
- package/dist/assets/{Radio.stories-BrGqWocJ.js → Radio.stories-CjKWmmfC.js} +3 -3
- package/dist/assets/Radio.stories-DR-V8UW2.js +38 -0
- package/dist/assets/{RadioGroup-BcwUBGJo.js → RadioGroup-BxX8JmFv.js} +1 -1
- package/dist/assets/{RadioGroup-sL620ofZ.js → RadioGroup-DDMlZ9Ib.js} +1 -1
- package/dist/assets/RadioGroup-DpcTcdEf.js +10 -0
- package/dist/assets/RadioGroup.stories-B-gDjvcs.js +88 -0
- package/dist/assets/{RadioGroup.stories-CBlRX0KY.js → RadioGroup.stories-CWqmr1JP.js} +1 -1
- package/dist/assets/{Refresh-ZZ_nNcXg.js → Refresh-4GRZURAB.js} +1 -1
- package/dist/assets/{ResourceAccessPolicyComponentsStorybookThemeDecorator-C-AyLafs.js → ResourceAccessPolicyComponentsStorybookThemeDecorator-Bp-cqzBg.js} +1 -1
- package/dist/assets/{Right-to-Left (RTL)-DMJ1RF_H.js → Right-to-Left (RTL)-BOiEzeMb.js } +1 -1
- package/dist/assets/{ScopedCssBaseline-BOa6kM98.js → ScopedCssBaseline-CbMqVD26.js} +1 -1
- package/dist/assets/{ScreenReaderText-toqV93JE.js → ScreenReaderText-B0JAp-xP.js} +1 -1
- package/dist/assets/{ScreenReaderText-BfpueyoK.js → ScreenReaderText-CEUjhx3k.js} +2 -2
- package/dist/assets/ScreenReaderText.stories-BozDnS6f.js +8 -0
- package/dist/assets/{Search-0744_rm_.js → Search-C3XUnqCP.js} +1 -1
- package/dist/assets/{SearchDropdown.stories-lpj_p0pn.js → SearchDropdown.stories-DhfVkXGL.js} +3 -3
- package/dist/assets/{SearchField-DmDpB-Sd.js → SearchField-CyY1AHVm.js} +1 -1
- package/dist/assets/SearchField.stories-BdFBCS4f.js +37 -0
- package/dist/assets/SecureSettingsIndicator.stories-DsTRCtQb.js +19 -0
- package/dist/assets/{Select-DE0mojaE.js → Select-DHIWx9ln.js} +1 -1
- package/dist/assets/Select-FP2lhUA8.js +15 -0
- package/dist/assets/Select.stories-jKzGOaKi.js +233 -0
- package/dist/assets/{Server-1eTAy_EZ.js → Server-CirxxKai.js} +1 -1
- package/dist/assets/{Settings-CnuBvsmb.js → Settings-DoysZs_u.js} +1 -1
- package/dist/assets/{Setup-CG2Lh3Ff.js → Setup-SFMR9PGx.js} +1 -1
- package/dist/assets/{Shadow DOM-D2Xm68lR.js → Shadow DOM-CNgotzSG.js } +1 -1
- package/dist/assets/{Show-C6ORd-wr.js → Show-8RSN9YQN.js} +1 -1
- package/dist/assets/{SideNav-WgViafRP.js → SideNav-DhFZrYzU.js} +1 -1
- package/dist/assets/SideNav-JzVY3dUV.js +85 -0
- package/dist/assets/{SideNav.stories-Crrw-ySP.js → SideNav.stories-BD_yZ_n7.js} +1 -1
- package/dist/assets/{Skeleton-DxFSebyW.js → Skeleton-CxK3bCNC.js} +1 -1
- package/dist/assets/{Snackbar-C2LtiN82.js → Snackbar-BecQgiI0.js} +1 -1
- package/dist/assets/{Stack-jxMWaEAU.js → Stack-B9cZmjdi.js} +1 -1
- package/dist/assets/{Stack-Duw-TXBf.js → Stack-Bgh4xems.js} +1 -1
- package/dist/assets/Stack.stories-C5_9i8Bj.js +1 -0
- package/dist/assets/{StaticTable.stories-D0R7o_xf.js → StaticTable.stories-GkTKmzDs.js} +3 -3
- package/dist/assets/{Status-DyDCzqET.js → Status-BDUUaZsQ.js} +1 -1
- package/dist/assets/{Status.stories-CT9I5C3E.js → Status.stories-C_QZmEqw.js} +2 -2
- package/dist/assets/{Stepper.stories-BGyCeC7L.js → Stepper.stories-x-eW3EPk.js} +3 -3
- package/dist/assets/{Surface-s9E2mDWU.js → Surface-DIfiwHrw.js} +1 -1
- package/dist/assets/{Switch.stories-CiNsUF_b.js → Switch.stories-DtS0A4PX.js} +3 -3
- package/dist/assets/{SwitchBase-C_6ALR3v.js → SwitchBase-fGL3z_gG.js} +1 -1
- package/dist/assets/{Sync-Bo0k4rYZ.js → Sync-DbBKVuQB.js} +1 -1
- package/dist/assets/{Tabs-BPWnyCAU.js → Tabs-By4ALAid.js} +1 -1
- package/dist/assets/{Tabs-BnDKqj9p.js → Tabs-C_TNnT1n.js} +3 -3
- package/dist/assets/{Tabs.stories-xaGU0YrM.js → Tabs.stories-Dpxwprx8.js} +1 -1
- package/dist/assets/{Tag-CYK8pNzu.js → Tag-Cam_AAJc.js} +1 -1
- package/dist/assets/Tag.stories-DHsdO_Ew.js +96 -0
- package/dist/assets/{TagList-CunLkaIS.js → TagList-BgRJrZj8.js} +1 -1
- package/dist/assets/{TextField-DF5R_omM.js → TextField-eTiyghxK.js} +1 -1
- package/dist/assets/TextField.stories-asnjmcPk.js +177 -0
- package/dist/assets/Toast.stories-Cwx6XwLn.js +164 -0
- package/dist/assets/{ToastManager.stories-C6VVt3In.js → ToastManager.stories-UZvhSatu.js} +3 -3
- package/dist/assets/{Tooltip-B-PXZNTK.js → Tooltip-BMTVRAEn.js} +1 -1
- package/dist/assets/{Tooltip-yxN-KFjL.js → Tooltip-DVPGLNQs.js} +1 -1
- package/dist/assets/Tooltip.stories-272_RBTH.js +68 -0
- package/dist/assets/{TopNav-CCO_Sukh.js → TopNav-DXz-GdZX.js} +1 -1
- package/dist/assets/TopNav.stories-BbNTTN-h.js +13 -0
- package/dist/assets/{TransitionGroupContext-yBqGXZYI.js → TransitionGroupContext-CTI9LvjA.js} +1 -1
- package/dist/assets/{Typography-CjpHjc10.js → Typography-B8ZKtxRi.js} +1 -1
- package/dist/assets/Typography-BcNOcPdV.js +1 -0
- package/dist/assets/{Typography-Jr4Brrb5.js → Typography-D4Laguzq.js} +1 -1
- package/dist/assets/{Typography-CP569bC2.js → Typography-DlDlPYOB.js} +1 -1
- package/dist/assets/Typography-DnTFPtdP.js +9 -0
- package/dist/assets/{Typography.stories-DjnTqZOD.js → Typography.stories-BLBo_W9U.js} +1 -1
- package/dist/assets/Typography.stories-BknEcNqq.js +73 -0
- package/dist/assets/Typography.stories-Cl9dtqr_.js +73 -0
- package/dist/assets/{OdysseyThemeProvider-BA0_xP7N.js → UDComponentsStorybookThemeDecorator-BXzQsObU.js} +82 -17
- package/dist/assets/{UiShell.stories-Cz9ZqBh6.js → UiShell.stories-eL8NYtFG.js} +19 -19
- package/dist/assets/{UiShellProvider-oDzwqt6Y.js → UiShellProvider-Cd_5esNt.js} +1 -1
- package/dist/assets/{Upload-nb-hV6Ym.js → Upload-Cy-cphyA.js} +1 -1
- package/dist/assets/{User-BEFwQRGi.js → User-DRi5hhiP.js} +1 -1
- package/dist/assets/{UserProfile-BM4I2P2Q.js → UserProfile-CwV_oL5l.js} +1 -1
- package/dist/assets/UserProfile.stories-DgRCwF_j.js +14 -0
- package/dist/assets/{UserProfileMenuButton.stories-PNsdwClg.js → UserProfileMenuButton.stories-B5zb3hp4.js} +3 -3
- package/dist/assets/{Video-DHeibuka.js → Video-DAMdjIe3.js} +1 -1
- package/dist/assets/{WarningFilled-DOHs-JmZ.js → WarningFilled-DJX60tUO.js} +1 -1
- package/dist/assets/{WithTooltip-IO6J4KBT-DQaUt46F.js → WithTooltip-IO6J4KBT-Ccs9TgLm.js} +2 -2
- package/dist/assets/WorkflowsComponentsStorybookThemeDecorator-BQlPPRvP.js +1 -0
- package/dist/assets/{WpComponentsStorybookThemeDecorator-Db3wSJC0.js → WpComponentsStorybookThemeDecorator-CJ_rgsix.js} +1 -1
- package/dist/assets/{axe-9-4xvXvL.js → axe-B0QS9Vy6.js} +1 -1
- package/dist/assets/{axeRun-w5CBCc9V.js → axeRun-C-zlWaxU.js} +1 -1
- package/dist/assets/{blocks-D521Uej3.js → blocks-BI5YpTSd.js} +6 -6
- package/dist/assets/{colorManipulator-BYcVMQmD.js → colorManipulator-BprDRxgx.js} +1 -1
- package/dist/assets/{createStyled-BKWdp2xc.js → createStyled-CNzidwe1.js} +1 -1
- package/dist/assets/{createSvgIcon-CaWcxZng.js → createSvgIcon-CoE7vjSC.js} +1 -1
- package/dist/assets/{dialogActionsClasses-J0iu7jYO.js → dialogActionsClasses-DejbXXRS.js} +1 -1
- package/dist/assets/formatter-QJ4M4OGQ-D0ewJSfL.js +1 -0
- package/dist/assets/{iconUtils-DmnxHGuV.js → iconUtils-CeRi1WMA.js} +1 -1
- package/dist/assets/{iframe-CQjT1fxh.js → iframe-Cav9rlxr.js} +132 -132
- package/dist/assets/{index-D5BUEpVX.js → index-BQ9nbbSk.js} +1 -1
- package/dist/assets/index-C5VVYn_U.js +1 -0
- package/dist/assets/{index-C77ZwfYm.js → index-CLFx8Kta.js} +1 -1
- package/dist/assets/index-Dui69PFe.js +1 -0
- package/dist/assets/index.es-0rJMfM0E.js +8 -0
- package/dist/assets/{index.esm-Bohtd3OQ.js → index.esm-C_XHPSqo.js} +1 -1
- package/dist/assets/{index.esm-Dvk_qjX0.js → index.esm-CsYcjPN9.js} +1 -1
- package/dist/assets/{index.modern-DX91rx7y.js → index.modern-DBSGWaP4.js} +1 -1
- package/dist/assets/{inputUtils-BBH9ADKa.js → inputUtils-BOLvDTmI.js} +1 -1
- package/dist/assets/{personData-CV-uVWcJ.js → personData-BPEVF-Qf.js} +1 -1
- package/dist/assets/{personData-Bi-Gg5yH.js → personData-BoHZtVJF.js} +1 -1
- package/dist/assets/{pickerComponentPropsMetaData-aBuTm1AZ.js → pickerComponentPropsMetaData-DZI7kYjo.js} +1 -1
- package/dist/assets/{react-18-DkaAwiRb.js → react-18-DjPF3SW_.js} +1 -1
- package/dist/assets/{renderUiShell.stories-R-ckgOdr.js → renderUiShell.stories-wVSloQJP.js} +23 -23
- package/dist/assets/{resolveComponentProps-DGxe9oED.js → resolveComponentProps-m1IywaLB.js} +1 -1
- package/dist/assets/{syntaxhighlighter-IQDEPFLK-CL1ROTuv.js → syntaxhighlighter-IQDEPFLK-Pv8RB4wM.js} +1 -1
- package/dist/assets/{tableRowClasses-Bk1uFtwh.js → tableRowClasses-DYosAqvx.js} +1 -1
- package/dist/assets/{tableSortLabelClasses-i_d6KGQQ.js → tableSortLabelClasses-BkDwo_43.js} +1 -1
- package/dist/assets/{useAutocomplete-DG_kuhWb.js → useAutocomplete-f6aTM-6O.js} +1 -1
- package/dist/assets/{useControlled-BUhC7uWK.js → useControlled-4m9Fbl4Y.js} +1 -1
- package/dist/assets/{useIsFocusVisible-D1xCTBdT.js → useIsFocusVisible-Cu721A7w.js} +1 -1
- package/dist/assets/{useMobilePicker-DJQJ3D8W.js → useMobilePicker-0Zj6ZxWR.js} +1 -1
- package/dist/assets/{useMountLifecycleEffect-BNByHT_g.js → useMountLifecycleEffect-C7Ycb3_3.js} +1 -1
- package/dist/assets/{useOdysseyDateFields-BVmmVg1G.js → useOdysseyDateFields-BbpeJekS.js} +3 -3
- package/dist/assets/{useScrollIndication-BGw7dgC5.js → useScrollIndication-4J4XfL4q.js} +4 -4
- package/dist/assets/{useSlot-BMAKysxJ.js → useSlot-CvipdriX.js} +1 -1
- package/dist/assets/{useThemeProps-BCUqwy59.js → useThemeProps-C9dAJTwo.js} +1 -1
- package/dist/assets/useThemeProps-CITViJJe.js +1 -0
- package/dist/assets/useTranslation-DjB2Li3Q.js +1 -0
- package/dist/assets/{useUniqueId-DG6rB8dI.js → useUniqueId-CXfTvpAs.js} +1 -1
- package/dist/assets/useUniqueId-MZzCNWze.js +11 -0
- package/dist/assets/{utilities.esm-D9akhJLQ.js → utilities.esm-CFtdCfoJ.js} +1 -1
- package/dist/assets/{utils-D-QCjykO.js → utils-fJIW_l91.js} +1 -1
- package/dist/cjs/FullScreenOverlayContext.cjs +8 -2
- package/dist/cjs/FullScreenOverlayContext.cjs.map +1 -1
- package/dist/cjs/OdysseyProvider.cjs +2 -0
- package/dist/cjs/OdysseyProvider.cjs.map +1 -1
- package/dist/cjs/Select.cjs +13 -15
- package/dist/cjs/Select.cjs.map +1 -1
- package/dist/cjs/__internal.cjs +22 -0
- package/dist/cjs/__internal.cjs.map +1 -1
- package/dist/cjs/i18n.generated/i18n.cjs +1 -1
- package/dist/cjs/i18n.generated/i18n.cjs.map +1 -1
- package/dist/cjs/i18n.generated/i18n.resources.cjs +1 -1
- package/dist/cjs/i18n.generated/i18n.resources.cjs.map +1 -1
- package/dist/cjs/i18n.generated/i18n.types.cjs +1 -1
- package/dist/cjs/i18n.generated/i18n.types.cjs.map +1 -1
- package/dist/cjs/labs/DataFilters.cjs +14 -11
- package/dist/cjs/labs/DataFilters.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs +2 -0
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +2 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +2 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +17 -0
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShell.cjs +1 -0
- package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
- package/dist/esm/FullScreenOverlayContext.js +8 -2
- package/dist/esm/FullScreenOverlayContext.js.map +1 -1
- package/dist/esm/OdysseyProvider.js +2 -0
- package/dist/esm/OdysseyProvider.js.map +1 -1
- package/dist/esm/Select.js +13 -15
- package/dist/esm/Select.js.map +1 -1
- package/dist/esm/__internal.js +2 -0
- package/dist/esm/__internal.js.map +1 -1
- package/dist/esm/i18n.generated/i18n.js +1 -1
- package/dist/esm/i18n.generated/i18n.js.map +1 -1
- package/dist/esm/i18n.generated/i18n.resources.js +1 -1
- package/dist/esm/i18n.generated/i18n.resources.js.map +1 -1
- package/dist/esm/i18n.generated/i18n.types.js +1 -1
- package/dist/esm/i18n.generated/i18n.types.js.map +1 -1
- package/dist/esm/labs/DataFilters.js +14 -11
- package/dist/esm/labs/DataFilters.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui.js +2 -0
- package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +2 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +2 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
- package/dist/esm/ui-shell/NarrowUiShellContent.js +17 -0
- package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
- package/dist/esm/ui-shell/UiShell.js +1 -0
- package/dist/esm/ui-shell/UiShell.js.map +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
- package/dist/iframe.html +1 -1
- package/dist/index.es.js +3173 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.iife.js +9 -0
- package/dist/index.iife.js.map +1 -0
- package/dist/index.json +1 -1
- package/dist/index.umd.cjs +9 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/project.json +1 -1
- package/dist/sb-addons/storybook-6/manager-bundle.js +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/types/FullScreenOverlayContext.d.ts +5 -1
- package/dist/types/FullScreenOverlayContext.d.ts.map +1 -1
- package/dist/types/OdysseyProvider.d.ts +1 -1
- package/dist/types/OdysseyProvider.d.ts.map +1 -1
- package/dist/types/Select.d.ts.map +1 -1
- package/dist/types/__internal.d.ts +2 -0
- package/dist/types/__internal.d.ts.map +1 -1
- package/dist/types/getTranslationServices.browser.test.d.ts +1 -0
- package/dist/types/getTranslationServices.browser.test.js +88 -0
- package/dist/types/getTranslationServices.browser.test.js.map +1 -0
- package/dist/types/getTranslationServices.d.ts +89 -0
- package/dist/types/getTranslationServices.js +77 -0
- package/dist/types/getTranslationServices.js.map +1 -0
- package/dist/types/getTypedObjectEntries.d.ts +1 -0
- package/dist/types/getTypedObjectEntries.js +2 -0
- package/dist/types/getTypedObjectEntries.js.map +1 -0
- package/dist/types/i18n.generated/i18n.d.ts +5 -1
- package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.resources.d.ts +7 -1
- package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.types.d.ts +1 -1
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/labs/DataFilters.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui.d.ts +2 -0
- package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +2 -0
- package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +2 -0
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
- package/dist/types/translationServices.types.d.ts +2 -0
- package/dist/types/translationServices.types.js +34 -0
- package/dist/types/translationServices.types.js.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/ok.yaml +1 -0
- package/package.json +7 -7
- package/src/getTranslationServices.browser.test.tsx +173 -0
- package/src/getTranslationServices.tsx +288 -0
- package/src/getTypedObjectEntries.ts +3 -0
- package/src/index.ts +2 -0
- package/src/translationServices.types.ts +36 -0
- package/src/tsconfig.json +7 -0
- package/tsconfig.json +41 -0
- package/vite.config.project.ts +61 -0
- package/vite.config.ts +21 -0
- package/vite.config.ts.bak +33 -0
- package/vitest-browser-setup.ts +14 -0
- package/vitest-jsdom-setup.ts +13 -0
- package/vitest-node-setup.ts +13 -0
- package/vitest.config.project.ts +16 -0
- package/vitest.config.ts +27 -0
- package/vitest.config.ts.bak +27 -0
- package/dist/assets/Accordion.stories-X3jwsTUf.js +0 -85
- package/dist/assets/AppSwitcher.stories-CwjWKK9x.js +0 -100
- package/dist/assets/AppTile.stories-BfdQQaCS.js +0 -136
- package/dist/assets/ArrowRight-C5USrGY5.js +0 -1
- package/dist/assets/Box-Dieb6jd6.js +0 -11
- package/dist/assets/Breadcrumb.stories-BOG-nvIn.js +0 -19
- package/dist/assets/BreadcrumbList.stories-BjYldubq.js +0 -81
- package/dist/assets/Card-BejcE3ak.js +0 -8
- package/dist/assets/Checkbox.stories-CnAqBzmf.js +0 -113
- package/dist/assets/CheckboxGroup.stories-CIRolYTR.js +0 -89
- package/dist/assets/Close-CELHOmN_.js +0 -1
- package/dist/assets/Custom Theming.stories-CWCReKRB.js +0 -95
- package/dist/assets/DataFilters-4og6bOFS.js +0 -1
- package/dist/assets/DataTable-DV-P1c62.js +0 -41
- package/dist/assets/DatePicker.stories-DWhZFsWV.js +0 -133
- package/dist/assets/DebugMenu-3nsw5Xt7.js +0 -1
- package/dist/assets/Design Tokens-OxRvZCcK.js +0 -4
- package/dist/assets/Dialog-DiU8nQnH.js +0 -1
- package/dist/assets/Dialog.stories-Cl9r8_yI.js +0 -207
- package/dist/assets/Divider.stories-BEuF_CK6.js +0 -5
- package/dist/assets/Drawer.stories-we3mu0fd.js +0 -95
- package/dist/assets/EmptyState.stories-BoZoxyTs.js +0 -11
- package/dist/assets/Fieldset.stories-B_r0XFjE.js +0 -15
- package/dist/assets/Form.stories-Bge8Frr0.js +0 -69
- package/dist/assets/GroupPicker.stories-Oc5zKcw1.js +0 -33
- package/dist/assets/Icon.stories-CB1sFVG5.js +0 -16
- package/dist/assets/IconWithTooltip.stories-qhJ3BM2A.js +0 -19
- package/dist/assets/Link-Djl4opNm.js +0 -11
- package/dist/assets/ListSubheader.stories-nA_TcAiG.js +0 -5
- package/dist/assets/MenuButton.stories-CtQrmY2o.js +0 -246
- package/dist/assets/MenuItem.stories-CQ-735qG.js +0 -38
- package/dist/assets/NativeSelect.stories-D2Ob7KE5.js +0 -114
- package/dist/assets/PageHeader-DHtVYyb-.js +0 -6
- package/dist/assets/PageHeader.stories-CCvS30-w.js +0 -17
- package/dist/assets/PageTemplate-Dfm2PU1P.js +0 -8
- package/dist/assets/PasswordField.stories-T70RtAAe.js +0 -121
- package/dist/assets/Picker.stories-DHQ88s15.js +0 -44
- package/dist/assets/ProgressBar.stories-Cyam9OIf.js +0 -258
- package/dist/assets/RadioGroup-D8i98nDO.js +0 -10
- package/dist/assets/ScreenReaderText.stories-C1dE1n7A.js +0 -8
- package/dist/assets/SearchField.stories-LT1ewC26.js +0 -37
- package/dist/assets/Select-CQoJvuLM.js +0 -15
- package/dist/assets/Select.stories-B8cWbr6v.js +0 -233
- package/dist/assets/SideNav-tldrZCp2.js +0 -85
- package/dist/assets/Stack.stories-B9W1XlQs.js +0 -1
- package/dist/assets/Tag.stories-CFd40qf5.js +0 -96
- package/dist/assets/TextField.stories-julPXfI1.js +0 -177
- package/dist/assets/Toast.stories-BuX-cdk6.js +0 -164
- package/dist/assets/Tooltip.stories-BXjrRGGM.js +0 -68
- package/dist/assets/TopNav.stories-C3X2SUf9.js +0 -13
- package/dist/assets/Typography-Dy2bDiU6.js +0 -9
- package/dist/assets/Typography.stories-CBkQTJR8.js +0 -73
- package/dist/assets/Typography.stories-dzvvlIBm.js +0 -73
- package/dist/assets/UserProfile.stories-BOMOuxsL.js +0 -14
- package/dist/assets/WorkflowsComponentsStorybookThemeDecorator-DrWk22II.js +0 -1
- package/dist/assets/formatter-QJ4M4OGQ-BVt8pa2h.js +0 -1
- package/dist/assets/index-5Qx3hCfP.js +0 -1
- package/dist/assets/index-Vzl5wUDu.js +0 -1
- package/dist/assets/useThemeProps-Bc2iWdri.js +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -25
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{_ as Mt}from"./preload-helper-Dp1pzeXC.js";import{i as lt,v as Qu,w as ov,x as av,y as iv,z as lv,A as sv,B as uv,D as cv,E as Da,G as Tr,H as ec,I as dv,J as fv,K as pv,L as hv,M as gv,N as mv,O as yv,P as bv,Q as vv,S as Ev,T as Sv,U as xv,V as wv,W as $v,X as Cv,Y as Dv,Z as Tv,$ as tc,R as p,r as f,j as re,h as gt,f as At,g as _v,a0 as Le,a1 as So,a2 as Xr,a3 as zn,a4 as Av,a5 as Ta,a6 as yn,u as Rv,a7 as Pv,a8 as _a,a9 as rc,aa as Ov,_ as Fv,e as Iv,ab as Gn}from"./iframe-CQjT1fxh.js";import{s as _,r as _n,c as kv,a as ke,i as Mp,b as Lv,d as _t,e as Aa,k as Ve,f as er,l as jp,_ as Nv,g as El,t as nc,u as ws,T as Hp,h as Bv,j as oc,m as Mv}from"./index-C77ZwfYm.js";import{r as Uo,R as Up}from"./index-5Qx3hCfP.js";function jv(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}var Kp=lt({"../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let a="",l=0,s=0;e:for(;s<i;s++){let u=o.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(l<s&&(a+=o.slice(l,s)),l=s+1,a+=t[u]),++s===i)break e;u=o.charCodeAt(s)}if(l<s&&(a+=o.slice(l,s)),u<2048){l=s+1,a+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,a+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=i)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),a+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<i?a+o.slice(l):a}}}),$s=lt({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Kp(),r=i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),zp=lt({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=$s(),r=Kp();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,h,g,y,b){if(n(h))return d;let S=d[h];return typeof S=="object"&&S!==null?S:!y&&(b||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?d[h]=[]:d[h]={}}var i=20,a="[]",l="[",s="]",u=".";function c(d,h,g=0,y,b){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:m=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:C=t.defaultOptions.delimiter,valueSerializer:P=t.defaultOptions.valueSerializer,shouldSerializeObject:x=t.defaultOptions.shouldSerializeObject}=h,D=typeof C=="number"?String.fromCharCode(C):C,$=b===!0&&m,A=S==="dot"||S==="js"&&!b;if(g>i)return"";let T="",w=!0,O=!1;for(let I in d){let R=d[I];if(R===void 0)continue;let k;y?(k=y,$?v==="bracket"&&(k+=a):A?(k+=u,k+=I):(k+=l,k+=I,k+=s)):k=I,w||(T+=D),typeof R=="object"&&R!==null&&!x(R)?(O=R.pop!==void 0,(E||m&&O)&&(T+=c(R,h,g+1,k,O))):(T+=(0,r.encodeString)(k),T+="=",T+=P(R,I)),w&&(w=!1)}return T}}}),Hv=lt({"../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,h=0,g=s,y=t;for(;s>-1&&s<u;){let b=a(l[s+1],4),S=a(l[s+2],0),m=b|S,v=n[m];if(y=n[256+y+v],h=h<<6|m&n[364+v],y===t)c+=l.slice(d,g),c+=h<=65535?String.fromCharCode(h):String.fromCharCode(55232+(h>>10),56320+(h&1023)),h=0,d=s+3,s=g=l.indexOf("%",d);else{if(y===r)return null;if(s+=3,s<u&&l.charCodeAt(s)===37)continue;return null}}return c+l.slice(d)}var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(l,s){let u=i[l];return u===void 0?255:u<<s}}}),Uv=lt({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=zp(),r=$s(),n=Hv(),o=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var i=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=i;var a=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,h,g,y){let b=c.substring(d,h);return g&&(b=b.replace(a," ")),y&&(b=(0,n.decodeURIComponent)(b)||b),b}function u(c,d){let{valueDeserializer:h=r.defaultOptions.valueDeserializer,keyDeserializer:g=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:b=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:m=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d??{},E=typeof v=="string"?v.charCodeAt(0):v,C=m==="js",P=new l;if(typeof c!="string")return P;let x=c.length,D="",$=-1,A=-1,T=-1,w=P,O,I="",R="",k=!1,L=!1,F=!1,j=!1,B=!1,N=!1,U=0,M=-1,H=-1,z=-1;for(let K=0;K<x+1;K++){if(U=K!==x?c.charCodeAt(K):E,U===E){if(N=A>$,N||(A=K),T!==A-1&&(R=s(c,T+1,M>-1?M:A,F,k),I=g(R),O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,C&&B,void 0))),N||I!==""){N&&(D=c.slice(A+1,K),j&&(D=D.replace(a," ")),L&&(D=(0,n.decodeURIComponent)(D)||D));let q=h(D,I);if(S){let ue=w[I];ue===void 0?M>-1?w[I]=[q]:w[I]=q:ue.pop?ue.push(q):w[I]=[ue,q]}else w[I]=q}D="",$=K,A=K,k=!1,L=!1,F=!1,j=!1,B=!1,M=-1,T=K,w=P,O=void 0,I=""}else U===93?(S&&y==="bracket"&&z===91&&(M=H),b&&(m==="index"||C)&&A<=$&&(T!==H&&(R=s(c,T+1,K,F,k),I=g(R),O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,void 0,void 0)),O=I,F=!1,k=!1),T=K,B=!1)):U===46?b&&(m==="dot"||C)&&A<=$&&(T!==H&&(R=s(c,T+1,K,F,k),I=g(R),O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,C)),O=I,F=!1,k=!1),B=!0,T=K):U===91?b&&(m==="index"||C)&&A<=$&&(T!==H&&(R=s(c,T+1,K,F,k),I=g(R),C&&O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,C)),O=I,F=!1,k=!1,B=!1),T=K):U===61?A<=$?A=K:L=!0:U===43?A>$?j=!0:F=!0:U===37&&(A>$?L=!0:k=!0);H=K,z=U}return P}}}),Kv=lt({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=zp();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),zv=lt({"../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(i,a,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(a,l);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(i,s,u)}:function(i,a,l,s){s===void 0&&(s=l),i[s]=a[l]}),r=e&&e.__exportStar||function(i,a){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&t(a,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=Uv();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=Kv();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r($s(),e)}});function Gv(){}function Wv(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Vv(e,t,r){return on(e,t,void 0,void 0,void 0,void 0,r)}function on(e,t,r,n,o,i,a){let l=a(e,t,r,n,o,i);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return dn(e,t,i,a)}return dn(e,t,i,a)}function dn(e,t,r,n){if(Object.is(e,t))return!0;let o=Qu(e),i=Qu(t);if(o===tc&&(o=Da),i===tc&&(i=Da),o!==i)return!1;switch(o){case cv:return e.toString()===t.toString();case uv:{let s=e.valueOf(),u=t.valueOf();return Wv(s,u)}case sv:case lv:case iv:return Object.is(e.valueOf(),t.valueOf());case av:return e.source===t.source&&e.flags===t.flags;case ov:return e===t}r=r??new Map;let a=r.get(e),l=r.get(t);if(a!=null&&l!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case Tv:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!on(u,t.get(s),s,e,t,r,n))return!1;return!0}case Dv:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],h=u.findIndex(g=>on(d,g,void 0,e,t,r,n));if(h===-1)return!1;u.splice(h,1)}return!0}case Cv:case $v:case wv:case xv:case Sv:case Ev:case vv:case bv:case yv:case mv:case gv:case hv:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!on(e[s],t[s],s,e,t,r,n))return!1;return!0}case pv:return e.byteLength!==t.byteLength?!1:dn(new Uint8Array(e),new Uint8Array(t),r,n);case fv:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:dn(new Uint8Array(e),new Uint8Array(t),r,n);case dv:return e.name===t.name&&e.message===t.message;case Da:{if(!(dn(e.constructor,t.constructor,r,n)||Tr(e)&&Tr(t)))return!1;let s=[...Object.keys(e),...ec(e)],u=[...Object.keys(t),...ec(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],h=e[d];if(!Object.hasOwn(t,d))return!1;let g=t[d];if(!on(h,g,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function mt(e,t){return Vv(e,t,Gv)}var st=e=>`control-${e.replace(/\s+/g,"-")}`,Ko=e=>`set-${e.replace(/\s+/g,"-")}`,qv=_.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Gp=_.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});Gp.displayName="ActionButton";var Wp=({actionItems:e,...t})=>p.createElement(qv,{...t},e.map(({title:r,className:n,onClick:o,disabled:i},a)=>p.createElement(Gp,{key:a,className:n,onClick:o,disabled:!!i},r)));function Yv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Vp(...e){return t=>e.forEach(r=>Yv(r,t))}function ur(...e){return f.useCallback(Vp(...e),e)}var qp=f.forwardRef((e,t)=>{let{children:r,...n}=e,o=f.Children.toArray(r),i=o.find(Jv);if(i){let a=i.props.children,l=o.map(s=>s===i?f.Children.count(a)>1?f.Children.only(null):f.isValidElement(a)?a.props.children:null:s);return re.jsx(Sl,{...n,ref:t,children:f.isValidElement(a)?f.cloneElement(a,void 0,l):null})}return re.jsx(Sl,{...n,ref:t,children:r})});qp.displayName="Slot";var Sl=f.forwardRef((e,t)=>{let{children:r,...n}=e;if(f.isValidElement(r)){let o=Qv(r);return f.cloneElement(r,{...Zv(n,r.props),ref:t?Vp(t,o):o})}return f.Children.count(r)>1?f.Children.only(null):null});Sl.displayName="SlotClone";var Xv=({children:e})=>re.jsx(re.Fragment,{children:e});function Jv(e){return f.isValidElement(e)&&e.type===Xv}function Zv(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Qv(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var e1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],An=e1.reduce((e,t)=>{let r=f.forwardRef((n,o)=>{let{asChild:i,...a}=n,l=i?qp:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xl=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function t1(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Rn=e=>{let{present:t,children:r}=e,n=r1(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=ur(n.ref,n1(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};Rn.displayName="Presence";function r1(e){let[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[l,s]=t1(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{let u=Wn(n.current);i.current=l==="mounted"?u:"none"},[l]),xl(()=>{let u=n.current,c=o.current;if(c!==e){let d=i.current,h=Wn(u);e?s("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),xl(()=>{if(t){let u=d=>{let h=Wn(n.current).includes(d.animationName);d.target===t&&h&&Uo.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=Wn(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Wn(e){return(e==null?void 0:e.animationName)||"none"}function n1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function o1(e,t=[]){let r=[];function n(i,a){let l=f.createContext(a),s=r.length;r=[...r,a];function u(d){let{scope:h,children:g,...y}=d,b=(h==null?void 0:h[e][s])||l,S=f.useMemo(()=>y,Object.values(y));return re.jsx(b.Provider,{value:S,children:g})}function c(d,h){let g=(h==null?void 0:h[e][s])||l,y=f.useContext(g);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>f.createContext(a));return function(a){let l=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,a1(o,...t)]}function a1(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let i=n.reduce((a,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Zt(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var i1=f.createContext(void 0);function l1(e){let t=f.useContext(i1);return e||t||"ltr"}function s1(e,[t,r]){return Math.min(r,Math.max(t,e))}function nr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function u1(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Cs="ScrollArea",[Yp,pL]=o1(Cs),[c1,rt]=Yp(Cs),Xp=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=e,[l,s]=f.useState(null),[u,c]=f.useState(null),[d,h]=f.useState(null),[g,y]=f.useState(null),[b,S]=f.useState(null),[m,v]=f.useState(0),[E,C]=f.useState(0),[P,x]=f.useState(!1),[D,$]=f.useState(!1),A=ur(t,w=>s(w)),T=l1(o);return re.jsx(c1,{scope:r,type:n,dir:T,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:h,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:P,onScrollbarXEnabledChange:x,scrollbarY:b,onScrollbarYChange:S,scrollbarYEnabled:D,onScrollbarYEnabledChange:$,onCornerWidthChange:v,onCornerHeightChange:C,children:re.jsx(An.div,{dir:T,...a,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});Xp.displayName=Cs;var Jp="ScrollAreaViewport",Zp=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...a}=e,l=rt(Jp,r),s=f.useRef(null),u=ur(t,s,l.onViewportChange);return re.jsxs(re.Fragment,{children:[re.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CLFx8Kta.js","./iframe-Cav9rlxr.js","./preload-helper-Dp1pzeXC.js","./syntaxhighlighter-IQDEPFLK-Pv8RB4wM.js","./index-C5VVYn_U.js","./formatter-QJ4M4OGQ-D0ewJSfL.js","./WithTooltip-IO6J4KBT-Ccs9TgLm.js","./Color-ASIRERSW-CzhPgsf8.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Mt}from"./preload-helper-Dp1pzeXC.js";import{k as lt,v as Qu,w as ov,x as av,y as iv,z as lv,A as sv,B as uv,D as cv,E as Da,G as Tr,H as ec,I as dv,J as fv,K as pv,L as hv,M as gv,N as mv,O as yv,P as bv,Q as vv,S as Ev,T as Sv,U as xv,V as wv,W as $v,X as Cv,Y as Dv,Z as Tv,$ as tc,R as p,r as f,j as re,i as gt,h as At,g as _v,a0 as Le,a1 as So,a2 as Xr,a3 as zn,a4 as Av,a5 as Ta,a6 as yn,u as Rv,a7 as Pv,a8 as _a,a9 as rc,aa as Ov,_ as Fv,f as Iv,ab as Gn}from"./iframe-Cav9rlxr.js";import{s as _,r as _n,c as kv,a as ke,i as Mp,b as Lv,d as _t,e as Aa,k as Ve,f as er,l as jp,_ as Nv,g as El,t as nc,u as ws,T as Hp,h as Bv,j as oc,m as Mv}from"./index-CLFx8Kta.js";import{r as Uo,R as Up}from"./index-C5VVYn_U.js";function jv(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}var Kp=lt({"../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let a="",l=0,s=0;e:for(;s<i;s++){let u=o.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(l<s&&(a+=o.slice(l,s)),l=s+1,a+=t[u]),++s===i)break e;u=o.charCodeAt(s)}if(l<s&&(a+=o.slice(l,s)),u<2048){l=s+1,a+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,a+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=i)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),a+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<i?a+o.slice(l):a}}}),$s=lt({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Kp(),r=i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),zp=lt({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=$s(),r=Kp();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,h,g,y,b){if(n(h))return d;let S=d[h];return typeof S=="object"&&S!==null?S:!y&&(b||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?d[h]=[]:d[h]={}}var i=20,a="[]",l="[",s="]",u=".";function c(d,h,g=0,y,b){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:m=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:C=t.defaultOptions.delimiter,valueSerializer:P=t.defaultOptions.valueSerializer,shouldSerializeObject:x=t.defaultOptions.shouldSerializeObject}=h,D=typeof C=="number"?String.fromCharCode(C):C,$=b===!0&&m,A=S==="dot"||S==="js"&&!b;if(g>i)return"";let T="",w=!0,O=!1;for(let I in d){let R=d[I];if(R===void 0)continue;let k;y?(k=y,$?v==="bracket"&&(k+=a):A?(k+=u,k+=I):(k+=l,k+=I,k+=s)):k=I,w||(T+=D),typeof R=="object"&&R!==null&&!x(R)?(O=R.pop!==void 0,(E||m&&O)&&(T+=c(R,h,g+1,k,O))):(T+=(0,r.encodeString)(k),T+="=",T+=P(R,I)),w&&(w=!1)}return T}}}),Hv=lt({"../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,h=0,g=s,y=t;for(;s>-1&&s<u;){let b=a(l[s+1],4),S=a(l[s+2],0),m=b|S,v=n[m];if(y=n[256+y+v],h=h<<6|m&n[364+v],y===t)c+=l.slice(d,g),c+=h<=65535?String.fromCharCode(h):String.fromCharCode(55232+(h>>10),56320+(h&1023)),h=0,d=s+3,s=g=l.indexOf("%",d);else{if(y===r)return null;if(s+=3,s<u&&l.charCodeAt(s)===37)continue;return null}}return c+l.slice(d)}var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(l,s){let u=i[l];return u===void 0?255:u<<s}}}),Uv=lt({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=zp(),r=$s(),n=Hv(),o=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var i=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=i;var a=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,h,g,y){let b=c.substring(d,h);return g&&(b=b.replace(a," ")),y&&(b=(0,n.decodeURIComponent)(b)||b),b}function u(c,d){let{valueDeserializer:h=r.defaultOptions.valueDeserializer,keyDeserializer:g=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:b=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:m=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d??{},E=typeof v=="string"?v.charCodeAt(0):v,C=m==="js",P=new l;if(typeof c!="string")return P;let x=c.length,D="",$=-1,A=-1,T=-1,w=P,O,I="",R="",k=!1,L=!1,F=!1,j=!1,B=!1,N=!1,U=0,M=-1,H=-1,z=-1;for(let K=0;K<x+1;K++){if(U=K!==x?c.charCodeAt(K):E,U===E){if(N=A>$,N||(A=K),T!==A-1&&(R=s(c,T+1,M>-1?M:A,F,k),I=g(R),O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,C&&B,void 0))),N||I!==""){N&&(D=c.slice(A+1,K),j&&(D=D.replace(a," ")),L&&(D=(0,n.decodeURIComponent)(D)||D));let q=h(D,I);if(S){let ue=w[I];ue===void 0?M>-1?w[I]=[q]:w[I]=q:ue.pop?ue.push(q):w[I]=[ue,q]}else w[I]=q}D="",$=K,A=K,k=!1,L=!1,F=!1,j=!1,B=!1,M=-1,T=K,w=P,O=void 0,I=""}else U===93?(S&&y==="bracket"&&z===91&&(M=H),b&&(m==="index"||C)&&A<=$&&(T!==H&&(R=s(c,T+1,K,F,k),I=g(R),O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,void 0,void 0)),O=I,F=!1,k=!1),T=K,B=!1)):U===46?b&&(m==="dot"||C)&&A<=$&&(T!==H&&(R=s(c,T+1,K,F,k),I=g(R),O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,C)),O=I,F=!1,k=!1),B=!0,T=K):U===91?b&&(m==="index"||C)&&A<=$&&(T!==H&&(R=s(c,T+1,K,F,k),I=g(R),C&&O!==void 0&&(w=(0,t.getDeepObject)(w,O,I,C)),O=I,F=!1,k=!1,B=!1),T=K):U===61?A<=$?A=K:L=!0:U===43?A>$?j=!0:F=!0:U===37&&(A>$?L=!0:k=!0);H=K,z=U}return P}}}),Kv=lt({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=zp();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),zv=lt({"../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(i,a,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(a,l);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(i,s,u)}:function(i,a,l,s){s===void 0&&(s=l),i[s]=a[l]}),r=e&&e.__exportStar||function(i,a){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&t(a,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=Uv();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=Kv();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r($s(),e)}});function Gv(){}function Wv(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Vv(e,t,r){return on(e,t,void 0,void 0,void 0,void 0,r)}function on(e,t,r,n,o,i,a){let l=a(e,t,r,n,o,i);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return dn(e,t,i,a)}return dn(e,t,i,a)}function dn(e,t,r,n){if(Object.is(e,t))return!0;let o=Qu(e),i=Qu(t);if(o===tc&&(o=Da),i===tc&&(i=Da),o!==i)return!1;switch(o){case cv:return e.toString()===t.toString();case uv:{let s=e.valueOf(),u=t.valueOf();return Wv(s,u)}case sv:case lv:case iv:return Object.is(e.valueOf(),t.valueOf());case av:return e.source===t.source&&e.flags===t.flags;case ov:return e===t}r=r??new Map;let a=r.get(e),l=r.get(t);if(a!=null&&l!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case Tv:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!on(u,t.get(s),s,e,t,r,n))return!1;return!0}case Dv:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],h=u.findIndex(g=>on(d,g,void 0,e,t,r,n));if(h===-1)return!1;u.splice(h,1)}return!0}case Cv:case $v:case wv:case xv:case Sv:case Ev:case vv:case bv:case yv:case mv:case gv:case hv:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!on(e[s],t[s],s,e,t,r,n))return!1;return!0}case pv:return e.byteLength!==t.byteLength?!1:dn(new Uint8Array(e),new Uint8Array(t),r,n);case fv:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:dn(new Uint8Array(e),new Uint8Array(t),r,n);case dv:return e.name===t.name&&e.message===t.message;case Da:{if(!(dn(e.constructor,t.constructor,r,n)||Tr(e)&&Tr(t)))return!1;let s=[...Object.keys(e),...ec(e)],u=[...Object.keys(t),...ec(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],h=e[d];if(!Object.hasOwn(t,d))return!1;let g=t[d];if(!on(h,g,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function mt(e,t){return Vv(e,t,Gv)}var st=e=>`control-${e.replace(/\s+/g,"-")}`,Ko=e=>`set-${e.replace(/\s+/g,"-")}`,qv=_.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Gp=_.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});Gp.displayName="ActionButton";var Wp=({actionItems:e,...t})=>p.createElement(qv,{...t},e.map(({title:r,className:n,onClick:o,disabled:i},a)=>p.createElement(Gp,{key:a,className:n,onClick:o,disabled:!!i},r)));function Yv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Vp(...e){return t=>e.forEach(r=>Yv(r,t))}function ur(...e){return f.useCallback(Vp(...e),e)}var qp=f.forwardRef((e,t)=>{let{children:r,...n}=e,o=f.Children.toArray(r),i=o.find(Jv);if(i){let a=i.props.children,l=o.map(s=>s===i?f.Children.count(a)>1?f.Children.only(null):f.isValidElement(a)?a.props.children:null:s);return re.jsx(Sl,{...n,ref:t,children:f.isValidElement(a)?f.cloneElement(a,void 0,l):null})}return re.jsx(Sl,{...n,ref:t,children:r})});qp.displayName="Slot";var Sl=f.forwardRef((e,t)=>{let{children:r,...n}=e;if(f.isValidElement(r)){let o=Qv(r);return f.cloneElement(r,{...Zv(n,r.props),ref:t?Vp(t,o):o})}return f.Children.count(r)>1?f.Children.only(null):null});Sl.displayName="SlotClone";var Xv=({children:e})=>re.jsx(re.Fragment,{children:e});function Jv(e){return f.isValidElement(e)&&e.type===Xv}function Zv(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Qv(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var e1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],An=e1.reduce((e,t)=>{let r=f.forwardRef((n,o)=>{let{asChild:i,...a}=n,l=i?qp:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xl=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function t1(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Rn=e=>{let{present:t,children:r}=e,n=r1(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=ur(n.ref,n1(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};Rn.displayName="Presence";function r1(e){let[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[l,s]=t1(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{let u=Wn(n.current);i.current=l==="mounted"?u:"none"},[l]),xl(()=>{let u=n.current,c=o.current;if(c!==e){let d=i.current,h=Wn(u);e?s("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),xl(()=>{if(t){let u=d=>{let h=Wn(n.current).includes(d.animationName);d.target===t&&h&&Uo.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=Wn(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Wn(e){return(e==null?void 0:e.animationName)||"none"}function n1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function o1(e,t=[]){let r=[];function n(i,a){let l=f.createContext(a),s=r.length;r=[...r,a];function u(d){let{scope:h,children:g,...y}=d,b=(h==null?void 0:h[e][s])||l,S=f.useMemo(()=>y,Object.values(y));return re.jsx(b.Provider,{value:S,children:g})}function c(d,h){let g=(h==null?void 0:h[e][s])||l,y=f.useContext(g);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>f.createContext(a));return function(a){let l=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,a1(o,...t)]}function a1(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let i=n.reduce((a,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Zt(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var i1=f.createContext(void 0);function l1(e){let t=f.useContext(i1);return e||t||"ltr"}function s1(e,[t,r]){return Math.min(r,Math.max(t,e))}function nr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function u1(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Cs="ScrollArea",[Yp,pL]=o1(Cs),[c1,rt]=Yp(Cs),Xp=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=e,[l,s]=f.useState(null),[u,c]=f.useState(null),[d,h]=f.useState(null),[g,y]=f.useState(null),[b,S]=f.useState(null),[m,v]=f.useState(0),[E,C]=f.useState(0),[P,x]=f.useState(!1),[D,$]=f.useState(!1),A=ur(t,w=>s(w)),T=l1(o);return re.jsx(c1,{scope:r,type:n,dir:T,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:h,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:P,onScrollbarXEnabledChange:x,scrollbarY:b,onScrollbarYChange:S,scrollbarYEnabled:D,onScrollbarYEnabledChange:$,onCornerWidthChange:v,onCornerHeightChange:C,children:re.jsx(An.div,{dir:T,...a,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});Xp.displayName=Cs;var Jp="ScrollAreaViewport",Zp=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...a}=e,l=rt(Jp,r),s=f.useRef(null),u=ur(t,s,l.onViewportChange);return re.jsxs(re.Fragment,{children:[re.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
3
3
|
[data-radix-scroll-area-viewport] {
|
|
4
4
|
scrollbar-width: none;
|
|
5
5
|
-ms-overflow-style: none;
|
|
@@ -50,7 +50,7 @@ More info: ${i}
|
|
|
50
50
|
it's possible a CORS error happened.
|
|
51
51
|
|
|
52
52
|
Please check your dev-tools network tab.
|
|
53
|
-
`});let P=s.versions&&Object.keys(s.versions).length?s.versions:y.versions;await i.setRef(u,{id:u,url:m.url,...y,...P?{versions:P}:{},type:y.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},h=!1)=>{if(r)return;let g,y,b,{filters:S}=e.getState(),{storyMapper:m=Jh}=t.getConfig(),v=i.getRefs()[s];(u||c)&&(g=c?F$(H$(c,v,{storyMapper:m})):u,b=$o(u,{provider:t,docsOptions:n,filters:S,allStatuses:{}}),y=$o(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),y&&(y=Sd(y,v)),b&&(b=Sd(b,v)),await i.updateRef(s,{...v,...d,index:y,filteredIndex:b,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,...u};let h=Object.keys(l).reduce((g,y)=>(g[y]=d[y],g),{});await e.setState({refs:h})}},a=!r&&qh.REFS||{},l=a;return o&&new Promise(async s=>{for(let u of Object.values(a))await i.checkRef({...u,stories:{}});s(void 0)}),{api:i,state:{refs:l}}},Ge=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=Xh(r,n),l;(n||i==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let s={source:r,sourceType:i,sourceLocation:a,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return s;default:return A$.warn(`Received a ${o} frame that was not configured as a ref`),null}},K$=({store:e,fullAPI:t,provider:r})=>{var a,l;let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(s){var u;(u=r.channel)==null||u.emit(_$,{globals:s,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:s,storyGlobals:u,userGlobals:c})=>{let{globals:d,userGlobals:h,storyGlobals:g}=e.getState();yt(s,d)||e.setState({globals:s}),yt(c,h)||e.setState({userGlobals:c}),yt(u,g)||e.setState({storyGlobals:u})};return(a=r.channel)==null||a.on(D$,function({globals:s,storyGlobals:u,userGlobals:c}){let{ref:d}=Ge(this,t);d?bd.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:s,storyGlobals:u,userGlobals:c})}),(l=r.channel)==null||l.on(T$,function({globals:s,globalTypes:u}){var h;let{ref:c}=Ge(this,t),d=(h=e.getState())==null?void 0:h.globals;c?Object.keys(s).length>0&&bd.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:s,userGlobals:s,globalTypes:u}),d&&Object.keys(d).length!==0&&!yt(s,d)&&n.updateGlobals(d)}),{api:n,state:o}},Qs={};Le(Qs,{ActiveTabs:()=>Zh,defaultLayoutState:()=>We,focusableUIElements:()=>po,init:()=>W$});const{SET_CONFIG:z$}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:G$}=__STORYBOOK_MODULE_GLOBAL__;var{document:wd}=G$,Di=e=>typeof e=="function",Zh={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},We={ui:{enableShortcuts:!0},layout:{initialActive:Zh.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:kv()},po={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},Il=e=>e.layout.navSize>0,kl=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},$d=e=>!Il(e)&&!kl(e),Yn=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),W$=({store:e,provider:t,singleStory:r})=>{var i;let n={toggleFullscreen(a){return e.setState(l=>{let s=$d(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Yn(l.layout)}}:{layout:{...l.layout,navSize:l.singleStory?0:l.layout.recentVisibleSizes.navSize,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(l=>{let s=kl(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...l.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Yn(l.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(l=>{let s=a||(l.layout.panelPosition==="right"?"bottom":"right");return{layout:{...l.layout,panelPosition:s,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(l=>{if(l.singleStory)return{layout:l.layout};let s=Il(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,navSize:l.layout.recentVisibleSizes.navSize}}:{layout:{...l.layout,navSize:0,recentVisibleSizes:Yn(l.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(l=>{let s=typeof a<"u"?a:!l.layout.showToolbar;return{layout:{...l.layout,showToolbar:s}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:l,rightPanelWidth:s}){return e.setState(u=>{let c={...u.layout,navSize:a??u.layout.navSize,bottomPanelHeight:l??u.layout.bottomPanelHeight,rightPanelWidth:s??u.layout.rightPanelWidth};return{layout:{...c,recentVisibleSizes:Yn(c)}}},{persistence:"session"})},focusOnUIElement(a,l){if(!a)return;let s=Date.now(),u=500,c=50,d=()=>{var y;let g=wd.getElementById(a);return!g||(g.focus(),g!==wd.activeElement)?!1:(l&&((y=g.select)==null||y.call(g)),!0)};if(d())return;let h=setInterval(()=>{if(Date.now()-s>=u){clearInterval(h);return}d()&&clearInterval(h)},c)},getInitialOptions(){let{theme:a,selectedPanel:l,layoutCustomisations:s,...u}=t.getConfig();return{...We,layout:{...Ta(We.layout,Xr(u,Object.keys(We.layout))),...r&&{navSize:0}},layoutCustomisations:{...We.layoutCustomisations,...s??{}},ui:Ta(We.ui,Xr(u,Object.keys(We.ui))),selectedPanel:l||We.selectedPanel,theme:a||We.theme}},getIsFullscreen(){return $d(e.getState())},getIsPanelShown(){return kl(e.getState())},getIsNavShown(){return Il(e.getState())},getShowToolbarWithCustomisations(a){let l=e.getState();return Di(l.layoutCustomisations.showToolbar)?l.layoutCustomisations.showToolbar(l,a)??a:a},getShowPanelWithCustomisations(a){let l=e.getState();return Di(l.layoutCustomisations.showPanel)?l.layoutCustomisations.showPanel(l,a)??a:a},getNavSizeWithCustomisations(a){let l=e.getState();if(Di(l.layoutCustomisations.showSidebar)){let s=l.layoutCustomisations.showSidebar(l,a!==0);if(a===0&&s===!0)return l.layout.recentVisibleSizes.navSize;if(a!==0&&s===!1)return 0}return a},setOptions:a=>{let{layout:l,ui:s,selectedPanel:u,theme:c}=e.getState();if(!a)return;let d={...l,...a.layout||{},...Xr(a,Object.keys(l)),...r&&{navSize:0}},h={...s,...a.ui,...Ta(a.ui||{},Xr(a,Object.keys(s)))},g={...c,...a.theme},y={};mt(s,h)||(y.ui=h),mt(l,d)||(y.layout=d),a.selectedPanel&&!mt(u,a.selectedPanel)&&(y.selectedPanel=a.selectedPanel),Object.keys(y).length&&e.setState(y,{persistence:"permanent"}),mt(c,g)||e.setState({theme:g})}},o=Xr(e.getState(),["layout","selectedPanel"]);return(i=t.channel)==null||i.on(z$,()=>{n.setOptions(wr(n.getInitialOptions(),o))}),{api:n,state:wr(n.getInitialOptions(),o)}},Qh={};Le(Qh,{init:()=>V$});var V$=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=bc(r,i=>i.id===t.id);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=bc(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),eg={};Le(eg,{init:()=>Y$});const{OPEN_IN_EDITOR_REQUEST:q$,OPEN_IN_EDITOR_RESPONSE:Ti}=__STORYBOOK_MODULE_CORE_EVENTS__;var Y$=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{var s,u;let{file:o,line:i,column:a}=r,l=c=>{var d;c.file===o&&c.line===i&&c.column===a&&((d=e.channel)==null||d.off(Ti,l),n(c))};(s=e.channel)==null||s.on(Ti,l),(u=e.channel)==null||u.emit(q$,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await Mt(async()=>{const{color:o}=await import("./index-C77ZwfYm.js").then(i=>i.n);return{color:o}},__vite__mapDeps([0,1,2]),import.meta.url);(n=e.channel)==null||n.on(Ti,o=>{o.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:o.error||"Check the Storybook process on the command line for more details."},icon:p.createElement(k1,{color:r.negative}),duration:8e3})})}}),tg={};Le(tg,{init:()=>X$});var X$=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),rg={};Le(rg,{init:()=>J$});var J$=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),ng={};Le(ng,{controlOrMetaKey:()=>br,defaultShortcuts:()=>vr,init:()=>fC,isMacLike:()=>ag,keys:()=>Ll});var Z$=At(h$(),1);const{FORCE_REMOUNT:Q$,PREVIEW_KEYDOWN:eC,STORIES_COLLAPSE_ALL:tC,STORIES_EXPAND_ALL:rC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:og}=__STORYBOOK_MODULE_GLOBAL__,{global:nC}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:_i}=nC,oC=()=>_i&&_i.platform?!!_i.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,aC=()=>oC()?"⌥":"alt",iC=e=>{var i;if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=(i=e.code)==null?void 0:i.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),l=o;l&&l.length===1&&l!==a?t.push([a,l]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},lC=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),sC=e=>e==="alt"?aC():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e==null?void 0:e.toUpperCase(),uC=e=>e.map(sC).join(" "),cC=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:Ai,document:Cd}=og,ag=()=>Ai&&Ai.platform?!!Ai.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,br=()=>ag()?"meta":"control";function Ll(e){return Object.keys(e)}var vr=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[br(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[br(),"shift",","],aboutPage:[br(),","],escape:["escape"],collapseAll:[br(),"shift","ArrowUp"],expandAll:[br(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],copyStoryLink:["alt","shift","L"]}),Ri={};function dC(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var fC=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...vr,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Ri},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{a[l]=s}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{a[l]=s}),a},async setShortcuts(a){return await e.setState({shortcuts:a},{persistence:"permanent"}),a},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,l){let s=n.getShortcutKeys();return await n.setShortcuts({...s,[a]:l}),l},async setAddonShortcut(a,l){let s=n.getShortcutKeys();return await n.setShortcuts({...s,[`${a}-${l.actionName}`]:l.defaultShortcut}),Ri[`${a}-${l.actionName}`]=l,l},async restoreDefaultShortcut(a){let l=n.getDefaultShortcuts()[a];return n.setShortcut(a,l)},handleKeydownEvent(a){let l=iC(a),s=n.getShortcutKeys(),u=Ll(s).find(c=>lC(l,s[c]));u&&n.handleShortcutFeature(u,a)},handleShortcutFeature(a,l){let{ui:{enableShortcuts:s},storyId:u}=e.getState();if(s)switch(l!=null&&l.preventDefault&&l.preventDefault(),a){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(po.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(po.storySearchField,!0)},0);break}case"focusIframe":{let c=Cd.getElementById("storybook-preview-iframe");if(c)try{c.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(po.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{t.togglePanel();break}case"toggleNav":{t.toggleNav();break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(tC);break}case"expandAll":{t.emit(rC);break}case"remount":{t.emit(Q$,{storyId:u});break}case"openInEditor":{og.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"copyStoryLink":{(0,Z$.default)(window.location.href);break}default:Ri[a].action();break}}},{shortcuts:o=vr}=e.getState(),i={shortcuts:Ll(vr).reduce((a,l)=>({...a,[l]:o[l]||vr[l]}),vr)};return{api:n,state:i,init:()=>{var a;Cd.addEventListener("keydown",l=>{dC(l)||n.handleKeydownEvent(l)}),(a=r.channel)==null||a.on(eC,l=>{n.handleKeydownEvent(l.event)})}}},ig={};Le(ig,{init:()=>jC});const{logger:pC}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:hC,CURRENT_STORY_WAS_SET:gC,DOCS_PREPARED:mC,PRELOAD_ENTRIES:yC,RESET_STORY_ARGS:bC,SELECT_STORY:vC,SET_CONFIG:EC,SET_CURRENT_STORY:SC,SET_FILTER:xC,SET_INDEX:wC,SET_STORIES:$C,STORY_ARGS_UPDATED:CC,STORY_CHANGED:DC,STORY_INDEX_INVALIDATED:TC,STORY_MISSING:_C,STORY_PREPARED:AC,STORY_SPECIFIED:RC,UPDATE_STORY_ARGS:PC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:OC}=__STORYBOOK_MODULE_GLOBAL__;At(qx(),1);var FC=class extends js{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},IC={id:"storybook/status",leader:!0,initialState:{}},Pi={SELECT:"select"};function kC({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{let l={...a};for(let s of i){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(i){return e.onStateChange((a,l)=>{i(a,l)})},onSelect(i){return e.subscribe(Pi.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:Pi.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let l={...a};for(let s of i)delete l[s];return l})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(l=>{let s={...l};for(let u of a){let{storyId:c}=u;if(u.typeId!==i)switch(r){case"server":throw new FC({status:u,typeId:i});case"manager":throw new Gx({status:u,typeId:i});case"preview":default:throw new Wx({status:u,typeId:i})}s[c]={...s[c]??{},[i]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe(Pi.SELECT,l=>{l.payload.some(s=>s.typeId===i)&&a(l.payload)})},unset(a){e.setState(l=>{var u;let s={...l};for(let c in s)if((u=s[c])!=null&&u[i]&&(!a||a!=null&&a.includes(c))){let{[i]:d,...h}=s[c];s[c]=h}return s})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var lg=(e,t)=>{let r=f.useRef(t?t(e.getState()):e.getState()),n=f.useCallback(i=>e.onStateChange((a,l)=>{if(!t){r.current=a,i();return}let s=t(a),u=t(l);!mt(s,u)&&(r.current=s,i())}),[e,t]),o=f.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return mt(a,r.current)||(r.current=a),r.current},[e,t]);return[f.useSyncExternalStore(n,o),e.setState]},LC=kC({universalStatusStore:As.create({...IC,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:lg,environment:"manager"}),{fullStatusStore:Dd}=LC,{fetch:NC}=OC,BC="./index.json",MC=["enableShortcuts","theme","showRoots"];function Oi(e){if(!e||typeof e=="string")return e;let t={...e};return MC.forEach(r=>{r in t&&delete t[r]}),t}var jC=({fullAPI:e,store:t,navigate:r,provider:n,storyId:o,viewMode:i,docsOptions:a={}})=>{var u,c,d,h,g,y,b,S,m,v,E,C,P;let l={storyId:zn,getData:(x,D)=>{let $=l.resolveStory(x,D);if(($==null?void 0:$.type)==="story"||($==null?void 0:$.type)==="docs")return $},isPrepared:(x,D)=>{let $=l.getData(x,D);return $?$.type==="story"?$.prepared:!0:!1},resolveStory:(x,D)=>{var T,w;let{refs:$,index:A}=t.getState();if(!(D&&!$[D]))return D?((w=(T=$==null?void 0:$[D])==null?void 0:T.index)==null?void 0:w[x])??void 0:A?A[x]:void 0},getCurrentStoryData:()=>{let{storyId:x,refId:D}=t.getState();return l.getData(x,D)},getIndex:()=>{let{internal_index:x}=t.getState();return x},getParameters:(x,D)=>{let{storyId:$,refId:A}=typeof x=="string"?{storyId:x,refId:void 0}:x,T=l.getData($,A);if(["story","docs"].includes(T==null?void 0:T.type)){let{parameters:w}=T;if(w)return D?w[D]:w}return null},getCurrentParameter:x=>{let{storyId:D,refId:$}=t.getState();return l.getParameters({storyId:D,refId:$},x)||void 0},jumpToComponent:x=>{let{filteredIndex:D,storyId:$,refs:A,refId:T}=t.getState();if(!l.getData($,T))return;let w=T?A[T].filteredIndex||{}:D;if(!w)return;let O=l.findSiblingStoryId($,w,x,!0);O&&l.selectStory(O,void 0,{ref:T})},jumpToStory:x=>{let{filteredIndex:D,storyId:$,refs:A,refId:T}=t.getState(),w=l.getData($,T);if(!w)return;let O=w.refId?A[w.refId].filteredIndex:D;if(!O)return;let I=l.findSiblingStoryId($,O,x,!1);I&&l.selectStory(I,void 0,{ref:T})},selectFirstStory:()=>{let{index:x}=t.getState();if(!x)return;let D=Object.keys(x).find($=>x[$].type==="story");if(D){l.selectStory(D);return}r("/")},selectStory:(x=void 0,D=void 0,$={})=>{let{ref:A}=$,{storyId:T,index:w,filteredIndex:O,refs:I,settings:R}=t.getState(),k=B=>(B==null?void 0:B.type)==="docs"||(B==null?void 0:B.type)==="story"?(t.setState({settings:{...R,lastTrackedStoryId:B.id}}),r(`/${B.type}/${B.refId?`${B.refId}_${B.id}`:B.id}`),!0):!1,L=T==null?void 0:T.split("--",2)[0],F=A?I[A].index:w,j=A?I[A].filteredIndex:O;if(!(!F||!j))if(D)if(!x)k(F[zn(L,D)]);else{let B=A?`${A}_${zn(x,D)}`:zn(x,D);if(F[B])k(F[B]);else{let N=F[yn(x)];if((N==null?void 0:N.type)==="component"){let U=N.children.find(M=>F[M].name===D);k(U?F[U]:void 0)}}}else{let B=x?F[x]||F[yn(x)]:F[L];if(!B)throw new Error(`Unknown id or title: '${x}'`);k(B)||k(l.findLeafEntry(j,B.id))}},findLeafEntry(x,D){let $=x[D];if($.type==="docs"||$.type==="story")return $;let A=$.children.find(T=>x[T])||$.children[0];return l.findLeafEntry(x,A)},findLeafStoryId(x,D){var $;return($=l.findLeafEntry(x,D))==null?void 0:$.id},findAllLeafStoryIds(x){let{index:D}=t.getState();if(!D)return[];let $=(A,T=[])=>{var O;let w=D[A];return w&&(w.type==="story"&&T.push(w.id),"children"in w&&((O=w.children)==null||O.forEach(I=>$(I,T)))),T};return $(x,[])},findSiblingStoryId(x,D,$,A){if(A){let O=N$(D),I=O.findIndex(R=>R.includes(x));return I===O.length-1&&$>0||I===0&&$<0?void 0:O[I+$]?O[I+$][0]:void 0}let T=B$(D),w=T.indexOf(x);if(!(w===T.length-1&&$>0)&&!(w===0&&$<0))return T[w+$]},updateStoryArgs:(x,D)=>{var T;let{id:$,refId:A}=x;(T=n.channel)==null||T.emit(PC,{storyId:$,updatedArgs:D,options:{target:A}})},resetStoryArgs:(x,D)=>{var T;let{id:$,refId:A}=x;(T=n.channel)==null||T.emit(bC,{storyId:$,argNames:D,options:{target:A}})},fetchIndex:async()=>{try{let x=await NC(BC);if(x.status!==200)throw new Error(await x.text());let D=await x.json();if(D.v<3){pC.warn(`Skipping story index with version v${D.v}, awaiting SET_STORIES.`);return}await l.setIndex(D)}catch(x){await t.setState({indexError:x})}},setIndex:async x=>{let{filteredIndex:D,index:$,filters:A}=t.getState(),T=Dd.getAll(),w=$o(x,{provider:n,docsOptions:a,filters:A,allStatuses:T}),O=$o(x,{provider:n,docsOptions:a,filters:{},allStatuses:T});await t.setState({internal_index:x,filteredIndex:vd(w,D),index:vd(O,$),indexError:void 0})},updateStory:async(x,D,$)=>{if($){let{id:A,index:T,filteredIndex:w}=$;T[x]={...T[x],...D},w[x]={...w[x],...D},await e.updateRef(A,{index:T,filteredIndex:w})}else{let{index:A,filteredIndex:T}=t.getState();A&&(A[x]={...A[x],...D}),T&&(T[x]={...T[x],...D}),(A||T)&&await t.setState({index:A,filteredIndex:T})}},updateDocs:async(x,D,$)=>{if($){let{id:A,index:T,filteredIndex:w}=$;T[x]={...T[x],...D},w[x]={...w[x],...D},await e.updateRef(A,{index:T,filteredIndex:w})}else{let{index:A,filteredIndex:T}=t.getState();A&&(A[x]={...A[x],...D}),T&&(T[x]={...T[x],...D}),(A||T)&&await t.setState({index:A,filteredIndex:T})}},setPreviewInitialized:async x=>{x?e.updateRef(x.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(x,D)=>{var T;await t.setState({filters:{...t.getState().filters,[x]:D}});let{internal_index:$}=t.getState();if(!$)return;await l.setIndex($);let A=await e.getRefs();Object.entries(A).forEach(([w,{internal_index:O,...I}])=>{e.setRef(w,{...I,storyIndex:O},!0)}),(T=n.channel)==null||T.emit(xC,{id:x})}};(u=n.channel)==null||u.on(RC,function({storyId:x,viewMode:D}){var A,T;let{sourceType:$}=Ge(this,e);if($==="local"){let w=t.getState(),O=w.path==="/"||w.viewMode==="story"||w.viewMode==="docs",I=w.viewMode&&w.storyId,R=w.viewMode!==D||w.storyId!==x,{type:k}=((A=w.index)==null?void 0:A[w.storyId])||{};O&&(I&&R&&!(k==="root"||k==="component"||k==="group")?(T=n.channel)==null||T.emit(SC,{storyId:w.storyId,viewMode:w.viewMode}):R&&r(`/${D}/${x}`))}}),(c=n.channel)==null||c.on(gC,function(){let{ref:x}=Ge(this,e);l.setPreviewInitialized(x)}),(d=n.channel)==null||d.on(DC,function(){let{sourceType:x}=Ge(this,e);if(x==="local"){let D=l.getCurrentParameter("options");D&&e.setOptions(Oi(D))}}),(h=n.channel)==null||h.on(AC,function({id:x,...D}){var T;let{ref:$,sourceType:A}=Ge(this,e);if(l.updateStory(x,{...D,prepared:!0},$),!$&&!t.getState().hasCalledSetOptions){let{options:w}=D.parameters;e.setOptions(Oi(w)),t.setState({hasCalledSetOptions:!0})}if(A==="local"){let{storyId:w,index:O,refId:I}=t.getState();if(!O)return;let R=Array.from(new Set([l.findSiblingStoryId(w,O,1,!0),l.findSiblingStoryId(w,O,-1,!0)])).filter(Boolean);(T=n.channel)==null||T.emit(yC,{ids:R,options:{target:I}})}}),(g=n.channel)==null||g.on(mC,function({id:x,...D}){let{ref:$}=Ge(this,e);l.updateStory(x,{...D,prepared:!0},$)}),(y=n.channel)==null||y.on(wC,function(x){let{ref:D}=Ge(this,e);if(D)e.setRef(D.id,{...D,storyIndex:x},!0);else{l.setIndex(x);let $=l.getCurrentParameter("options");e.setOptions(Oi($))}}),(b=n.channel)==null||b.on($C,function(x){let{ref:D}=Ge(this,e),$=x.v?O$(x):x.stories;if(D)e.setRef(D.id,{...D,setStoriesData:$},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(S=n.channel)==null||S.on(vC,function({kind:x,title:D=x,story:$,name:A=$,storyId:T,...w}){let{ref:O}=Ge(this,e);O?e.selectStory(T||D,A,{...w,ref:O.id}):e.selectStory(T||D,A,w)}),(m=n.channel)==null||m.on(CC,function({storyId:x,args:D}){let{ref:$}=Ge(this,e);l.updateStory(x,{args:D},$)}),(v=n.channel)==null||v.on(hC,function(x){let{ref:D}=Ge(this,e);l.setPreviewInitialized(D)}),(E=n.channel)==null||E.on(_C,function(x){let{ref:D}=Ge(this,e);l.setPreviewInitialized(D)}),(C=n.channel)==null||C.on(EC,()=>{var D,$;let x=n.getConfig();(D=x==null?void 0:x.sidebar)!=null&&D.filters&&t.setState({filters:{...t.getState().filters,...($=x==null?void 0:x.sidebar)==null?void 0:$.filters}})}),Dd.onAllStatusChange(async()=>{let{internal_index:x}=t.getState();if(!x)return;await l.setIndex(x);let D=await e.getRefs();Object.entries(D).forEach(([$,{internal_index:A,...T}])=>{e.setRef($,{...T,storyIndex:A},!0)})});let s=n.getConfig();return{api:l,state:{storyId:o,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:((P=s==null?void 0:s.sidebar)==null?void 0:P.filters)||{}},init:async()=>{var x;(x=n.channel)==null||x.on(TC,()=>l.fetchIndex()),await l.fetchIndex()}}},sg={};Le(sg,{init:()=>qC});const{GLOBALS_UPDATED:HC,NAVIGATE_URL:UC,SET_CURRENT_STORY:KC,STORY_ARGS_UPDATED:zC,UPDATE_QUERY_PARAMS:GC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:WC}=__STORYBOOK_MODULE_GLOBAL__;var{window:Fi}=WC,zt=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},Ii,VC=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:i,panel:a,nav:l,shortcuts:s,addonPanel:u,tabs:c,path:d,...h}=tw(e),g,y,b;zt(i)===!0?(g=0,y=0,b=0):zt(i)===!1&&(g=We.layout.navSize,y=We.layout.bottomPanelHeight,b=We.layout.rightPanelWidth),o||(zt(l)===!0&&(g=We.layout.navSize),zt(l)===!1&&(g=0)),zt(a)===!1&&(y=0,b=0);let S={navSize:g,bottomPanelHeight:y,rightPanelWidth:b,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:zt(c)},m={enableShortcuts:zt(s)},v=u||void 0,E=n,C=yt(Ii,h)?Ii:h;return Ii=C,{viewMode:r,layout:S,ui:m,selectedPanel:v,location:e,path:t,customQueryParams:C,storyId:E}},qC=e=>{var u,c,d,h;let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(g,y={},b={})=>{let S=Object.entries(y).filter(([,v])=>v).sort(([v],[E])=>v<E?-1:1).map(([v,E])=>`${v}=${E}`),m=[g,...S].join("&");return r(m,b)},a={getQueryParam(g){let{customQueryParams:y}=t.getState();return y?y[g]:void 0},getUrlState(){let{location:g,path:y,customQueryParams:b,storyId:S,url:m,viewMode:v}=t.getState();return{path:y,hash:g.hash??"",queryParams:b,storyId:S,url:m,viewMode:v}},setQueryParams(g){var m;let{customQueryParams:y}=t.getState(),b={},S={...y,...Object.entries(g).reduce((v,[E,C])=>(C!==null&&(v[E]=C),v),b)};yt(y,S)||(t.setState({customQueryParams:S}),(m=n.channel)==null||m.emit(GC,S))},applyQueryParams(g,y){let{path:b,hash:S="",queryParams:m}=a.getUrlState();i(`${b}${S}`,{...m,...g},y),a.setQueryParams(g)},navigateUrl(g,y){r(g,{plain:!0,...y})}},l=()=>{let{path:g,hash:y="",queryParams:b,viewMode:S}=a.getUrlState();if(S!=="story")return;let m=o.getCurrentStoryData();if((m==null?void 0:m.type)!=="story")return;let{args:v,initialArgs:E}=m,C=Ec(E,v);i(`${g}${y}`,{...b,args:C},{replace:!0}),a.setQueryParams({args:C})};(u=n.channel)==null||u.on(KC,()=>l());let s;return(c=n.channel)==null||c.on(zC,()=>{"requestIdleCallback"in Fi?(s&&Fi.cancelIdleCallback(s),s=Fi.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),(d=n.channel)==null||d.on(HC,({userGlobals:g,initialGlobals:y})=>{let{path:b,hash:S="",queryParams:m}=a.getUrlState(),v=Ec(y,g);i(`${b}${S}`,{...m,globals:v},{replace:!0}),a.setQueryParams({globals:v})}),(h=n.channel)==null||h.on(UC,(g,y)=>{a.navigateUrl(g,y)}),{api:a,state:VC(e)}},ug={};Le(ug,{init:()=>QC});var YC=At(_n(),1);const{global:Nl}=__STORYBOOK_MODULE_GLOBAL__;var XC="10.1.11",{VERSIONCHECK:JC}=Nl,Td=(0,YC.default)(1)(()=>{try{return{...JSON.parse(JC).data||{}}}catch{return{}}}),ZC=e=>e.includes("vue")?"vue":e,QC=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:XC},...Td()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:i,current:a}}=e.getState();return a&&ze.prerelease(a.version)&&i?o&&ze.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:l,ref:s="ui"})=>{var S,m;let{versions:u}=e.getState(),c=(S=u.latest)==null?void 0:S.version,d=(m=u.current)==null?void 0:m.version,h=(d==null?void 0:d.startsWith("0.0.0"))&&c||d,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&h)g+=`${ze.major(h)}.${ze.minor(h)}/`;else if(a&&h&&c){let v=ze.diff(c,h);v==="patch"||v===null||(g+=`${ze.major(h)}.${ze.minor(h)}/`)}let[y,b]=(i==null?void 0:i.split("#"))||[];if(y&&(g+=o?y:`${y}/`),l&&typeof Nl.STORYBOOK_RENDERER<"u"){let v=Nl.STORYBOOK_RENDERER;v&&(g+=`?renderer=${ZC(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),b&&(g+=`#${b}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=ze.prerelease(i.version)?`${ze.major(i.version)}.${ze.minor(i.version)}.${ze.patch(i.version)}`:i.version,l=ze.diff(a,o.version);return ze.gt(o.version,a)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=Td();await e.setState({versions:{...o,latest:i,next:a}})},state:r,api:n}},cg={};Le(cg,{init:()=>iD});const{REQUEST_WHATS_NEW_DATA:eD,RESULT_WHATS_NEW_DATA:tD,SET_WHATS_NEW_CACHE:rD,TOGGLE_WHATS_NEW_NOTIFICATIONS:nD}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:oD}=__STORYBOOK_MODULE_GLOBAL__;var _d="whats-new",aD=({color:e="currentColor",size:t=14})=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),iD=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let i={isWhatsNewUnread(){var s;return((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(_d))},toggleWhatsNewNotifications(){var s,u;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),(u=r.channel)==null||u.emit(nD,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){var s;return(s=r.channel)==null||s.emit(eD),new Promise(u=>{var c;return(c=r.channel)==null?void 0:c.once(tD,({data:d})=>u(d))})}function l(s){var u;(u=r.channel)==null||u.emit(rD,s)}return{init:async()=>{var c;if(oD.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await a();o(s);let u=e.getUrlState();!((u==null?void 0:u.path)==="/onboarding"||((c=u.queryParams)==null?void 0:c.onboarding)==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:_d,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:p.createElement(aD,null),onClear({dismissed:d}){d&&l({lastDismissedPost:s.url})}})},state:n,api:i}},an=At(g$(),1),lD=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),Ux(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?zx(n):r||n})};lD(an.default._);var dg="@storybook/manager/store";function Bl(e){return e.get(dg)||{}}function sD(e,t){return e.set(dg,t)}function uD(e,t){let r=Bl(e);return sD(e,{...r,...t})}var cD=class{constructor({setState:e,getState:t}){this.upstreamSetState=e,this.upstreamGetState=t}getInitialState(e){return{...e,...Bl(an.default.local),...Bl(an.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:i="none"}=o||{},a={},l={};typeof e=="function"?a=u=>(l=e(u),l):(a=e,l=a);let s=await new Promise(u=>{this.upstreamSetState(a,()=>{u(this.getState())})});if(i!=="none"){let u=i==="session"?an.default.session:an.default.local;await uD(u,l)}return n&&n(s),s}},{ActiveTabs:wL}=Qs,fg=m$({api:void 0,state:Ol({})}),dD=(...e)=>y$({},...e),fD=class extends f.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(b=>{"init"in b&&b.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:i,storyId:a,docsOptions:l,navigate:s}=e,u=new cD({getState:()=>this.state,setState:(b,S)=>(this.setState(b,()=>S(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:i,storyId:a,refId:n},d={docsOptions:l};this.state=u.getInitialState(Ol({...c,...d}));let h={navigate:s,store:u,provider:e.provider};this.modules=[tg,Gh,zh,Qs,Qh,rg,ng,ig,Vh,Wh,sg,ug,cg,eg].map(b=>b.init({...c,...d,...h,state:this.state,fullAPI:this.api}));let g=Ol(this.state,...this.modules.map(b=>b.state)),y=Object.assign(this.api,{navigate:s},...this.modules.map(b=>b.api));this.state=g,this.api=y}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!mt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return p.createElement(pD,{effect:this.initModules},p.createElement(fg.Provider,{value:t},p.createElement(gD,null,e)))}};fD.displayName="Manager";var pD=({children:e,effect:t})=>(p.useEffect(t,[]),e),hD=e=>e;function gD({filter:e=hD,children:t}){let r=f.useContext(fg),n=f.useRef(t),o=f.useRef(e);if(typeof n.current!="function")return p.createElement(f.Fragment,null,n.current);let i=o.current(r),a=f.useMemo(()=>[...Object.entries(i).reduce((l,s)=>l.concat(s),[])],[r.state]);return f.useMemo(()=>{let l=n.current;return p.createElement(l,{...i})},a)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:$L}=__STORYBOOK_MODULE_CHANNELS__;var mD={id:"storybook/test-provider",leader:!0,initialState:{}};function yD({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:i=>e.subscribe("run-all",i),onClearAll:i=>e.subscribe("clear-all",i)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:i=>e.subscribe("settings-changed",i),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=i=>{let a=()=>e.getState()[i]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[i]:s}))})};return{...r,testProviderId:i,getState:a,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}yD({universalTestProviderStore:As.create({...mD,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:lg});var bD={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},vD={id:"storybook/checklist",initialState:bD};As.create({...vD,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var ki={exports:{}},Li={};/**
|
|
53
|
+
`});let P=s.versions&&Object.keys(s.versions).length?s.versions:y.versions;await i.setRef(u,{id:u,url:m.url,...y,...P?{versions:P}:{},type:y.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},h=!1)=>{if(r)return;let g,y,b,{filters:S}=e.getState(),{storyMapper:m=Jh}=t.getConfig(),v=i.getRefs()[s];(u||c)&&(g=c?F$(H$(c,v,{storyMapper:m})):u,b=$o(u,{provider:t,docsOptions:n,filters:S,allStatuses:{}}),y=$o(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),y&&(y=Sd(y,v)),b&&(b=Sd(b,v)),await i.updateRef(s,{...v,...d,index:y,filteredIndex:b,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,...u};let h=Object.keys(l).reduce((g,y)=>(g[y]=d[y],g),{});await e.setState({refs:h})}},a=!r&&qh.REFS||{},l=a;return o&&new Promise(async s=>{for(let u of Object.values(a))await i.checkRef({...u,stories:{}});s(void 0)}),{api:i,state:{refs:l}}},Ge=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=Xh(r,n),l;(n||i==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let s={source:r,sourceType:i,sourceLocation:a,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return s;default:return A$.warn(`Received a ${o} frame that was not configured as a ref`),null}},K$=({store:e,fullAPI:t,provider:r})=>{var a,l;let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(s){var u;(u=r.channel)==null||u.emit(_$,{globals:s,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:s,storyGlobals:u,userGlobals:c})=>{let{globals:d,userGlobals:h,storyGlobals:g}=e.getState();yt(s,d)||e.setState({globals:s}),yt(c,h)||e.setState({userGlobals:c}),yt(u,g)||e.setState({storyGlobals:u})};return(a=r.channel)==null||a.on(D$,function({globals:s,storyGlobals:u,userGlobals:c}){let{ref:d}=Ge(this,t);d?bd.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:s,storyGlobals:u,userGlobals:c})}),(l=r.channel)==null||l.on(T$,function({globals:s,globalTypes:u}){var h;let{ref:c}=Ge(this,t),d=(h=e.getState())==null?void 0:h.globals;c?Object.keys(s).length>0&&bd.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:s,userGlobals:s,globalTypes:u}),d&&Object.keys(d).length!==0&&!yt(s,d)&&n.updateGlobals(d)}),{api:n,state:o}},Qs={};Le(Qs,{ActiveTabs:()=>Zh,defaultLayoutState:()=>We,focusableUIElements:()=>po,init:()=>W$});const{SET_CONFIG:z$}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:G$}=__STORYBOOK_MODULE_GLOBAL__;var{document:wd}=G$,Di=e=>typeof e=="function",Zh={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},We={ui:{enableShortcuts:!0},layout:{initialActive:Zh.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:kv()},po={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},Il=e=>e.layout.navSize>0,kl=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},$d=e=>!Il(e)&&!kl(e),Yn=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),W$=({store:e,provider:t,singleStory:r})=>{var i;let n={toggleFullscreen(a){return e.setState(l=>{let s=$d(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Yn(l.layout)}}:{layout:{...l.layout,navSize:l.singleStory?0:l.layout.recentVisibleSizes.navSize,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(l=>{let s=kl(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...l.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Yn(l.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(l=>{let s=a||(l.layout.panelPosition==="right"?"bottom":"right");return{layout:{...l.layout,panelPosition:s,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(l=>{if(l.singleStory)return{layout:l.layout};let s=Il(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,navSize:l.layout.recentVisibleSizes.navSize}}:{layout:{...l.layout,navSize:0,recentVisibleSizes:Yn(l.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(l=>{let s=typeof a<"u"?a:!l.layout.showToolbar;return{layout:{...l.layout,showToolbar:s}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:l,rightPanelWidth:s}){return e.setState(u=>{let c={...u.layout,navSize:a??u.layout.navSize,bottomPanelHeight:l??u.layout.bottomPanelHeight,rightPanelWidth:s??u.layout.rightPanelWidth};return{layout:{...c,recentVisibleSizes:Yn(c)}}},{persistence:"session"})},focusOnUIElement(a,l){if(!a)return;let s=Date.now(),u=500,c=50,d=()=>{var y;let g=wd.getElementById(a);return!g||(g.focus(),g!==wd.activeElement)?!1:(l&&((y=g.select)==null||y.call(g)),!0)};if(d())return;let h=setInterval(()=>{if(Date.now()-s>=u){clearInterval(h);return}d()&&clearInterval(h)},c)},getInitialOptions(){let{theme:a,selectedPanel:l,layoutCustomisations:s,...u}=t.getConfig();return{...We,layout:{...Ta(We.layout,Xr(u,Object.keys(We.layout))),...r&&{navSize:0}},layoutCustomisations:{...We.layoutCustomisations,...s??{}},ui:Ta(We.ui,Xr(u,Object.keys(We.ui))),selectedPanel:l||We.selectedPanel,theme:a||We.theme}},getIsFullscreen(){return $d(e.getState())},getIsPanelShown(){return kl(e.getState())},getIsNavShown(){return Il(e.getState())},getShowToolbarWithCustomisations(a){let l=e.getState();return Di(l.layoutCustomisations.showToolbar)?l.layoutCustomisations.showToolbar(l,a)??a:a},getShowPanelWithCustomisations(a){let l=e.getState();return Di(l.layoutCustomisations.showPanel)?l.layoutCustomisations.showPanel(l,a)??a:a},getNavSizeWithCustomisations(a){let l=e.getState();if(Di(l.layoutCustomisations.showSidebar)){let s=l.layoutCustomisations.showSidebar(l,a!==0);if(a===0&&s===!0)return l.layout.recentVisibleSizes.navSize;if(a!==0&&s===!1)return 0}return a},setOptions:a=>{let{layout:l,ui:s,selectedPanel:u,theme:c}=e.getState();if(!a)return;let d={...l,...a.layout||{},...Xr(a,Object.keys(l)),...r&&{navSize:0}},h={...s,...a.ui,...Ta(a.ui||{},Xr(a,Object.keys(s)))},g={...c,...a.theme},y={};mt(s,h)||(y.ui=h),mt(l,d)||(y.layout=d),a.selectedPanel&&!mt(u,a.selectedPanel)&&(y.selectedPanel=a.selectedPanel),Object.keys(y).length&&e.setState(y,{persistence:"permanent"}),mt(c,g)||e.setState({theme:g})}},o=Xr(e.getState(),["layout","selectedPanel"]);return(i=t.channel)==null||i.on(z$,()=>{n.setOptions(wr(n.getInitialOptions(),o))}),{api:n,state:wr(n.getInitialOptions(),o)}},Qh={};Le(Qh,{init:()=>V$});var V$=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=bc(r,i=>i.id===t.id);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=bc(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),eg={};Le(eg,{init:()=>Y$});const{OPEN_IN_EDITOR_REQUEST:q$,OPEN_IN_EDITOR_RESPONSE:Ti}=__STORYBOOK_MODULE_CORE_EVENTS__;var Y$=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{var s,u;let{file:o,line:i,column:a}=r,l=c=>{var d;c.file===o&&c.line===i&&c.column===a&&((d=e.channel)==null||d.off(Ti,l),n(c))};(s=e.channel)==null||s.on(Ti,l),(u=e.channel)==null||u.emit(q$,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await Mt(async()=>{const{color:o}=await import("./index-CLFx8Kta.js").then(i=>i.n);return{color:o}},__vite__mapDeps([0,1,2]),import.meta.url);(n=e.channel)==null||n.on(Ti,o=>{o.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:o.error||"Check the Storybook process on the command line for more details."},icon:p.createElement(k1,{color:r.negative}),duration:8e3})})}}),tg={};Le(tg,{init:()=>X$});var X$=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),rg={};Le(rg,{init:()=>J$});var J$=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),ng={};Le(ng,{controlOrMetaKey:()=>br,defaultShortcuts:()=>vr,init:()=>fC,isMacLike:()=>ag,keys:()=>Ll});var Z$=At(h$(),1);const{FORCE_REMOUNT:Q$,PREVIEW_KEYDOWN:eC,STORIES_COLLAPSE_ALL:tC,STORIES_EXPAND_ALL:rC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:og}=__STORYBOOK_MODULE_GLOBAL__,{global:nC}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:_i}=nC,oC=()=>_i&&_i.platform?!!_i.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,aC=()=>oC()?"⌥":"alt",iC=e=>{var i;if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=(i=e.code)==null?void 0:i.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),l=o;l&&l.length===1&&l!==a?t.push([a,l]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},lC=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),sC=e=>e==="alt"?aC():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e==null?void 0:e.toUpperCase(),uC=e=>e.map(sC).join(" "),cC=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:Ai,document:Cd}=og,ag=()=>Ai&&Ai.platform?!!Ai.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,br=()=>ag()?"meta":"control";function Ll(e){return Object.keys(e)}var vr=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[br(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[br(),"shift",","],aboutPage:[br(),","],escape:["escape"],collapseAll:[br(),"shift","ArrowUp"],expandAll:[br(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],copyStoryLink:["alt","shift","L"]}),Ri={};function dC(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var fC=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...vr,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Ri},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{a[l]=s}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{a[l]=s}),a},async setShortcuts(a){return await e.setState({shortcuts:a},{persistence:"permanent"}),a},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,l){let s=n.getShortcutKeys();return await n.setShortcuts({...s,[a]:l}),l},async setAddonShortcut(a,l){let s=n.getShortcutKeys();return await n.setShortcuts({...s,[`${a}-${l.actionName}`]:l.defaultShortcut}),Ri[`${a}-${l.actionName}`]=l,l},async restoreDefaultShortcut(a){let l=n.getDefaultShortcuts()[a];return n.setShortcut(a,l)},handleKeydownEvent(a){let l=iC(a),s=n.getShortcutKeys(),u=Ll(s).find(c=>lC(l,s[c]));u&&n.handleShortcutFeature(u,a)},handleShortcutFeature(a,l){let{ui:{enableShortcuts:s},storyId:u}=e.getState();if(s)switch(l!=null&&l.preventDefault&&l.preventDefault(),a){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(po.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(po.storySearchField,!0)},0);break}case"focusIframe":{let c=Cd.getElementById("storybook-preview-iframe");if(c)try{c.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(po.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{t.togglePanel();break}case"toggleNav":{t.toggleNav();break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(tC);break}case"expandAll":{t.emit(rC);break}case"remount":{t.emit(Q$,{storyId:u});break}case"openInEditor":{og.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"copyStoryLink":{(0,Z$.default)(window.location.href);break}default:Ri[a].action();break}}},{shortcuts:o=vr}=e.getState(),i={shortcuts:Ll(vr).reduce((a,l)=>({...a,[l]:o[l]||vr[l]}),vr)};return{api:n,state:i,init:()=>{var a;Cd.addEventListener("keydown",l=>{dC(l)||n.handleKeydownEvent(l)}),(a=r.channel)==null||a.on(eC,l=>{n.handleKeydownEvent(l.event)})}}},ig={};Le(ig,{init:()=>jC});const{logger:pC}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:hC,CURRENT_STORY_WAS_SET:gC,DOCS_PREPARED:mC,PRELOAD_ENTRIES:yC,RESET_STORY_ARGS:bC,SELECT_STORY:vC,SET_CONFIG:EC,SET_CURRENT_STORY:SC,SET_FILTER:xC,SET_INDEX:wC,SET_STORIES:$C,STORY_ARGS_UPDATED:CC,STORY_CHANGED:DC,STORY_INDEX_INVALIDATED:TC,STORY_MISSING:_C,STORY_PREPARED:AC,STORY_SPECIFIED:RC,UPDATE_STORY_ARGS:PC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:OC}=__STORYBOOK_MODULE_GLOBAL__;At(qx(),1);var FC=class extends js{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},IC={id:"storybook/status",leader:!0,initialState:{}},Pi={SELECT:"select"};function kC({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{let l={...a};for(let s of i){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(i){return e.onStateChange((a,l)=>{i(a,l)})},onSelect(i){return e.subscribe(Pi.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:Pi.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let l={...a};for(let s of i)delete l[s];return l})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(l=>{let s={...l};for(let u of a){let{storyId:c}=u;if(u.typeId!==i)switch(r){case"server":throw new FC({status:u,typeId:i});case"manager":throw new Gx({status:u,typeId:i});case"preview":default:throw new Wx({status:u,typeId:i})}s[c]={...s[c]??{},[i]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe(Pi.SELECT,l=>{l.payload.some(s=>s.typeId===i)&&a(l.payload)})},unset(a){e.setState(l=>{var u;let s={...l};for(let c in s)if((u=s[c])!=null&&u[i]&&(!a||a!=null&&a.includes(c))){let{[i]:d,...h}=s[c];s[c]=h}return s})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var lg=(e,t)=>{let r=f.useRef(t?t(e.getState()):e.getState()),n=f.useCallback(i=>e.onStateChange((a,l)=>{if(!t){r.current=a,i();return}let s=t(a),u=t(l);!mt(s,u)&&(r.current=s,i())}),[e,t]),o=f.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return mt(a,r.current)||(r.current=a),r.current},[e,t]);return[f.useSyncExternalStore(n,o),e.setState]},LC=kC({universalStatusStore:As.create({...IC,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:lg,environment:"manager"}),{fullStatusStore:Dd}=LC,{fetch:NC}=OC,BC="./index.json",MC=["enableShortcuts","theme","showRoots"];function Oi(e){if(!e||typeof e=="string")return e;let t={...e};return MC.forEach(r=>{r in t&&delete t[r]}),t}var jC=({fullAPI:e,store:t,navigate:r,provider:n,storyId:o,viewMode:i,docsOptions:a={}})=>{var u,c,d,h,g,y,b,S,m,v,E,C,P;let l={storyId:zn,getData:(x,D)=>{let $=l.resolveStory(x,D);if(($==null?void 0:$.type)==="story"||($==null?void 0:$.type)==="docs")return $},isPrepared:(x,D)=>{let $=l.getData(x,D);return $?$.type==="story"?$.prepared:!0:!1},resolveStory:(x,D)=>{var T,w;let{refs:$,index:A}=t.getState();if(!(D&&!$[D]))return D?((w=(T=$==null?void 0:$[D])==null?void 0:T.index)==null?void 0:w[x])??void 0:A?A[x]:void 0},getCurrentStoryData:()=>{let{storyId:x,refId:D}=t.getState();return l.getData(x,D)},getIndex:()=>{let{internal_index:x}=t.getState();return x},getParameters:(x,D)=>{let{storyId:$,refId:A}=typeof x=="string"?{storyId:x,refId:void 0}:x,T=l.getData($,A);if(["story","docs"].includes(T==null?void 0:T.type)){let{parameters:w}=T;if(w)return D?w[D]:w}return null},getCurrentParameter:x=>{let{storyId:D,refId:$}=t.getState();return l.getParameters({storyId:D,refId:$},x)||void 0},jumpToComponent:x=>{let{filteredIndex:D,storyId:$,refs:A,refId:T}=t.getState();if(!l.getData($,T))return;let w=T?A[T].filteredIndex||{}:D;if(!w)return;let O=l.findSiblingStoryId($,w,x,!0);O&&l.selectStory(O,void 0,{ref:T})},jumpToStory:x=>{let{filteredIndex:D,storyId:$,refs:A,refId:T}=t.getState(),w=l.getData($,T);if(!w)return;let O=w.refId?A[w.refId].filteredIndex:D;if(!O)return;let I=l.findSiblingStoryId($,O,x,!1);I&&l.selectStory(I,void 0,{ref:T})},selectFirstStory:()=>{let{index:x}=t.getState();if(!x)return;let D=Object.keys(x).find($=>x[$].type==="story");if(D){l.selectStory(D);return}r("/")},selectStory:(x=void 0,D=void 0,$={})=>{let{ref:A}=$,{storyId:T,index:w,filteredIndex:O,refs:I,settings:R}=t.getState(),k=B=>(B==null?void 0:B.type)==="docs"||(B==null?void 0:B.type)==="story"?(t.setState({settings:{...R,lastTrackedStoryId:B.id}}),r(`/${B.type}/${B.refId?`${B.refId}_${B.id}`:B.id}`),!0):!1,L=T==null?void 0:T.split("--",2)[0],F=A?I[A].index:w,j=A?I[A].filteredIndex:O;if(!(!F||!j))if(D)if(!x)k(F[zn(L,D)]);else{let B=A?`${A}_${zn(x,D)}`:zn(x,D);if(F[B])k(F[B]);else{let N=F[yn(x)];if((N==null?void 0:N.type)==="component"){let U=N.children.find(M=>F[M].name===D);k(U?F[U]:void 0)}}}else{let B=x?F[x]||F[yn(x)]:F[L];if(!B)throw new Error(`Unknown id or title: '${x}'`);k(B)||k(l.findLeafEntry(j,B.id))}},findLeafEntry(x,D){let $=x[D];if($.type==="docs"||$.type==="story")return $;let A=$.children.find(T=>x[T])||$.children[0];return l.findLeafEntry(x,A)},findLeafStoryId(x,D){var $;return($=l.findLeafEntry(x,D))==null?void 0:$.id},findAllLeafStoryIds(x){let{index:D}=t.getState();if(!D)return[];let $=(A,T=[])=>{var O;let w=D[A];return w&&(w.type==="story"&&T.push(w.id),"children"in w&&((O=w.children)==null||O.forEach(I=>$(I,T)))),T};return $(x,[])},findSiblingStoryId(x,D,$,A){if(A){let O=N$(D),I=O.findIndex(R=>R.includes(x));return I===O.length-1&&$>0||I===0&&$<0?void 0:O[I+$]?O[I+$][0]:void 0}let T=B$(D),w=T.indexOf(x);if(!(w===T.length-1&&$>0)&&!(w===0&&$<0))return T[w+$]},updateStoryArgs:(x,D)=>{var T;let{id:$,refId:A}=x;(T=n.channel)==null||T.emit(PC,{storyId:$,updatedArgs:D,options:{target:A}})},resetStoryArgs:(x,D)=>{var T;let{id:$,refId:A}=x;(T=n.channel)==null||T.emit(bC,{storyId:$,argNames:D,options:{target:A}})},fetchIndex:async()=>{try{let x=await NC(BC);if(x.status!==200)throw new Error(await x.text());let D=await x.json();if(D.v<3){pC.warn(`Skipping story index with version v${D.v}, awaiting SET_STORIES.`);return}await l.setIndex(D)}catch(x){await t.setState({indexError:x})}},setIndex:async x=>{let{filteredIndex:D,index:$,filters:A}=t.getState(),T=Dd.getAll(),w=$o(x,{provider:n,docsOptions:a,filters:A,allStatuses:T}),O=$o(x,{provider:n,docsOptions:a,filters:{},allStatuses:T});await t.setState({internal_index:x,filteredIndex:vd(w,D),index:vd(O,$),indexError:void 0})},updateStory:async(x,D,$)=>{if($){let{id:A,index:T,filteredIndex:w}=$;T[x]={...T[x],...D},w[x]={...w[x],...D},await e.updateRef(A,{index:T,filteredIndex:w})}else{let{index:A,filteredIndex:T}=t.getState();A&&(A[x]={...A[x],...D}),T&&(T[x]={...T[x],...D}),(A||T)&&await t.setState({index:A,filteredIndex:T})}},updateDocs:async(x,D,$)=>{if($){let{id:A,index:T,filteredIndex:w}=$;T[x]={...T[x],...D},w[x]={...w[x],...D},await e.updateRef(A,{index:T,filteredIndex:w})}else{let{index:A,filteredIndex:T}=t.getState();A&&(A[x]={...A[x],...D}),T&&(T[x]={...T[x],...D}),(A||T)&&await t.setState({index:A,filteredIndex:T})}},setPreviewInitialized:async x=>{x?e.updateRef(x.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(x,D)=>{var T;await t.setState({filters:{...t.getState().filters,[x]:D}});let{internal_index:$}=t.getState();if(!$)return;await l.setIndex($);let A=await e.getRefs();Object.entries(A).forEach(([w,{internal_index:O,...I}])=>{e.setRef(w,{...I,storyIndex:O},!0)}),(T=n.channel)==null||T.emit(xC,{id:x})}};(u=n.channel)==null||u.on(RC,function({storyId:x,viewMode:D}){var A,T;let{sourceType:$}=Ge(this,e);if($==="local"){let w=t.getState(),O=w.path==="/"||w.viewMode==="story"||w.viewMode==="docs",I=w.viewMode&&w.storyId,R=w.viewMode!==D||w.storyId!==x,{type:k}=((A=w.index)==null?void 0:A[w.storyId])||{};O&&(I&&R&&!(k==="root"||k==="component"||k==="group")?(T=n.channel)==null||T.emit(SC,{storyId:w.storyId,viewMode:w.viewMode}):R&&r(`/${D}/${x}`))}}),(c=n.channel)==null||c.on(gC,function(){let{ref:x}=Ge(this,e);l.setPreviewInitialized(x)}),(d=n.channel)==null||d.on(DC,function(){let{sourceType:x}=Ge(this,e);if(x==="local"){let D=l.getCurrentParameter("options");D&&e.setOptions(Oi(D))}}),(h=n.channel)==null||h.on(AC,function({id:x,...D}){var T;let{ref:$,sourceType:A}=Ge(this,e);if(l.updateStory(x,{...D,prepared:!0},$),!$&&!t.getState().hasCalledSetOptions){let{options:w}=D.parameters;e.setOptions(Oi(w)),t.setState({hasCalledSetOptions:!0})}if(A==="local"){let{storyId:w,index:O,refId:I}=t.getState();if(!O)return;let R=Array.from(new Set([l.findSiblingStoryId(w,O,1,!0),l.findSiblingStoryId(w,O,-1,!0)])).filter(Boolean);(T=n.channel)==null||T.emit(yC,{ids:R,options:{target:I}})}}),(g=n.channel)==null||g.on(mC,function({id:x,...D}){let{ref:$}=Ge(this,e);l.updateStory(x,{...D,prepared:!0},$)}),(y=n.channel)==null||y.on(wC,function(x){let{ref:D}=Ge(this,e);if(D)e.setRef(D.id,{...D,storyIndex:x},!0);else{l.setIndex(x);let $=l.getCurrentParameter("options");e.setOptions(Oi($))}}),(b=n.channel)==null||b.on($C,function(x){let{ref:D}=Ge(this,e),$=x.v?O$(x):x.stories;if(D)e.setRef(D.id,{...D,setStoriesData:$},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(S=n.channel)==null||S.on(vC,function({kind:x,title:D=x,story:$,name:A=$,storyId:T,...w}){let{ref:O}=Ge(this,e);O?e.selectStory(T||D,A,{...w,ref:O.id}):e.selectStory(T||D,A,w)}),(m=n.channel)==null||m.on(CC,function({storyId:x,args:D}){let{ref:$}=Ge(this,e);l.updateStory(x,{args:D},$)}),(v=n.channel)==null||v.on(hC,function(x){let{ref:D}=Ge(this,e);l.setPreviewInitialized(D)}),(E=n.channel)==null||E.on(_C,function(x){let{ref:D}=Ge(this,e);l.setPreviewInitialized(D)}),(C=n.channel)==null||C.on(EC,()=>{var D,$;let x=n.getConfig();(D=x==null?void 0:x.sidebar)!=null&&D.filters&&t.setState({filters:{...t.getState().filters,...($=x==null?void 0:x.sidebar)==null?void 0:$.filters}})}),Dd.onAllStatusChange(async()=>{let{internal_index:x}=t.getState();if(!x)return;await l.setIndex(x);let D=await e.getRefs();Object.entries(D).forEach(([$,{internal_index:A,...T}])=>{e.setRef($,{...T,storyIndex:A},!0)})});let s=n.getConfig();return{api:l,state:{storyId:o,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:((P=s==null?void 0:s.sidebar)==null?void 0:P.filters)||{}},init:async()=>{var x;(x=n.channel)==null||x.on(TC,()=>l.fetchIndex()),await l.fetchIndex()}}},sg={};Le(sg,{init:()=>qC});const{GLOBALS_UPDATED:HC,NAVIGATE_URL:UC,SET_CURRENT_STORY:KC,STORY_ARGS_UPDATED:zC,UPDATE_QUERY_PARAMS:GC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:WC}=__STORYBOOK_MODULE_GLOBAL__;var{window:Fi}=WC,zt=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},Ii,VC=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:i,panel:a,nav:l,shortcuts:s,addonPanel:u,tabs:c,path:d,...h}=tw(e),g,y,b;zt(i)===!0?(g=0,y=0,b=0):zt(i)===!1&&(g=We.layout.navSize,y=We.layout.bottomPanelHeight,b=We.layout.rightPanelWidth),o||(zt(l)===!0&&(g=We.layout.navSize),zt(l)===!1&&(g=0)),zt(a)===!1&&(y=0,b=0);let S={navSize:g,bottomPanelHeight:y,rightPanelWidth:b,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:zt(c)},m={enableShortcuts:zt(s)},v=u||void 0,E=n,C=yt(Ii,h)?Ii:h;return Ii=C,{viewMode:r,layout:S,ui:m,selectedPanel:v,location:e,path:t,customQueryParams:C,storyId:E}},qC=e=>{var u,c,d,h;let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(g,y={},b={})=>{let S=Object.entries(y).filter(([,v])=>v).sort(([v],[E])=>v<E?-1:1).map(([v,E])=>`${v}=${E}`),m=[g,...S].join("&");return r(m,b)},a={getQueryParam(g){let{customQueryParams:y}=t.getState();return y?y[g]:void 0},getUrlState(){let{location:g,path:y,customQueryParams:b,storyId:S,url:m,viewMode:v}=t.getState();return{path:y,hash:g.hash??"",queryParams:b,storyId:S,url:m,viewMode:v}},setQueryParams(g){var m;let{customQueryParams:y}=t.getState(),b={},S={...y,...Object.entries(g).reduce((v,[E,C])=>(C!==null&&(v[E]=C),v),b)};yt(y,S)||(t.setState({customQueryParams:S}),(m=n.channel)==null||m.emit(GC,S))},applyQueryParams(g,y){let{path:b,hash:S="",queryParams:m}=a.getUrlState();i(`${b}${S}`,{...m,...g},y),a.setQueryParams(g)},navigateUrl(g,y){r(g,{plain:!0,...y})}},l=()=>{let{path:g,hash:y="",queryParams:b,viewMode:S}=a.getUrlState();if(S!=="story")return;let m=o.getCurrentStoryData();if((m==null?void 0:m.type)!=="story")return;let{args:v,initialArgs:E}=m,C=Ec(E,v);i(`${g}${y}`,{...b,args:C},{replace:!0}),a.setQueryParams({args:C})};(u=n.channel)==null||u.on(KC,()=>l());let s;return(c=n.channel)==null||c.on(zC,()=>{"requestIdleCallback"in Fi?(s&&Fi.cancelIdleCallback(s),s=Fi.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),(d=n.channel)==null||d.on(HC,({userGlobals:g,initialGlobals:y})=>{let{path:b,hash:S="",queryParams:m}=a.getUrlState(),v=Ec(y,g);i(`${b}${S}`,{...m,globals:v},{replace:!0}),a.setQueryParams({globals:v})}),(h=n.channel)==null||h.on(UC,(g,y)=>{a.navigateUrl(g,y)}),{api:a,state:VC(e)}},ug={};Le(ug,{init:()=>QC});var YC=At(_n(),1);const{global:Nl}=__STORYBOOK_MODULE_GLOBAL__;var XC="10.1.11",{VERSIONCHECK:JC}=Nl,Td=(0,YC.default)(1)(()=>{try{return{...JSON.parse(JC).data||{}}}catch{return{}}}),ZC=e=>e.includes("vue")?"vue":e,QC=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:XC},...Td()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:i,current:a}}=e.getState();return a&&ze.prerelease(a.version)&&i?o&&ze.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:l,ref:s="ui"})=>{var S,m;let{versions:u}=e.getState(),c=(S=u.latest)==null?void 0:S.version,d=(m=u.current)==null?void 0:m.version,h=(d==null?void 0:d.startsWith("0.0.0"))&&c||d,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&h)g+=`${ze.major(h)}.${ze.minor(h)}/`;else if(a&&h&&c){let v=ze.diff(c,h);v==="patch"||v===null||(g+=`${ze.major(h)}.${ze.minor(h)}/`)}let[y,b]=(i==null?void 0:i.split("#"))||[];if(y&&(g+=o?y:`${y}/`),l&&typeof Nl.STORYBOOK_RENDERER<"u"){let v=Nl.STORYBOOK_RENDERER;v&&(g+=`?renderer=${ZC(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),b&&(g+=`#${b}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=ze.prerelease(i.version)?`${ze.major(i.version)}.${ze.minor(i.version)}.${ze.patch(i.version)}`:i.version,l=ze.diff(a,o.version);return ze.gt(o.version,a)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=Td();await e.setState({versions:{...o,latest:i,next:a}})},state:r,api:n}},cg={};Le(cg,{init:()=>iD});const{REQUEST_WHATS_NEW_DATA:eD,RESULT_WHATS_NEW_DATA:tD,SET_WHATS_NEW_CACHE:rD,TOGGLE_WHATS_NEW_NOTIFICATIONS:nD}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:oD}=__STORYBOOK_MODULE_GLOBAL__;var _d="whats-new",aD=({color:e="currentColor",size:t=14})=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),iD=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let i={isWhatsNewUnread(){var s;return((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(_d))},toggleWhatsNewNotifications(){var s,u;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),(u=r.channel)==null||u.emit(nD,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){var s;return(s=r.channel)==null||s.emit(eD),new Promise(u=>{var c;return(c=r.channel)==null?void 0:c.once(tD,({data:d})=>u(d))})}function l(s){var u;(u=r.channel)==null||u.emit(rD,s)}return{init:async()=>{var c;if(oD.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await a();o(s);let u=e.getUrlState();!((u==null?void 0:u.path)==="/onboarding"||((c=u.queryParams)==null?void 0:c.onboarding)==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:_d,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:p.createElement(aD,null),onClear({dismissed:d}){d&&l({lastDismissedPost:s.url})}})},state:n,api:i}},an=At(g$(),1),lD=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),Ux(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?zx(n):r||n})};lD(an.default._);var dg="@storybook/manager/store";function Bl(e){return e.get(dg)||{}}function sD(e,t){return e.set(dg,t)}function uD(e,t){let r=Bl(e);return sD(e,{...r,...t})}var cD=class{constructor({setState:e,getState:t}){this.upstreamSetState=e,this.upstreamGetState=t}getInitialState(e){return{...e,...Bl(an.default.local),...Bl(an.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:i="none"}=o||{},a={},l={};typeof e=="function"?a=u=>(l=e(u),l):(a=e,l=a);let s=await new Promise(u=>{this.upstreamSetState(a,()=>{u(this.getState())})});if(i!=="none"){let u=i==="session"?an.default.session:an.default.local;await uD(u,l)}return n&&n(s),s}},{ActiveTabs:wL}=Qs,fg=m$({api:void 0,state:Ol({})}),dD=(...e)=>y$({},...e),fD=class extends f.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(b=>{"init"in b&&b.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:i,storyId:a,docsOptions:l,navigate:s}=e,u=new cD({getState:()=>this.state,setState:(b,S)=>(this.setState(b,()=>S(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:i,storyId:a,refId:n},d={docsOptions:l};this.state=u.getInitialState(Ol({...c,...d}));let h={navigate:s,store:u,provider:e.provider};this.modules=[tg,Gh,zh,Qs,Qh,rg,ng,ig,Vh,Wh,sg,ug,cg,eg].map(b=>b.init({...c,...d,...h,state:this.state,fullAPI:this.api}));let g=Ol(this.state,...this.modules.map(b=>b.state)),y=Object.assign(this.api,{navigate:s},...this.modules.map(b=>b.api));this.state=g,this.api=y}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!mt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return p.createElement(pD,{effect:this.initModules},p.createElement(fg.Provider,{value:t},p.createElement(gD,null,e)))}};fD.displayName="Manager";var pD=({children:e,effect:t})=>(p.useEffect(t,[]),e),hD=e=>e;function gD({filter:e=hD,children:t}){let r=f.useContext(fg),n=f.useRef(t),o=f.useRef(e);if(typeof n.current!="function")return p.createElement(f.Fragment,null,n.current);let i=o.current(r),a=f.useMemo(()=>[...Object.entries(i).reduce((l,s)=>l.concat(s),[])],[r.state]);return f.useMemo(()=>{let l=n.current;return p.createElement(l,{...i})},a)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:$L}=__STORYBOOK_MODULE_CHANNELS__;var mD={id:"storybook/test-provider",leader:!0,initialState:{}};function yD({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:i=>e.subscribe("run-all",i),onClearAll:i=>e.subscribe("clear-all",i)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:i=>e.subscribe("settings-changed",i),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=i=>{let a=()=>e.getState()[i]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[i]:s}))})};return{...r,testProviderId:i,getState:a,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}yD({universalTestProviderStore:As.create({...mD,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:lg});var bD={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},vD={id:"storybook/checklist",initialState:bD};As.create({...vD,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var ki={exports:{}},Li={};/**
|
|
54
54
|
* @license React
|
|
55
55
|
* use-sync-external-store-shim.production.js
|
|
56
56
|
*
|
|
@@ -58,7 +58,7 @@ More info: ${i}
|
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the MIT license found in the
|
|
60
60
|
* LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/var Ad;function ED(){if(Ad)return Li;Ad=1;var e=Rv();function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(d,h){var g=h(),y=n({inst:{value:g,getSnapshot:h}}),b=y[0].inst,S=y[1];return i(function(){b.value=g,b.getSnapshot=h,s(b)&&S({inst:b})},[d,g,h]),o(function(){return s(b)&&S({inst:b}),d(function(){s(b)&&S({inst:b})})},[d]),a(g),g}function s(d){var h=d.getSnapshot;d=d.value;try{var g=h();return!r(d,g)}catch{return!0}}function u(d,h){return h()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Li.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Li}var Rd;function SD(){return Rd||(Rd=1,ki.exports=ED()),ki.exports}var xD=SD(),de=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},zr=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),Rt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),pe=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),dr={margin:"16px 0"},eu=_.div(pe),wD=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return p.createElement("a",{href:r,target:n,...t})},pg=_(wD)(pe,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),hg=_.blockquote(pe,dr,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),or=[],Rr=null,$D=f.lazy(async()=>{let{SyntaxHighlighter:e}=await Mt(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-IQDEPFLK-CL1ROTuv.js");return{SyntaxHighlighter:t}},__vite__mapDeps([3,0,1,2,4]),import.meta.url);return or.length>0&&(or.forEach(t=>{e.registerLanguage(...t)}),or=[]),Rr===null&&(Rr=e),{default:t=>p.createElement(e,{...t})}}),CD=f.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Mt(()=>import("./syntaxhighlighter-IQDEPFLK-CL1ROTuv.js"),__vite__mapDeps([3,0,1,2,4]),import.meta.url),Mt(()=>import("./formatter-QJ4M4OGQ-BVt8pa2h.js"),__vite__mapDeps([5,0,1,2]),import.meta.url)]);return or.length>0&&(or.forEach(r=>{e.registerLanguage(...r)}),or=[]),Rr===null&&(Rr=e),{default:r=>p.createElement(e,{...r,formatter:t})}}),In=e=>p.createElement(f.Suspense,{fallback:p.createElement("div",null)},e.format!==!1?p.createElement(CD,{...e}):p.createElement($D,{...e}));In.registerLanguage=(...e)=>{if(Rr!==null){Rr.registerLanguage(...e);return}or.push(e)};var DD=e=>typeof e=="string",TD=/[\n\r]/g,_D=_.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),Rt),AD=_(In)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),tu=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=f.Children.toArray(t);return o.filter(DD).some(i=>i.match(TD))?p.createElement(AD,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):p.createElement(_D,{...r,className:e},o)},gg=_.dl(pe,dr,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),mg=_.div(pe),yg=_.h1(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),ru=_.h2(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),nu=_.h3(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),bg=_.h4(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),vg=_.h5(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),Eg=_.h6(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),Sg=_.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),xg=_.img({maxWidth:"100%"}),wg=_.li(pe,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Rt({theme:e})})),RD={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},$g=_.ol(pe,dr,RD,{listStyle:"decimal"}),Cg=_.p(pe,dr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Rt({theme:e})})),Dg=_.pre(pe,dr,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),Tg=_.span(pe,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),_g=_.title(Rt),Ag=_.table(pe,dr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),PD={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Rg=_.ul(pe,dr,PD,{listStyle:"disc"}),Pg={h1:e=>p.createElement(yg,{...de(e,"h1")}),h2:e=>p.createElement(ru,{...de(e,"h2")}),h3:e=>p.createElement(nu,{...de(e,"h3")}),h4:e=>p.createElement(bg,{...de(e,"h4")}),h5:e=>p.createElement(vg,{...de(e,"h5")}),h6:e=>p.createElement(Eg,{...de(e,"h6")}),pre:e=>p.createElement(Dg,{...de(e,"pre")}),a:e=>p.createElement(pg,{...de(e,"a")}),hr:e=>p.createElement(Sg,{...de(e,"hr")}),dl:e=>p.createElement(gg,{...de(e,"dl")}),blockquote:e=>p.createElement(hg,{...de(e,"blockquote")}),table:e=>p.createElement(Ag,{...de(e,"table")}),img:e=>p.createElement(xg,{...de(e,"img")}),div:e=>p.createElement(mg,{...de(e,"div")}),span:e=>p.createElement(Tg,{...de(e,"span")}),li:e=>p.createElement(wg,{...de(e,"li")}),ul:e=>p.createElement(Rg,{...de(e,"ul")}),ol:e=>p.createElement($g,{...de(e,"ol")}),p:e=>p.createElement(Cg,{...de(e,"p")}),code:e=>p.createElement(tu,{...de(e,"code")}),tt:e=>p.createElement(_g,{...de(e,"tt")}),resetwrapper:e=>p.createElement(eu,{...de(e,"resetwrapper")})};_.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${_t(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?ke(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${_t(.9,e.color.secondary)}`};default:return{}}});var OD=0,FD=e=>e.button===OD&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,ID=(e,t)=>{FD(e)&&(e.preventDefault(),t(e))},kD=_.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),LD=_.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:ke(.07,e.color.secondary),"svg path:not([fill])":{fill:ke(.07,e.color.secondary)}},"&:active":{color:ke(.1,e.color.secondary),"svg path:not([fill])":{fill:ke(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Pr=f.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,style:a=void 0,isButton:l=!1,...s},u)=>p.createElement(LD,{...s,ref:u,isButton:l,role:l?"button":void 0,onClick:r&&e?c=>ID(c,r):r,className:i},p.createElement(kD,{withArrow:n,containsIcon:o},t,n&&p.createElement(L1,null))));Pr.displayName="Link";_.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:Ml}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Pd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ND(...e){return t=>{let r=!1,n=e.map(o=>{let i=Pd(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():Pd(e[o],null)}}}}var BD=Symbol.for("react.lazy"),Co=Pv[" use ".trim().toString()];function MD(e){return typeof e=="object"&&e!==null&&"then"in e}function Og(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===BD&&"_payload"in e&&MD(e._payload)}function jD(e){let t=UD(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;Og(i)&&typeof Co=="function"&&(i=Co(i._payload));let l=f.Children.toArray(i),s=l.find(zD);if(s){let u=s.props.children,c=l.map(d=>d===s?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:d);return re.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,c):null})}return re.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var HD=jD("Slot");function UD(e){let t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(Og(o)&&typeof Co=="function"&&(o=Co(o._payload)),f.isValidElement(o)){let a=WD(o),l=GD(i,o.props);return o.type!==f.Fragment&&(l.ref=n?ND(n,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KD=Symbol("radix.slottable");function zD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KD}function GD(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{let l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function WD(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var VD=_.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),Fg=({note:e,...t})=>p.createElement(VD,{...t},e);const{deprecate:qD}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var le=typeof document<"u"?p.useLayoutEffect:()=>{},Ni,YD=(Ni=p.useInsertionEffect)!==null&&Ni!==void 0?Ni:le;function De(e){let t=f.useRef(null);return YD(()=>{t.current=e},[e]),f.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function XD(e){let[t,r]=f.useState(e),n=f.useRef(null),o=De(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}t===a.value?o():r(a.value)});le(()=>{n.current&&o()});let i=De(a=>{n.current=a(t),o()});return[t,i]}var Ig={prefix:String(Math.round(Math.random()*1e10)),current:0},kg=p.createContext(Ig),JD=p.createContext(!1),Bi=new WeakMap;function ZD(e=!1){let t=f.useContext(kg),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=Bi.get(i);a==null?Bi.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Bi.delete(i))}r.current=++t.current}return r.current}function QD(e){let t=f.useContext(kg),r=ZD(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function eT(e){let t=p.useId(),[r]=f.useState(fr()),n=r?"react-aria":`react-aria${Ig.prefix}`;return e||`${n}-${t}`}var tT=typeof p.useId=="function"?eT:QD;function rT(){return!1}function nT(){return!0}function oT(e){return()=>{}}function fr(){return typeof p.useSyncExternalStore=="function"?p.useSyncExternalStore(oT,rT,nT):f.useContext(JD)}var aT=!!(typeof window<"u"&&window.document&&window.document.createElement),$r=new Map,ln;typeof FinalizationRegistry<"u"&&(ln=new FinalizationRegistry(e=>{$r.delete(e)}));function Ae(e){let[t,r]=f.useState(e),n=f.useRef(null),o=tT(t),i=f.useRef(null);if(ln&&ln.register(i,o),aT){let a=$r.get(o);a&&!a.includes(n)?a.push(n):$r.set(o,[n])}return le(()=>{let a=o;return()=>{ln&&ln.unregister(i),$r.delete(a)}},[o]),f.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function iT(e,t){if(e===t)return e;let r=$r.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=$r.get(t);return n?(n.forEach(o=>o.current=e),e):t}function ho(e=[]){let t=Ae(),[r,n]=XD(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return le(o,[t,o,...e]),r}function kn(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var se=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Qe=e=>e&&"window"in e&&e.window===e?e:se(e).defaultView||window;function Ze(e,t){return t&&e?e.contains(t):!1}var Te=(e=document)=>e.activeElement;function be(e){return e.target}function lT(e,t,r,n){return e.createTreeWalker(t,r,n)}function Lg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Lg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sT(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Lg(e))&&(n&&(n+=" "),n+=t);return n}var uT=sT;function Q(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=kn(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=uT(i,a):o==="id"&&i&&a?t.id=iT(i,a):t[o]=a!==void 0?a:i}}return t}function ou(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=Od(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():Od(e[i],null)})}}}function Od(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var cT=new Set(["id"]),dT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fT=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),pT=new Set(["dir","lang","hidden","inert","translate"]),Fd=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),hT=/^(data-.*)$/;function he(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(cT.has(s)||r&&dT.has(s)||n&&fT.has(s)||o&&pT.has(s)||i&&Fd.has(s)||s.endsWith("Capture")&&Fd.has(s.slice(0,-7))||a!=null&&a.has(s)||hT.test(s))&&(l[s]=e[s]);return l}function Me(e){if(gT())e.focus({preventScroll:!0});else{let t=mT(e);e.focus(),yT(t)}}var Xn=null;function gT(){if(Xn==null){Xn=!1;try{document.createElement("div").focus({get preventScroll(){return Xn=!0,!0}})}catch{}}return Xn}function mT(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function yT(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function ra(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function au(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Pt(e){let t=null;return()=>(t==null&&(t=e()),t)}var ir=Pt(function(){return au(/^Mac/i)}),bT=Pt(function(){return au(/^iPhone/i)}),Ng=Pt(function(){return au(/^iPad/i)||ir()&&navigator.maxTouchPoints>1}),na=Pt(function(){return bT()||Ng()}),vT=Pt(function(){return ir()||na()}),Bg=Pt(function(){return ra(/AppleWebKit/i)&&!iu()}),iu=Pt(function(){return ra(/Chrome/i)}),lu=Pt(function(){return ra(/Android/i)}),ET=Pt(function(){return ra(/Firefox/i)}),ST=f.createContext({isNative:!0,open:$T,useHref:e=>e});function oa(){return f.useContext(ST)}function xT(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function lr(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;ET()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(ir()?i=!0:a=!0);let u=Bg()&&ir()&&!Ng()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});lr.isOpening=r,Me(e),e.dispatchEvent(u),lr.isOpening=!1}lr.isOpening=!1;function wT(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function $T(e,t){wT(e,r=>lr(r,t))}function Mg(e){let t=oa();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function CT(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&xT(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Nt=new Map,jl=new Set;function Id(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Nt.get(n.target);o||(o=new Set,Nt.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Nt.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Nt.delete(n.target)),Nt.size===0)){for(let i of jl)i();jl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Id():document.addEventListener("DOMContentLoaded",Id));function DT(){for(let[e]of Nt)"isConnected"in e&&!e.isConnected&&Nt.delete(e)}function jg(e){requestAnimationFrame(()=>{DT(),Nt.size===0?e():jl.add(e)})}function aa(){let e=f.useRef(new Map),t=f.useCallback((o,i,a,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=f.useCallback((o,i,a,l)=>{var s;let u=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,u,l),e.current.delete(a)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ia(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ae(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function dt(e){let t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function kd(e,t){let r=f.useRef(!0),n=f.useRef(null);le(()=>(r.current=!0,()=>{r.current=!1}),[]),le(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function TT(){return typeof window.ResizeObserver<"u"}function Do(e){let{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(TT()){let i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function su(e,t){le(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Or(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Hg(e,t){let r=e;for(Or(r,t)&&(r=r.parentElement);r&&!Or(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function _T(e,t){let r=[];for(;e&&e!==document.documentElement;)Or(e,t)&&r.push(e),e=e.parentElement;return r}function Er(e){return ir()?e.metaKey:e.ctrlKey}var AT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Mi(e){return e instanceof HTMLInputElement&&!AT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var RT=0,ji=new Map;function PT(e){let[t,r]=f.useState();return le(()=>{if(!e)return;let n=ji.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${RT++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},ji.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),ji.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function sn(e,t,r,n){let o=De(r),i=r==null;f.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i,o])}function Ug(e,t){let r=Ld(e,t,"left"),n=Ld(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:h,scrollPaddingLeft:g}=getComputedStyle(e),{scrollMarginTop:y,scrollMarginRight:b,scrollMarginBottom:S,scrollMarginLeft:m}=getComputedStyle(t),v=a+parseInt(u,10),E=l+parseInt(s,10),C=v+e.clientWidth,P=E+e.clientHeight,x=parseInt(c,10)||0,D=parseInt(h,10)||0,$=parseInt(d,10)||0,A=parseInt(g,10)||0,T=parseInt(y,10)||0,w=parseInt(S,10)||0,O=parseInt(b,10)||0,I=parseInt(m,10)||0,R=r-I,k=r+o+O,L=n-T,F=n+i+w,j=a+parseInt(u,10)+A,B=C-$,N=l+parseInt(s,10)+x,U=P-D;(R>j||k<B)&&(R<=a+A?a=R-parseInt(u,10)-A:k>C-$&&(a+=k-C+$)),(L>N||F<U)&&(L<=E+x?l=L-parseInt(s,10)-x:F>P-D&&(l+=F-P+D)),e.scrollTo({left:a,top:l})}function Ld(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Nd(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow!=="hidden"&&!iu()){var r;let{left:l,top:s}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(s-c)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let l=_T(e);for(let s of l)Ug(s,e)}}}function Kg(e){return e.pointerType===""&&e.isTrusted?!0:lu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function OT(e){return!lu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Bd(e){let t=f.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var FT="react-aria-clear-focus",IT="react-aria-focus";function zg(e,t=!0){let[r,n]=f.useState(!0),o=r&&t;return le(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),Wg(e,o,f.useCallback(()=>n(!1),[])),o}function Gg(e,t){let[r,n]=f.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return Wg(e,o,f.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Wg(e,t,r){le(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||Uo.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var kT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function LT(e){let t=Qe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function NT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function uu(e,t){return kT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&<(e)&&NT(e,t)&&(!e.parentElement||uu(e.parentElement,e))}var cu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],BT=cu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";cu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var MT=cu.join(':not([hidden]):not([tabindex="-1"]),');function Vg(e){return e.matches(BT)&&uu(e)&&!qg(e)}function jT(e){return e.matches(MT)&&uu(e)&&!qg(e)}function qg(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function la(e,t,r){let[n,o]=f.useState(e||t),i=f.useRef(e!==void 0),a=e!==void 0;f.useEffect(()=>{i.current,i.current=a},[a]);let l=a?e:n,s=f.useCallback((u,...c)=>{let d=(h,...g)=>{r&&(Object.is(l,h)||r(h,...g)),a||(l=h)};typeof u=="function"?o((h,...g)=>{let y=u(a?l:h,...g);return d(y,...c),a?h:y}):(a||o(u),d(u,...c))},[a,l,r]);return[l,s]}function En(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function du(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Yg(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Xg(e){let t=f.useRef({isFocused:!1,observer:null});le(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=De(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=du(a);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var To=!1;function HT(e){for(;e&&!Vg(e);)e=e.parentElement;let t=Qe(e),r=t.document.activeElement;if(!r||r===e)return;To=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Me(r),s()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Me(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),To=!1,n=!1},u=requestAnimationFrame(s);return s}var Sr="default",Hl="",go=new WeakMap;function UT(e){if(na()){if(Sr==="default"){let t=se(e);Hl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Sr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";go.set(e,e.style[t]),e.style[t]="none"}}function Md(e){if(na()){if(Sr!=="disabled")return;Sr="restoring",setTimeout(()=>{jg(()=>{if(Sr==="restoring"){let t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Hl||""),Hl="",Sr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&go.has(e)){let t=go.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),go.delete(e)}}var Sn=p.createContext({register:()=>{}});Sn.displayName="PressResponderContext";function KT(e,t){return t.get?t.get.call(e):t.value}function Jg(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function zT(e,t){var r=Jg(e,t,"get");return KT(e,r)}function GT(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function WT(e,t,r){GT(e,t),t.set(e,r)}function VT(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function jd(e,t,r){var n=Jg(e,t,"set");return VT(e,n,r),r}function qT(e){let t=f.useContext(Sn);if(t){let{register:r,...n}=t;e=Q(n,e),r()}return su(t,e.ref),e}var Jn=new WeakMap,Zn=class{continuePropagation(){jd(this,Jn,!1)}get shouldStopPropagation(){return zT(this,Jn)}constructor(e,t,r,n){WT(this,Jn,{writable:!0,value:void 0}),jd(this,Jn,!0);var o;let i=(o=n==null?void 0:n.target)!==null&&o!==void 0?o:r.currentTarget,a=i==null?void 0:i.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},Hd=Symbol("linkClicked"),Ud="react-aria-pressable-style",Kd="data-react-aria-pressable";function Ln(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:h,...g}=qT(e),[y,b]=f.useState(!1),S=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:v}=aa(),E=De((w,O)=>{let I=S.current;if(l||I.didFirePressStart)return!1;let R=!0;if(I.isTriggeringEvent=!0,n){let k=new Zn("pressstart",O,w);n(k),R=k.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,b(!0),R}),C=De((w,O,I=!0)=>{let R=S.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let k=!0;if(o){let L=new Zn("pressend",O,w);o(L),k=L.shouldStopPropagation}if(r&&r(!1),b(!1),t&&I&&!l){let L=new Zn("press",O,w);t(L),k&&(k=L.shouldStopPropagation)}return R.isTriggeringEvent=!1,k}),P=De((w,O)=>{let I=S.current;if(l)return!1;if(i){I.isTriggeringEvent=!0;let R=new Zn("pressup",O,w);return i(R),I.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),x=De(w=>{let O=S.current;if(O.isPressed&&O.target){O.didFirePressStart&&O.pointerType!=null&&C(Gt(O.target,w),O.pointerType,!1),O.isPressed=!1,O.isOverTarget=!1,O.activePointerId=null,O.pointerType=null,v(),d||Md(O.target);for(let I of O.disposables)I();O.disposables=[]}}),D=De(w=>{c&&x(w)}),$=De(w=>{l||(a==null||a(w))}),A=De((w,O)=>{if(!l&&a){let I=new MouseEvent("click",w);Yg(I,O),a(du(I))}}),T=f.useMemo(()=>{let w=S.current,O={onKeyDown(R){if(Hi(R.nativeEvent,R.currentTarget)&&Ze(R.currentTarget,be(R.nativeEvent))){var k;zd(be(R.nativeEvent),R.key)&&R.preventDefault();let L=!0;if(!w.isPressed&&!R.repeat){w.target=R.currentTarget,w.isPressed=!0,w.pointerType="keyboard",L=E(R,"keyboard");let F=R.currentTarget,j=B=>{Hi(B,F)&&!B.repeat&&Ze(F,be(B))&&w.target&&P(Gt(w.target,B),"keyboard")};m(se(R.currentTarget),"keyup",kn(j,I),!0)}L&&R.stopPropagation(),R.metaKey&&ir()&&((k=w.metaKeyEvents)===null||k===void 0||k.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(R){if(!(R&&!Ze(R.currentTarget,be(R.nativeEvent)))&&R&&R.button===0&&!w.isTriggeringEvent&&!lr.isOpening){let k=!0;if(l&&R.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Kg(R.nativeEvent))){let L=E(R,"virtual"),F=P(R,"virtual"),j=C(R,"virtual");$(R),k=L&&F&&j}else if(w.isPressed&&w.pointerType!=="keyboard"){let L=w.pointerType||R.nativeEvent.pointerType||"virtual",F=P(Gt(R.currentTarget,R),L),j=C(Gt(R.currentTarget,R),L,!0);k=F&&j,w.isOverTarget=!1,$(R),x(R)}w.ignoreEmulatedMouseEvents=!1,k&&R.stopPropagation()}}},I=R=>{var k;if(w.isPressed&&w.target&&Hi(R,w.target)){var L;zd(be(R),R.key)&&R.preventDefault();let j=be(R),B=Ze(w.target,be(R));C(Gt(w.target,R),"keyboard",B),B&&A(R,w.target),v(),R.key!=="Enter"&&fu(w.target)&&Ze(w.target,j)&&!R[Hd]&&(R[Hd]=!0,lr(w.target,R,!1)),w.isPressed=!1,(L=w.metaKeyEvents)===null||L===void 0||L.delete(R.key)}else if(R.key==="Meta"&&!((k=w.metaKeyEvents)===null||k===void 0)&&k.size){var F;let j=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let B of j.values())(F=w.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){O.onPointerDown=L=>{if(L.button!==0||!Ze(L.currentTarget,be(L.nativeEvent)))return;if(OT(L.nativeEvent)){w.pointerType="virtual";return}w.pointerType=L.pointerType;let F=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=L.pointerId,w.target=L.currentTarget,d||UT(w.target),F=E(L,w.pointerType);let j=be(L.nativeEvent);"releasePointerCapture"in j&&j.releasePointerCapture(L.pointerId),m(se(L.currentTarget),"pointerup",R,!1),m(se(L.currentTarget),"pointercancel",k,!1)}F&&L.stopPropagation()},O.onMouseDown=L=>{if(Ze(L.currentTarget,be(L.nativeEvent))&&L.button===0){if(u){let F=HT(L.target);F&&w.disposables.push(F)}L.stopPropagation()}},O.onPointerUp=L=>{!Ze(L.currentTarget,be(L.nativeEvent))||w.pointerType==="virtual"||L.button===0&&!w.isPressed&&P(L,w.pointerType||L.pointerType)},O.onPointerEnter=L=>{L.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,E(Gt(w.target,L),w.pointerType))},O.onPointerLeave=L=>{L.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,C(Gt(w.target,L),w.pointerType,!1),D(L))};let R=L=>{if(L.pointerId===w.activePointerId&&w.isPressed&&L.button===0&&w.target){if(Ze(w.target,be(L))&&w.pointerType!=null){let F=!1,j=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(F?x(L):(Me(w.target),w.target.click()))},80);m(L.currentTarget,"click",()=>F=!0,!0),w.disposables.push(()=>clearTimeout(j))}else x(L);w.isOverTarget=!1}},k=L=>{x(L)};O.onDragStart=L=>{Ze(L.currentTarget,be(L.nativeEvent))&&x(L)}}return O},[m,l,u,v,d,x,D,C,E,P,$,A]);return f.useEffect(()=>{if(!h)return;let w=se(h.current);if(!w||!w.head||w.getElementById(Ud))return;let O=w.createElement("style");O.id=Ud,O.textContent=`
|
|
61
|
+
*/var Ad;function ED(){if(Ad)return Li;Ad=1;var e=Rv();function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(d,h){var g=h(),y=n({inst:{value:g,getSnapshot:h}}),b=y[0].inst,S=y[1];return i(function(){b.value=g,b.getSnapshot=h,s(b)&&S({inst:b})},[d,g,h]),o(function(){return s(b)&&S({inst:b}),d(function(){s(b)&&S({inst:b})})},[d]),a(g),g}function s(d){var h=d.getSnapshot;d=d.value;try{var g=h();return!r(d,g)}catch{return!0}}function u(d,h){return h()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Li.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Li}var Rd;function SD(){return Rd||(Rd=1,ki.exports=ED()),ki.exports}var xD=SD(),de=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},zr=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),Rt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),pe=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),dr={margin:"16px 0"},eu=_.div(pe),wD=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return p.createElement("a",{href:r,target:n,...t})},pg=_(wD)(pe,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),hg=_.blockquote(pe,dr,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),or=[],Rr=null,$D=f.lazy(async()=>{let{SyntaxHighlighter:e}=await Mt(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-IQDEPFLK-Pv8RB4wM.js");return{SyntaxHighlighter:t}},__vite__mapDeps([3,0,1,2,4]),import.meta.url);return or.length>0&&(or.forEach(t=>{e.registerLanguage(...t)}),or=[]),Rr===null&&(Rr=e),{default:t=>p.createElement(e,{...t})}}),CD=f.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Mt(()=>import("./syntaxhighlighter-IQDEPFLK-Pv8RB4wM.js"),__vite__mapDeps([3,0,1,2,4]),import.meta.url),Mt(()=>import("./formatter-QJ4M4OGQ-D0ewJSfL.js"),__vite__mapDeps([5,0,1,2]),import.meta.url)]);return or.length>0&&(or.forEach(r=>{e.registerLanguage(...r)}),or=[]),Rr===null&&(Rr=e),{default:r=>p.createElement(e,{...r,formatter:t})}}),In=e=>p.createElement(f.Suspense,{fallback:p.createElement("div",null)},e.format!==!1?p.createElement(CD,{...e}):p.createElement($D,{...e}));In.registerLanguage=(...e)=>{if(Rr!==null){Rr.registerLanguage(...e);return}or.push(e)};var DD=e=>typeof e=="string",TD=/[\n\r]/g,_D=_.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),Rt),AD=_(In)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),tu=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=f.Children.toArray(t);return o.filter(DD).some(i=>i.match(TD))?p.createElement(AD,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):p.createElement(_D,{...r,className:e},o)},gg=_.dl(pe,dr,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),mg=_.div(pe),yg=_.h1(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),ru=_.h2(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),nu=_.h3(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),bg=_.h4(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),vg=_.h5(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),Eg=_.h6(pe,zr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),Sg=_.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),xg=_.img({maxWidth:"100%"}),wg=_.li(pe,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Rt({theme:e})})),RD={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},$g=_.ol(pe,dr,RD,{listStyle:"decimal"}),Cg=_.p(pe,dr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Rt({theme:e})})),Dg=_.pre(pe,dr,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),Tg=_.span(pe,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),_g=_.title(Rt),Ag=_.table(pe,dr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),PD={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Rg=_.ul(pe,dr,PD,{listStyle:"disc"}),Pg={h1:e=>p.createElement(yg,{...de(e,"h1")}),h2:e=>p.createElement(ru,{...de(e,"h2")}),h3:e=>p.createElement(nu,{...de(e,"h3")}),h4:e=>p.createElement(bg,{...de(e,"h4")}),h5:e=>p.createElement(vg,{...de(e,"h5")}),h6:e=>p.createElement(Eg,{...de(e,"h6")}),pre:e=>p.createElement(Dg,{...de(e,"pre")}),a:e=>p.createElement(pg,{...de(e,"a")}),hr:e=>p.createElement(Sg,{...de(e,"hr")}),dl:e=>p.createElement(gg,{...de(e,"dl")}),blockquote:e=>p.createElement(hg,{...de(e,"blockquote")}),table:e=>p.createElement(Ag,{...de(e,"table")}),img:e=>p.createElement(xg,{...de(e,"img")}),div:e=>p.createElement(mg,{...de(e,"div")}),span:e=>p.createElement(Tg,{...de(e,"span")}),li:e=>p.createElement(wg,{...de(e,"li")}),ul:e=>p.createElement(Rg,{...de(e,"ul")}),ol:e=>p.createElement($g,{...de(e,"ol")}),p:e=>p.createElement(Cg,{...de(e,"p")}),code:e=>p.createElement(tu,{...de(e,"code")}),tt:e=>p.createElement(_g,{...de(e,"tt")}),resetwrapper:e=>p.createElement(eu,{...de(e,"resetwrapper")})};_.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${_t(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?ke(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${_t(.9,e.color.secondary)}`};default:return{}}});var OD=0,FD=e=>e.button===OD&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,ID=(e,t)=>{FD(e)&&(e.preventDefault(),t(e))},kD=_.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),LD=_.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:ke(.07,e.color.secondary),"svg path:not([fill])":{fill:ke(.07,e.color.secondary)}},"&:active":{color:ke(.1,e.color.secondary),"svg path:not([fill])":{fill:ke(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Pr=f.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,style:a=void 0,isButton:l=!1,...s},u)=>p.createElement(LD,{...s,ref:u,isButton:l,role:l?"button":void 0,onClick:r&&e?c=>ID(c,r):r,className:i},p.createElement(kD,{withArrow:n,containsIcon:o},t,n&&p.createElement(L1,null))));Pr.displayName="Link";_.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:Ml}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Pd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ND(...e){return t=>{let r=!1,n=e.map(o=>{let i=Pd(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():Pd(e[o],null)}}}}var BD=Symbol.for("react.lazy"),Co=Pv[" use ".trim().toString()];function MD(e){return typeof e=="object"&&e!==null&&"then"in e}function Og(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===BD&&"_payload"in e&&MD(e._payload)}function jD(e){let t=UD(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;Og(i)&&typeof Co=="function"&&(i=Co(i._payload));let l=f.Children.toArray(i),s=l.find(zD);if(s){let u=s.props.children,c=l.map(d=>d===s?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:d);return re.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,c):null})}return re.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var HD=jD("Slot");function UD(e){let t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(Og(o)&&typeof Co=="function"&&(o=Co(o._payload)),f.isValidElement(o)){let a=WD(o),l=GD(i,o.props);return o.type!==f.Fragment&&(l.ref=n?ND(n,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KD=Symbol("radix.slottable");function zD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KD}function GD(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{let l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function WD(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var VD=_.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),Fg=({note:e,...t})=>p.createElement(VD,{...t},e);const{deprecate:qD}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var le=typeof document<"u"?p.useLayoutEffect:()=>{},Ni,YD=(Ni=p.useInsertionEffect)!==null&&Ni!==void 0?Ni:le;function De(e){let t=f.useRef(null);return YD(()=>{t.current=e},[e]),f.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function XD(e){let[t,r]=f.useState(e),n=f.useRef(null),o=De(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}t===a.value?o():r(a.value)});le(()=>{n.current&&o()});let i=De(a=>{n.current=a(t),o()});return[t,i]}var Ig={prefix:String(Math.round(Math.random()*1e10)),current:0},kg=p.createContext(Ig),JD=p.createContext(!1),Bi=new WeakMap;function ZD(e=!1){let t=f.useContext(kg),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=Bi.get(i);a==null?Bi.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Bi.delete(i))}r.current=++t.current}return r.current}function QD(e){let t=f.useContext(kg),r=ZD(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function eT(e){let t=p.useId(),[r]=f.useState(fr()),n=r?"react-aria":`react-aria${Ig.prefix}`;return e||`${n}-${t}`}var tT=typeof p.useId=="function"?eT:QD;function rT(){return!1}function nT(){return!0}function oT(e){return()=>{}}function fr(){return typeof p.useSyncExternalStore=="function"?p.useSyncExternalStore(oT,rT,nT):f.useContext(JD)}var aT=!!(typeof window<"u"&&window.document&&window.document.createElement),$r=new Map,ln;typeof FinalizationRegistry<"u"&&(ln=new FinalizationRegistry(e=>{$r.delete(e)}));function Ae(e){let[t,r]=f.useState(e),n=f.useRef(null),o=tT(t),i=f.useRef(null);if(ln&&ln.register(i,o),aT){let a=$r.get(o);a&&!a.includes(n)?a.push(n):$r.set(o,[n])}return le(()=>{let a=o;return()=>{ln&&ln.unregister(i),$r.delete(a)}},[o]),f.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function iT(e,t){if(e===t)return e;let r=$r.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=$r.get(t);return n?(n.forEach(o=>o.current=e),e):t}function ho(e=[]){let t=Ae(),[r,n]=XD(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return le(o,[t,o,...e]),r}function kn(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var se=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Qe=e=>e&&"window"in e&&e.window===e?e:se(e).defaultView||window;function Ze(e,t){return t&&e?e.contains(t):!1}var Te=(e=document)=>e.activeElement;function be(e){return e.target}function lT(e,t,r,n){return e.createTreeWalker(t,r,n)}function Lg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Lg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sT(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Lg(e))&&(n&&(n+=" "),n+=t);return n}var uT=sT;function Q(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=kn(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=uT(i,a):o==="id"&&i&&a?t.id=iT(i,a):t[o]=a!==void 0?a:i}}return t}function ou(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=Od(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():Od(e[i],null)})}}}function Od(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var cT=new Set(["id"]),dT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fT=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),pT=new Set(["dir","lang","hidden","inert","translate"]),Fd=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),hT=/^(data-.*)$/;function he(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(cT.has(s)||r&&dT.has(s)||n&&fT.has(s)||o&&pT.has(s)||i&&Fd.has(s)||s.endsWith("Capture")&&Fd.has(s.slice(0,-7))||a!=null&&a.has(s)||hT.test(s))&&(l[s]=e[s]);return l}function Me(e){if(gT())e.focus({preventScroll:!0});else{let t=mT(e);e.focus(),yT(t)}}var Xn=null;function gT(){if(Xn==null){Xn=!1;try{document.createElement("div").focus({get preventScroll(){return Xn=!0,!0}})}catch{}}return Xn}function mT(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function yT(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function ra(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function au(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Pt(e){let t=null;return()=>(t==null&&(t=e()),t)}var ir=Pt(function(){return au(/^Mac/i)}),bT=Pt(function(){return au(/^iPhone/i)}),Ng=Pt(function(){return au(/^iPad/i)||ir()&&navigator.maxTouchPoints>1}),na=Pt(function(){return bT()||Ng()}),vT=Pt(function(){return ir()||na()}),Bg=Pt(function(){return ra(/AppleWebKit/i)&&!iu()}),iu=Pt(function(){return ra(/Chrome/i)}),lu=Pt(function(){return ra(/Android/i)}),ET=Pt(function(){return ra(/Firefox/i)}),ST=f.createContext({isNative:!0,open:$T,useHref:e=>e});function oa(){return f.useContext(ST)}function xT(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function lr(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;ET()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(ir()?i=!0:a=!0);let u=Bg()&&ir()&&!Ng()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});lr.isOpening=r,Me(e),e.dispatchEvent(u),lr.isOpening=!1}lr.isOpening=!1;function wT(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function $T(e,t){wT(e,r=>lr(r,t))}function Mg(e){let t=oa();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function CT(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&xT(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Nt=new Map,jl=new Set;function Id(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Nt.get(n.target);o||(o=new Set,Nt.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Nt.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Nt.delete(n.target)),Nt.size===0)){for(let i of jl)i();jl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Id():document.addEventListener("DOMContentLoaded",Id));function DT(){for(let[e]of Nt)"isConnected"in e&&!e.isConnected&&Nt.delete(e)}function jg(e){requestAnimationFrame(()=>{DT(),Nt.size===0?e():jl.add(e)})}function aa(){let e=f.useRef(new Map),t=f.useCallback((o,i,a,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=f.useCallback((o,i,a,l)=>{var s;let u=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,u,l),e.current.delete(a)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ia(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ae(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function dt(e){let t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function kd(e,t){let r=f.useRef(!0),n=f.useRef(null);le(()=>(r.current=!0,()=>{r.current=!1}),[]),le(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function TT(){return typeof window.ResizeObserver<"u"}function Do(e){let{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(TT()){let i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function su(e,t){le(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Or(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Hg(e,t){let r=e;for(Or(r,t)&&(r=r.parentElement);r&&!Or(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function _T(e,t){let r=[];for(;e&&e!==document.documentElement;)Or(e,t)&&r.push(e),e=e.parentElement;return r}function Er(e){return ir()?e.metaKey:e.ctrlKey}var AT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Mi(e){return e instanceof HTMLInputElement&&!AT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var RT=0,ji=new Map;function PT(e){let[t,r]=f.useState();return le(()=>{if(!e)return;let n=ji.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${RT++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},ji.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),ji.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function sn(e,t,r,n){let o=De(r),i=r==null;f.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i,o])}function Ug(e,t){let r=Ld(e,t,"left"),n=Ld(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:h,scrollPaddingLeft:g}=getComputedStyle(e),{scrollMarginTop:y,scrollMarginRight:b,scrollMarginBottom:S,scrollMarginLeft:m}=getComputedStyle(t),v=a+parseInt(u,10),E=l+parseInt(s,10),C=v+e.clientWidth,P=E+e.clientHeight,x=parseInt(c,10)||0,D=parseInt(h,10)||0,$=parseInt(d,10)||0,A=parseInt(g,10)||0,T=parseInt(y,10)||0,w=parseInt(S,10)||0,O=parseInt(b,10)||0,I=parseInt(m,10)||0,R=r-I,k=r+o+O,L=n-T,F=n+i+w,j=a+parseInt(u,10)+A,B=C-$,N=l+parseInt(s,10)+x,U=P-D;(R>j||k<B)&&(R<=a+A?a=R-parseInt(u,10)-A:k>C-$&&(a+=k-C+$)),(L>N||F<U)&&(L<=E+x?l=L-parseInt(s,10)-x:F>P-D&&(l+=F-P+D)),e.scrollTo({left:a,top:l})}function Ld(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Nd(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow!=="hidden"&&!iu()){var r;let{left:l,top:s}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(s-c)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let l=_T(e);for(let s of l)Ug(s,e)}}}function Kg(e){return e.pointerType===""&&e.isTrusted?!0:lu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function OT(e){return!lu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Bd(e){let t=f.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var FT="react-aria-clear-focus",IT="react-aria-focus";function zg(e,t=!0){let[r,n]=f.useState(!0),o=r&&t;return le(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),Wg(e,o,f.useCallback(()=>n(!1),[])),o}function Gg(e,t){let[r,n]=f.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return Wg(e,o,f.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Wg(e,t,r){le(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||Uo.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var kT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function LT(e){let t=Qe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function NT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function uu(e,t){return kT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&<(e)&&NT(e,t)&&(!e.parentElement||uu(e.parentElement,e))}var cu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],BT=cu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";cu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var MT=cu.join(':not([hidden]):not([tabindex="-1"]),');function Vg(e){return e.matches(BT)&&uu(e)&&!qg(e)}function jT(e){return e.matches(MT)&&uu(e)&&!qg(e)}function qg(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function la(e,t,r){let[n,o]=f.useState(e||t),i=f.useRef(e!==void 0),a=e!==void 0;f.useEffect(()=>{i.current,i.current=a},[a]);let l=a?e:n,s=f.useCallback((u,...c)=>{let d=(h,...g)=>{r&&(Object.is(l,h)||r(h,...g)),a||(l=h)};typeof u=="function"?o((h,...g)=>{let y=u(a?l:h,...g);return d(y,...c),a?h:y}):(a||o(u),d(u,...c))},[a,l,r]);return[l,s]}function En(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function du(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Yg(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Xg(e){let t=f.useRef({isFocused:!1,observer:null});le(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=De(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=du(a);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var To=!1;function HT(e){for(;e&&!Vg(e);)e=e.parentElement;let t=Qe(e),r=t.document.activeElement;if(!r||r===e)return;To=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Me(r),s()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Me(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),To=!1,n=!1},u=requestAnimationFrame(s);return s}var Sr="default",Hl="",go=new WeakMap;function UT(e){if(na()){if(Sr==="default"){let t=se(e);Hl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Sr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";go.set(e,e.style[t]),e.style[t]="none"}}function Md(e){if(na()){if(Sr!=="disabled")return;Sr="restoring",setTimeout(()=>{jg(()=>{if(Sr==="restoring"){let t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Hl||""),Hl="",Sr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&go.has(e)){let t=go.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),go.delete(e)}}var Sn=p.createContext({register:()=>{}});Sn.displayName="PressResponderContext";function KT(e,t){return t.get?t.get.call(e):t.value}function Jg(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function zT(e,t){var r=Jg(e,t,"get");return KT(e,r)}function GT(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function WT(e,t,r){GT(e,t),t.set(e,r)}function VT(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function jd(e,t,r){var n=Jg(e,t,"set");return VT(e,n,r),r}function qT(e){let t=f.useContext(Sn);if(t){let{register:r,...n}=t;e=Q(n,e),r()}return su(t,e.ref),e}var Jn=new WeakMap,Zn=class{continuePropagation(){jd(this,Jn,!1)}get shouldStopPropagation(){return zT(this,Jn)}constructor(e,t,r,n){WT(this,Jn,{writable:!0,value:void 0}),jd(this,Jn,!0);var o;let i=(o=n==null?void 0:n.target)!==null&&o!==void 0?o:r.currentTarget,a=i==null?void 0:i.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},Hd=Symbol("linkClicked"),Ud="react-aria-pressable-style",Kd="data-react-aria-pressable";function Ln(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:h,...g}=qT(e),[y,b]=f.useState(!1),S=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:v}=aa(),E=De((w,O)=>{let I=S.current;if(l||I.didFirePressStart)return!1;let R=!0;if(I.isTriggeringEvent=!0,n){let k=new Zn("pressstart",O,w);n(k),R=k.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,b(!0),R}),C=De((w,O,I=!0)=>{let R=S.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let k=!0;if(o){let L=new Zn("pressend",O,w);o(L),k=L.shouldStopPropagation}if(r&&r(!1),b(!1),t&&I&&!l){let L=new Zn("press",O,w);t(L),k&&(k=L.shouldStopPropagation)}return R.isTriggeringEvent=!1,k}),P=De((w,O)=>{let I=S.current;if(l)return!1;if(i){I.isTriggeringEvent=!0;let R=new Zn("pressup",O,w);return i(R),I.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),x=De(w=>{let O=S.current;if(O.isPressed&&O.target){O.didFirePressStart&&O.pointerType!=null&&C(Gt(O.target,w),O.pointerType,!1),O.isPressed=!1,O.isOverTarget=!1,O.activePointerId=null,O.pointerType=null,v(),d||Md(O.target);for(let I of O.disposables)I();O.disposables=[]}}),D=De(w=>{c&&x(w)}),$=De(w=>{l||(a==null||a(w))}),A=De((w,O)=>{if(!l&&a){let I=new MouseEvent("click",w);Yg(I,O),a(du(I))}}),T=f.useMemo(()=>{let w=S.current,O={onKeyDown(R){if(Hi(R.nativeEvent,R.currentTarget)&&Ze(R.currentTarget,be(R.nativeEvent))){var k;zd(be(R.nativeEvent),R.key)&&R.preventDefault();let L=!0;if(!w.isPressed&&!R.repeat){w.target=R.currentTarget,w.isPressed=!0,w.pointerType="keyboard",L=E(R,"keyboard");let F=R.currentTarget,j=B=>{Hi(B,F)&&!B.repeat&&Ze(F,be(B))&&w.target&&P(Gt(w.target,B),"keyboard")};m(se(R.currentTarget),"keyup",kn(j,I),!0)}L&&R.stopPropagation(),R.metaKey&&ir()&&((k=w.metaKeyEvents)===null||k===void 0||k.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(R){if(!(R&&!Ze(R.currentTarget,be(R.nativeEvent)))&&R&&R.button===0&&!w.isTriggeringEvent&&!lr.isOpening){let k=!0;if(l&&R.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Kg(R.nativeEvent))){let L=E(R,"virtual"),F=P(R,"virtual"),j=C(R,"virtual");$(R),k=L&&F&&j}else if(w.isPressed&&w.pointerType!=="keyboard"){let L=w.pointerType||R.nativeEvent.pointerType||"virtual",F=P(Gt(R.currentTarget,R),L),j=C(Gt(R.currentTarget,R),L,!0);k=F&&j,w.isOverTarget=!1,$(R),x(R)}w.ignoreEmulatedMouseEvents=!1,k&&R.stopPropagation()}}},I=R=>{var k;if(w.isPressed&&w.target&&Hi(R,w.target)){var L;zd(be(R),R.key)&&R.preventDefault();let j=be(R),B=Ze(w.target,be(R));C(Gt(w.target,R),"keyboard",B),B&&A(R,w.target),v(),R.key!=="Enter"&&fu(w.target)&&Ze(w.target,j)&&!R[Hd]&&(R[Hd]=!0,lr(w.target,R,!1)),w.isPressed=!1,(L=w.metaKeyEvents)===null||L===void 0||L.delete(R.key)}else if(R.key==="Meta"&&!((k=w.metaKeyEvents)===null||k===void 0)&&k.size){var F;let j=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let B of j.values())(F=w.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){O.onPointerDown=L=>{if(L.button!==0||!Ze(L.currentTarget,be(L.nativeEvent)))return;if(OT(L.nativeEvent)){w.pointerType="virtual";return}w.pointerType=L.pointerType;let F=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=L.pointerId,w.target=L.currentTarget,d||UT(w.target),F=E(L,w.pointerType);let j=be(L.nativeEvent);"releasePointerCapture"in j&&j.releasePointerCapture(L.pointerId),m(se(L.currentTarget),"pointerup",R,!1),m(se(L.currentTarget),"pointercancel",k,!1)}F&&L.stopPropagation()},O.onMouseDown=L=>{if(Ze(L.currentTarget,be(L.nativeEvent))&&L.button===0){if(u){let F=HT(L.target);F&&w.disposables.push(F)}L.stopPropagation()}},O.onPointerUp=L=>{!Ze(L.currentTarget,be(L.nativeEvent))||w.pointerType==="virtual"||L.button===0&&!w.isPressed&&P(L,w.pointerType||L.pointerType)},O.onPointerEnter=L=>{L.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,E(Gt(w.target,L),w.pointerType))},O.onPointerLeave=L=>{L.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,C(Gt(w.target,L),w.pointerType,!1),D(L))};let R=L=>{if(L.pointerId===w.activePointerId&&w.isPressed&&L.button===0&&w.target){if(Ze(w.target,be(L))&&w.pointerType!=null){let F=!1,j=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(F?x(L):(Me(w.target),w.target.click()))},80);m(L.currentTarget,"click",()=>F=!0,!0),w.disposables.push(()=>clearTimeout(j))}else x(L);w.isOverTarget=!1}},k=L=>{x(L)};O.onDragStart=L=>{Ze(L.currentTarget,be(L.nativeEvent))&&x(L)}}return O},[m,l,u,v,d,x,D,C,E,P,$,A]);return f.useEffect(()=>{if(!h)return;let w=se(h.current);if(!w||!w.head||w.getElementById(Ud))return;let O=w.createElement("style");O.id=Ud,O.textContent=`
|
|
62
62
|
@layer {
|
|
63
63
|
[${Kd}] {
|
|
64
64
|
touch-action: pan-x pan-y pinch-zoom;
|
|
@@ -79,7 +79,7 @@ ${t}`);let r=t.match(i5);if(!r)return p.createElement(f.Fragment,null,t);let[,n,
|
|
|
79
79
|
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),E5=({children:e,...t})=>p.createElement(v5,{...t},!jv()&&p.createElement("button",null,p.createElement("selectedcontent",null),p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},p.createElement("path",{d:"m6 9 6 6 6-6"}))),p.createElement("optgroup",null,e)),S5=f.useLayoutEffect,x5=function(e){var t=p.useRef(e);return S5(function(){t.current=e}),t},Tf=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},w5=function(e,t){var r=p.useRef();return p.useCallback(function(n){e.current=n,r.current&&Tf(r.current,null),r.current=t,t&&Tf(t,n)},[t])},_f={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},$5=function(e){Object.keys(_f).forEach(function(t){e.style.setProperty(t,_f[t],"important")})},Af=$5,Fe=null,Rf=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function C5(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Fe||(Fe=document.createElement("textarea"),Fe.setAttribute("tabindex","-1"),Fe.setAttribute("aria-hidden","true"),Af(Fe)),Fe.parentNode===null&&document.body.appendChild(Fe);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,l=a.boxSizing;Object.keys(a).forEach(function(h){var g=h;Fe.style[g]=a[g]}),Af(Fe),Fe.value=t;var s=Rf(Fe,e);Fe.value=t,s=Rf(Fe,e),Fe.value="x";var u=Fe.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+i),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+i),s=Math.min(d,s),[s,u]}var Pf=function(){},D5=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},T5=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],_5=!!document.documentElement.currentStyle,A5=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=D5(T5,t),n=r.boxSizing;if(n==="")return null;_5&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}},R5=A5;function Du(e,t,r){var n=x5(r);f.useLayoutEffect(function(){var o=function(i){return n.current(i)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var P5=function(e,t){Du(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},O5=function(e){Du(window,"resize",e)},F5=function(e){Du(document.fonts,"loadingdone",e)},I5=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],k5=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?Pf:i,l=e.onHeightChange,s=l===void 0?Pf:l,u=O1(e,I5),c=u.value!==void 0,d=f.useRef(null),h=w5(d,t),g=f.useRef(0),y=f.useRef(),b=function(){var m=d.current,v=r&&y.current?y.current:R5(m);if(v){y.current=v;var E=C5(v,m.value||m.placeholder||"x",o,n),C=E[0],P=E[1];g.current!==C&&(g.current=C,m.style.setProperty("height",C+"px","important"),s(C,{rowHeight:P}))}},S=function(m){c||b(),a(m)};return f.useLayoutEffect(b),P5(d,function(){if(!c){var m=d.current.value;requestAnimationFrame(function(){var v=d.current;v&&m!==v.value&&b()})}}),O5(b),F5(b),f.createElement("textarea",Nv({},u,{onChange:S,ref:h}))},L5=f.forwardRef(k5),N5=Object.assign(_(f.forwardRef(function({size:e,valid:t,align:r,...n},o){return p.createElement(L5,{...n,ref:o})}))(U0,Cu,j0,H0,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),pr=Object.assign(_.form({boxSizing:"border-box",width:"100%"}),{Field:h5,Input:m5,Select:E5,Textarea:N5,Button:ve,Checkbox:d5,Radio:b5}),B5=_.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
|
|
80
80
|
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
81
81
|
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
82
|
-
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?jp(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),M5=_(ve)({position:"absolute",top:4,right:4}),Mn=f.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8,...a},l)=>p.createElement(B5,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:l,...a},e,o&&p.createElement(M5,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},p.createElement(I1,null))));Mn.displayName="Popover";var j5=_("li")(({theme:e})=>({padding:"6px 12px",fontSize:12,lineHeight:1.5,background:"transparent",color:e.color.defaultText,cursor:"pointer",borderRadius:4,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:e.base==="light"?ke(.1,e.color.secondary):e.color.secondary,fontWeight:e.typography.weight.bold},":hover":{background:_t(.93,e.color.secondary)},":focus-visible":{background:e.background.hoverable,outline:`2px solid ${e.barSelectedColor}`,outlineOffset:1,borderRadius:2},display:"flex",alignItems:"flex-start",gap:8})),H5=_("div")({display:"flex",flexDirection:"row",gap:4,alignItems:"center"}),U5=_("div")({display:"flex",flexDirection:"column",flexGrow:1}),K5=_("span")(()=>({display:"block",height:"1rem",width:"1rem"})),z5=_("span")(({})=>({})),G5=_("span")(({theme:e})=>({fontSize:11,color:e.textMutedColor})),K0=({id:e,title:t,description:r,icon:n,children:o,isSelected:i,isActive:a,onClick:l,onFocus:s,onKeyDown:u,shouldLookDisabled:c=!1,...d})=>p.createElement(j5,{...d,id:e,role:"option",tabIndex:a?0:-1,"aria-selected":i,"aria-disabled":c?!0:void 0,onClick:l,onFocus:s,onKeyDown:u},o??p.createElement(H5,null,n&&p.createElement(K5,null,n),p.createElement(U5,null,p.createElement(z5,null,t),r&&p.createElement(G5,null,r))));K0.displayName="SelectOption";var no=5,z0=Symbol.for("undefined");function W5(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function as(e){return{...e,type:"option",value:yo(e.value)}}function rl(e){return"type"in e&&e.type==="reset"?e:as(e)}function tn(e){if(e!==z0)return e}function yo(e){return e===void 0?z0:e}var V5=_("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Of(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var q5=_.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Ff(e,t){return t===void 0?[]:W5(t)?e.filter(r=>r.value===t).map(as):e.filter(r=>t.some(n=>r.value===n)).map(as)}var Y5=_(ve)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:_t(.93,r.barSelectedColor),color:r.base==="light"?ke(.1,r.color.secondary):r.color.secondary}:{}),X5=_.div({position:"fixed",inset:0,zIndex:1e3}),J5=({children:e,handleClose:t,triggerRef:r})=>{let n=p.useRef(null);om({ref:n,onInteractOutside:t}),f.useEffect(()=>{if(n.current)return da([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=vu({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=Su({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=ws();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},p.createElement(ko,{disableFocusManagement:!0,...i},p.createElement(X5,{...a}),p.createElement(Mn,{hasChrome:!0,ref:n,padding:0,...o},e))},G0=f.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:h,ariaLabel:g,...y},b)=>{var U;let[S,m]=f.useState(y.defaultOpen||!1),v=dt(b),E=f.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${E}-listbox`,P=f.useRef(null),x=Bn({isOpen:S&&!r,onOpenChange:m}),D=f.useCallback(()=>{var M;m(!1),(M=v.current)==null||M.focus()},[v]),[$,A]=f.useState(Ff(n,o)),T=f.useCallback(M=>{M.type==="reset"?$.length&&(d==null||d([]),a==null||a(),A([])):A(i?H=>{let z=[];return H!=null&&H.some(K=>K.value===M.value)?(c==null||c(tn(M.value)),z=(H==null?void 0:H.filter(K=>K.value!==M.value))??[]):(u==null||u(tn(M.value)),z=[...H??[],M]),d==null||d(z.map(K=>tn(K.value))),z}:H=>H.every(z=>z.value!==M.value)?(u==null||u(tn(M.value)),d==null||d([tn(M.value)]),[M]):H)},[i,d,u,c,a,$]),w=f.useMemo(()=>a?{type:"reset",value:void 0,title:s??"Reset selection",icon:p.createElement(M1,null),description:void 0,children:void 0}:void 0,[a,s]),O=f.useMemo(()=>w?[w,...n]:n,[n,w]);f.useEffect(()=>{o&&A(Ff(n,o))},[o,n]);let[I,R]=f.useState(void 0),k=f.useCallback(M=>{R(rl(M)),i||T(rl(M))},[i,T]),L=f.useCallback((M=1)=>{if(!S||!I){k(O[M===1?0:Math.min(M,O.length-1)]);return}let H=O.findIndex(q=>I.type==="reset"?"type"in q&&q.type==="reset":yo(q.value)===I.value),z=H+M,K;z>=O.length&&H===O.length-1?K=O[0]:K=O[Math.min(O.length-1,z)],k(K)},[S,I,k,O]),F=f.useCallback((M=1)=>{if(!S||!I){k(O[Math.max(0,O.length-M)]);return}let H=O.findIndex(q=>I.type==="reset"?"type"in q&&q.type==="reset":yo(q.value)===I.value),z=H-M,K;z<0&&H===0?K=O[O.length-1]:K=O[Math.max(0,z)],k(K)},[S,I,k,O]),j=f.useCallback(M=>{let H=ge=>{M.preventDefault(),k(O[ge]),m(!0)},z=O.findIndex(ge=>$.some(me=>me.value===yo(ge.value))),K=z!==-1,q=w&&!K?1:0,ue=O.length-1;M.key==="Enter"||M.key===" "?H(K?Math.min(z,ue):q):M.key==="ArrowDown"?H(K?Math.min(z+1,ue):q):M.key==="ArrowUp"?H(K?Math.max(z-1,q):ue):M.key==="Home"?H(q):M.key==="End"?H(ue):M.key==="PageDown"?H(Math.min((K?z:q)+no,ue)):M.key==="PageUp"&&H(Math.max(0,(K?z:ue)-no))},[O,w,k,$]),B=f.useCallback(M=>{M.key!=="Tab"?M.preventDefault():D(),M.key==="Escape"?D():M.key==="ArrowDown"?L():M.key==="ArrowUp"?F():M.key==="Home"?k(O[0]):M.key==="End"?k(O[O.length-1]):M.key==="PageDown"?L(no):M.key==="PageUp"&&F(no)},[D,L,F,O,k]);f.useEffect(()=>{var M;if(S&&I){let H=document.getElementById(Of(E,I));H&&(H.scrollIntoView({block:"nearest"}),H.focus())}else S&&((M=P.current)==null||M.focus())},[S,I,E]);let N=f.useMemo(()=>$.length===1?`${g} ${$[0].title}`:$.length?`${g}, ${$.length} values selected`:g,[g,$]);return p.createElement(p.Fragment,null,p.createElement(Y5,{...y,variant:"ghost",ariaLabel:N,tooltip:h??g,disableAllTooltips:S,id:E,ref:v,padding:l,$isOpen:S,$hasSelection:!!$.length,"aria-disabled":r,disabled:r,onClick:()=>{S?D():m(!0)},tabIndex:S?-1:0,onKeyDown:j,role:"button","aria-controls":S?C:void 0,"aria-expanded":S,"aria-haspopup":"listbox"},!i&&p.createElement(p.Fragment,null,t,((U=$[0])==null?void 0:U.title)??e),i&&p.createElement(p.Fragment,null,t,e,!!$.length&&p.createElement(q5,{"aria-label":`${$.length} ${$.length>1?"items":"item"} selected`},$==null?void 0:$.length))),x.isOpen&&p.createElement(J5,{handleClose:D,triggerRef:v},p.createElement(V5,{"aria-label":g,role:"listbox",id:C,ref:P,"aria-multiselectable":i,onKeyDown:B,tabIndex:S?0:-1},O.map(M=>({option:rl(M),externalOption:M})).map(({externalOption:M,option:H})=>{let z=($==null?void 0:$.some(q=>q.value===H.value))&&H!==w,K=H===w;return p.createElement(K0,{key:H.value===void 0?"sb-reset":String(H.value),title:H.title,description:H.description,icon:!K&&i?p.createElement(pr.Checkbox,{checked:z,hidden:!0,role:"presentation"}):H.icon,id:Of(E,H),isActive:S&&(I==null?void 0:I.value)===H.value,isSelected:z,onClick:()=>{T(H),i||D()},onFocus:()=>k(M),shouldLookDisabled:K&&$.length===0&&i,onKeyDown:q=>{q.key==="Enter"||q.key===" "?(q.preventDefault(),T(H),i||D()):q.key==="Tab"&&(i||T(H),D())}},H.children)}))))});G0.displayName="Select";var hr=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},W0=class extends hr{filter(e,t,r){let[n,o]=X0(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},V0=class extends hr{};V0.type="header";var Z5=class extends hr{};Z5.type="loader";var q0=class extends W0{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};q0.type="item";var Y0=class extends W0{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};Y0.type="section";var Q5=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=X0(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function X0(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let u=a.filter(e,t,n);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var l,s;return[(l=o==null?void 0:o.key)!==null&&l!==void 0?l:null,(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null]}var J0=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},nl=class is extends J0{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof is?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,i,a,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof is&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var h;c.prevKey=(h=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&h!==void 0?h:null;var g;c.nextKey=(g=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,c.hasChildNodes=!!this.firstChild;var y;c.firstChildKey=(y=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&y!==void 0?y:null;var b;if(c.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,m;let v=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((m=c.colSpan)!==null&&m!==void 0?m:1);if(u.node!=null&&v!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=v}}}}setProps(t,r,n,o,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=o,a.render=i,a.value=l,a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,l=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},eP=class extends J0{get isConnected(){return this.isMounted}createElement(e){return new nl(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof nl&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof nl&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,i;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(i=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function Z0(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=f.useMemo(()=>new WeakMap,i);return f.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=a.get(c);if(!d){d=t(c);var l,s;let h=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(h==null)throw new Error("Could not determine key for item");n&&(h=n+":"+h),d=f.cloneElement(d,o?{key:h,id:h,value:c}:{key:h}),a.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Lo=f.createContext(!1);function tP(e){if(f.useContext(Lo))return p.createElement(p.Fragment,null,e.children);let t=p.createElement(Lo.Provider,{value:!0},e.children);return p.createElement("template",{"data-react-aria-hidden":!0},t)}function Tu(e){let t=(r,n)=>f.useContext(Lo)?null:e(r,n);return t.displayName=e.displayName||e.name,f.forwardRef(t)}function rP(){return f.useContext(Lo)}var Q0=f.createContext(!1),Cn=f.createContext(null);function ey(e){if(f.useContext(Cn))return e.content;let{collection:t,document:r}=iP(e.createCollection);return p.createElement(p.Fragment,null,p.createElement(tP,null,p.createElement(Cn.Provider,{value:r},e.content)),p.createElement(nP,{render:e.children,collection:t}))}function nP({collection:e,render:t}){return t(e)}function oP(e,t,r){let n=fr(),o=f.useRef(n);o.current=n;let i=f.useCallback(()=>o.current?r():t(),[t,r]);return xD.useSyncExternalStore(e,i)}var aP=typeof p.useSyncExternalStore=="function"?p.useSyncExternalStore:oP;function iP(e){let[t]=f.useState(()=>new eP((e==null?void 0:e())||new Q5)),r=f.useCallback(a=>t.subscribe(a),[t]),n=f.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=f.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=aP(r,n,o);return le(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var ls=f.createContext(null);function lP(e){var t;return t=class extends hr{},t.type=e,t}function ty(e,t,r,n,o,i){typeof e=="string"&&(e=lP(e));let a=f.useCallback(s=>{s==null||s.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=f.useContext(ls);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?p.createElement(ls.Provider,{value:s},o):null}return p.createElement(e.type,{ref:a},o)}function ha(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=f.forwardRef((o,i)=>{let a=f.useContext(Ro);if(!f.useContext(Q0)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return ty(e,o,i,"children"in o?o.children:null,null,l=>p.createElement(Ro.Provider,{value:a},p.createElement(r,{node:l})))});return n.displayName=t.name,n}function _u(e,t,r=ry){let n=({node:i})=>t(i.props,i.props.ref,i),o=f.forwardRef((i,a)=>{let l=r(i);var s;return(s=ty(e,i,a,null,l,u=>p.createElement(n,{node:u})))!==null&&s!==void 0?s:p.createElement(p.Fragment,null)});return o.displayName=t.name,o}function ry(e){return Z0({...e,addIdAndValue:!0})}var If=f.createContext(null);function ny(e){let t=f.useContext(If),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=ry({...e,idScope:n,dependencies:r});return f.useContext(Cn)&&(o=p.createElement(sP,null,o)),t=f.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),p.createElement(If.Provider,{value:t},o)}function sP({children:e}){let t=f.useContext(Cn),r=f.useMemo(()=>p.createElement(Cn.Provider,{value:null},p.createElement(Q0.Provider,{value:!0},e)),[e]);return fr()?p.createElement(ls.Provider,{value:t},r):Uo.createPortal(r,t)}var oy=f.createContext({});Tu(function(e,t){[e,t]=Re(e,t,oy);let{elementType:r="label",...n}=e;return p.createElement(r,{className:"react-aria-Label",...n,ref:t})});function uP(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Ae(t);let a=Ae(),l={};r&&(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=ia({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function cP(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=he(e,{labelable:!0}),{labelProps:s,fieldProps:u}=uP({...e,labelElementType:"span"});t=En(t,r,n);let c=(t-r)/(n-r),d=PA(a);if(!i&&!o){let h=a.style==="percent"?c:t;o=d.format(h)}return{progressBarProps:Q(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:s}}var ay=f.createContext(null);f.forwardRef(function(e,t){[e,t]=Re(e,t,ay);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=En(r,n,o);let[a,l]=am(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=cP({...e,label:l}),c=i?void 0:(r-n)/(o-n)*100,d=qe({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:i}}),h=he(e,{global:!0});return p.createElement("div",{...Q(h,d,s),ref:t,slot:e.slot||void 0},p.createElement(oy.Provider,{value:{...u,ref:a,elementType:"span"}},d.children))});var pt=null;function kf(e,t="assertive",r=7e3){pt?pt.announce(e,t,r):(pt=new dP,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?pt.announce(e,t,r):setTimeout(()=>{pt!=null&&pt.isAttached()&&(pt==null||pt.announce(e,t,r))},100))}var dP=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(i):(o=this.politeLog)===null||o===void 0||o.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function fP(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:g,rel:y,type:b="button"}=e,S;r==="button"?S={type:b,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:S={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?g:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:m,isPressed:v}=Ln({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=Nn(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let C=Q(E,m,he(e,{labelable:!0}));return{isPressed:v,buttonProps:Q(S,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var iy=f.createContext({});Tu(function(e,t){[e,t]=Re(e,t,iy),e=pP(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=fP(e,t),{focusProps:a,isFocused:l,isFocusVisible:s}=ca(e),{hoverProps:u,isHovered:c}=Gr({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||i)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},h=qe({...e,values:d,defaultClassName:"react-aria-Button"}),g=Ae(o.id),y=Ae(),b=o["aria-labelledby"];n&&(b?b=`${b} ${y}`:o["aria-label"]&&(b=`${g} ${y}`));let S=f.useRef(n);f.useEffect(()=>{let v={"aria-labelledby":b||g};(!S.current&&l&&n||S.current&&l&&!n)&&kf(v,"assertive"),S.current=n},[n,l,b,g]);let m=he(e,{global:!0});return delete m.onClick,p.createElement("button",{...Q(m,h,o,a,u),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},p.createElement(ay.Provider,{value:{id:y}},h.children))});function pP(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var Au=f.createContext(null),Lf=f.createContext(null),hP=f.forwardRef(function(e,t){[e,t]=Re(e,t,Au);let r=f.useContext(ma),n=Bn(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=Gg(t,o.isOpen)||e.isExiting||!1,a=rP(),{direction:l}=Ft();if(a){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),p.createElement(p.Fragment,null,s)}return o&&!o.isOpen&&!i?null:p.createElement(gP,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:l})});function gP({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=f.useRef(null),a=f.useRef(null),l=f.useContext(Lf),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:h,placement:g,triggerAnchorPoint:y}=lR({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:s?l:a},e),b=o.popoverRef,S=zg(b,!!g)||o.isEntering||!1,m=qe({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:S,isExiting:t}}),v=!o.isNonModal||o.trigger==="SubmenuTrigger",[E,C]=f.useState(!1);le(()=>{b.current&&C(v&&!b.current.querySelector("[role=dialog]"))},[b,v]),f.useEffect(()=>{E&&o.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&Ht(b.current)},[E,b,o.trigger]);let P=f.useMemo(()=>{let A=m.children;if(n)for(let T of n)A=p.createElement(T.Provider,{value:null},A);return A},[m.children,n]),x={...c.style,"--trigger-anchor-point":y?`${y.x}px ${y.y}px`:void 0,...m.style},D=p.createElement("div",{...Q(he(o,{global:!0}),c),...m,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:x,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":S||void 0,"data-exiting":t||void 0},!o.isNonModal&&p.createElement(vf,{onDismiss:e.close}),p.createElement(yu.Provider,{value:{...h,placement:g,ref:i}},P),p.createElement(vf,{onDismiss:e.close}));if(!s)return p.createElement(ko,{...o,shouldContainFocus:E,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&p.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),p.createElement("div",{ref:a,style:{display:"contents"}},p.createElement(Lf.Provider,{value:a},D)));var $;return p.createElement(ko,{...o,shouldContainFocus:E,isExiting:t,portalContainer:($=r??(l==null?void 0:l.current))!==null&&$!==void 0?$:void 0},D)}var ly=f.createContext(null);_u("section",(e,t,r)=>{let{name:n,render:o}=f.useContext(ly);return o(e,t,r,"react-aria-Section")});var sy={CollectionRoot({collection:e,renderDropIndicator:t}){return Nf(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Nf(e,t,r)}};function Nf(e,t,r){return Z0({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:p.createElement(p.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,mP(e,n,r))}})}function mP(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});f.isValidElement(u)&&l.push(f.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var jn=f.createContext(sy);function uy(e){return f.useMemo(()=>e!=null?new Set([e]):null,[e])}var Bf=f.createContext(null),yP=f.createContext(null),cy=f.createContext({});ha(V0,function(e,t){return[e,t]=Re(e,t,cy),p.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var dy=f.createContext({});f.forwardRef(function(e,t){return[e,t]=Re(e,t,dy),p.createElement("kbd",{dir:"ltr",...e,ref:t})});function bP(e){let t=he(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var fy=f.createContext({}),py=class extends hr{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};py.type="separator";ha(py,function(e,t){[e,t]=Re(e,t,fy);let{elementType:r,orientation:n,style:o,className:i,slot:a,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=bP({...l,elementType:r,orientation:n}),c=he(e,{global:!0});return p.createElement(s,{...Q(c,u),style:o,className:i??"react-aria-Separator",ref:t,slot:a||void 0})});var hy=new WeakMap;function ss(e){return vT()?e.altKey:e.ctrlKey}function bo(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var gy=new WeakMap;function vP(e){let t=Ae();return gy.set(e,t),t}function EP(e){return gy.get(e)}var SP=1e3;function xP(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,i=a=>{let l=wP(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},SP)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function wP(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function my(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:g,scrollRef:y=n,linkBehavior:b="action"}=e,{direction:S}=Ft(),m=oa(),v=F=>{var j;if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!(!((j=n.current)===null||j===void 0)&&j.contains(F.target)))return;let B=(G,W)=>{if(G!=null){if(t.isLink(G)&&b==="selection"&&u&&!ss(F)){Uo.flushSync(()=>{t.setFocusedKey(G,W)});let J=bo(n,G),ae=t.getItemProps(G);J&&m.open(J,F,ae.href,ae.routerOptions);return}if(t.setFocusedKey(G,W),t.isLink(G)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&!ss(F)&&t.replaceSelection(G)}};switch(F.key){case"ArrowDown":if(r.getKeyBelow){var N,U,M;let G=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r);G==null&&i&&(G=(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G))}break;case"ArrowUp":if(r.getKeyAbove){var H,z,K;let G=t.focusedKey!=null?(H=r.getKeyAbove)===null||H===void 0?void 0:H.call(r,t.focusedKey):(z=r.getLastKey)===null||z===void 0?void 0:z.call(r);G==null&&i&&(G=(K=r.getLastKey)===null||K===void 0?void 0:K.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G))}break;case"ArrowLeft":if(r.getKeyLeftOf){var q,ue,ge;let G=t.focusedKey!=null?(q=r.getKeyLeftOf)===null||q===void 0?void 0:q.call(r,t.focusedKey):null;G==null&&i&&(G=S==="rtl"?(ue=r.getFirstKey)===null||ue===void 0?void 0:ue.call(r,t.focusedKey):(ge=r.getLastKey)===null||ge===void 0?void 0:ge.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var me,St,Y;let G=t.focusedKey!=null?(me=r.getKeyRightOf)===null||me===void 0?void 0:me.call(r,t.focusedKey):null;G==null&&i&&(G=S==="rtl"?(St=r.getLastKey)===null||St===void 0?void 0:St.call(r,t.focusedKey):(Y=r.getFirstKey)===null||Y===void 0?void 0:Y.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let G=r.getFirstKey(t.focusedKey,Er(F));t.setFocusedKey(G),G!=null&&(Er(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&t.replaceSelection(G))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let G=r.getLastKey(t.focusedKey,Er(F));t.setFocusedKey(G),G!=null&&(Er(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&t.replaceSelection(G))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let G=r.getKeyPageBelow(t.focusedKey);G!=null&&(F.preventDefault(),B(G))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let G=r.getKeyPageAbove(t.focusedKey);G!=null&&(F.preventDefault(),B(G))}break;case"a":Er(F)&&t.selectionMode==="multiple"&&l!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(F.stopPropagation(),F.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(F.shiftKey)n.current.focus();else{let G=He(n.current,{tabbable:!0}),W,J;do J=G.lastChild(),J&&(W=J);while(J);W&&!W.contains(document.activeElement)&&Me(W)}break}}},E=f.useRef({top:0,left:0});sn(y,"scroll",g?void 0:()=>{var F,j,B,N;E.current={top:(B=(F=y.current)===null||F===void 0?void 0:F.scrollTop)!==null&&B!==void 0?B:0,left:(N=(j=y.current)===null||j===void 0?void 0:j.scrollLeft)!==null&&N!==void 0?N:0}});let C=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){var j,B;let M=z=>{z!=null&&(t.setFocusedKey(z),u&&!t.isSelected(z)&&t.replaceSelection(z))},H=F.relatedTarget;var N,U;H&&F.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?M((N=t.lastSelectedKey)!==null&&N!==void 0?N:(j=r.getLastKey)===null||j===void 0?void 0:j.call(r)):M((U=t.firstSelectedKey)!==null&&U!==void 0?U:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!g&&y.current&&(y.current.scrollTop=E.current.top,y.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&y.current){let M=bo(n,t.focusedKey);M instanceof HTMLElement&&(!M.contains(document.activeElement)&&!d&&Me(M),$n()==="keyboard"&&Nd(M,{containingElement:n.current}))}}},P=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)},x=f.useRef(!1);sn(n,IT,d?F=>{let{detail:j}=F;F.stopPropagation(),t.setFocused(!0),(j==null?void 0:j.focusStrategy)==="first"&&(x.current=!0)}:void 0);let D=De(()=>{var F,j;let B=(j=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&j!==void 0?j:null;if(B==null){let N=Te();Pm(n.current),Om(N,null),t.collection.size>0&&(x.current=!1)}else t.setFocusedKey(B),x.current=!1});kd(()=>{x.current&&D()},[t.collection,D]);let $=De(()=>{t.collection.size>0&&(x.current=!1)});kd(()=>{$()},[t.focusedKey,$]),sn(n,FT,d?F=>{var j;F.stopPropagation(),t.setFocused(!1),!((j=F.detail)===null||j===void 0)&&j.clearFocusKey&&t.setFocusedKey(null)}:void 0);let A=f.useRef(o),T=f.useRef(!1);f.useEffect(()=>{if(A.current){var F,j;let U=null;var B;o==="first"&&(U=(B=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&B!==void 0?B:null);var N;o==="last"&&(U=(N=(j=r.getLastKey)===null||j===void 0?void 0:j.call(r))!==null&&N!==void 0?N:null);let M=t.selectedKeys;if(M.size){for(let H of M)if(t.canSelectItem(H)){U=H;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!d&&n.current&&Ht(n.current),t.collection.size>0&&(A.current=!1,T.current=!0)}});let w=f.useRef(t.focusedKey),O=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||T.current)&&y.current&&n.current){let F=$n(),j=bo(n,t.focusedKey);if(!(j instanceof HTMLElement))return;(F==="keyboard"||T.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{y.current&&(Ug(y.current,j),F!=="virtual"&&Nd(j,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&w.current!=null&&n.current&&Ht(n.current),w.current=t.focusedKey,T.current=!1}),f.useEffect(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),sn(n,"react-aria-focus-scope-restore",F=>{F.preventDefault(),t.setFocused(!0)});let I={onKeyDown:v,onFocus:C,onBlur:P,onMouseDown(F){y.current===F.target&&F.preventDefault()}},{typeSelectProps:R}=xP({keyboardDelegate:r,selectionManager:t});c||(I=Q(R,I));let k;d||(k=t.focusedKey==null?0:-1);let L=vP(t.collection);return{collectionProps:Q(I,{tabIndex:k,"data-collection":L})}}function yy(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,h=oa();t=Ae(t);let g=N=>{if(N.pointerType==="keyboard"&&ss(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let U=r.getItemProps(n);h.open(o.current,N,U.href,U.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(Er(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?Pm(o.current):l?l():document.activeElement!==o.current&&o.current&&Ht(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let y={};!a&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===o.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=N=>{N.preventDefault()});let b=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",m=r.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&r.canSelectItem(n)&&!b&&!S,E=(u||m)&&!s,C=E&&(r.selectionBehavior==="replace"?!v:!v||r.isEmpty),P=E&&v&&r.selectionBehavior==="replace",x=C||P,D=f.useRef(null),$=x&&v,A=f.useRef(!1),T=f.useRef(!1),w=r.getItemProps(n),O=N=>{if(u){var U;u(),(U=o.current)===null||U===void 0||U.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}m&&o.current&&h.open(o.current,N,w.href,w.routerOptions)},I={ref:o};if(i?(I.onPressStart=N=>{D.current=N.pointerType,A.current=$,N.pointerType==="keyboard"&&(!x||jf())&&g(N)},c?(I.onPressUp=C?void 0:N=>{N.pointerType==="mouse"&&v&&g(N)},I.onPress=C?O:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&v&&g(N)}):I.onPress=N=>{if(C||P&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!Mf())return;O(N)}else N.pointerType!=="keyboard"&&v&&g(N)}):(I.onPressStart=N=>{D.current=N.pointerType,A.current=$,T.current=C,v&&(N.pointerType==="mouse"&&!C||N.pointerType==="keyboard"&&(!E||jf()))&&g(N)},I.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&x&&Mf()||N.pointerType==="mouse"&&T.current)&&(x?O(N):v&&g(N))}),y["data-collection"]=EP(r.collection),y["data-key"]=n,I.preventFocusOnPress=a,a&&(I=Q(I,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),w)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])w[N]&&(I[N]=kn(I[N],w[N]));let{pressProps:R,isPressed:k}=Ln(I),L=P?N=>{D.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),O(N))}:void 0,{longPressProps:F}=p_({isDisabled:!$,onLongPress(N){N.pointerType==="touch"&&(g(N),r.setSelectionBehavior("toggle"))}}),j=N=>{D.current==="touch"&&A.current&&N.preventDefault()},B=d!=="none"&&r.isLink(n)?N=>{lr.isOpening||N.preventDefault()}:void 0;return{itemProps:Q(y,v||C||a&&!s?R:{},$?F:{},{onDoubleClick:L,onDragStartCapture:j,onClick:B,id:t},a?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:k,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:x}}function Mf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function jf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var Hf=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?bo(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(o=e==null?void 0:e.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},$P=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let i=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(i,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Or(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Or(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new Hf(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Hf(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function CP(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=OA({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=f.useMemo(()=>i||new $P({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a}),[i,a,r,n,o,l,s]),{collectionProps:c}=my({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function DP(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=he(e,{labelable:!0}),{listProps:s}=CP({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return hy.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:Q(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function by(e){return null}by.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,i=e.title||e.children,a=e.textValue||(typeof i=="string"?i:"")||e["aria-label"]||"";!a&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:TP(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];p.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function TP(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&p.Children.count(e.children)>0)}var _P=by,AP=class{build(e,t){return this.context=t,Uf(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(p.isValidElement(t)&&t.type===p.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];p.Children.forEach(t,i=>{i&&n.push(i)});let o=0;for(let i of n){let a=this.getFullNode({element:i,index:o},{});for(let l of a)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var i;let a=(i=o.key)!==null&&i!==void 0?i:o.id;if(a==null)throw new Error("No key found for item");return a}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(p.isValidElement(e.element)&&e.element.type===p.Fragment){let b=[];p.Children.forEach(e.element.props.children,m=>{b.push(m)});var o;let S=(o=e.index)!==null&&o!==void 0?o:0;for(let m of b)yield*this.getFullNode({element:m,index:S++},t,r,n);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=n?n.key:null,yield b;return}i=t.renderer(e.value)}if(p.isValidElement(i)){let b=i.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let E=i.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=b.getCollectionNode(i.props,this.context);var a;let m=(a=e.index)!==null&&a!==void 0?a:0,v=S.next();for(;!v.done&&v.value;){let E=v.value;e.index=m;var l;let C=(l=E.key)!==null&&l!==void 0?l:null;C==null&&(C=E.element?null:this.getKey(i,e,t,r));let P=[...this.getFullNode({...E,key:C,index:m,wrapper:RP(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${i.key}`:i.key,n)];for(let x of P){var s,u;x.value=(u=(s=E.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,x.value&&this.cache.set(x.value,x);var c;if(e.type&&x.type!==e.type)throw new Error(`Unsupported type <${ol(x.type)}> in <${ol((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${ol(e.type)}> is supported.`);m++,yield x}v=S.next(P)}return}if(e.key==null||e.type==null)return;let d=this;var h,g;let y={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(h=e.value)!==null&&h!==void 0?h:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Uf(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${y.key}${S.key}`);let m=d.getFullNode({...S,index:b},d.getChildState(t,S),y.key,y);for(let v of m)b++,yield v}})};yield y}constructor(){this.cache=new WeakMap}};function Uf(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function RP(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function ol(e){return e[0].toUpperCase()+e.slice(1)}function vy(e,t,r){let n=f.useMemo(()=>new AP,[]),{children:o,items:i,collection:a}=e;return f.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function Ey(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function PP(e){return OP(e)}function OP(e,t){for(let r of e)return r}function al(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Kf(e,t),t],o=[...Kf(e,r),r],i=n.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Kf(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var zf=new WeakMap;function FP(e){let t=zf.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Ey(i,e)):i.type==="item"&&r++};return n(e),zf.set(e,r),r}function IP(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:h,onClick:g,onHoverStart:y,onHoverChange:b,onHoverEnd:S,onKeyDown:m,onKeyUp:v,onFocus:E,onFocusChange:C,onBlur:P,selectionManager:x=t.selectionManager}=e,D=!!l,$=D&&e["aria-expanded"]==="true";var A;let T=(A=e.isDisabled)!==null&&A!==void 0?A:x.isDisabled(o);var w;let O=(w=e.isSelected)!==null&&w!==void 0?w:x.isSelected(o),I=hy.get(t),R=t.collection.getItem(o),k=e.onClose||I.onClose,L=oa(),F=()=>{var V;if(!D&&(!(R==null||(V=R.props)===null||V===void 0)&&V.onAction?R.props.onAction():e.onAction&&e.onAction(o),I.onAction)){let Oe=I.onAction;Oe(o)}},j="menuitem";D||(x.selectionMode==="single"?j="menuitemradio":x.selectionMode==="multiple"&&(j="menuitemcheckbox"));let B=ho(),N=ho(),U=ho(),M={id:n,"aria-disabled":T||void 0,role:j,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[N,U].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};x.selectionMode!=="none"&&!D&&(M["aria-checked"]=O),a&&(M["aria-posinset"]=R==null?void 0:R.index,M["aria-setsize"]=FP(t.collection));let H=f.useRef(!1),z=V=>{d==null||d(V),H.current=V},K=f.useRef(null),q=V=>{V.pointerType!=="keyboard"&&(K.current={pointerType:V.pointerType}),V.pointerType==="mouse"&&(H.current||V.target.click()),u==null||u(V)},ue=V=>{var Oe,nt;g==null||g(V),F(),CT(V,L,R.props.href,R==null?void 0:R.props.routerOptions);let Ke=((Oe=K.current)===null||Oe===void 0?void 0:Oe.pointerType)==="keyboard"?((nt=K.current)===null||nt===void 0?void 0:nt.key)==="Enter"||x.selectionMode==="none"||x.isLink(o):x.selectionMode!=="multiple"||x.isLink(o);Ke=i??Ke,k&&!D&&Ke&&k(),K.current=null},{itemProps:ge,isFocused:me}=yy({id:n,selectionManager:x,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:St,isPressed:Y}=Ln({onPressStart:s,onPress:c,onPressUp:q,onPressChange:z,onPressEnd:h,isDisabled:T}),{hoverProps:G}=Gr({isDisabled:T,onHoverStart(V){!wn()&&!($&&l)&&(x.setFocused(!0),x.setFocusedKey(o)),y==null||y(V)},onHoverChange:b,onHoverEnd:S}),{keyboardProps:W}=nm({onKeyDown:V=>{if(V.repeat){V.continuePropagation();return}switch(V.key){case" ":K.current={pointerType:"keyboard",key:" "},V.target.click();break;case"Enter":K.current={pointerType:"keyboard",key:"Enter"},V.target.tagName!=="A"&&V.target.click();break;default:D||V.continuePropagation(),m==null||m(V);break}},onKeyUp:v}),{focusProps:J}=hu({onBlur:P,onFocus:E,onFocusChange:C}),ae=he(R==null?void 0:R.props);delete ae.id;let Pe=Mg(R==null?void 0:R.props);return{menuItemProps:{...M,...Q(ae,Pe,D?{onFocus:ge.onFocus,"data-collection":ge["data-collection"],"data-key":ge["data-key"]}:ge,St,G,W,J,I.shouldUseVirtualFocus||D?{onMouseDown:V=>V.preventDefault()}:void 0,T?void 0:{onClick:ue}),tabIndex:ge.tabIndex!=null&&$&&!I.shouldUseVirtualFocus?-1:ge.tabIndex},labelProps:{id:B},descriptionProps:{id:N},keyboardShortcutProps:{id:U},isFocused:me,isFocusVisible:me&&x.isFocused&&wn()&&!$,isSelected:O,isPressed:Y,isDisabled:T}}function kP(e){let{heading:t,"aria-label":r}=e,n=Ae();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var oo=2,LP=50,NP=1e3,Gf=Math.PI/12;function BP(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=f.useRef(void 0),a=f.useRef(void 0),l=f.useRef(0),s=f.useRef(void 0),u=f.useRef(void 0),c=f.useRef(void 0),d=f.useRef(2),[h,g]=f.useState(!1);Do({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0)}});let y=()=>{g(!1),d.current=oo,i.current=void 0},b=e_(),S=De(m=>{h&&m.preventDefault()});f.useEffect(()=>{h&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,h]),f.useEffect(()=>{let m=r.current,v=t.current;if(o||!m||!n||b!=="pointer"||!v){y();return}a.current=m.getBoundingClientRect();let E=C=>{if(C.pointerType==="touch"||C.pointerType==="pen")return;let P=Date.now();if(P-l.current<LP)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:x,clientY:D}=C;if(!i.current){i.current={x,y:D};return}if(!a.current)return;if(c.current||(c.current=x>a.current.right?"left":"right"),x<v.getBoundingClientRect().left||x>v.getBoundingClientRect().right||D<v.getBoundingClientRect().top||D>v.getBoundingClientRect().bottom){y();return}let $=i.current.x,A=i.current.y,T=c.current==="right"?a.current.left-$:$-a.current.right,w=Math.atan2(A-a.current.top,T)+Gf,O=Math.atan2(A-a.current.bottom,T)-Gf,I=Math.atan2(A-D,c.current==="left"?-(x-$):x-$),R=I<w&&I>O;d.current=R?Math.min(d.current+1,oo):Math.max(d.current-1,0),d.current>=oo?g(!0):g(!1),l.current=P,i.current={x,y:D},R&&(s.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let k=document.elementFromPoint(x,D);k&&v.contains(k)&&k.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},NP))};return window.addEventListener("pointermove",E),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=oo}},[o,n,t,b,g,S,r])}function MP(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=Ae(),c=Ae(),{direction:d}=Ft(),h=f.useRef(void 0),g=f.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=void 0)},[h]),y=De($=>{g(),t.open($)}),b=De(()=>{g(),t.close()});le(()=>()=>{g()},[g]);let S=$=>{if($.currentTarget.contains(document.activeElement))switch($.key){case"ArrowLeft":d==="ltr"&&$.currentTarget.contains($.target)&&($.preventDefault(),$.stopPropagation(),b(),!s&&r.current&&Me(r.current));break;case"ArrowRight":d==="rtl"&&$.currentTarget.contains($.target)&&($.preventDefault(),$.stopPropagation(),b(),!s&&r.current&&Me(r.current));break;case"Escape":var A;!((A=o.current)===null||A===void 0)&&A.contains($.target)&&($.stopPropagation(),b(),!s&&r.current&&Me(r.current));break}};var m;let v={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:(m=t.focusStrategy)!==null&&m!==void 0?m:void 0,onKeyDown:S}},E=$=>{switch($.key){case"ArrowRight":a||(d==="ltr"?($.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Me(o.current)):t.isOpen?b():$.continuePropagation());break;case"ArrowLeft":a||(d==="rtl"?($.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Me(o.current)):t.isOpen?b():$.continuePropagation());break;default:$.continuePropagation();break}},C=$=>{!a&&($.pointerType==="virtual"||$.pointerType==="keyboard")&&y("first")},P=$=>{!a&&($.pointerType==="touch"||$.pointerType==="mouse")&&y()},x=$=>{a||($&&!t.isOpen?h.current||(h.current=setTimeout(()=>{y()},l)):$||g())};sn(n,"focusin",$=>{var A;t.isOpen&&!((A=n.current)===null||A===void 0)&&A.contains($.target)&&$.target!==r.current&&b()});let D=$=>$!==r.current;return BP({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:C,onPress:P,onHoverChange:x,onKeyDown:E,isOpen:t.isOpen},submenuProps:v,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:D}}}function Sy(e){let t=Bn(e),[r,n]=f.useState(null),[o,i]=f.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(l,s)=>{i(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{i(u=>u[s]===l?u.slice(0,s):u)}}}function jP(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[l]=f.useState(n==null?void 0:n.length),s=f.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=f.useState(null),d=f.useCallback(y=>{c(y??null),o(r,l)},[o,l,r]),h=f.useCallback(()=>{c(null),i(r,l)},[i,l,r]),g=f.useCallback(y=>{c(y??null),s?h():d(y)},[h,d,s]);return f.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:h,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,h,a,u,g,l])}var HP=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||t.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of e)r(a);let n=null,o=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}},Tt=class xy extends Set{constructor(t,r,n){super(t),t instanceof xy?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function UP(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Ru(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=f.useRef(!1),[,l]=f.useState(!1),s=f.useRef(null),u=f.useRef(null),[,c]=f.useState(null),d=f.useMemo(()=>Wf(e.selectedKeys),[e.selectedKeys]),h=f.useMemo(()=>Wf(e.defaultSelectedKeys,new Tt),[e.defaultSelectedKeys]),[g,y]=la(d,h,e.onSelectionChange),b=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,m]=f.useState(o);o==="replace"&&S==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let v=f.useRef(o);return f.useEffect(()=>{o!==v.current&&(m(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:m,get isFocused(){return a.current},setFocused(E){a.current=E,l(E)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(E,C="first"){s.current=E,u.current=C,c(E)},selectedKeys:g,setSelectedKeys(E){(n||!UP(E,g))&&y(E)},disabledKeys:b,disabledBehavior:i}}function Wf(e,t){return e?e==="all"?"all":new Tt(e):t}var Pu=class wy{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&al(this.collection,o,t)<0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&al(this.collection,o,t)>0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Tt([r],r,r);else{let a=this.state.selectedKeys;var o;let l=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new Tt(a,l,r);var i;for(let s of this.getKeyRange(l,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?al(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new Tt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new Tt([r],r,r):new Tt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Tt;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&t.push(n);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=PP(Ey(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Tt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new wy(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function KP(e){let{onExpandedChange:t}=e,[r,n]=la(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Ru(e),i=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=vy(e,f.useCallback(l=>new HP(l,{expandedKeys:r}),[r]),null);return f.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:l=>{n(zP(r,l))},setExpandedKeys:n,selectionManager:new Pu(a,o)}}function zP(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var $y=f.createContext(null),ga=f.createContext(null),No=f.createContext(null),Bo=f.createContext(null),Cy=f.createContext(null),Dy=class extends hr{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};Dy.type="submenutrigger";_u(Dy,(e,t,r)=>{let{CollectionBranch:n}=f.useContext(jn),o=f.useContext(ga),i=f.useContext(No),a=jP({triggerKey:r.key},i),l=f.useRef(null),s=dt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=f.useContext(Cy),{submenuTriggerProps:d,submenuProps:h,popoverProps:g}=MP({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return p.createElement(Ot,{values:[[Mo,{...d,onAction:void 0,ref:s}],[$y,{ref:l,...h}],[ma,a],[Au,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":h["aria-labelledby"],...g}]]},p.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);f.forwardRef(function(e,t){return[e,t]=Re(e,t,$y),p.createElement(ey,{content:p.createElement(ny,e)},r=>p.createElement(GP,{props:e,collection:r,menuRef:t}))});function GP({props:e,collection:t,menuRef:r}){[e,r]=Re(e,r,Bf);let{filter:n,...o}=e,i=f.useMemo(()=>n?t.filter(n):t,[t,n]),a=KP({...e,collection:i,children:void 0}),l=f.useContext(No),{isVirtualized:s,CollectionRoot:u}=f.useContext(jn),{menuProps:c}=DP({...e,isVirtualized:s,onClose:e.onClose||(l==null?void 0:l.close)},a,r),d=qe({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),h=null;a.collection.size===0&&e.renderEmptyState&&(h=p.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=he(e,{global:!0});return p.createElement(Eu,null,p.createElement("div",{...Q(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},p.createElement(Ot,{values:[[ga,a],[fy,{elementType:"div"}],[ly,{name:"MenuSection",render:Ty}],[Cy,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[Mo,null],[Bf,null],[yP,null],[Bo,a.selectionManager],[No,l??Sy({})]]},p.createElement(u,{collection:a.collection,persistedKeys:uy(a.selectionManager.focusedKey),scrollRef:r})),h))}var WP=class extends Pu{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function Ty(e,t,r,n="react-aria-MenuSection"){var o,i;let a=f.useContext(ga),{CollectionBranch:l}=f.useContext(jn),[s,u]=am();var c;let{headingProps:d,groupProps:h}=kP({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=qe({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(i=r.props)===null||i===void 0?void 0:i.style,values:{}}),y=f.useContext(Bo),b=Ru(e),S=e.selectionMode!=null?new WP(y,b):y,m=he(e,{global:!0});return delete m.id,p.createElement("section",{...Q(m,g,h),ref:t},p.createElement(Ot,{values:[[cy,{...d,ref:s}],[Bo,S]]},p.createElement(l,{collection:a.collection,parent:r})))}_u(Y0,Ty);var Mo=f.createContext(null);ha(q0,function(e,t,r){var n;[e,t]=Re(e,t,Mo);let o=(n=mu(Mo))===null||n===void 0?void 0:n.id,i=f.useContext(ga),a=dt(t),l=f.useContext(Bo),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...h}=IP({...e,id:o,key:r.key,selectionManager:l},i,a),{hoverProps:g,isHovered:y}=Gr({isDisabled:h.isDisabled}),b=qe({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:y,isFocusVisible:h.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",m=he(e,{global:!0});return delete m.id,delete m.onClick,p.createElement(S,{...Q(m,b,s,g),ref:a,"data-disabled":h.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},p.createElement(Ot,{values:[[A0,{slots:{[Po]:u,label:u,description:c}}],[dy,d]]},b.children))});function VP(e,t){let{role:r="dialog"}=e,n=ho();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Ht(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Ht(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),y0(),{dialogProps:{...he(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var _y=f.createContext(null),ma=f.createContext(null);function qP(e){let t=Sy(e),r=f.useRef(null),{triggerProps:n,overlayProps:o}=VA({},t,r),[i,a]=f.useState(null),l=f.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return Do({ref:r,onResize:l}),n.id=Ae(),o["aria-labelledby"]=n.id,p.createElement(Ot,{values:[[ma,t],[No,t],[_y,o],[Au,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},p.createElement(s_,{...n,ref:r,isPressed:t.isOpen},e.children))}f.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Re(e,t,_y);let{dialogProps:n,titleProps:o}=VP({...e,"aria-labelledby":r},t),i=f.useContext(ma);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=qe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),l=he(e,{global:!0});return p.createElement("section",{...Q(l,a,n),ref:t,slot:e.slot||void 0},p.createElement(Ot,{values:[[_0,{slots:{[Po]:{},title:{...o,level:2}}}],[iy,{slots:{[Po]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},a.children))});var Ay=({placement:e="bottom-start",hasChrome:t=!0,hasCloseButton:r=!1,closeLabel:n,offset:o=8,padding:i,popover:a,children:l,defaultVisible:s,visible:u,onVisibleChange:c,...d})=>{let h=wu(e),[g,y]=f.useState(s??!1),b=f.useCallback(m=>{y(m),c==null||c(m)},[c]),S=f.useCallback(()=>y(!1),[]);return p.createElement(qP,{defaultOpen:s,isOpen:u??g,onOpenChange:b,...d},p.createElement(l_,null,l),p.createElement(hP,{placement:h,offset:o,style:{outline:"none"}},p.createElement(Mn,{hasChrome:t,hideLabel:n,onHide:r?S:void 0,padding:i},typeof a=="function"?a({onHide:S}):a)))},Ry=f.forwardRef((e,t)=>p.createElement(Mn,{ref:t,...e}));Ry.displayName="Tooltip";f.lazy(()=>Mt(()=>import("./WithTooltip-IO6J4KBT-DQaUt46F.js"),__vite__mapDeps([6,0,1,2,4]),import.meta.url).then(e=>({default:e.WithTooltip})));f.lazy(()=>Mt(()=>import("./WithTooltip-IO6J4KBT-DQaUt46F.js"),__vite__mapDeps([6,0,1,2,4]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:CL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;_.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));_.span();_.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));_.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));_.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:YP}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var XP=At(_n(),1);const{deprecate:JP}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ZP=_(({active:e,loading:t,disabled:r,...n})=>p.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),QP=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),e2=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),t2=_.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),r2=_.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),n2=_.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),o2=(0,XP.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),Py=f.forwardRef((e,t)=>{let{loading:r=!1,title:n=p.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:h,LinkWrapper:g=void 0,...y}=e,b={active:a,disabled:l},S=o2(e),m=d||h;return JP("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),p.createElement(n2,{"data-deprecated":"ListItem",ref:t,...y,...b,...S},p.createElement(p.Fragment,null,m&&p.createElement(r2,{...b},m),n||o?p.createElement(e2,{isIndented:s&&!m},n&&p.createElement(ZP,{...b,loading:r},n),o&&p.createElement(t2,{...b},o)):null,i&&p.createElement(QP,{...b},i)))});Py.displayName="ListItem";var Oy=Py,a2=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),i2=_.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),l2=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:a}=r,l=f.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:o,title:i,href:a}),[t,e,n,o,i,a]);return p.createElement(Oy,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Fy=({links:e,LinkWrapper:t,...r})=>{YP("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(i=>i.some(a=>"icon"in a&&a.icon||"input"in a&&a.input));return p.createElement(a2,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(i=>i.length).map((i,a)=>p.createElement(i2,{key:i.map(l=>l.id).join(`~${a}~`)},i.map(l=>"content"in l?p.createElement(f.Fragment,{key:l.id},l.content):p.createElement(l2,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:ya}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:s2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var u2=_.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),c2=_.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Hn=f.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>p.createElement(u2,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?p.createElement(c2,{innerStyle:r},t):t));Hn.displayName="Bar";var us=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});us.displayName="Side";var d2=_.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),f2=_(Hn)({paddingInline:0}),Ou=({children:e,backgroundColor:t,className:r="",...n})=>{s2('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,i]=f.Children.toArray(e);return p.createElement(f2,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},p.createElement(d2,{bgColor:t},p.createElement(us,{scrollable:n.scrollable,left:!0},o),i?p.createElement(us,{right:!0},i):null))};Ou.displayName="FlexBar";const{deprecate:p2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var h2=e=>typeof e.props.href=="string",g2=e=>typeof e.props.href!="string";function m2({children:e,...t},r){let n={props:t,ref:r};if(h2(n))return p.createElement("a",{ref:n.ref,...n.props},e);if(g2(n))return p.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Iy=f.forwardRef(m2);Iy.displayName="ButtonOrLink";var y2=_(Iy,{shouldForwardProp:Mp})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Un=f.forwardRef((e,t)=>(p2("The `TabButton` component is deprecated. Use `TabList` instead."),p.createElement(y2,{"data-deprecated":"TabButton",ref:t,...e})));Un.displayName="TabButton";var b2=_.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),v2=_.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),E2=_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),S2=_.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),x2=_.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Kn=({title:e,description:t,footer:r})=>p.createElement(b2,null,p.createElement(v2,null,p.createElement(E2,null,e),t&&p.createElement(x2,null,t)),r&&p.createElement(S2,null,r));const{deprecate:w2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ky=_.div(({active:e})=>e?{display:"block"}:{display:"none"}),$2=e=>(w2("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),f.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:a})=>p.createElement(ky,{active:a,role:"tabpanel"},i)}}));const{deprecate:C2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var D2=_.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),T2=_(Un)(({active:e,theme:t,preActive:r})=>`
|
|
82
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?jp(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),M5=_(ve)({position:"absolute",top:4,right:4}),Mn=f.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8,...a},l)=>p.createElement(B5,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:l,...a},e,o&&p.createElement(M5,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},p.createElement(I1,null))));Mn.displayName="Popover";var j5=_("li")(({theme:e})=>({padding:"6px 12px",fontSize:12,lineHeight:1.5,background:"transparent",color:e.color.defaultText,cursor:"pointer",borderRadius:4,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:e.base==="light"?ke(.1,e.color.secondary):e.color.secondary,fontWeight:e.typography.weight.bold},":hover":{background:_t(.93,e.color.secondary)},":focus-visible":{background:e.background.hoverable,outline:`2px solid ${e.barSelectedColor}`,outlineOffset:1,borderRadius:2},display:"flex",alignItems:"flex-start",gap:8})),H5=_("div")({display:"flex",flexDirection:"row",gap:4,alignItems:"center"}),U5=_("div")({display:"flex",flexDirection:"column",flexGrow:1}),K5=_("span")(()=>({display:"block",height:"1rem",width:"1rem"})),z5=_("span")(({})=>({})),G5=_("span")(({theme:e})=>({fontSize:11,color:e.textMutedColor})),K0=({id:e,title:t,description:r,icon:n,children:o,isSelected:i,isActive:a,onClick:l,onFocus:s,onKeyDown:u,shouldLookDisabled:c=!1,...d})=>p.createElement(j5,{...d,id:e,role:"option",tabIndex:a?0:-1,"aria-selected":i,"aria-disabled":c?!0:void 0,onClick:l,onFocus:s,onKeyDown:u},o??p.createElement(H5,null,n&&p.createElement(K5,null,n),p.createElement(U5,null,p.createElement(z5,null,t),r&&p.createElement(G5,null,r))));K0.displayName="SelectOption";var no=5,z0=Symbol.for("undefined");function W5(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function as(e){return{...e,type:"option",value:yo(e.value)}}function rl(e){return"type"in e&&e.type==="reset"?e:as(e)}function tn(e){if(e!==z0)return e}function yo(e){return e===void 0?z0:e}var V5=_("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Of(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var q5=_.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Ff(e,t){return t===void 0?[]:W5(t)?e.filter(r=>r.value===t).map(as):e.filter(r=>t.some(n=>r.value===n)).map(as)}var Y5=_(ve)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:_t(.93,r.barSelectedColor),color:r.base==="light"?ke(.1,r.color.secondary):r.color.secondary}:{}),X5=_.div({position:"fixed",inset:0,zIndex:1e3}),J5=({children:e,handleClose:t,triggerRef:r})=>{let n=p.useRef(null);om({ref:n,onInteractOutside:t}),f.useEffect(()=>{if(n.current)return da([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=vu({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=Su({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=ws();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},p.createElement(ko,{disableFocusManagement:!0,...i},p.createElement(X5,{...a}),p.createElement(Mn,{hasChrome:!0,ref:n,padding:0,...o},e))},G0=f.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:h,ariaLabel:g,...y},b)=>{var U;let[S,m]=f.useState(y.defaultOpen||!1),v=dt(b),E=f.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${E}-listbox`,P=f.useRef(null),x=Bn({isOpen:S&&!r,onOpenChange:m}),D=f.useCallback(()=>{var M;m(!1),(M=v.current)==null||M.focus()},[v]),[$,A]=f.useState(Ff(n,o)),T=f.useCallback(M=>{M.type==="reset"?$.length&&(d==null||d([]),a==null||a(),A([])):A(i?H=>{let z=[];return H!=null&&H.some(K=>K.value===M.value)?(c==null||c(tn(M.value)),z=(H==null?void 0:H.filter(K=>K.value!==M.value))??[]):(u==null||u(tn(M.value)),z=[...H??[],M]),d==null||d(z.map(K=>tn(K.value))),z}:H=>H.every(z=>z.value!==M.value)?(u==null||u(tn(M.value)),d==null||d([tn(M.value)]),[M]):H)},[i,d,u,c,a,$]),w=f.useMemo(()=>a?{type:"reset",value:void 0,title:s??"Reset selection",icon:p.createElement(M1,null),description:void 0,children:void 0}:void 0,[a,s]),O=f.useMemo(()=>w?[w,...n]:n,[n,w]);f.useEffect(()=>{o&&A(Ff(n,o))},[o,n]);let[I,R]=f.useState(void 0),k=f.useCallback(M=>{R(rl(M)),i||T(rl(M))},[i,T]),L=f.useCallback((M=1)=>{if(!S||!I){k(O[M===1?0:Math.min(M,O.length-1)]);return}let H=O.findIndex(q=>I.type==="reset"?"type"in q&&q.type==="reset":yo(q.value)===I.value),z=H+M,K;z>=O.length&&H===O.length-1?K=O[0]:K=O[Math.min(O.length-1,z)],k(K)},[S,I,k,O]),F=f.useCallback((M=1)=>{if(!S||!I){k(O[Math.max(0,O.length-M)]);return}let H=O.findIndex(q=>I.type==="reset"?"type"in q&&q.type==="reset":yo(q.value)===I.value),z=H-M,K;z<0&&H===0?K=O[O.length-1]:K=O[Math.max(0,z)],k(K)},[S,I,k,O]),j=f.useCallback(M=>{let H=ge=>{M.preventDefault(),k(O[ge]),m(!0)},z=O.findIndex(ge=>$.some(me=>me.value===yo(ge.value))),K=z!==-1,q=w&&!K?1:0,ue=O.length-1;M.key==="Enter"||M.key===" "?H(K?Math.min(z,ue):q):M.key==="ArrowDown"?H(K?Math.min(z+1,ue):q):M.key==="ArrowUp"?H(K?Math.max(z-1,q):ue):M.key==="Home"?H(q):M.key==="End"?H(ue):M.key==="PageDown"?H(Math.min((K?z:q)+no,ue)):M.key==="PageUp"&&H(Math.max(0,(K?z:ue)-no))},[O,w,k,$]),B=f.useCallback(M=>{M.key!=="Tab"?M.preventDefault():D(),M.key==="Escape"?D():M.key==="ArrowDown"?L():M.key==="ArrowUp"?F():M.key==="Home"?k(O[0]):M.key==="End"?k(O[O.length-1]):M.key==="PageDown"?L(no):M.key==="PageUp"&&F(no)},[D,L,F,O,k]);f.useEffect(()=>{var M;if(S&&I){let H=document.getElementById(Of(E,I));H&&(H.scrollIntoView({block:"nearest"}),H.focus())}else S&&((M=P.current)==null||M.focus())},[S,I,E]);let N=f.useMemo(()=>$.length===1?`${g} ${$[0].title}`:$.length?`${g}, ${$.length} values selected`:g,[g,$]);return p.createElement(p.Fragment,null,p.createElement(Y5,{...y,variant:"ghost",ariaLabel:N,tooltip:h??g,disableAllTooltips:S,id:E,ref:v,padding:l,$isOpen:S,$hasSelection:!!$.length,"aria-disabled":r,disabled:r,onClick:()=>{S?D():m(!0)},tabIndex:S?-1:0,onKeyDown:j,role:"button","aria-controls":S?C:void 0,"aria-expanded":S,"aria-haspopup":"listbox"},!i&&p.createElement(p.Fragment,null,t,((U=$[0])==null?void 0:U.title)??e),i&&p.createElement(p.Fragment,null,t,e,!!$.length&&p.createElement(q5,{"aria-label":`${$.length} ${$.length>1?"items":"item"} selected`},$==null?void 0:$.length))),x.isOpen&&p.createElement(J5,{handleClose:D,triggerRef:v},p.createElement(V5,{"aria-label":g,role:"listbox",id:C,ref:P,"aria-multiselectable":i,onKeyDown:B,tabIndex:S?0:-1},O.map(M=>({option:rl(M),externalOption:M})).map(({externalOption:M,option:H})=>{let z=($==null?void 0:$.some(q=>q.value===H.value))&&H!==w,K=H===w;return p.createElement(K0,{key:H.value===void 0?"sb-reset":String(H.value),title:H.title,description:H.description,icon:!K&&i?p.createElement(pr.Checkbox,{checked:z,hidden:!0,role:"presentation"}):H.icon,id:Of(E,H),isActive:S&&(I==null?void 0:I.value)===H.value,isSelected:z,onClick:()=>{T(H),i||D()},onFocus:()=>k(M),shouldLookDisabled:K&&$.length===0&&i,onKeyDown:q=>{q.key==="Enter"||q.key===" "?(q.preventDefault(),T(H),i||D()):q.key==="Tab"&&(i||T(H),D())}},H.children)}))))});G0.displayName="Select";var hr=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},W0=class extends hr{filter(e,t,r){let[n,o]=X0(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},V0=class extends hr{};V0.type="header";var Z5=class extends hr{};Z5.type="loader";var q0=class extends W0{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};q0.type="item";var Y0=class extends W0{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};Y0.type="section";var Q5=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=X0(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function X0(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let u=a.filter(e,t,n);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var l,s;return[(l=o==null?void 0:o.key)!==null&&l!==void 0?l:null,(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null]}var J0=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},nl=class is extends J0{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof is?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,i,a,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof is&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var h;c.prevKey=(h=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&h!==void 0?h:null;var g;c.nextKey=(g=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,c.hasChildNodes=!!this.firstChild;var y;c.firstChildKey=(y=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&y!==void 0?y:null;var b;if(c.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,m;let v=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((m=c.colSpan)!==null&&m!==void 0?m:1);if(u.node!=null&&v!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=v}}}}setProps(t,r,n,o,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=o,a.render=i,a.value=l,a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,l=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},eP=class extends J0{get isConnected(){return this.isMounted}createElement(e){return new nl(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof nl&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof nl&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,i;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(i=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function Z0(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=f.useMemo(()=>new WeakMap,i);return f.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=a.get(c);if(!d){d=t(c);var l,s;let h=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(h==null)throw new Error("Could not determine key for item");n&&(h=n+":"+h),d=f.cloneElement(d,o?{key:h,id:h,value:c}:{key:h}),a.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Lo=f.createContext(!1);function tP(e){if(f.useContext(Lo))return p.createElement(p.Fragment,null,e.children);let t=p.createElement(Lo.Provider,{value:!0},e.children);return p.createElement("template",{"data-react-aria-hidden":!0},t)}function Tu(e){let t=(r,n)=>f.useContext(Lo)?null:e(r,n);return t.displayName=e.displayName||e.name,f.forwardRef(t)}function rP(){return f.useContext(Lo)}var Q0=f.createContext(!1),Cn=f.createContext(null);function ey(e){if(f.useContext(Cn))return e.content;let{collection:t,document:r}=iP(e.createCollection);return p.createElement(p.Fragment,null,p.createElement(tP,null,p.createElement(Cn.Provider,{value:r},e.content)),p.createElement(nP,{render:e.children,collection:t}))}function nP({collection:e,render:t}){return t(e)}function oP(e,t,r){let n=fr(),o=f.useRef(n);o.current=n;let i=f.useCallback(()=>o.current?r():t(),[t,r]);return xD.useSyncExternalStore(e,i)}var aP=typeof p.useSyncExternalStore=="function"?p.useSyncExternalStore:oP;function iP(e){let[t]=f.useState(()=>new eP((e==null?void 0:e())||new Q5)),r=f.useCallback(a=>t.subscribe(a),[t]),n=f.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=f.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=aP(r,n,o);return le(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var ls=f.createContext(null);function lP(e){var t;return t=class extends hr{},t.type=e,t}function ty(e,t,r,n,o,i){typeof e=="string"&&(e=lP(e));let a=f.useCallback(s=>{s==null||s.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=f.useContext(ls);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?p.createElement(ls.Provider,{value:s},o):null}return p.createElement(e.type,{ref:a},o)}function ha(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=f.forwardRef((o,i)=>{let a=f.useContext(Ro);if(!f.useContext(Q0)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return ty(e,o,i,"children"in o?o.children:null,null,l=>p.createElement(Ro.Provider,{value:a},p.createElement(r,{node:l})))});return n.displayName=t.name,n}function _u(e,t,r=ry){let n=({node:i})=>t(i.props,i.props.ref,i),o=f.forwardRef((i,a)=>{let l=r(i);var s;return(s=ty(e,i,a,null,l,u=>p.createElement(n,{node:u})))!==null&&s!==void 0?s:p.createElement(p.Fragment,null)});return o.displayName=t.name,o}function ry(e){return Z0({...e,addIdAndValue:!0})}var If=f.createContext(null);function ny(e){let t=f.useContext(If),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=ry({...e,idScope:n,dependencies:r});return f.useContext(Cn)&&(o=p.createElement(sP,null,o)),t=f.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),p.createElement(If.Provider,{value:t},o)}function sP({children:e}){let t=f.useContext(Cn),r=f.useMemo(()=>p.createElement(Cn.Provider,{value:null},p.createElement(Q0.Provider,{value:!0},e)),[e]);return fr()?p.createElement(ls.Provider,{value:t},r):Uo.createPortal(r,t)}var oy=f.createContext({});Tu(function(e,t){[e,t]=Re(e,t,oy);let{elementType:r="label",...n}=e;return p.createElement(r,{className:"react-aria-Label",...n,ref:t})});function uP(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Ae(t);let a=Ae(),l={};r&&(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=ia({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function cP(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=he(e,{labelable:!0}),{labelProps:s,fieldProps:u}=uP({...e,labelElementType:"span"});t=En(t,r,n);let c=(t-r)/(n-r),d=PA(a);if(!i&&!o){let h=a.style==="percent"?c:t;o=d.format(h)}return{progressBarProps:Q(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:s}}var ay=f.createContext(null);f.forwardRef(function(e,t){[e,t]=Re(e,t,ay);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=En(r,n,o);let[a,l]=am(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=cP({...e,label:l}),c=i?void 0:(r-n)/(o-n)*100,d=qe({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:i}}),h=he(e,{global:!0});return p.createElement("div",{...Q(h,d,s),ref:t,slot:e.slot||void 0},p.createElement(oy.Provider,{value:{...u,ref:a,elementType:"span"}},d.children))});var pt=null;function kf(e,t="assertive",r=7e3){pt?pt.announce(e,t,r):(pt=new dP,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?pt.announce(e,t,r):setTimeout(()=>{pt!=null&&pt.isAttached()&&(pt==null||pt.announce(e,t,r))},100))}var dP=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(i):(o=this.politeLog)===null||o===void 0||o.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function fP(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:g,rel:y,type:b="button"}=e,S;r==="button"?S={type:b,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:S={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?g:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:m,isPressed:v}=Ln({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=Nn(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let C=Q(E,m,he(e,{labelable:!0}));return{isPressed:v,buttonProps:Q(S,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var iy=f.createContext({});Tu(function(e,t){[e,t]=Re(e,t,iy),e=pP(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=fP(e,t),{focusProps:a,isFocused:l,isFocusVisible:s}=ca(e),{hoverProps:u,isHovered:c}=Gr({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||i)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},h=qe({...e,values:d,defaultClassName:"react-aria-Button"}),g=Ae(o.id),y=Ae(),b=o["aria-labelledby"];n&&(b?b=`${b} ${y}`:o["aria-label"]&&(b=`${g} ${y}`));let S=f.useRef(n);f.useEffect(()=>{let v={"aria-labelledby":b||g};(!S.current&&l&&n||S.current&&l&&!n)&&kf(v,"assertive"),S.current=n},[n,l,b,g]);let m=he(e,{global:!0});return delete m.onClick,p.createElement("button",{...Q(m,h,o,a,u),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},p.createElement(ay.Provider,{value:{id:y}},h.children))});function pP(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var Au=f.createContext(null),Lf=f.createContext(null),hP=f.forwardRef(function(e,t){[e,t]=Re(e,t,Au);let r=f.useContext(ma),n=Bn(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=Gg(t,o.isOpen)||e.isExiting||!1,a=rP(),{direction:l}=Ft();if(a){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),p.createElement(p.Fragment,null,s)}return o&&!o.isOpen&&!i?null:p.createElement(gP,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:l})});function gP({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=f.useRef(null),a=f.useRef(null),l=f.useContext(Lf),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:h,placement:g,triggerAnchorPoint:y}=lR({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:s?l:a},e),b=o.popoverRef,S=zg(b,!!g)||o.isEntering||!1,m=qe({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:S,isExiting:t}}),v=!o.isNonModal||o.trigger==="SubmenuTrigger",[E,C]=f.useState(!1);le(()=>{b.current&&C(v&&!b.current.querySelector("[role=dialog]"))},[b,v]),f.useEffect(()=>{E&&o.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&Ht(b.current)},[E,b,o.trigger]);let P=f.useMemo(()=>{let A=m.children;if(n)for(let T of n)A=p.createElement(T.Provider,{value:null},A);return A},[m.children,n]),x={...c.style,"--trigger-anchor-point":y?`${y.x}px ${y.y}px`:void 0,...m.style},D=p.createElement("div",{...Q(he(o,{global:!0}),c),...m,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:x,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":S||void 0,"data-exiting":t||void 0},!o.isNonModal&&p.createElement(vf,{onDismiss:e.close}),p.createElement(yu.Provider,{value:{...h,placement:g,ref:i}},P),p.createElement(vf,{onDismiss:e.close}));if(!s)return p.createElement(ko,{...o,shouldContainFocus:E,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&p.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),p.createElement("div",{ref:a,style:{display:"contents"}},p.createElement(Lf.Provider,{value:a},D)));var $;return p.createElement(ko,{...o,shouldContainFocus:E,isExiting:t,portalContainer:($=r??(l==null?void 0:l.current))!==null&&$!==void 0?$:void 0},D)}var ly=f.createContext(null);_u("section",(e,t,r)=>{let{name:n,render:o}=f.useContext(ly);return o(e,t,r,"react-aria-Section")});var sy={CollectionRoot({collection:e,renderDropIndicator:t}){return Nf(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Nf(e,t,r)}};function Nf(e,t,r){return Z0({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:p.createElement(p.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,mP(e,n,r))}})}function mP(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});f.isValidElement(u)&&l.push(f.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var jn=f.createContext(sy);function uy(e){return f.useMemo(()=>e!=null?new Set([e]):null,[e])}var Bf=f.createContext(null),yP=f.createContext(null),cy=f.createContext({});ha(V0,function(e,t){return[e,t]=Re(e,t,cy),p.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var dy=f.createContext({});f.forwardRef(function(e,t){return[e,t]=Re(e,t,dy),p.createElement("kbd",{dir:"ltr",...e,ref:t})});function bP(e){let t=he(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var fy=f.createContext({}),py=class extends hr{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};py.type="separator";ha(py,function(e,t){[e,t]=Re(e,t,fy);let{elementType:r,orientation:n,style:o,className:i,slot:a,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=bP({...l,elementType:r,orientation:n}),c=he(e,{global:!0});return p.createElement(s,{...Q(c,u),style:o,className:i??"react-aria-Separator",ref:t,slot:a||void 0})});var hy=new WeakMap;function ss(e){return vT()?e.altKey:e.ctrlKey}function bo(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var gy=new WeakMap;function vP(e){let t=Ae();return gy.set(e,t),t}function EP(e){return gy.get(e)}var SP=1e3;function xP(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,i=a=>{let l=wP(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},SP)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function wP(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function my(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:g,scrollRef:y=n,linkBehavior:b="action"}=e,{direction:S}=Ft(),m=oa(),v=F=>{var j;if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!(!((j=n.current)===null||j===void 0)&&j.contains(F.target)))return;let B=(G,W)=>{if(G!=null){if(t.isLink(G)&&b==="selection"&&u&&!ss(F)){Uo.flushSync(()=>{t.setFocusedKey(G,W)});let J=bo(n,G),ae=t.getItemProps(G);J&&m.open(J,F,ae.href,ae.routerOptions);return}if(t.setFocusedKey(G,W),t.isLink(G)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&!ss(F)&&t.replaceSelection(G)}};switch(F.key){case"ArrowDown":if(r.getKeyBelow){var N,U,M;let G=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r);G==null&&i&&(G=(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G))}break;case"ArrowUp":if(r.getKeyAbove){var H,z,K;let G=t.focusedKey!=null?(H=r.getKeyAbove)===null||H===void 0?void 0:H.call(r,t.focusedKey):(z=r.getLastKey)===null||z===void 0?void 0:z.call(r);G==null&&i&&(G=(K=r.getLastKey)===null||K===void 0?void 0:K.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G))}break;case"ArrowLeft":if(r.getKeyLeftOf){var q,ue,ge;let G=t.focusedKey!=null?(q=r.getKeyLeftOf)===null||q===void 0?void 0:q.call(r,t.focusedKey):null;G==null&&i&&(G=S==="rtl"?(ue=r.getFirstKey)===null||ue===void 0?void 0:ue.call(r,t.focusedKey):(ge=r.getLastKey)===null||ge===void 0?void 0:ge.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var me,St,Y;let G=t.focusedKey!=null?(me=r.getKeyRightOf)===null||me===void 0?void 0:me.call(r,t.focusedKey):null;G==null&&i&&(G=S==="rtl"?(St=r.getLastKey)===null||St===void 0?void 0:St.call(r,t.focusedKey):(Y=r.getFirstKey)===null||Y===void 0?void 0:Y.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let G=r.getFirstKey(t.focusedKey,Er(F));t.setFocusedKey(G),G!=null&&(Er(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&t.replaceSelection(G))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let G=r.getLastKey(t.focusedKey,Er(F));t.setFocusedKey(G),G!=null&&(Er(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&t.replaceSelection(G))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let G=r.getKeyPageBelow(t.focusedKey);G!=null&&(F.preventDefault(),B(G))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let G=r.getKeyPageAbove(t.focusedKey);G!=null&&(F.preventDefault(),B(G))}break;case"a":Er(F)&&t.selectionMode==="multiple"&&l!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(F.stopPropagation(),F.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(F.shiftKey)n.current.focus();else{let G=He(n.current,{tabbable:!0}),W,J;do J=G.lastChild(),J&&(W=J);while(J);W&&!W.contains(document.activeElement)&&Me(W)}break}}},E=f.useRef({top:0,left:0});sn(y,"scroll",g?void 0:()=>{var F,j,B,N;E.current={top:(B=(F=y.current)===null||F===void 0?void 0:F.scrollTop)!==null&&B!==void 0?B:0,left:(N=(j=y.current)===null||j===void 0?void 0:j.scrollLeft)!==null&&N!==void 0?N:0}});let C=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){var j,B;let M=z=>{z!=null&&(t.setFocusedKey(z),u&&!t.isSelected(z)&&t.replaceSelection(z))},H=F.relatedTarget;var N,U;H&&F.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?M((N=t.lastSelectedKey)!==null&&N!==void 0?N:(j=r.getLastKey)===null||j===void 0?void 0:j.call(r)):M((U=t.firstSelectedKey)!==null&&U!==void 0?U:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!g&&y.current&&(y.current.scrollTop=E.current.top,y.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&y.current){let M=bo(n,t.focusedKey);M instanceof HTMLElement&&(!M.contains(document.activeElement)&&!d&&Me(M),$n()==="keyboard"&&Nd(M,{containingElement:n.current}))}}},P=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)},x=f.useRef(!1);sn(n,IT,d?F=>{let{detail:j}=F;F.stopPropagation(),t.setFocused(!0),(j==null?void 0:j.focusStrategy)==="first"&&(x.current=!0)}:void 0);let D=De(()=>{var F,j;let B=(j=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&j!==void 0?j:null;if(B==null){let N=Te();Pm(n.current),Om(N,null),t.collection.size>0&&(x.current=!1)}else t.setFocusedKey(B),x.current=!1});kd(()=>{x.current&&D()},[t.collection,D]);let $=De(()=>{t.collection.size>0&&(x.current=!1)});kd(()=>{$()},[t.focusedKey,$]),sn(n,FT,d?F=>{var j;F.stopPropagation(),t.setFocused(!1),!((j=F.detail)===null||j===void 0)&&j.clearFocusKey&&t.setFocusedKey(null)}:void 0);let A=f.useRef(o),T=f.useRef(!1);f.useEffect(()=>{if(A.current){var F,j;let U=null;var B;o==="first"&&(U=(B=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&B!==void 0?B:null);var N;o==="last"&&(U=(N=(j=r.getLastKey)===null||j===void 0?void 0:j.call(r))!==null&&N!==void 0?N:null);let M=t.selectedKeys;if(M.size){for(let H of M)if(t.canSelectItem(H)){U=H;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!d&&n.current&&Ht(n.current),t.collection.size>0&&(A.current=!1,T.current=!0)}});let w=f.useRef(t.focusedKey),O=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||T.current)&&y.current&&n.current){let F=$n(),j=bo(n,t.focusedKey);if(!(j instanceof HTMLElement))return;(F==="keyboard"||T.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{y.current&&(Ug(y.current,j),F!=="virtual"&&Nd(j,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&w.current!=null&&n.current&&Ht(n.current),w.current=t.focusedKey,T.current=!1}),f.useEffect(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),sn(n,"react-aria-focus-scope-restore",F=>{F.preventDefault(),t.setFocused(!0)});let I={onKeyDown:v,onFocus:C,onBlur:P,onMouseDown(F){y.current===F.target&&F.preventDefault()}},{typeSelectProps:R}=xP({keyboardDelegate:r,selectionManager:t});c||(I=Q(R,I));let k;d||(k=t.focusedKey==null?0:-1);let L=vP(t.collection);return{collectionProps:Q(I,{tabIndex:k,"data-collection":L})}}function yy(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,h=oa();t=Ae(t);let g=N=>{if(N.pointerType==="keyboard"&&ss(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let U=r.getItemProps(n);h.open(o.current,N,U.href,U.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(Er(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?Pm(o.current):l?l():document.activeElement!==o.current&&o.current&&Ht(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let y={};!a&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===o.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=N=>{N.preventDefault()});let b=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",m=r.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&r.canSelectItem(n)&&!b&&!S,E=(u||m)&&!s,C=E&&(r.selectionBehavior==="replace"?!v:!v||r.isEmpty),P=E&&v&&r.selectionBehavior==="replace",x=C||P,D=f.useRef(null),$=x&&v,A=f.useRef(!1),T=f.useRef(!1),w=r.getItemProps(n),O=N=>{if(u){var U;u(),(U=o.current)===null||U===void 0||U.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}m&&o.current&&h.open(o.current,N,w.href,w.routerOptions)},I={ref:o};if(i?(I.onPressStart=N=>{D.current=N.pointerType,A.current=$,N.pointerType==="keyboard"&&(!x||jf())&&g(N)},c?(I.onPressUp=C?void 0:N=>{N.pointerType==="mouse"&&v&&g(N)},I.onPress=C?O:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&v&&g(N)}):I.onPress=N=>{if(C||P&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!Mf())return;O(N)}else N.pointerType!=="keyboard"&&v&&g(N)}):(I.onPressStart=N=>{D.current=N.pointerType,A.current=$,T.current=C,v&&(N.pointerType==="mouse"&&!C||N.pointerType==="keyboard"&&(!E||jf()))&&g(N)},I.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&x&&Mf()||N.pointerType==="mouse"&&T.current)&&(x?O(N):v&&g(N))}),y["data-collection"]=EP(r.collection),y["data-key"]=n,I.preventFocusOnPress=a,a&&(I=Q(I,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),w)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])w[N]&&(I[N]=kn(I[N],w[N]));let{pressProps:R,isPressed:k}=Ln(I),L=P?N=>{D.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),O(N))}:void 0,{longPressProps:F}=p_({isDisabled:!$,onLongPress(N){N.pointerType==="touch"&&(g(N),r.setSelectionBehavior("toggle"))}}),j=N=>{D.current==="touch"&&A.current&&N.preventDefault()},B=d!=="none"&&r.isLink(n)?N=>{lr.isOpening||N.preventDefault()}:void 0;return{itemProps:Q(y,v||C||a&&!s?R:{},$?F:{},{onDoubleClick:L,onDragStartCapture:j,onClick:B,id:t},a?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:k,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:x}}function Mf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function jf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var Hf=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?bo(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(o=e==null?void 0:e.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},$P=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let i=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(i,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Or(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Or(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new Hf(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Hf(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function CP(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=OA({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=f.useMemo(()=>i||new $P({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a}),[i,a,r,n,o,l,s]),{collectionProps:c}=my({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function DP(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=he(e,{labelable:!0}),{listProps:s}=CP({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return hy.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:Q(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function by(e){return null}by.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,i=e.title||e.children,a=e.textValue||(typeof i=="string"?i:"")||e["aria-label"]||"";!a&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:TP(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];p.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function TP(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&p.Children.count(e.children)>0)}var _P=by,AP=class{build(e,t){return this.context=t,Uf(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(p.isValidElement(t)&&t.type===p.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];p.Children.forEach(t,i=>{i&&n.push(i)});let o=0;for(let i of n){let a=this.getFullNode({element:i,index:o},{});for(let l of a)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var i;let a=(i=o.key)!==null&&i!==void 0?i:o.id;if(a==null)throw new Error("No key found for item");return a}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(p.isValidElement(e.element)&&e.element.type===p.Fragment){let b=[];p.Children.forEach(e.element.props.children,m=>{b.push(m)});var o;let S=(o=e.index)!==null&&o!==void 0?o:0;for(let m of b)yield*this.getFullNode({element:m,index:S++},t,r,n);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=n?n.key:null,yield b;return}i=t.renderer(e.value)}if(p.isValidElement(i)){let b=i.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let E=i.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=b.getCollectionNode(i.props,this.context);var a;let m=(a=e.index)!==null&&a!==void 0?a:0,v=S.next();for(;!v.done&&v.value;){let E=v.value;e.index=m;var l;let C=(l=E.key)!==null&&l!==void 0?l:null;C==null&&(C=E.element?null:this.getKey(i,e,t,r));let P=[...this.getFullNode({...E,key:C,index:m,wrapper:RP(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${i.key}`:i.key,n)];for(let x of P){var s,u;x.value=(u=(s=E.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,x.value&&this.cache.set(x.value,x);var c;if(e.type&&x.type!==e.type)throw new Error(`Unsupported type <${ol(x.type)}> in <${ol((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${ol(e.type)}> is supported.`);m++,yield x}v=S.next(P)}return}if(e.key==null||e.type==null)return;let d=this;var h,g;let y={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(h=e.value)!==null&&h!==void 0?h:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Uf(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${y.key}${S.key}`);let m=d.getFullNode({...S,index:b},d.getChildState(t,S),y.key,y);for(let v of m)b++,yield v}})};yield y}constructor(){this.cache=new WeakMap}};function Uf(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function RP(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function ol(e){return e[0].toUpperCase()+e.slice(1)}function vy(e,t,r){let n=f.useMemo(()=>new AP,[]),{children:o,items:i,collection:a}=e;return f.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function Ey(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function PP(e){return OP(e)}function OP(e,t){for(let r of e)return r}function al(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Kf(e,t),t],o=[...Kf(e,r),r],i=n.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Kf(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var zf=new WeakMap;function FP(e){let t=zf.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Ey(i,e)):i.type==="item"&&r++};return n(e),zf.set(e,r),r}function IP(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:h,onClick:g,onHoverStart:y,onHoverChange:b,onHoverEnd:S,onKeyDown:m,onKeyUp:v,onFocus:E,onFocusChange:C,onBlur:P,selectionManager:x=t.selectionManager}=e,D=!!l,$=D&&e["aria-expanded"]==="true";var A;let T=(A=e.isDisabled)!==null&&A!==void 0?A:x.isDisabled(o);var w;let O=(w=e.isSelected)!==null&&w!==void 0?w:x.isSelected(o),I=hy.get(t),R=t.collection.getItem(o),k=e.onClose||I.onClose,L=oa(),F=()=>{var V;if(!D&&(!(R==null||(V=R.props)===null||V===void 0)&&V.onAction?R.props.onAction():e.onAction&&e.onAction(o),I.onAction)){let Oe=I.onAction;Oe(o)}},j="menuitem";D||(x.selectionMode==="single"?j="menuitemradio":x.selectionMode==="multiple"&&(j="menuitemcheckbox"));let B=ho(),N=ho(),U=ho(),M={id:n,"aria-disabled":T||void 0,role:j,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[N,U].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};x.selectionMode!=="none"&&!D&&(M["aria-checked"]=O),a&&(M["aria-posinset"]=R==null?void 0:R.index,M["aria-setsize"]=FP(t.collection));let H=f.useRef(!1),z=V=>{d==null||d(V),H.current=V},K=f.useRef(null),q=V=>{V.pointerType!=="keyboard"&&(K.current={pointerType:V.pointerType}),V.pointerType==="mouse"&&(H.current||V.target.click()),u==null||u(V)},ue=V=>{var Oe,nt;g==null||g(V),F(),CT(V,L,R.props.href,R==null?void 0:R.props.routerOptions);let Ke=((Oe=K.current)===null||Oe===void 0?void 0:Oe.pointerType)==="keyboard"?((nt=K.current)===null||nt===void 0?void 0:nt.key)==="Enter"||x.selectionMode==="none"||x.isLink(o):x.selectionMode!=="multiple"||x.isLink(o);Ke=i??Ke,k&&!D&&Ke&&k(),K.current=null},{itemProps:ge,isFocused:me}=yy({id:n,selectionManager:x,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:St,isPressed:Y}=Ln({onPressStart:s,onPress:c,onPressUp:q,onPressChange:z,onPressEnd:h,isDisabled:T}),{hoverProps:G}=Gr({isDisabled:T,onHoverStart(V){!wn()&&!($&&l)&&(x.setFocused(!0),x.setFocusedKey(o)),y==null||y(V)},onHoverChange:b,onHoverEnd:S}),{keyboardProps:W}=nm({onKeyDown:V=>{if(V.repeat){V.continuePropagation();return}switch(V.key){case" ":K.current={pointerType:"keyboard",key:" "},V.target.click();break;case"Enter":K.current={pointerType:"keyboard",key:"Enter"},V.target.tagName!=="A"&&V.target.click();break;default:D||V.continuePropagation(),m==null||m(V);break}},onKeyUp:v}),{focusProps:J}=hu({onBlur:P,onFocus:E,onFocusChange:C}),ae=he(R==null?void 0:R.props);delete ae.id;let Pe=Mg(R==null?void 0:R.props);return{menuItemProps:{...M,...Q(ae,Pe,D?{onFocus:ge.onFocus,"data-collection":ge["data-collection"],"data-key":ge["data-key"]}:ge,St,G,W,J,I.shouldUseVirtualFocus||D?{onMouseDown:V=>V.preventDefault()}:void 0,T?void 0:{onClick:ue}),tabIndex:ge.tabIndex!=null&&$&&!I.shouldUseVirtualFocus?-1:ge.tabIndex},labelProps:{id:B},descriptionProps:{id:N},keyboardShortcutProps:{id:U},isFocused:me,isFocusVisible:me&&x.isFocused&&wn()&&!$,isSelected:O,isPressed:Y,isDisabled:T}}function kP(e){let{heading:t,"aria-label":r}=e,n=Ae();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var oo=2,LP=50,NP=1e3,Gf=Math.PI/12;function BP(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=f.useRef(void 0),a=f.useRef(void 0),l=f.useRef(0),s=f.useRef(void 0),u=f.useRef(void 0),c=f.useRef(void 0),d=f.useRef(2),[h,g]=f.useState(!1);Do({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0)}});let y=()=>{g(!1),d.current=oo,i.current=void 0},b=e_(),S=De(m=>{h&&m.preventDefault()});f.useEffect(()=>{h&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,h]),f.useEffect(()=>{let m=r.current,v=t.current;if(o||!m||!n||b!=="pointer"||!v){y();return}a.current=m.getBoundingClientRect();let E=C=>{if(C.pointerType==="touch"||C.pointerType==="pen")return;let P=Date.now();if(P-l.current<LP)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:x,clientY:D}=C;if(!i.current){i.current={x,y:D};return}if(!a.current)return;if(c.current||(c.current=x>a.current.right?"left":"right"),x<v.getBoundingClientRect().left||x>v.getBoundingClientRect().right||D<v.getBoundingClientRect().top||D>v.getBoundingClientRect().bottom){y();return}let $=i.current.x,A=i.current.y,T=c.current==="right"?a.current.left-$:$-a.current.right,w=Math.atan2(A-a.current.top,T)+Gf,O=Math.atan2(A-a.current.bottom,T)-Gf,I=Math.atan2(A-D,c.current==="left"?-(x-$):x-$),R=I<w&&I>O;d.current=R?Math.min(d.current+1,oo):Math.max(d.current-1,0),d.current>=oo?g(!0):g(!1),l.current=P,i.current={x,y:D},R&&(s.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let k=document.elementFromPoint(x,D);k&&v.contains(k)&&k.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},NP))};return window.addEventListener("pointermove",E),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=oo}},[o,n,t,b,g,S,r])}function MP(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=Ae(),c=Ae(),{direction:d}=Ft(),h=f.useRef(void 0),g=f.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=void 0)},[h]),y=De($=>{g(),t.open($)}),b=De(()=>{g(),t.close()});le(()=>()=>{g()},[g]);let S=$=>{if($.currentTarget.contains(document.activeElement))switch($.key){case"ArrowLeft":d==="ltr"&&$.currentTarget.contains($.target)&&($.preventDefault(),$.stopPropagation(),b(),!s&&r.current&&Me(r.current));break;case"ArrowRight":d==="rtl"&&$.currentTarget.contains($.target)&&($.preventDefault(),$.stopPropagation(),b(),!s&&r.current&&Me(r.current));break;case"Escape":var A;!((A=o.current)===null||A===void 0)&&A.contains($.target)&&($.stopPropagation(),b(),!s&&r.current&&Me(r.current));break}};var m;let v={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:(m=t.focusStrategy)!==null&&m!==void 0?m:void 0,onKeyDown:S}},E=$=>{switch($.key){case"ArrowRight":a||(d==="ltr"?($.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Me(o.current)):t.isOpen?b():$.continuePropagation());break;case"ArrowLeft":a||(d==="rtl"?($.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Me(o.current)):t.isOpen?b():$.continuePropagation());break;default:$.continuePropagation();break}},C=$=>{!a&&($.pointerType==="virtual"||$.pointerType==="keyboard")&&y("first")},P=$=>{!a&&($.pointerType==="touch"||$.pointerType==="mouse")&&y()},x=$=>{a||($&&!t.isOpen?h.current||(h.current=setTimeout(()=>{y()},l)):$||g())};sn(n,"focusin",$=>{var A;t.isOpen&&!((A=n.current)===null||A===void 0)&&A.contains($.target)&&$.target!==r.current&&b()});let D=$=>$!==r.current;return BP({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:C,onPress:P,onHoverChange:x,onKeyDown:E,isOpen:t.isOpen},submenuProps:v,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:D}}}function Sy(e){let t=Bn(e),[r,n]=f.useState(null),[o,i]=f.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(l,s)=>{i(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{i(u=>u[s]===l?u.slice(0,s):u)}}}function jP(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[l]=f.useState(n==null?void 0:n.length),s=f.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=f.useState(null),d=f.useCallback(y=>{c(y??null),o(r,l)},[o,l,r]),h=f.useCallback(()=>{c(null),i(r,l)},[i,l,r]),g=f.useCallback(y=>{c(y??null),s?h():d(y)},[h,d,s]);return f.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:h,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,h,a,u,g,l])}var HP=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||t.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of e)r(a);let n=null,o=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}},Tt=class xy extends Set{constructor(t,r,n){super(t),t instanceof xy?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function UP(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Ru(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=f.useRef(!1),[,l]=f.useState(!1),s=f.useRef(null),u=f.useRef(null),[,c]=f.useState(null),d=f.useMemo(()=>Wf(e.selectedKeys),[e.selectedKeys]),h=f.useMemo(()=>Wf(e.defaultSelectedKeys,new Tt),[e.defaultSelectedKeys]),[g,y]=la(d,h,e.onSelectionChange),b=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,m]=f.useState(o);o==="replace"&&S==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let v=f.useRef(o);return f.useEffect(()=>{o!==v.current&&(m(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:m,get isFocused(){return a.current},setFocused(E){a.current=E,l(E)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(E,C="first"){s.current=E,u.current=C,c(E)},selectedKeys:g,setSelectedKeys(E){(n||!UP(E,g))&&y(E)},disabledKeys:b,disabledBehavior:i}}function Wf(e,t){return e?e==="all"?"all":new Tt(e):t}var Pu=class wy{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&al(this.collection,o,t)<0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&al(this.collection,o,t)>0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Tt([r],r,r);else{let a=this.state.selectedKeys;var o;let l=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new Tt(a,l,r);var i;for(let s of this.getKeyRange(l,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?al(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new Tt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new Tt([r],r,r):new Tt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Tt;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&t.push(n);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=PP(Ey(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Tt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new wy(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function KP(e){let{onExpandedChange:t}=e,[r,n]=la(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Ru(e),i=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=vy(e,f.useCallback(l=>new HP(l,{expandedKeys:r}),[r]),null);return f.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:l=>{n(zP(r,l))},setExpandedKeys:n,selectionManager:new Pu(a,o)}}function zP(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var $y=f.createContext(null),ga=f.createContext(null),No=f.createContext(null),Bo=f.createContext(null),Cy=f.createContext(null),Dy=class extends hr{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};Dy.type="submenutrigger";_u(Dy,(e,t,r)=>{let{CollectionBranch:n}=f.useContext(jn),o=f.useContext(ga),i=f.useContext(No),a=jP({triggerKey:r.key},i),l=f.useRef(null),s=dt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=f.useContext(Cy),{submenuTriggerProps:d,submenuProps:h,popoverProps:g}=MP({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return p.createElement(Ot,{values:[[Mo,{...d,onAction:void 0,ref:s}],[$y,{ref:l,...h}],[ma,a],[Au,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":h["aria-labelledby"],...g}]]},p.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);f.forwardRef(function(e,t){return[e,t]=Re(e,t,$y),p.createElement(ey,{content:p.createElement(ny,e)},r=>p.createElement(GP,{props:e,collection:r,menuRef:t}))});function GP({props:e,collection:t,menuRef:r}){[e,r]=Re(e,r,Bf);let{filter:n,...o}=e,i=f.useMemo(()=>n?t.filter(n):t,[t,n]),a=KP({...e,collection:i,children:void 0}),l=f.useContext(No),{isVirtualized:s,CollectionRoot:u}=f.useContext(jn),{menuProps:c}=DP({...e,isVirtualized:s,onClose:e.onClose||(l==null?void 0:l.close)},a,r),d=qe({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),h=null;a.collection.size===0&&e.renderEmptyState&&(h=p.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=he(e,{global:!0});return p.createElement(Eu,null,p.createElement("div",{...Q(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},p.createElement(Ot,{values:[[ga,a],[fy,{elementType:"div"}],[ly,{name:"MenuSection",render:Ty}],[Cy,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[Mo,null],[Bf,null],[yP,null],[Bo,a.selectionManager],[No,l??Sy({})]]},p.createElement(u,{collection:a.collection,persistedKeys:uy(a.selectionManager.focusedKey),scrollRef:r})),h))}var WP=class extends Pu{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function Ty(e,t,r,n="react-aria-MenuSection"){var o,i;let a=f.useContext(ga),{CollectionBranch:l}=f.useContext(jn),[s,u]=am();var c;let{headingProps:d,groupProps:h}=kP({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=qe({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(i=r.props)===null||i===void 0?void 0:i.style,values:{}}),y=f.useContext(Bo),b=Ru(e),S=e.selectionMode!=null?new WP(y,b):y,m=he(e,{global:!0});return delete m.id,p.createElement("section",{...Q(m,g,h),ref:t},p.createElement(Ot,{values:[[cy,{...d,ref:s}],[Bo,S]]},p.createElement(l,{collection:a.collection,parent:r})))}_u(Y0,Ty);var Mo=f.createContext(null);ha(q0,function(e,t,r){var n;[e,t]=Re(e,t,Mo);let o=(n=mu(Mo))===null||n===void 0?void 0:n.id,i=f.useContext(ga),a=dt(t),l=f.useContext(Bo),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...h}=IP({...e,id:o,key:r.key,selectionManager:l},i,a),{hoverProps:g,isHovered:y}=Gr({isDisabled:h.isDisabled}),b=qe({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:y,isFocusVisible:h.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",m=he(e,{global:!0});return delete m.id,delete m.onClick,p.createElement(S,{...Q(m,b,s,g),ref:a,"data-disabled":h.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},p.createElement(Ot,{values:[[A0,{slots:{[Po]:u,label:u,description:c}}],[dy,d]]},b.children))});function VP(e,t){let{role:r="dialog"}=e,n=ho();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Ht(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Ht(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),y0(),{dialogProps:{...he(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var _y=f.createContext(null),ma=f.createContext(null);function qP(e){let t=Sy(e),r=f.useRef(null),{triggerProps:n,overlayProps:o}=VA({},t,r),[i,a]=f.useState(null),l=f.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return Do({ref:r,onResize:l}),n.id=Ae(),o["aria-labelledby"]=n.id,p.createElement(Ot,{values:[[ma,t],[No,t],[_y,o],[Au,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},p.createElement(s_,{...n,ref:r,isPressed:t.isOpen},e.children))}f.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Re(e,t,_y);let{dialogProps:n,titleProps:o}=VP({...e,"aria-labelledby":r},t),i=f.useContext(ma);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=qe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),l=he(e,{global:!0});return p.createElement("section",{...Q(l,a,n),ref:t,slot:e.slot||void 0},p.createElement(Ot,{values:[[_0,{slots:{[Po]:{},title:{...o,level:2}}}],[iy,{slots:{[Po]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},a.children))});var Ay=({placement:e="bottom-start",hasChrome:t=!0,hasCloseButton:r=!1,closeLabel:n,offset:o=8,padding:i,popover:a,children:l,defaultVisible:s,visible:u,onVisibleChange:c,...d})=>{let h=wu(e),[g,y]=f.useState(s??!1),b=f.useCallback(m=>{y(m),c==null||c(m)},[c]),S=f.useCallback(()=>y(!1),[]);return p.createElement(qP,{defaultOpen:s,isOpen:u??g,onOpenChange:b,...d},p.createElement(l_,null,l),p.createElement(hP,{placement:h,offset:o,style:{outline:"none"}},p.createElement(Mn,{hasChrome:t,hideLabel:n,onHide:r?S:void 0,padding:i},typeof a=="function"?a({onHide:S}):a)))},Ry=f.forwardRef((e,t)=>p.createElement(Mn,{ref:t,...e}));Ry.displayName="Tooltip";f.lazy(()=>Mt(()=>import("./WithTooltip-IO6J4KBT-Ccs9TgLm.js"),__vite__mapDeps([6,0,1,2,4]),import.meta.url).then(e=>({default:e.WithTooltip})));f.lazy(()=>Mt(()=>import("./WithTooltip-IO6J4KBT-Ccs9TgLm.js"),__vite__mapDeps([6,0,1,2,4]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:CL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;_.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));_.span();_.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));_.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));_.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:YP}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var XP=At(_n(),1);const{deprecate:JP}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ZP=_(({active:e,loading:t,disabled:r,...n})=>p.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),QP=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),e2=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),t2=_.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),r2=_.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),n2=_.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),o2=(0,XP.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),Py=f.forwardRef((e,t)=>{let{loading:r=!1,title:n=p.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:h,LinkWrapper:g=void 0,...y}=e,b={active:a,disabled:l},S=o2(e),m=d||h;return JP("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),p.createElement(n2,{"data-deprecated":"ListItem",ref:t,...y,...b,...S},p.createElement(p.Fragment,null,m&&p.createElement(r2,{...b},m),n||o?p.createElement(e2,{isIndented:s&&!m},n&&p.createElement(ZP,{...b,loading:r},n),o&&p.createElement(t2,{...b},o)):null,i&&p.createElement(QP,{...b},i)))});Py.displayName="ListItem";var Oy=Py,a2=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),i2=_.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),l2=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:a}=r,l=f.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:o,title:i,href:a}),[t,e,n,o,i,a]);return p.createElement(Oy,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Fy=({links:e,LinkWrapper:t,...r})=>{YP("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(i=>i.some(a=>"icon"in a&&a.icon||"input"in a&&a.input));return p.createElement(a2,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(i=>i.length).map((i,a)=>p.createElement(i2,{key:i.map(l=>l.id).join(`~${a}~`)},i.map(l=>"content"in l?p.createElement(f.Fragment,{key:l.id},l.content):p.createElement(l2,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:ya}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:s2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var u2=_.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),c2=_.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Hn=f.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>p.createElement(u2,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?p.createElement(c2,{innerStyle:r},t):t));Hn.displayName="Bar";var us=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});us.displayName="Side";var d2=_.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),f2=_(Hn)({paddingInline:0}),Ou=({children:e,backgroundColor:t,className:r="",...n})=>{s2('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,i]=f.Children.toArray(e);return p.createElement(f2,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},p.createElement(d2,{bgColor:t},p.createElement(us,{scrollable:n.scrollable,left:!0},o),i?p.createElement(us,{right:!0},i):null))};Ou.displayName="FlexBar";const{deprecate:p2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var h2=e=>typeof e.props.href=="string",g2=e=>typeof e.props.href!="string";function m2({children:e,...t},r){let n={props:t,ref:r};if(h2(n))return p.createElement("a",{ref:n.ref,...n.props},e);if(g2(n))return p.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Iy=f.forwardRef(m2);Iy.displayName="ButtonOrLink";var y2=_(Iy,{shouldForwardProp:Mp})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Un=f.forwardRef((e,t)=>(p2("The `TabButton` component is deprecated. Use `TabList` instead."),p.createElement(y2,{"data-deprecated":"TabButton",ref:t,...e})));Un.displayName="TabButton";var b2=_.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),v2=_.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),E2=_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),S2=_.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),x2=_.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Kn=({title:e,description:t,footer:r})=>p.createElement(b2,null,p.createElement(v2,null,p.createElement(E2,null,e),t&&p.createElement(x2,null,t)),r&&p.createElement(S2,null,r));const{deprecate:w2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ky=_.div(({active:e})=>e?{display:"block"}:{display:"none"}),$2=e=>(w2("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),f.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:a})=>p.createElement(ky,{active:a,role:"tabpanel"},i)}}));const{deprecate:C2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var D2=_.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),T2=_(Un)(({active:e,theme:t,preActive:r})=>`
|
|
83
83
|
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
84
84
|
.addon-collapsible-icon {
|
|
85
85
|
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
@@ -143,7 +143,7 @@ ${t}`);let r=t.match(i5);if(!r)return p.createElement(f.Fragment,null,t);let[,n,
|
|
|
143
143
|
${hn(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
144
144
|
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
145
145
|
${ps(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
146
|
-
${ps(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},a={borderColor:Nr(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${Nr(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${hn(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":{...i,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":a,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),Db=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),q4=_(Db)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Y4=_.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function X4(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var J4=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:i=1,onBlur:a,onFocus:l,argType:s})=>{var y;let u=b=>{r(o4(b.target.value))},c=t!==void 0,d=f.useMemo(()=>X4(i),[i]),h=!!((y=s==null?void 0:s.table)!=null&&y.readonly),g=st(e);return p.createElement(Y4,{readOnly:h},p.createElement("label",{htmlFor:g,className:"sb-sr-only"},e),p.createElement(Db,null,n),p.createElement(V4,{id:g,type:"range",disabled:h,onChange:u,name:e,min:n,max:o,step:i,onFocus:l,onBlur:a,value:t??n}),p.createElement(q4,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},Z4=_.label({display:"flex"}),Q4=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),eI=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:i,argType:a})=>{var g;let l=y=>{r(y.target.value)},s=!!((g=a==null?void 0:a.table)!=null&&g.readonly),[u,c]=f.useState(!1),d=f.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return p.createElement(ve,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:Ko(e),onClick:d},"Set string");let h=typeof t=="string";return p.createElement(Z4,null,p.createElement(pr.Textarea,{id:st(e),maxLength:i,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:h?void 0:"error",name:e,value:h?t:"",onFocus:n,onBlur:o}),i&&p.createElement(Q4,{isMaxed:(t==null?void 0:t.length)===i},(t==null?void 0:t.length)??0," / ",i))},tI=_(pr.Input)({padding:10});function rI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var nI=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var u;let i=f.useRef(null),a=(u=o==null?void 0:o.control)==null?void 0:u.readOnly;function l(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(h=>URL.createObjectURL(h));e(d),rI(n||[])}f.useEffect(()=>{n==null&&i.current&&(i.current.value="")},[n,t]);let s=st(t);return p.createElement(p.Fragment,null,p.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),p.createElement(tI,{ref:i,id:s,type:"file",name:t,multiple:!0,disabled:a,onChange:l,accept:r,size:"flex"}))},oI=f.lazy(()=>Mt(()=>import("./Color-ASIRERSW-D1UGGYVZ.js"),__vite__mapDeps([7,1,2,0,4]),import.meta.url)),aI=e=>p.createElement(f.Suspense,{fallback:p.createElement("div",null)},p.createElement(oI,{...e})),iI={array:wp,object:wp,boolean:XF,color:aI,date:r4,number:i4,check:yr,"inline-check":yr,radio:yr,"inline-radio":yr,select:yr,"multi-select":yr,range:J4,text:eI,file:nI},$p=()=>p.createElement(p.Fragment,null,"-"),lI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var b;let{key:o,control:i}=e,[a,l]=f.useState(!1),[s,u]=f.useState({value:t});f.useEffect(()=>{a||u({value:t})},[a,t]);let c=f.useCallback(S=>(u({value:S}),r({[o]:S}),S),[r,o]),d=f.useCallback(()=>l(!1),[]),h=f.useCallback(()=>l(!0),[]);if(!i||i.disable){let S=(i==null?void 0:i.disable)!==!0&&((b=e==null?void 0:e.type)==null?void 0:b.name)!=="function";return n&&S?p.createElement(Pr,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):p.createElement($p,null)}let g={name:o,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:h},y=iI[i.type]||$p;return p.createElement(y,{...g,...i,controlType:i.type})},sI=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Rt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),uI=({tags:e})=>{var i,a;let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:p.createElement(p.Fragment,null,p.createElement(sI,null,p.createElement("tbody",null,n&&p.createElement("tr",{key:"deprecated"},p.createElement("td",{colSpan:2},p.createElement("strong",null,"Deprecated"),": ",(i=e.deprecated)==null?void 0:i.toString())),r&&t.map(l=>p.createElement("tr",{key:l.name},p.createElement("td",null,p.createElement("code",null,l.name)),p.createElement("td",null,l.description))),o&&p.createElement("tr",{key:"returns"},p.createElement("td",null,p.createElement("code",null,"Returns")),p.createElement("td",null,(a=e.returns)==null?void 0:a.description)))))};function cI(e){return[...new Set(e)]}var dI=Fv(fO()),ys=8,Cp=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),fI=_.span(Rt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),pI=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),hI=_.div(Rt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),gI=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),mI=_(uO)({marginLeft:4}),yI=_(ob)({marginLeft:4}),bI=()=>p.createElement("span",null,"-"),Tb=({text:e,simple:t})=>p.createElement(fI,{simple:t},e),vI=(0,dI.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),EI=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return cI(t)},Dp=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,ys)),r.map(n=>p.createElement(Tb,{key:n,text:n===""?'""':n}))},SI=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=f.useState(!1),[a,l]=f.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return p.createElement(Tb,{text:s});let u=EI(s),c=u.length;return c>ys?p.createElement(Cp,{isExpanded:a},Dp(u,a),p.createElement(pI,{onClick:()=>l(!a)},a?"Show less...":`Show ${c-ys} more...`)):p.createElement(Cp,null,Dp(u))}return p.createElement($u,{placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},tooltip:p.createElement(gI,{width:vI(n)},p.createElement(In,{language:"jsx",format:!1},n))},p.createElement(hI,{className:"sbdocs-expandable"},p.createElement("span",null,s),o?p.createElement(mI,null):p.createElement(yI,null)))},gl=({value:e,initialExpandedArgs:t})=>e==null?p.createElement(bI,null):p.createElement(SI,{value:e,initialExpandedArgs:t}),xI=_.span({fontWeight:"bold"}),wI=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),$I=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Rt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),CI=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Se(.1,e.color.defaultText):Se(.2,e.color.defaultText),marginTop:t?4:0})),DI=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Se(.1,e.color.defaultText):Se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),TI=_.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),_I=e=>e&&{summary:typeof e=="string"?e:e.name},so=e=>{var b;let[t,r]=f.useState(!1),{row:n,updateArgs:o,compact:i,expandable:a,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||_I(n.type),h=c.defaultValue||n.defaultValue,g=(b=n.type)==null?void 0:b.required,y=u!=null&&u!=="";return p.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},p.createElement(TI,{expandable:a??!1},p.createElement(xI,null,s),g?p.createElement(wI,{title:"Required"},"*"):null),i?null:p.createElement("td",null,y&&p.createElement($I,null,p.createElement(pb,null,u)),c.jsDocTags!=null?p.createElement(p.Fragment,null,p.createElement(DI,{hasDescription:y},p.createElement(gl,{value:d,initialExpandedArgs:l})),p.createElement(uI,{tags:c.jsDocTags})):p.createElement(CI,{hasDescription:y},p.createElement(gl,{value:d,initialExpandedArgs:l}))),i?null:p.createElement("td",null,p.createElement(gl,{value:h,initialExpandedArgs:l})),o?p.createElement("td",null,p.createElement(lI,{...e,isHovered:t})):null)},AI=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),RI=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),PI=({inAddonPanel:e})=>{let[t,r]=f.useState(!0);return f.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:p.createElement(AI,{inAddonPanel:e},p.createElement(Kn,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:p.createElement(p.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:p.createElement(RI,null,e&&p.createElement(p.Fragment,null,p.createElement(Pr,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},p.createElement(hs,null)," Read docs")),!e&&p.createElement(Pr,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},p.createElement(hs,null)," Learn how to set that up"))}))},OI=_(lO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Se(.25,e.color.defaultText):Se(.3,e.color.defaultText),border:"none",display:"inline-block"})),FI=_(sO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Se(.25,e.color.defaultText):Se(.3,e.color.defaultText),border:"none",display:"inline-block"})),II=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),kI=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Se(.4,e.color.defaultText):Se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),LI=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),NI=_.td({position:"relative"}),BI=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${ps(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Tp=_.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),ml=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,a]=f.useState(n),l=e==="subsection"?LI:kI,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${i?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return p.createElement(p.Fragment,null,p.createElement(BI,{title:c},p.createElement(l,{colSpan:1},p.createElement(Tp,{onClick:d=>a(!i),tabIndex:0},c),p.createElement(II,null,i?p.createElement(OI,null):p.createElement(FI,null),t)),p.createElement(NI,{colSpan:o-1},p.createElement(Tp,{onClick:d=>a(!i),tabIndex:-1,style:{outline:"none"}},c),i?null:u)),i?r:null)},MI=_.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),uo=_.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),_e=_.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),we=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),jI=()=>p.createElement(MI,null,p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"}))),p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"80%"}),p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"}))),p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"80%"}),p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"}))),p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"80%"}),p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"})))),HI=_.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),UI=_.div({position:"relative"}),KI=_.div({position:"absolute",right:22,top:10}),zI=_(ve)({margin:"-4px -12px -4px 0"}),GI={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},WI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,a])=>{let{category:l,subcategory:s}=(a==null?void 0:a.table)||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:i,...a});else{let c=u.subsections[s]||[];c.push({key:i,...a}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:i,...a}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:i,...a})});let n=GI[t],o=i=>n?Object.keys(i).reduce((a,l)=>({...a,[l]:i[l].sort(n)}),{}):i;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,a)=>({...i,[a]:{ungrouped:n?r.sections[a].ungrouped.sort(n):r.sections[a].ungrouped,subsections:o(r.sections[a].subsections)}}),{})}},VI=(e,t,r)=>{try{return Ov(e,t,r)}catch(n){return pO.warn(n.message),!1}},bs=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:i,initialExpandedArgs:a,sort:l="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return p.createElement(nb,null,E," ",p.createElement(Pr,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},p.createElement(hs,null)," Read the docs"))}if(s)return p.createElement(jI,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},h=WI(UO(u||{},E=>{var C;return!((C=E==null?void 0:E.table)!=null&&C.disable)&&VI(E,c||{},d||{})}),l),g=h.ungrouped.length===0,y=Object.entries(h.sections).length===0,b=Object.entries(h.ungroupedSubsections).length===0;if(g&&y&&b)return p.createElement(PI,{inAddonPanel:o});let S=1;t&&(S+=1),n||(S+=2);let m=Object.keys(h.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return p.createElement(eu,null,p.createElement(UI,null,t&&!s&&r&&p.createElement(KI,null,p.createElement(zI,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},p.createElement(cO,null))),p.createElement(HI,{compact:n,inAddonPanel:o,inTabPanel:i,className:"docblock-argstable sb-unstyled"},p.createElement("thead",{className:"docblock-argstable-head"},p.createElement("tr",null,p.createElement("th",null,p.createElement("span",null,"Name")),n?null:p.createElement("th",null,p.createElement("span",null,"Description")),n?null:p.createElement("th",null,p.createElement("span",null,"Default")),t?p.createElement("th",null,p.createElement("span",null,"Control")):null)),p.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>p.createElement(so,{key:E.key,row:E,arg:c&&c[E.key],...v})),Object.entries(h.ungroupedSubsections).map(([E,C])=>p.createElement(ml,{key:E,label:E,level:"subsection",colSpan:S},C.map(P=>p.createElement(so,{key:P.key,row:P,arg:c&&c[P.key],expandable:m,...v})))),Object.entries(h.sections).map(([E,C])=>p.createElement(ml,{key:E,label:E,level:"section",colSpan:S},C.ungrouped.map(P=>p.createElement(so,{key:P.key,row:P,arg:c&&c[P.key],...v})),Object.entries(C.subsections).map(([P,x])=>p.createElement(ml,{key:P,label:P,level:"subsection",colSpan:S},x.map(D=>p.createElement(so,{key:D.key,row:D,arg:c&&c[D.key],expandable:m,...v}))))))))))},$e=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Hu=600,qI=_.h1(pe,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Hu}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),YI=_.h2(pe,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Hu}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Se(.25,e.color.defaultText)})),XI=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Se(.1,e.color.defaultText):Se(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[$e("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[$e("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[$e("div")]:t,[$e("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[$e("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[$e("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[$e("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[$e("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[$e("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[$e("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[$e("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[$e("img")]:{maxWidth:"100%"},[$e("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[$e("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[$e("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[$e("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[$e("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[$e("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[$e("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),JI=_.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Hu}px)`]:{}})),ZI=({children:e,toc:t})=>p.createElement(JI,{className:"sbdocs sbdocs-wrapper"},t,p.createElement(XI,{className:"sbdocs sbdocs-content"},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=f.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Xe=globalThis?globalThis.__DOCS_CONTEXT__:f.createContext(null);function QI(e,t){let r=e8([e],t);return r&&r[0]}function e8(e,t){let[r,n]=f.useState({});return f.useEffect(()=>{Promise.all(e.map(async o=>{let i=await t.loadStory(o);n(a=>a[o]===i?a:{...a,[o]:i})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var _b=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},t8=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,i=o.story||{};if(o.disable)return null;if(e.inline??i.inline??!1){let l=e.height??i.height,s=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let a=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:a,primary:!!e.__primary}},r8=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=f.useContext(Xe),r=_b(e,t),n=QI(r,t);if(!n)return p.createElement(Rb,null);let o=t8(e,n,t);return o?p.createElement(c8,{...o}):null},xa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:n8}=globalThis,o8=class extends f.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=n8.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...i}=this.props;return p.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...i})}},Ab=f.createContext({scale:1}),{PREVIEW_URL:a8}=globalThis,i8=a8||"iframe.html",vs=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,l8=e=>{let t=f.useRef(),[r,n]=f.useState(!0),[o,i]=f.useState(),{story:a,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return f.useEffect(()=>{if(!(a&&t.current))return()=>{};let d=t.current,h=c(a,d,{showMain:()=>{},showError:({title:g,description:y})=>i(new Error(`${g} - ${y}`)),showException:g=>i(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>h())}},[s,c,a]),o?p.createElement("pre",null,p.createElement(M0,{error:o})):p.createElement(p.Fragment,null,l?p.createElement("style",null,`#${vs(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&p.createElement(Rb,null),p.createElement("div",{ref:t,id:`${vs(e)}-inner`,"data-name":a.name}))},s8=({story:e,height:t="500px"})=>p.createElement("div",{style:{width:"100%",height:t}},p.createElement(Ab.Consumer,null,({scale:r})=>p.createElement(o8,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:ku(i8,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),u8=_.strong(({theme:e})=>({color:e.color.orange})),c8=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?p.createElement(u8,null,"This story mounts inside of play. Set"," ",p.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):p.createElement("div",{id:vs(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?p.createElement(l8,{...e}):p.createElement(s8,{...e}))},Rb=()=>p.createElement(Xy,null),d8=_(My)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),yl=_.div({display:"flex",alignItems:"center",gap:4}),_p=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),f8=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...i})=>p.createElement(d8,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...i},p.createElement(yl,{key:"left"},e?[1,2,3].map(a=>p.createElement(_p,{key:a})):p.createElement(p.Fragment,null,p.createElement(ve,{padding:"small",variant:"ghost",key:"zoomin",onClick:a=>{a.preventDefault(),n(.8)},ariaLabel:"Zoom in"},p.createElement(eO,null)),p.createElement(ve,{padding:"small",variant:"ghost",key:"zoomout",onClick:a=>{a.preventDefault(),n(1.25)},ariaLabel:"Zoom out"},p.createElement(tO,null)),p.createElement(ve,{padding:"small",variant:"ghost",key:"zoomreset",onClick:a=>{a.preventDefault(),o()},ariaLabel:"Reset zoom"},p.createElement(rO,null)))),e?p.createElement(yl,{key:"right"},p.createElement(_p,null)):r&&t&&p.createElement(yl,{key:"right"},p.createElement(ve,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},p.createElement("a",{href:ku(r,t),target:"_blank",rel:"noopener noreferrer"},p.createElement(iO,null))))),p8=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Ap=_(Lu)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":hn(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":hn(.05,e.background.content)}})),h8=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...xa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),g8=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:p.createElement(Ap,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:p.createElement(Ap,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function m8(e){if(f.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var y8=_(f8)({position:"absolute",top:0,left:0,right:0,height:40}),b8=_.div({overflow:"hidden",position:"relative"}),Pb=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:a=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,...d})=>{let[h,g]=f.useState(a),{source:y,actionItem:b}=g8(o,h,g),[S,m]=f.useState(1),v=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[b]:[],[C,P]=f.useState(l?[...l]:[]),x=[...E,...C],{window:D}=globalThis,$=f.useContext(Xe),A=f.useCallback(async O=>{let{createCopyToClipboardFunction:I}=await Mt(async()=>{const{createCopyToClipboardFunction:R}=await Promise.resolve().then(()=>u3);return{createCopyToClipboardFunction:R}},void 0,import.meta.url);I()},[]),T=O=>{let I=D.getSelection();I&&I.type==="Range"||(O.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A((y==null?void 0:y.props.code)??"").then(()=>{P([...C,{title:"Copied",onClick:()=>{}}]),D.setTimeout(()=>P(C.filter(R=>R.title!=="Copied")),1500)}))},w=m8(n);return p.createElement(h8,{withSource:o,withToolbar:i,...d,className:v.join(" ")},i&&p.createElement(y8,{isLoading:e,border:!0,zoom:O=>m(S*O),resetZoom:()=>m(1),storyId:!e&&w?_b(w,$):void 0,baseUrl:"./iframe.html"}),p.createElement(Ab.Provider,{value:{scale:S}},p.createElement(b8,{className:"docs-story",onCopyCapture:o&&T},p.createElement(p8,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c},p.createElement(B0.Element,{centered:u==="centered",scale:c?S:1},Array.isArray(n)?n.map((O,I)=>p.createElement("div",{key:I},O)):p.createElement("div",null,n))),p.createElement(Wp,{actionItems:x}))),o&&h&&y)};_(Pb)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var v8=_(qy)({height:"fit-content"}),E8=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return p.createElement(bs,{...r[0][1],...t});let n=r.map(([o,i],a)=>({id:`prop_table_div_${o}`,title:o,children:()=>{let l=a===0?t:{sort:t.sort};return p.createElement(bs,{inTabPanel:!0,key:`prop_table_${o}`,...i,...l})}}));return p.createElement(v8,{tabs:n})};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Se(.4,e.color.defaultText):Se(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(pe,({theme:e})=>({...xa(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:Se(.3,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:Se(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...xa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:Se(.3,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));_.div(({theme:e})=>({...xa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});_.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:S8}=__STORYBOOK_MODULE_CORE_EVENTS__;function x8(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",i,a=!0,l=0;function s(T,w){let O=w.appendChild(c(T));if(T.children.length){let I=d(T.isCollapsed);T.children.forEach(R=>{s(R,I)}),O.appendChild(I)}}function u(T,w){let O=d(!1);if(w.forEach(I=>{s(I,O)}),i=T||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),w.length===0?i:i.appendChild(O)}function c(T){let w=document.createElement("li"),O=document.createElement("a");return e.listItemClass&&w.setAttribute("class",e.listItemClass),e.onClick&&(O.onclick=e.onClick),e.includeTitleTags&&O.setAttribute("title",T.textContent),e.includeHtml&&T.childNodes.length?t.call(T.childNodes,I=>{O.appendChild(I.cloneNode(!0))}):O.textContent=T.textContent,O.setAttribute("href",`${e.basePath}#${T.id}`),O.setAttribute("class",`${e.linkClass+o}node-name--${T.nodeName}${o}${e.extraLinkClasses}`),w.appendChild(O),w}function d(T){let w=e.orderedList?"ol":"ul",O=document.createElement(w),I=e.listClass+o+e.extraListClasses;return T&&(I=I+o+e.collapsibleClass,I=I+o+e.isCollapsedClass),O.setAttribute("class",I),O}function h(){let T=D(),w=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=i.offsetTop),T>e.fixedSidebarOffset?w.className.indexOf(e.positionFixedClass)===-1&&(w.className+=o+e.positionFixedClass):w.className=w.className.replace(o+e.positionFixedClass,"")}function g(T){let w=0;return T!==null&&(w=T.offsetTop,e.hasInnerContainers&&(w+=g(T.offsetParent))),w}function y(T,w){return T&&T.className!==w&&(T.className=w),T}function b(T,w){var L,F;e.positionFixedSelector&&h();let O=T,I=(L=w==null?void 0:w.target)!=null&&L.getAttribute?(F=w==null?void 0:w.target)==null?void 0:F.getAttribute("href"):null,R=I&&I.charAt(0)==="#"?C(I.replace("#","")):!1,k=a||R;if(w&&l<5&&l++,k&&i&&O.length>0){let j=$(O),B=i.querySelector(`.${e.activeLinkClass}`),N=j.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),U=window.location.hash.replace("#",""),M=N,H=P();I&&R?M=I.replace("#",""):U&&U!==N&&H&&(C(N)||l<=2)&&(M=U);let z=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${M}"]`);if(B===z)return;let K=i.querySelectorAll(`.${e.linkClass}`);t.call(K,me=>{y(me,me.className.replace(o+e.activeLinkClass,""))});let q=i.querySelectorAll(`.${e.listItemClass}`);t.call(q,me=>{y(me,me.className.replace(o+e.activeListItemClass,""))}),z&&z.className.indexOf(e.activeLinkClass)===-1&&(z.className+=o+e.activeLinkClass);let ue=z==null?void 0:z.parentNode;ue&&ue.className.indexOf(e.activeListItemClass)===-1&&(ue.className+=o+e.activeListItemClass);let ge=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(ge,me=>{me.className.indexOf(e.isCollapsedClass)===-1&&(me.className+=o+e.isCollapsedClass)}),z!=null&&z.nextSibling&&z.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&y(z.nextSibling,z.nextSibling.className.replace(o+e.isCollapsedClass,"")),S(z==null?void 0:z.parentNode.parentNode)}}function S(T){return T&&T.className.indexOf(e.collapsibleClass)!==-1&&T.className.indexOf(e.isCollapsedClass)!==-1?(y(T,T.className.replace(o+e.isCollapsedClass,"")),S(T.parentNode.parentNode)):T}function m(T){let w=T.target||T.srcElement;typeof w.className!="string"||w.className.indexOf(e.linkClass)===-1||(a=!1)}function v(){a=!0}function E(){return a}function C(T){let w=x();return(document==null?void 0:document.getElementById(T)).offsetTop>w.offsetHeight-w.clientHeight*1.4-e.bottomModeThreshold}function P(){let T=x(),w=T.scrollHeight>T.clientHeight,O=D()+T.clientHeight>T.offsetHeight-e.bottomModeThreshold;return w&&O}function x(){let T;return e.scrollContainer&&document.querySelector(e.scrollContainer)?T=document.querySelector(e.scrollContainer):T=document.documentElement||n,T}function D(){var T;return((T=x())==null?void 0:T.scrollTop)||0}function $(T,w=D()){let O;return r.call(T,(I,R)=>{if(g(I)>w+e.headingsOffset+10){let k=R===0?R:R-1;return O=T[k],!0}if(R===T.length-1)return O=T[T.length-1],!0}),O}function A(T){let w=D(),O=$(T,w),I=P();if((!O||w<5)&&!I)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(O&&!I){let R=`#${O.id}`;window.location.hash!==R&&window.history.pushState(null,null,R)}}return{enableTocAnimation:v,disableTocAnimation:m,render:u,updateToc:b,getCurrentlyHighlighting:E,getTopHeader:$,getScrollTop:D,updateUrlHashForHeader:A}}var w8={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function $8(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function i(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function a(u,c){let d=i(u),h=d.headingLevel,g=c,y=r(g),b=y?y.headingLevel:0,S=h-b;for(;S>0&&(y=r(g),!(y&&h===y.headingLevel));)y&&y.children!==void 0&&(g=y.children),S--;return h>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(h){return`${h.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let h=i(d);return h&&a(h,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function C8(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?a(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!i(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||D8(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function i(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(a(s.href)===n||a(s.href)+"#"===n)}function a(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function D8(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,a=typeof n.duration=="function"?n.duration(i):n.duration,l,s;requestAnimationFrame(function(h){l=h,u(h)});function u(h){s=h-l,window.scrollTo(0,n.easing(s,r,i,a)),s<a?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+i),typeof n.callback=="function"&&n.callback()}function d(h,g,y,b){return h/=b/2,h<1?y/2*h*h+g:(h--,-y/2*(h*(h-2)-1)+g)}}function T8(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var Z={},at,bl,Yt,it,mn;function Ob(e){let t=!1;Z=R8(w8,e||{}),Z.scrollSmooth&&(Z.duration=Z.scrollSmoothDuration,Z.offset=Z.scrollSmoothOffset,C8(Z)),at=x8(Z),bl=$8(Z),Uu();let r=O8(Z);if(r===null)return;let n=Fb(Z);if(n===null||(Yt=bl.selectHeadings(r,Z.headingSelector),Yt===null))return;let o=bl.nestHeadingsArray(Yt).nest;if(!Z.skipRendering)at.render(n,o);else return this;let i=!1,a=Z.scrollHandlerTimeout||Z.throttleTimeout;it=((s,u)=>P8(s,u,Z.scrollHandlerType))(s=>{var c,d,h;at.updateToc(Yt,s),!Z.disableTocScrollSync&&!i&&T8(Z),Z.enableUrlHashUpdateOnScroll&&t&&at.getCurrentlyHighlighting()&&at.updateUrlHashForHeader(Yt);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(at.updateToc(Yt),(h=Z.scrollEndCallback)==null||h.call(Z,s))},a),t||(it(),t=!0),window.onhashchange=window.onscrollend=s=>{it(s)},Z.scrollContainer&&document.querySelector(Z.scrollContainer)?(document.querySelector(Z.scrollContainer).addEventListener("scroll",it,!1),document.querySelector(Z.scrollContainer).addEventListener("resize",it,!1)):(document.addEventListener("scroll",it,!1),document.addEventListener("resize",it,!1));let l=null;mn=Es(s=>{i=!0,Z.scrollSmooth&&at.disableTocAnimation(s),at.updateToc(Yt,s),l&&clearTimeout(l),l=setTimeout(()=>{at.enableTocAnimation()},Z.scrollSmoothDuration),setTimeout(()=>{i=!1},Z.scrollSmoothDuration+100)},Z.throttleTimeout),Z.scrollContainer&&document.querySelector(Z.scrollContainer)?document.querySelector(Z.scrollContainer).addEventListener("click",mn,!1):document.addEventListener("click",mn,!1)}function Uu(){let e=Fb(Z);e!==null&&(Z.skipRendering||e&&(e.innerHTML=""),Z.scrollContainer&&document.querySelector(Z.scrollContainer)?(document.querySelector(Z.scrollContainer).removeEventListener("scroll",it,!1),document.querySelector(Z.scrollContainer).removeEventListener("resize",it,!1),at&&document.querySelector(Z.scrollContainer).removeEventListener("click",mn,!1)):(document.removeEventListener("scroll",it,!1),document.removeEventListener("resize",it,!1),at&&document.removeEventListener("click",mn,!1)))}function _8(e){Uu(),Ob(e||Z)}var A8=Object.prototype.hasOwnProperty;function R8(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)A8.call(n,o)&&(t[o]=n[o])}return t}function Es(e,t,r){t||(t=250);let n,o;return function(...i){let a=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(a,i)},t)):(n=l,e.apply(a,i))}}function Rp(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function P8(e,t,r="auto"){switch(r){case"debounce":return Rp(e,t);case"throttle":return Es(e,t);default:return t<334?Rp(e,t):Es(e,t)}}function O8(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function Fb(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var F8={destroy:Uu,init:Ob,refresh:_8},Pp=F8,I8=_.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),k8=_.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),L8=_.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),N8=({headingId:e,title:t})=>typeof t=="string"||!t?p.createElement(L8,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):p.createElement("div",{id:e},t),B8=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:i,channel:a,className:l})=>{f.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,h]=d.currentTarget.href.split("#");h&&a.emit(S8,`#${h}`)}},...i},c=setTimeout(()=>Pp.init(u),100);return()=>{clearTimeout(c),Pp.destroy()}},[a,t,o,n,r,i]);let s="table-of-contents";return p.createElement(I8,{className:l},t?null:p.createElement(k8,{"aria-labelledby":s},p.createElement(N8,{headingId:s,title:e}),p.createElement("div",{className:"toc-wrapper"})))},M8=e=>`anchor--${e}`,Ib=({storyId:e,children:t})=>p.createElement("div",{id:M8(e),className:"sb-anchor"},t);const{filterArgTypes:TL}=__STORYBOOK_MODULE_PREVIEW_API__;var gr=(e,t)=>f.useContext(Xe).resolveOf(e,t),j8=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),H8=e=>{if(e)return typeof e=="string"?e.includes("-")?j8(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function U8(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var K8=Object.create,kb=Object.defineProperty,z8=Object.getOwnPropertyDescriptor,Lb=Object.getOwnPropertyNames,G8=Object.getPrototypeOf,W8=Object.prototype.hasOwnProperty,te=(e,t)=>function(){return t||(0,e[Lb(e)[0]])((t={exports:{}}).exports,t),t.exports},V8=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lb(t))!W8.call(e,o)&&o!==r&&kb(e,o,{get:()=>t[o],enumerable:!(n=z8(t,o))||n.enumerable});return e},Ku=(e,t,r)=>(r=e!=null?K8(G8(e)):{},V8(!e||!e.__esModule?kb(r,"default",{value:e,enumerable:!0}):r,e)),q8=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],Y8=["detail"];function X8(e){let t=q8.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of Y8.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var Nb=te({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),J8=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),Z8=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Q8=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),e7=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),t7=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),zu=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),r7=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),n7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),o7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),a7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),i7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),l7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),s7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),u7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),c7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=u7();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),d7=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Gu=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=d7();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),f7=te({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Bb=te({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),Mb=te({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Bb();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),jb=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),Hb=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Nb();t.exports=r.getPrototypeOf||null}}),p7=te({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(u,c){for(var d=[],h=0;h<u.length;h+=1)d[h]=u[h];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],h=c,g=0;h<u.length;h+=1,g+=1)d[g]=u[h];return d},s=function(u,c){for(var d="",h=0;h<u.length;h+=1)d+=u[h],h+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),h,g=function(){if(this instanceof h){var v=c.apply(this,a(d,arguments));return Object(v)===v?v:this}return c.apply(u,a(d,arguments))},y=o(0,c.length-d.length),b=[],S=0;S<y;S++)b[S]="$"+S;if(h=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var m=function(){};m.prototype=c.prototype,h.prototype=new m,m.prototype=null}return h}}}),wa=te({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=p7();t.exports=Function.prototype.bind||r}}),Wu=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),Ub=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),h7=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),g7=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=wa(),n=Ub(),o=Wu(),i=h7();t.exports=i||r.call(o,n)}}),Kb=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=wa(),n=zu(),o=Wu(),i=g7();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),m7=te({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Kb(),n=Gu(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?function(s){return l(s==null?s:a(s))}:!1}}),y7=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=jb(),n=Hb(),o=m7();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),zb=te({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=wa();t.exports=o.call(r,n)}}),b7=te({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Nb(),o=J8(),i=Z8(),a=Q8(),l=e7(),s=t7(),u=zu(),c=r7(),d=n7(),h=o7(),g=a7(),y=i7(),b=l7(),S=s7(),m=c7(),v=Function,E=function(Y){try{return v('"use strict"; return ('+Y+").constructor;")()}catch{}},C=Gu(),P=f7(),x=function(){throw new u},D=C?function(){try{return arguments.callee,x}catch{try{return C(arguments,"callee").get}catch{return x}}}():x,$=Mb()(),A=y7(),T=Hb(),w=jb(),O=Ub(),I=Wu(),R={},k=typeof Uint8Array>"u"||!A?r:A(Uint8Array),L={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":$&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$||!A?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&A?A(""[Symbol.iterator]()):r,"%Symbol%":$?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":D,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":O,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":T,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":S,"%Math.sign%":m,"%Reflect.getPrototypeOf%":w};if(A)try{null.error}catch(Y){F=A(A(Y)),L["%Error.prototype%"]=F}var F,j=function Y(G){var W;if(G==="%AsyncFunction%")W=E("async function () {}");else if(G==="%GeneratorFunction%")W=E("function* () {}");else if(G==="%AsyncGeneratorFunction%")W=E("async function* () {}");else if(G==="%AsyncGenerator%"){var J=Y("%AsyncGeneratorFunction%");J&&(W=J.prototype)}else if(G==="%AsyncIteratorPrototype%"){var ae=Y("%AsyncGenerator%");ae&&A&&(W=A(ae.prototype))}return L[G]=W,W},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=wa(),U=zb(),M=N.call(I,Array.prototype.concat),H=N.call(O,Array.prototype.splice),z=N.call(I,String.prototype.replace),K=N.call(I,String.prototype.slice),q=N.call(I,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ge=/\\(\\)?/g,me=function(Y){var G=K(Y,0,1),W=K(Y,-1);if(G==="%"&&W!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(W==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var J=[];return z(Y,ue,function(ae,Pe,V,Oe){J[J.length]=V?z(Oe,ge,"$1"):Pe||ae}),J},St=function(Y,G){var W=Y,J;if(U(B,W)&&(J=B[W],W="%"+J[0]+"%"),U(L,W)){var ae=L[W];if(ae===R&&(ae=j(W)),typeof ae>"u"&&!G)throw new u("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:J,name:W,value:ae}}throw new s("intrinsic "+Y+" does not exist!")};t.exports=function(Y,G){if(typeof Y!="string"||Y.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new u('"allowMissing" argument must be a boolean');if(q(/^%?[^%]*%?$/,Y)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W=me(Y),J=W.length>0?W[0]:"",ae=St("%"+J+"%",G),Pe=ae.name,V=ae.value,Oe=!1,nt=ae.alias;nt&&(J=nt[0],H(W,M([0,1],nt)));for(var Ke=1,ot=!0;Ke<W.length;Ke+=1){var xe=W[Ke],xt=K(xe,0,1),wt=K(xe,-1);if((xt==='"'||xt==="'"||xt==="`"||wt==='"'||wt==="'"||wt==="`")&&xt!==wt)throw new s("property names with quotes must have matching quotes");if((xe==="constructor"||!ot)&&(Oe=!0),J+="."+xe,Pe="%"+J+"%",U(L,Pe))V=L[Pe];else if(V!=null){if(!(xe in V)){if(!G)throw new u("base intrinsic for "+Y+" exists, but the property is not available.");return}if(C&&Ke+1>=W.length){var $t=C(V,xe);ot=!!$t,ot&&"get"in $t&&!("originalValue"in $t.get)?V=$t.get:V=V[xe]}else ot=U(V,xe),V=V[xe];ot&&!Oe&&(L[Pe]=V)}}return V}}}),Vu=te({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=b7(),n=Kb(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),v7=te({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Bb();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),Gb=te({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Vu(),n=v7()(),o=zb(),i=Gu(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(g){if(!g||typeof g!="object")return!1;var y=i(g,"lastIndex"),b=y&&o(y,"value");if(!b)return!1;try{l(g,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),h="[object RegExp]",a=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===h});var l,s,u,c,d,h;t.exports=a}}),E7=te({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),S7=te({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Vu(),n=Gb(),o=r("RegExp.prototype.exec"),i=zu();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),x7=te({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Vu(),n=r("Object.prototype.toString"),o=Mb()(),i=S7();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var a,l,s}}),w7=Ku(Gb()),$7=Ku(E7()),C7=Ku(x7());function D7(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var T7=typeof global=="object"&&global&&global.Object===Object&&global,_7=T7,A7=typeof self=="object"&&self&&self.Object===Object&&self,R7=_7||A7||Function("return this")(),qu=R7,P7=qu.Symbol,Mr=P7,Wb=Object.prototype,O7=Wb.hasOwnProperty,F7=Wb.toString,nn=Mr?Mr.toStringTag:void 0;function I7(e){var t=O7.call(e,nn),r=e[nn];try{e[nn]=void 0;var n=!0}catch{}var o=F7.call(e);return n&&(t?e[nn]=r:delete e[nn]),o}var k7=I7,L7=Object.prototype,N7=L7.toString;function B7(e){return N7.call(e)}var M7=B7,j7="[object Null]",H7="[object Undefined]",Op=Mr?Mr.toStringTag:void 0;function U7(e){return e==null?e===void 0?H7:j7:Op&&Op in Object(e)?k7(e):M7(e)}var K7=U7,Fp=Mr?Mr.prototype:void 0;Fp&&Fp.toString;function z7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vb=z7,G7="[object AsyncFunction]",W7="[object Function]",V7="[object GeneratorFunction]",q7="[object Proxy]";function Y7(e){if(!Vb(e))return!1;var t=K7(e);return t==W7||t==V7||t==G7||t==q7}var X7=Y7,J7=qu["__core-js_shared__"],vl=J7,Ip=function(){var e=/[^.]+$/.exec(vl&&vl.keys&&vl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Z7(e){return!!Ip&&Ip in e}var Q7=Z7,e6=Function.prototype,t6=e6.toString;function r6(e){if(e!=null){try{return t6.call(e)}catch{}try{return e+""}catch{}}return""}var n6=r6,o6=/[\\^$.*+?()[\]{}|]/g,a6=/^\[object .+?Constructor\]$/,i6=Function.prototype,l6=Object.prototype,s6=i6.toString,u6=l6.hasOwnProperty,c6=RegExp("^"+s6.call(u6).replace(o6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d6(e){if(!Vb(e)||Q7(e))return!1;var t=X7(e)?c6:a6;return t.test(n6(e))}var f6=d6;function p6(e,t){return e==null?void 0:e[t]}var h6=p6;function g6(e,t){var r=h6(e,t);return f6(r)?r:void 0}var qb=g6;function m6(e,t){return e===t||e!==e&&t!==t}var y6=m6,b6=qb(Object,"create"),Tn=b6;function v6(){this.__data__=Tn?Tn(null):{},this.size=0}var E6=v6;function S6(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var x6=S6,w6="__lodash_hash_undefined__",$6=Object.prototype,C6=$6.hasOwnProperty;function D6(e){var t=this.__data__;if(Tn){var r=t[e];return r===w6?void 0:r}return C6.call(t,e)?t[e]:void 0}var T6=D6,_6=Object.prototype,A6=_6.hasOwnProperty;function R6(e){var t=this.__data__;return Tn?t[e]!==void 0:A6.call(t,e)}var P6=R6,O6="__lodash_hash_undefined__";function F6(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tn&&t===void 0?O6:t,this}var I6=F6;function Vr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vr.prototype.clear=E6;Vr.prototype.delete=x6;Vr.prototype.get=T6;Vr.prototype.has=P6;Vr.prototype.set=I6;var kp=Vr;function k6(){this.__data__=[],this.size=0}var L6=k6;function N6(e,t){for(var r=e.length;r--;)if(y6(e[r][0],t))return r;return-1}var $a=N6,B6=Array.prototype,M6=B6.splice;function j6(e){var t=this.__data__,r=$a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():M6.call(t,r,1),--this.size,!0}var H6=j6;function U6(e){var t=this.__data__,r=$a(t,e);return r<0?void 0:t[r][1]}var K6=U6;function z6(e){return $a(this.__data__,e)>-1}var G6=z6;function W6(e,t){var r=this.__data__,n=$a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var V6=W6;function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qr.prototype.clear=L6;qr.prototype.delete=H6;qr.prototype.get=K6;qr.prototype.has=G6;qr.prototype.set=V6;var q6=qr,Y6=qb(qu,"Map"),X6=Y6;function J6(){this.size=0,this.__data__={hash:new kp,map:new(X6||q6),string:new kp}}var Z6=J6;function Q6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ek=Q6;function tk(e,t){var r=e.__data__;return ek(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ca=tk;function rk(e){var t=Ca(this,e).delete(e);return this.size-=t?1:0,t}var nk=rk;function ok(e){return Ca(this,e).get(e)}var ak=ok;function ik(e){return Ca(this,e).has(e)}var lk=ik;function sk(e,t){var r=Ca(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var uk=sk;function Yr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yr.prototype.clear=Z6;Yr.prototype.delete=nk;Yr.prototype.get=ak;Yr.prototype.has=lk;Yr.prototype.set=uk;var Yb=Yr,ck="Expected a function";function Yu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ck);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Yu.Cache||Yb),r}Yu.Cache=Yb;var dk=Yu,fk=500;function pk(e){var t=dk(e,function(n){return r.size===fk&&r.clear(),n}),r=t.cache;return t}var hk=pk,gk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mk=/\\(\\)?/g;hk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gk,function(r,n,o,i){t.push(o?i.replace(mk,"$1"):n||r)}),t});var yk=D7,bk=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Xb(e){if(!yk(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=X8(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var vk=function(e){let t,r,n,o;return function(i,a){var l;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return bk.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,w7.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,$7.default)(a))return;if((0,C7.default)(a)){if(!e.allowSymbol)return;let c=Symbol.keyFor(a);return c!==void 0?`_gsymbol_${c}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if((l=a==null?void 0:a.constructor)!=null&&l.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let c=t.get(a);if(!c){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((h,g)=>{try{h[g]=a[g]}catch{}return h},{})};return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${c}`}let u=t.get(a);if(!u){let c=Array.isArray(a)?a:Xb(a);return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}catch{return}}},Ek={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Sk=(e,t={})=>{let r={...Ek,...t};return JSON.stringify(Xb(e),vk(r),t.space)};function Jb(e){return Sk(e,{maxDepth:50})}var Xu=f.createContext({sources:{}}),Zb="--unknown--",xk=({children:e,channel:t})=>{let[r,n]=f.useState({});return f.useEffect(()=>{let o=(i,a=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof i=="string"?{id:i,source:a,format:l}:i,h=u?Jb(u):Zb;n(g=>({...g,[s]:{...g[s],[h]:{code:c||"",format:d}}}))};return t.on(rc,o),()=>t.off(rc,o)},[]),p.createElement(Xu.Provider,{value:{sources:r}},e)};function wk(e,t,r){let[n,o]=f.useState("Transforming..."),i=t?t==null?void 0:t(e,r):e;return f.useEffect(()=>{async function a(){let l=await i;l!==n&&o(l)}a()}),typeof i=="object"&&typeof i.then=="function"?n:i}var $k=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[Jb(t)])||(o==null?void 0:o[Zb])||{code:""}},Ck=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d;let o=t.parameters??{},{__isArgsStory:i}=o,a=((d=o.docs)==null?void 0:d.source)||{},l=r||a.type||_a.AUTO,s=l===_a.DYNAMIC||l===_a.AUTO&&e&&i?e:a.originalSource||"",u=n??a.transform,c=u?wk(s,u,t):s;return a.code!==void 0?a.code:c},Qb=(e,t,r)=>{var g,y;let{of:n}=e,o=f.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),i=o?t.getStoryContext(o):{},a=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,l=o?$k(o.id,a,r):null,s=Ck({snippet:l?l.code:"",storyContext:{...i,args:a},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((y=(g=o==null?void 0:o.parameters)==null?void 0:g.docs)==null?void 0:y.source)||{},c=e.format,d=e.language??u.language??"jsx",h=e.dark??u.dark??!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:h}:(c=(l==null?void 0:l.format)??!0,{code:s,format:c,language:d,dark:h})},_L=e=>{let t=f.useContext(Xu),r=f.useContext(Xe),n=Qb(e,r,t);return p.createElement(Lu,{...n})},Dk=e=>{var g,y,b,S,m,v,E,C,P,x,D,$,A,T;let t=f.useContext(Xe),r=f.useContext(Xu),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:i}=gr(n||"story",["story"]),a=Qb({...o,...n&&{of:n}},t,r),l=e.layout??i.parameters.layout??((y=(g=i.parameters.docs)==null?void 0:g.canvas)==null?void 0:y.layout)??"padded",s=e.withToolbar??((S=(b=i.parameters.docs)==null?void 0:b.canvas)==null?void 0:S.withToolbar)??!1,u=e.additionalActions??((v=(m=i.parameters.docs)==null?void 0:m.canvas)==null?void 0:v.additionalActions),c=e.sourceState??((C=(E=i.parameters.docs)==null?void 0:E.canvas)==null?void 0:C.sourceState)??"hidden",d=e.className??((x=(P=i.parameters.docs)==null?void 0:P.canvas)==null?void 0:x.className),h=((D=e.story)==null?void 0:D.inline)??((T=(A=($=i.parameters)==null?void 0:$.docs)==null?void 0:A.story)==null?void 0:T.inline)??!1;return p.createElement(Pb,{withSource:c==="none"?void 0:a,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:h},p.createElement(r8,{of:n||i.moduleExport,meta:e.meta,...e.story}))};const{filterArgTypes:Lp}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:Tk,STORY_ARGS_UPDATED:Np,UPDATE_STORY_ARGS:_k}=__STORYBOOK_MODULE_CORE_EVENTS__;var Ak=(e,t)=>{let r=Rk(e,t);if(!r)throw new Error("No result when story was defined");return r},Rk=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,i]=f.useState(r.args);f.useEffect(()=>{let s=u=>{u.storyId===n&&i(u.args)};return t.channel.on(Np,s),()=>t.channel.off(Np,s)},[n,t.channel]);let a=f.useCallback(s=>t.channel.emit(_k,{storyId:n,updatedArgs:s}),[n,t.channel]),l=f.useCallback(s=>t.channel.emit(Tk,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,a,l]};const{GLOBALS_UPDATED:Bp}=__STORYBOOK_MODULE_CORE_EVENTS__;var Pk=(e,t)=>{let r=t.getStoryContext(e),[n,o]=f.useState(r.globals);return f.useEffect(()=>{let i=a=>{o(a.globals)};return t.channel.on(Bp,i),()=>t.channel.off(Bp,i)},[t.channel]),[n]};function Ok(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Fk=e=>{var C;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=f.useContext(Xe),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:i,component:a,subcomponents:l}=n,s=((C=o.docs)==null?void 0:C.controls)||{},u=e.include??s.include,c=e.exclude??s.exclude,d=e.sort??s.sort,[h,g,y]=Ak(n,r),[b]=Pk(n,r),S=Lp(i,u,c);if(!(l&&Object.keys(l||{}).length>0))return Object.keys(S).length>0||Object.keys(h).length>0?p.createElement(bs,{rows:S,sort:d,args:h,globals:b,updateArgs:g,resetArgs:y}):null;let m=H8(a)||"Story",v=Object.fromEntries(Object.entries(l||{}).map(([P,x])=>[P,{rows:Lp(Ok(x,o),u,c),sort:d}])),E={[m]:{rows:S,sort:d},...v};return p.createElement(E8,{tabs:E,sort:d,args:h,globals:b,updateArgs:g,resetArgs:y})};const{NAVIGATE_URL:Ik}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:ev}=globalThis,kk=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return p.createElement(tu,null,t);let n=e&&e.split("-");return p.createElement(Lu,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Ju(e,t){e.channel.emit(Ik,t)}var Ss=Jy.a,Lk=({hash:e,children:t})=>{let r=f.useContext(Xe);return p.createElement(Ss,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);ev.getElementById(o)&&Ju(r,e)}},t)},Nk=e=>{let{href:t,target:r,children:n,...o}=e,i=f.useContext(Xe);return!t||r==="_blank"||/^https?:\/\//.test(t)?p.createElement(Ss,{...e}):t.startsWith("#")?p.createElement(Lk,{hash:t},n):p.createElement(Ss,{href:t,onClick:a=>{a.button===0&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&(a.preventDefault(),Ju(i,a.currentTarget.getAttribute("href")||""))},target:r,...o},n)},tv=["h1","h2","h3","h4","h5","h6"],Bk=tv.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Mk=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),jk=({as:e,id:t,children:r,...n})=>{let o=f.useContext(Xe),i=Bk[e],a=`#${t}`;return p.createElement(i,{id:t,...n},p.createElement(Mk,{"aria-hidden":"true",href:a,tabIndex:-1,target:"_self",onClick:l=>{ev.getElementById(t)&&Ju(o,a)}},p.createElement(aO,null)),r)},Zu=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return p.createElement(jk,{as:t,id:r,...o},n);let i=t,{as:a,...l}=e;return p.createElement(i,{...de(l,t)})},Hk=tv.reduce((e,t)=>({...e,[t]:r=>p.createElement(Zu,{as:t,...r})}),{}),Uk=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(dO`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
146
|
+
${ps(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},a={borderColor:Nr(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${Nr(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${hn(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":{...i,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":a,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),Db=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),q4=_(Db)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Y4=_.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function X4(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var J4=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:i=1,onBlur:a,onFocus:l,argType:s})=>{var y;let u=b=>{r(o4(b.target.value))},c=t!==void 0,d=f.useMemo(()=>X4(i),[i]),h=!!((y=s==null?void 0:s.table)!=null&&y.readonly),g=st(e);return p.createElement(Y4,{readOnly:h},p.createElement("label",{htmlFor:g,className:"sb-sr-only"},e),p.createElement(Db,null,n),p.createElement(V4,{id:g,type:"range",disabled:h,onChange:u,name:e,min:n,max:o,step:i,onFocus:l,onBlur:a,value:t??n}),p.createElement(q4,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},Z4=_.label({display:"flex"}),Q4=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),eI=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:i,argType:a})=>{var g;let l=y=>{r(y.target.value)},s=!!((g=a==null?void 0:a.table)!=null&&g.readonly),[u,c]=f.useState(!1),d=f.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return p.createElement(ve,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:Ko(e),onClick:d},"Set string");let h=typeof t=="string";return p.createElement(Z4,null,p.createElement(pr.Textarea,{id:st(e),maxLength:i,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:h?void 0:"error",name:e,value:h?t:"",onFocus:n,onBlur:o}),i&&p.createElement(Q4,{isMaxed:(t==null?void 0:t.length)===i},(t==null?void 0:t.length)??0," / ",i))},tI=_(pr.Input)({padding:10});function rI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var nI=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var u;let i=f.useRef(null),a=(u=o==null?void 0:o.control)==null?void 0:u.readOnly;function l(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(h=>URL.createObjectURL(h));e(d),rI(n||[])}f.useEffect(()=>{n==null&&i.current&&(i.current.value="")},[n,t]);let s=st(t);return p.createElement(p.Fragment,null,p.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),p.createElement(tI,{ref:i,id:s,type:"file",name:t,multiple:!0,disabled:a,onChange:l,accept:r,size:"flex"}))},oI=f.lazy(()=>Mt(()=>import("./Color-ASIRERSW-CzhPgsf8.js"),__vite__mapDeps([7,1,2,0,4]),import.meta.url)),aI=e=>p.createElement(f.Suspense,{fallback:p.createElement("div",null)},p.createElement(oI,{...e})),iI={array:wp,object:wp,boolean:XF,color:aI,date:r4,number:i4,check:yr,"inline-check":yr,radio:yr,"inline-radio":yr,select:yr,"multi-select":yr,range:J4,text:eI,file:nI},$p=()=>p.createElement(p.Fragment,null,"-"),lI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var b;let{key:o,control:i}=e,[a,l]=f.useState(!1),[s,u]=f.useState({value:t});f.useEffect(()=>{a||u({value:t})},[a,t]);let c=f.useCallback(S=>(u({value:S}),r({[o]:S}),S),[r,o]),d=f.useCallback(()=>l(!1),[]),h=f.useCallback(()=>l(!0),[]);if(!i||i.disable){let S=(i==null?void 0:i.disable)!==!0&&((b=e==null?void 0:e.type)==null?void 0:b.name)!=="function";return n&&S?p.createElement(Pr,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):p.createElement($p,null)}let g={name:o,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:h},y=iI[i.type]||$p;return p.createElement(y,{...g,...i,controlType:i.type})},sI=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Rt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),uI=({tags:e})=>{var i,a;let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:p.createElement(p.Fragment,null,p.createElement(sI,null,p.createElement("tbody",null,n&&p.createElement("tr",{key:"deprecated"},p.createElement("td",{colSpan:2},p.createElement("strong",null,"Deprecated"),": ",(i=e.deprecated)==null?void 0:i.toString())),r&&t.map(l=>p.createElement("tr",{key:l.name},p.createElement("td",null,p.createElement("code",null,l.name)),p.createElement("td",null,l.description))),o&&p.createElement("tr",{key:"returns"},p.createElement("td",null,p.createElement("code",null,"Returns")),p.createElement("td",null,(a=e.returns)==null?void 0:a.description)))))};function cI(e){return[...new Set(e)]}var dI=Fv(fO()),ys=8,Cp=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),fI=_.span(Rt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),pI=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),hI=_.div(Rt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),gI=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),mI=_(uO)({marginLeft:4}),yI=_(ob)({marginLeft:4}),bI=()=>p.createElement("span",null,"-"),Tb=({text:e,simple:t})=>p.createElement(fI,{simple:t},e),vI=(0,dI.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),EI=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return cI(t)},Dp=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,ys)),r.map(n=>p.createElement(Tb,{key:n,text:n===""?'""':n}))},SI=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=f.useState(!1),[a,l]=f.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return p.createElement(Tb,{text:s});let u=EI(s),c=u.length;return c>ys?p.createElement(Cp,{isExpanded:a},Dp(u,a),p.createElement(pI,{onClick:()=>l(!a)},a?"Show less...":`Show ${c-ys} more...`)):p.createElement(Cp,null,Dp(u))}return p.createElement($u,{placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},tooltip:p.createElement(gI,{width:vI(n)},p.createElement(In,{language:"jsx",format:!1},n))},p.createElement(hI,{className:"sbdocs-expandable"},p.createElement("span",null,s),o?p.createElement(mI,null):p.createElement(yI,null)))},gl=({value:e,initialExpandedArgs:t})=>e==null?p.createElement(bI,null):p.createElement(SI,{value:e,initialExpandedArgs:t}),xI=_.span({fontWeight:"bold"}),wI=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),$I=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Rt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),CI=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Se(.1,e.color.defaultText):Se(.2,e.color.defaultText),marginTop:t?4:0})),DI=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Se(.1,e.color.defaultText):Se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),TI=_.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),_I=e=>e&&{summary:typeof e=="string"?e:e.name},so=e=>{var b;let[t,r]=f.useState(!1),{row:n,updateArgs:o,compact:i,expandable:a,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||_I(n.type),h=c.defaultValue||n.defaultValue,g=(b=n.type)==null?void 0:b.required,y=u!=null&&u!=="";return p.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},p.createElement(TI,{expandable:a??!1},p.createElement(xI,null,s),g?p.createElement(wI,{title:"Required"},"*"):null),i?null:p.createElement("td",null,y&&p.createElement($I,null,p.createElement(pb,null,u)),c.jsDocTags!=null?p.createElement(p.Fragment,null,p.createElement(DI,{hasDescription:y},p.createElement(gl,{value:d,initialExpandedArgs:l})),p.createElement(uI,{tags:c.jsDocTags})):p.createElement(CI,{hasDescription:y},p.createElement(gl,{value:d,initialExpandedArgs:l}))),i?null:p.createElement("td",null,p.createElement(gl,{value:h,initialExpandedArgs:l})),o?p.createElement("td",null,p.createElement(lI,{...e,isHovered:t})):null)},AI=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),RI=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),PI=({inAddonPanel:e})=>{let[t,r]=f.useState(!0);return f.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:p.createElement(AI,{inAddonPanel:e},p.createElement(Kn,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:p.createElement(p.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:p.createElement(RI,null,e&&p.createElement(p.Fragment,null,p.createElement(Pr,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},p.createElement(hs,null)," Read docs")),!e&&p.createElement(Pr,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},p.createElement(hs,null)," Learn how to set that up"))}))},OI=_(lO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Se(.25,e.color.defaultText):Se(.3,e.color.defaultText),border:"none",display:"inline-block"})),FI=_(sO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Se(.25,e.color.defaultText):Se(.3,e.color.defaultText),border:"none",display:"inline-block"})),II=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),kI=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Se(.4,e.color.defaultText):Se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),LI=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),NI=_.td({position:"relative"}),BI=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${ps(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Tp=_.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),ml=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,a]=f.useState(n),l=e==="subsection"?LI:kI,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${i?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return p.createElement(p.Fragment,null,p.createElement(BI,{title:c},p.createElement(l,{colSpan:1},p.createElement(Tp,{onClick:d=>a(!i),tabIndex:0},c),p.createElement(II,null,i?p.createElement(OI,null):p.createElement(FI,null),t)),p.createElement(NI,{colSpan:o-1},p.createElement(Tp,{onClick:d=>a(!i),tabIndex:-1,style:{outline:"none"}},c),i?null:u)),i?r:null)},MI=_.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),uo=_.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),_e=_.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),we=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),jI=()=>p.createElement(MI,null,p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"}))),p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"80%"}),p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"}))),p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"80%"}),p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"}))),p.createElement(uo,null,p.createElement(_e,{position:"first"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"second"},p.createElement(we,{width:"80%"}),p.createElement(we,{width:"30%"})),p.createElement(_e,{position:"third"},p.createElement(we,{width:"60%"})),p.createElement(_e,{position:"last"},p.createElement(we,{width:"60%"})))),HI=_.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),UI=_.div({position:"relative"}),KI=_.div({position:"absolute",right:22,top:10}),zI=_(ve)({margin:"-4px -12px -4px 0"}),GI={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},WI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,a])=>{let{category:l,subcategory:s}=(a==null?void 0:a.table)||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:i,...a});else{let c=u.subsections[s]||[];c.push({key:i,...a}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:i,...a}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:i,...a})});let n=GI[t],o=i=>n?Object.keys(i).reduce((a,l)=>({...a,[l]:i[l].sort(n)}),{}):i;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,a)=>({...i,[a]:{ungrouped:n?r.sections[a].ungrouped.sort(n):r.sections[a].ungrouped,subsections:o(r.sections[a].subsections)}}),{})}},VI=(e,t,r)=>{try{return Ov(e,t,r)}catch(n){return pO.warn(n.message),!1}},bs=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:i,initialExpandedArgs:a,sort:l="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return p.createElement(nb,null,E," ",p.createElement(Pr,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},p.createElement(hs,null)," Read the docs"))}if(s)return p.createElement(jI,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},h=WI(UO(u||{},E=>{var C;return!((C=E==null?void 0:E.table)!=null&&C.disable)&&VI(E,c||{},d||{})}),l),g=h.ungrouped.length===0,y=Object.entries(h.sections).length===0,b=Object.entries(h.ungroupedSubsections).length===0;if(g&&y&&b)return p.createElement(PI,{inAddonPanel:o});let S=1;t&&(S+=1),n||(S+=2);let m=Object.keys(h.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return p.createElement(eu,null,p.createElement(UI,null,t&&!s&&r&&p.createElement(KI,null,p.createElement(zI,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},p.createElement(cO,null))),p.createElement(HI,{compact:n,inAddonPanel:o,inTabPanel:i,className:"docblock-argstable sb-unstyled"},p.createElement("thead",{className:"docblock-argstable-head"},p.createElement("tr",null,p.createElement("th",null,p.createElement("span",null,"Name")),n?null:p.createElement("th",null,p.createElement("span",null,"Description")),n?null:p.createElement("th",null,p.createElement("span",null,"Default")),t?p.createElement("th",null,p.createElement("span",null,"Control")):null)),p.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>p.createElement(so,{key:E.key,row:E,arg:c&&c[E.key],...v})),Object.entries(h.ungroupedSubsections).map(([E,C])=>p.createElement(ml,{key:E,label:E,level:"subsection",colSpan:S},C.map(P=>p.createElement(so,{key:P.key,row:P,arg:c&&c[P.key],expandable:m,...v})))),Object.entries(h.sections).map(([E,C])=>p.createElement(ml,{key:E,label:E,level:"section",colSpan:S},C.ungrouped.map(P=>p.createElement(so,{key:P.key,row:P,arg:c&&c[P.key],...v})),Object.entries(C.subsections).map(([P,x])=>p.createElement(ml,{key:P,label:P,level:"subsection",colSpan:S},x.map(D=>p.createElement(so,{key:D.key,row:D,arg:c&&c[D.key],expandable:m,...v}))))))))))},$e=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Hu=600,qI=_.h1(pe,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Hu}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),YI=_.h2(pe,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Hu}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Se(.25,e.color.defaultText)})),XI=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Se(.1,e.color.defaultText):Se(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[$e("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[$e("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[$e("div")]:t,[$e("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[$e("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[$e("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[$e("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[$e("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[$e("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[$e("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[$e("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[$e("img")]:{maxWidth:"100%"},[$e("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[$e("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[$e("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[$e("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[$e("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[$e("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[$e("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),JI=_.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Hu}px)`]:{}})),ZI=({children:e,toc:t})=>p.createElement(JI,{className:"sbdocs sbdocs-wrapper"},t,p.createElement(XI,{className:"sbdocs sbdocs-content"},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=f.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Xe=globalThis?globalThis.__DOCS_CONTEXT__:f.createContext(null);function QI(e,t){let r=e8([e],t);return r&&r[0]}function e8(e,t){let[r,n]=f.useState({});return f.useEffect(()=>{Promise.all(e.map(async o=>{let i=await t.loadStory(o);n(a=>a[o]===i?a:{...a,[o]:i})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var _b=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},t8=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,i=o.story||{};if(o.disable)return null;if(e.inline??i.inline??!1){let l=e.height??i.height,s=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let a=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:a,primary:!!e.__primary}},r8=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=f.useContext(Xe),r=_b(e,t),n=QI(r,t);if(!n)return p.createElement(Rb,null);let o=t8(e,n,t);return o?p.createElement(c8,{...o}):null},xa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:n8}=globalThis,o8=class extends f.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=n8.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...i}=this.props;return p.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...i})}},Ab=f.createContext({scale:1}),{PREVIEW_URL:a8}=globalThis,i8=a8||"iframe.html",vs=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,l8=e=>{let t=f.useRef(),[r,n]=f.useState(!0),[o,i]=f.useState(),{story:a,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return f.useEffect(()=>{if(!(a&&t.current))return()=>{};let d=t.current,h=c(a,d,{showMain:()=>{},showError:({title:g,description:y})=>i(new Error(`${g} - ${y}`)),showException:g=>i(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>h())}},[s,c,a]),o?p.createElement("pre",null,p.createElement(M0,{error:o})):p.createElement(p.Fragment,null,l?p.createElement("style",null,`#${vs(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&p.createElement(Rb,null),p.createElement("div",{ref:t,id:`${vs(e)}-inner`,"data-name":a.name}))},s8=({story:e,height:t="500px"})=>p.createElement("div",{style:{width:"100%",height:t}},p.createElement(Ab.Consumer,null,({scale:r})=>p.createElement(o8,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:ku(i8,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),u8=_.strong(({theme:e})=>({color:e.color.orange})),c8=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?p.createElement(u8,null,"This story mounts inside of play. Set"," ",p.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):p.createElement("div",{id:vs(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?p.createElement(l8,{...e}):p.createElement(s8,{...e}))},Rb=()=>p.createElement(Xy,null),d8=_(My)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),yl=_.div({display:"flex",alignItems:"center",gap:4}),_p=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),f8=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...i})=>p.createElement(d8,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...i},p.createElement(yl,{key:"left"},e?[1,2,3].map(a=>p.createElement(_p,{key:a})):p.createElement(p.Fragment,null,p.createElement(ve,{padding:"small",variant:"ghost",key:"zoomin",onClick:a=>{a.preventDefault(),n(.8)},ariaLabel:"Zoom in"},p.createElement(eO,null)),p.createElement(ve,{padding:"small",variant:"ghost",key:"zoomout",onClick:a=>{a.preventDefault(),n(1.25)},ariaLabel:"Zoom out"},p.createElement(tO,null)),p.createElement(ve,{padding:"small",variant:"ghost",key:"zoomreset",onClick:a=>{a.preventDefault(),o()},ariaLabel:"Reset zoom"},p.createElement(rO,null)))),e?p.createElement(yl,{key:"right"},p.createElement(_p,null)):r&&t&&p.createElement(yl,{key:"right"},p.createElement(ve,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},p.createElement("a",{href:ku(r,t),target:"_blank",rel:"noopener noreferrer"},p.createElement(iO,null))))),p8=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Ap=_(Lu)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":hn(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":hn(.05,e.background.content)}})),h8=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...xa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),g8=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:p.createElement(Ap,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:p.createElement(Ap,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function m8(e){if(f.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var y8=_(f8)({position:"absolute",top:0,left:0,right:0,height:40}),b8=_.div({overflow:"hidden",position:"relative"}),Pb=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:a=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,...d})=>{let[h,g]=f.useState(a),{source:y,actionItem:b}=g8(o,h,g),[S,m]=f.useState(1),v=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[b]:[],[C,P]=f.useState(l?[...l]:[]),x=[...E,...C],{window:D}=globalThis,$=f.useContext(Xe),A=f.useCallback(async O=>{let{createCopyToClipboardFunction:I}=await Mt(async()=>{const{createCopyToClipboardFunction:R}=await Promise.resolve().then(()=>u3);return{createCopyToClipboardFunction:R}},void 0,import.meta.url);I()},[]),T=O=>{let I=D.getSelection();I&&I.type==="Range"||(O.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A((y==null?void 0:y.props.code)??"").then(()=>{P([...C,{title:"Copied",onClick:()=>{}}]),D.setTimeout(()=>P(C.filter(R=>R.title!=="Copied")),1500)}))},w=m8(n);return p.createElement(h8,{withSource:o,withToolbar:i,...d,className:v.join(" ")},i&&p.createElement(y8,{isLoading:e,border:!0,zoom:O=>m(S*O),resetZoom:()=>m(1),storyId:!e&&w?_b(w,$):void 0,baseUrl:"./iframe.html"}),p.createElement(Ab.Provider,{value:{scale:S}},p.createElement(b8,{className:"docs-story",onCopyCapture:o&&T},p.createElement(p8,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c},p.createElement(B0.Element,{centered:u==="centered",scale:c?S:1},Array.isArray(n)?n.map((O,I)=>p.createElement("div",{key:I},O)):p.createElement("div",null,n))),p.createElement(Wp,{actionItems:x}))),o&&h&&y)};_(Pb)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var v8=_(qy)({height:"fit-content"}),E8=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return p.createElement(bs,{...r[0][1],...t});let n=r.map(([o,i],a)=>({id:`prop_table_div_${o}`,title:o,children:()=>{let l=a===0?t:{sort:t.sort};return p.createElement(bs,{inTabPanel:!0,key:`prop_table_${o}`,...i,...l})}}));return p.createElement(v8,{tabs:n})};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Se(.4,e.color.defaultText):Se(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(pe,({theme:e})=>({...xa(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:Se(.3,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:Se(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...xa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:Se(.3,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));_.div(({theme:e})=>({...xa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});_.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:S8}=__STORYBOOK_MODULE_CORE_EVENTS__;function x8(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",i,a=!0,l=0;function s(T,w){let O=w.appendChild(c(T));if(T.children.length){let I=d(T.isCollapsed);T.children.forEach(R=>{s(R,I)}),O.appendChild(I)}}function u(T,w){let O=d(!1);if(w.forEach(I=>{s(I,O)}),i=T||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),w.length===0?i:i.appendChild(O)}function c(T){let w=document.createElement("li"),O=document.createElement("a");return e.listItemClass&&w.setAttribute("class",e.listItemClass),e.onClick&&(O.onclick=e.onClick),e.includeTitleTags&&O.setAttribute("title",T.textContent),e.includeHtml&&T.childNodes.length?t.call(T.childNodes,I=>{O.appendChild(I.cloneNode(!0))}):O.textContent=T.textContent,O.setAttribute("href",`${e.basePath}#${T.id}`),O.setAttribute("class",`${e.linkClass+o}node-name--${T.nodeName}${o}${e.extraLinkClasses}`),w.appendChild(O),w}function d(T){let w=e.orderedList?"ol":"ul",O=document.createElement(w),I=e.listClass+o+e.extraListClasses;return T&&(I=I+o+e.collapsibleClass,I=I+o+e.isCollapsedClass),O.setAttribute("class",I),O}function h(){let T=D(),w=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=i.offsetTop),T>e.fixedSidebarOffset?w.className.indexOf(e.positionFixedClass)===-1&&(w.className+=o+e.positionFixedClass):w.className=w.className.replace(o+e.positionFixedClass,"")}function g(T){let w=0;return T!==null&&(w=T.offsetTop,e.hasInnerContainers&&(w+=g(T.offsetParent))),w}function y(T,w){return T&&T.className!==w&&(T.className=w),T}function b(T,w){var L,F;e.positionFixedSelector&&h();let O=T,I=(L=w==null?void 0:w.target)!=null&&L.getAttribute?(F=w==null?void 0:w.target)==null?void 0:F.getAttribute("href"):null,R=I&&I.charAt(0)==="#"?C(I.replace("#","")):!1,k=a||R;if(w&&l<5&&l++,k&&i&&O.length>0){let j=$(O),B=i.querySelector(`.${e.activeLinkClass}`),N=j.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),U=window.location.hash.replace("#",""),M=N,H=P();I&&R?M=I.replace("#",""):U&&U!==N&&H&&(C(N)||l<=2)&&(M=U);let z=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${M}"]`);if(B===z)return;let K=i.querySelectorAll(`.${e.linkClass}`);t.call(K,me=>{y(me,me.className.replace(o+e.activeLinkClass,""))});let q=i.querySelectorAll(`.${e.listItemClass}`);t.call(q,me=>{y(me,me.className.replace(o+e.activeListItemClass,""))}),z&&z.className.indexOf(e.activeLinkClass)===-1&&(z.className+=o+e.activeLinkClass);let ue=z==null?void 0:z.parentNode;ue&&ue.className.indexOf(e.activeListItemClass)===-1&&(ue.className+=o+e.activeListItemClass);let ge=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(ge,me=>{me.className.indexOf(e.isCollapsedClass)===-1&&(me.className+=o+e.isCollapsedClass)}),z!=null&&z.nextSibling&&z.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&y(z.nextSibling,z.nextSibling.className.replace(o+e.isCollapsedClass,"")),S(z==null?void 0:z.parentNode.parentNode)}}function S(T){return T&&T.className.indexOf(e.collapsibleClass)!==-1&&T.className.indexOf(e.isCollapsedClass)!==-1?(y(T,T.className.replace(o+e.isCollapsedClass,"")),S(T.parentNode.parentNode)):T}function m(T){let w=T.target||T.srcElement;typeof w.className!="string"||w.className.indexOf(e.linkClass)===-1||(a=!1)}function v(){a=!0}function E(){return a}function C(T){let w=x();return(document==null?void 0:document.getElementById(T)).offsetTop>w.offsetHeight-w.clientHeight*1.4-e.bottomModeThreshold}function P(){let T=x(),w=T.scrollHeight>T.clientHeight,O=D()+T.clientHeight>T.offsetHeight-e.bottomModeThreshold;return w&&O}function x(){let T;return e.scrollContainer&&document.querySelector(e.scrollContainer)?T=document.querySelector(e.scrollContainer):T=document.documentElement||n,T}function D(){var T;return((T=x())==null?void 0:T.scrollTop)||0}function $(T,w=D()){let O;return r.call(T,(I,R)=>{if(g(I)>w+e.headingsOffset+10){let k=R===0?R:R-1;return O=T[k],!0}if(R===T.length-1)return O=T[T.length-1],!0}),O}function A(T){let w=D(),O=$(T,w),I=P();if((!O||w<5)&&!I)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(O&&!I){let R=`#${O.id}`;window.location.hash!==R&&window.history.pushState(null,null,R)}}return{enableTocAnimation:v,disableTocAnimation:m,render:u,updateToc:b,getCurrentlyHighlighting:E,getTopHeader:$,getScrollTop:D,updateUrlHashForHeader:A}}var w8={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function $8(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function i(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function a(u,c){let d=i(u),h=d.headingLevel,g=c,y=r(g),b=y?y.headingLevel:0,S=h-b;for(;S>0&&(y=r(g),!(y&&h===y.headingLevel));)y&&y.children!==void 0&&(g=y.children),S--;return h>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(h){return`${h.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let h=i(d);return h&&a(h,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function C8(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?a(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!i(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||D8(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function i(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(a(s.href)===n||a(s.href)+"#"===n)}function a(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function D8(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,a=typeof n.duration=="function"?n.duration(i):n.duration,l,s;requestAnimationFrame(function(h){l=h,u(h)});function u(h){s=h-l,window.scrollTo(0,n.easing(s,r,i,a)),s<a?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+i),typeof n.callback=="function"&&n.callback()}function d(h,g,y,b){return h/=b/2,h<1?y/2*h*h+g:(h--,-y/2*(h*(h-2)-1)+g)}}function T8(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var Z={},at,bl,Yt,it,mn;function Ob(e){let t=!1;Z=R8(w8,e||{}),Z.scrollSmooth&&(Z.duration=Z.scrollSmoothDuration,Z.offset=Z.scrollSmoothOffset,C8(Z)),at=x8(Z),bl=$8(Z),Uu();let r=O8(Z);if(r===null)return;let n=Fb(Z);if(n===null||(Yt=bl.selectHeadings(r,Z.headingSelector),Yt===null))return;let o=bl.nestHeadingsArray(Yt).nest;if(!Z.skipRendering)at.render(n,o);else return this;let i=!1,a=Z.scrollHandlerTimeout||Z.throttleTimeout;it=((s,u)=>P8(s,u,Z.scrollHandlerType))(s=>{var c,d,h;at.updateToc(Yt,s),!Z.disableTocScrollSync&&!i&&T8(Z),Z.enableUrlHashUpdateOnScroll&&t&&at.getCurrentlyHighlighting()&&at.updateUrlHashForHeader(Yt);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(at.updateToc(Yt),(h=Z.scrollEndCallback)==null||h.call(Z,s))},a),t||(it(),t=!0),window.onhashchange=window.onscrollend=s=>{it(s)},Z.scrollContainer&&document.querySelector(Z.scrollContainer)?(document.querySelector(Z.scrollContainer).addEventListener("scroll",it,!1),document.querySelector(Z.scrollContainer).addEventListener("resize",it,!1)):(document.addEventListener("scroll",it,!1),document.addEventListener("resize",it,!1));let l=null;mn=Es(s=>{i=!0,Z.scrollSmooth&&at.disableTocAnimation(s),at.updateToc(Yt,s),l&&clearTimeout(l),l=setTimeout(()=>{at.enableTocAnimation()},Z.scrollSmoothDuration),setTimeout(()=>{i=!1},Z.scrollSmoothDuration+100)},Z.throttleTimeout),Z.scrollContainer&&document.querySelector(Z.scrollContainer)?document.querySelector(Z.scrollContainer).addEventListener("click",mn,!1):document.addEventListener("click",mn,!1)}function Uu(){let e=Fb(Z);e!==null&&(Z.skipRendering||e&&(e.innerHTML=""),Z.scrollContainer&&document.querySelector(Z.scrollContainer)?(document.querySelector(Z.scrollContainer).removeEventListener("scroll",it,!1),document.querySelector(Z.scrollContainer).removeEventListener("resize",it,!1),at&&document.querySelector(Z.scrollContainer).removeEventListener("click",mn,!1)):(document.removeEventListener("scroll",it,!1),document.removeEventListener("resize",it,!1),at&&document.removeEventListener("click",mn,!1)))}function _8(e){Uu(),Ob(e||Z)}var A8=Object.prototype.hasOwnProperty;function R8(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)A8.call(n,o)&&(t[o]=n[o])}return t}function Es(e,t,r){t||(t=250);let n,o;return function(...i){let a=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(a,i)},t)):(n=l,e.apply(a,i))}}function Rp(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function P8(e,t,r="auto"){switch(r){case"debounce":return Rp(e,t);case"throttle":return Es(e,t);default:return t<334?Rp(e,t):Es(e,t)}}function O8(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function Fb(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var F8={destroy:Uu,init:Ob,refresh:_8},Pp=F8,I8=_.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),k8=_.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),L8=_.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),N8=({headingId:e,title:t})=>typeof t=="string"||!t?p.createElement(L8,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):p.createElement("div",{id:e},t),B8=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:i,channel:a,className:l})=>{f.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,h]=d.currentTarget.href.split("#");h&&a.emit(S8,`#${h}`)}},...i},c=setTimeout(()=>Pp.init(u),100);return()=>{clearTimeout(c),Pp.destroy()}},[a,t,o,n,r,i]);let s="table-of-contents";return p.createElement(I8,{className:l},t?null:p.createElement(k8,{"aria-labelledby":s},p.createElement(N8,{headingId:s,title:e}),p.createElement("div",{className:"toc-wrapper"})))},M8=e=>`anchor--${e}`,Ib=({storyId:e,children:t})=>p.createElement("div",{id:M8(e),className:"sb-anchor"},t);const{filterArgTypes:TL}=__STORYBOOK_MODULE_PREVIEW_API__;var gr=(e,t)=>f.useContext(Xe).resolveOf(e,t),j8=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),H8=e=>{if(e)return typeof e=="string"?e.includes("-")?j8(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function U8(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var K8=Object.create,kb=Object.defineProperty,z8=Object.getOwnPropertyDescriptor,Lb=Object.getOwnPropertyNames,G8=Object.getPrototypeOf,W8=Object.prototype.hasOwnProperty,te=(e,t)=>function(){return t||(0,e[Lb(e)[0]])((t={exports:{}}).exports,t),t.exports},V8=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lb(t))!W8.call(e,o)&&o!==r&&kb(e,o,{get:()=>t[o],enumerable:!(n=z8(t,o))||n.enumerable});return e},Ku=(e,t,r)=>(r=e!=null?K8(G8(e)):{},V8(!e||!e.__esModule?kb(r,"default",{value:e,enumerable:!0}):r,e)),q8=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],Y8=["detail"];function X8(e){let t=q8.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of Y8.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var Nb=te({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),J8=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),Z8=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Q8=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),e7=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),t7=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),zu=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),r7=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),n7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),o7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),a7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),i7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),l7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),s7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),u7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),c7=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=u7();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),d7=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Gu=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=d7();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),f7=te({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Bb=te({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),Mb=te({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Bb();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),jb=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),Hb=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Nb();t.exports=r.getPrototypeOf||null}}),p7=te({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(u,c){for(var d=[],h=0;h<u.length;h+=1)d[h]=u[h];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],h=c,g=0;h<u.length;h+=1,g+=1)d[g]=u[h];return d},s=function(u,c){for(var d="",h=0;h<u.length;h+=1)d+=u[h],h+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),h,g=function(){if(this instanceof h){var v=c.apply(this,a(d,arguments));return Object(v)===v?v:this}return c.apply(u,a(d,arguments))},y=o(0,c.length-d.length),b=[],S=0;S<y;S++)b[S]="$"+S;if(h=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var m=function(){};m.prototype=c.prototype,h.prototype=new m,m.prototype=null}return h}}}),wa=te({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=p7();t.exports=Function.prototype.bind||r}}),Wu=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),Ub=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),h7=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),g7=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=wa(),n=Ub(),o=Wu(),i=h7();t.exports=i||r.call(o,n)}}),Kb=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=wa(),n=zu(),o=Wu(),i=g7();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),m7=te({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Kb(),n=Gu(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?function(s){return l(s==null?s:a(s))}:!1}}),y7=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=jb(),n=Hb(),o=m7();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),zb=te({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=wa();t.exports=o.call(r,n)}}),b7=te({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Nb(),o=J8(),i=Z8(),a=Q8(),l=e7(),s=t7(),u=zu(),c=r7(),d=n7(),h=o7(),g=a7(),y=i7(),b=l7(),S=s7(),m=c7(),v=Function,E=function(Y){try{return v('"use strict"; return ('+Y+").constructor;")()}catch{}},C=Gu(),P=f7(),x=function(){throw new u},D=C?function(){try{return arguments.callee,x}catch{try{return C(arguments,"callee").get}catch{return x}}}():x,$=Mb()(),A=y7(),T=Hb(),w=jb(),O=Ub(),I=Wu(),R={},k=typeof Uint8Array>"u"||!A?r:A(Uint8Array),L={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":$&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$||!A?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&A?A(""[Symbol.iterator]()):r,"%Symbol%":$?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":D,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":O,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":T,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":S,"%Math.sign%":m,"%Reflect.getPrototypeOf%":w};if(A)try{null.error}catch(Y){F=A(A(Y)),L["%Error.prototype%"]=F}var F,j=function Y(G){var W;if(G==="%AsyncFunction%")W=E("async function () {}");else if(G==="%GeneratorFunction%")W=E("function* () {}");else if(G==="%AsyncGeneratorFunction%")W=E("async function* () {}");else if(G==="%AsyncGenerator%"){var J=Y("%AsyncGeneratorFunction%");J&&(W=J.prototype)}else if(G==="%AsyncIteratorPrototype%"){var ae=Y("%AsyncGenerator%");ae&&A&&(W=A(ae.prototype))}return L[G]=W,W},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=wa(),U=zb(),M=N.call(I,Array.prototype.concat),H=N.call(O,Array.prototype.splice),z=N.call(I,String.prototype.replace),K=N.call(I,String.prototype.slice),q=N.call(I,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ge=/\\(\\)?/g,me=function(Y){var G=K(Y,0,1),W=K(Y,-1);if(G==="%"&&W!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(W==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var J=[];return z(Y,ue,function(ae,Pe,V,Oe){J[J.length]=V?z(Oe,ge,"$1"):Pe||ae}),J},St=function(Y,G){var W=Y,J;if(U(B,W)&&(J=B[W],W="%"+J[0]+"%"),U(L,W)){var ae=L[W];if(ae===R&&(ae=j(W)),typeof ae>"u"&&!G)throw new u("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:J,name:W,value:ae}}throw new s("intrinsic "+Y+" does not exist!")};t.exports=function(Y,G){if(typeof Y!="string"||Y.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new u('"allowMissing" argument must be a boolean');if(q(/^%?[^%]*%?$/,Y)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W=me(Y),J=W.length>0?W[0]:"",ae=St("%"+J+"%",G),Pe=ae.name,V=ae.value,Oe=!1,nt=ae.alias;nt&&(J=nt[0],H(W,M([0,1],nt)));for(var Ke=1,ot=!0;Ke<W.length;Ke+=1){var xe=W[Ke],xt=K(xe,0,1),wt=K(xe,-1);if((xt==='"'||xt==="'"||xt==="`"||wt==='"'||wt==="'"||wt==="`")&&xt!==wt)throw new s("property names with quotes must have matching quotes");if((xe==="constructor"||!ot)&&(Oe=!0),J+="."+xe,Pe="%"+J+"%",U(L,Pe))V=L[Pe];else if(V!=null){if(!(xe in V)){if(!G)throw new u("base intrinsic for "+Y+" exists, but the property is not available.");return}if(C&&Ke+1>=W.length){var $t=C(V,xe);ot=!!$t,ot&&"get"in $t&&!("originalValue"in $t.get)?V=$t.get:V=V[xe]}else ot=U(V,xe),V=V[xe];ot&&!Oe&&(L[Pe]=V)}}return V}}}),Vu=te({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=b7(),n=Kb(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),v7=te({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Bb();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),Gb=te({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Vu(),n=v7()(),o=zb(),i=Gu(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(g){if(!g||typeof g!="object")return!1;var y=i(g,"lastIndex"),b=y&&o(y,"value");if(!b)return!1;try{l(g,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),h="[object RegExp]",a=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===h});var l,s,u,c,d,h;t.exports=a}}),E7=te({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),S7=te({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Vu(),n=Gb(),o=r("RegExp.prototype.exec"),i=zu();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),x7=te({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Vu(),n=r("Object.prototype.toString"),o=Mb()(),i=S7();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var a,l,s}}),w7=Ku(Gb()),$7=Ku(E7()),C7=Ku(x7());function D7(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var T7=typeof global=="object"&&global&&global.Object===Object&&global,_7=T7,A7=typeof self=="object"&&self&&self.Object===Object&&self,R7=_7||A7||Function("return this")(),qu=R7,P7=qu.Symbol,Mr=P7,Wb=Object.prototype,O7=Wb.hasOwnProperty,F7=Wb.toString,nn=Mr?Mr.toStringTag:void 0;function I7(e){var t=O7.call(e,nn),r=e[nn];try{e[nn]=void 0;var n=!0}catch{}var o=F7.call(e);return n&&(t?e[nn]=r:delete e[nn]),o}var k7=I7,L7=Object.prototype,N7=L7.toString;function B7(e){return N7.call(e)}var M7=B7,j7="[object Null]",H7="[object Undefined]",Op=Mr?Mr.toStringTag:void 0;function U7(e){return e==null?e===void 0?H7:j7:Op&&Op in Object(e)?k7(e):M7(e)}var K7=U7,Fp=Mr?Mr.prototype:void 0;Fp&&Fp.toString;function z7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vb=z7,G7="[object AsyncFunction]",W7="[object Function]",V7="[object GeneratorFunction]",q7="[object Proxy]";function Y7(e){if(!Vb(e))return!1;var t=K7(e);return t==W7||t==V7||t==G7||t==q7}var X7=Y7,J7=qu["__core-js_shared__"],vl=J7,Ip=function(){var e=/[^.]+$/.exec(vl&&vl.keys&&vl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Z7(e){return!!Ip&&Ip in e}var Q7=Z7,e6=Function.prototype,t6=e6.toString;function r6(e){if(e!=null){try{return t6.call(e)}catch{}try{return e+""}catch{}}return""}var n6=r6,o6=/[\\^$.*+?()[\]{}|]/g,a6=/^\[object .+?Constructor\]$/,i6=Function.prototype,l6=Object.prototype,s6=i6.toString,u6=l6.hasOwnProperty,c6=RegExp("^"+s6.call(u6).replace(o6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d6(e){if(!Vb(e)||Q7(e))return!1;var t=X7(e)?c6:a6;return t.test(n6(e))}var f6=d6;function p6(e,t){return e==null?void 0:e[t]}var h6=p6;function g6(e,t){var r=h6(e,t);return f6(r)?r:void 0}var qb=g6;function m6(e,t){return e===t||e!==e&&t!==t}var y6=m6,b6=qb(Object,"create"),Tn=b6;function v6(){this.__data__=Tn?Tn(null):{},this.size=0}var E6=v6;function S6(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var x6=S6,w6="__lodash_hash_undefined__",$6=Object.prototype,C6=$6.hasOwnProperty;function D6(e){var t=this.__data__;if(Tn){var r=t[e];return r===w6?void 0:r}return C6.call(t,e)?t[e]:void 0}var T6=D6,_6=Object.prototype,A6=_6.hasOwnProperty;function R6(e){var t=this.__data__;return Tn?t[e]!==void 0:A6.call(t,e)}var P6=R6,O6="__lodash_hash_undefined__";function F6(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tn&&t===void 0?O6:t,this}var I6=F6;function Vr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vr.prototype.clear=E6;Vr.prototype.delete=x6;Vr.prototype.get=T6;Vr.prototype.has=P6;Vr.prototype.set=I6;var kp=Vr;function k6(){this.__data__=[],this.size=0}var L6=k6;function N6(e,t){for(var r=e.length;r--;)if(y6(e[r][0],t))return r;return-1}var $a=N6,B6=Array.prototype,M6=B6.splice;function j6(e){var t=this.__data__,r=$a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():M6.call(t,r,1),--this.size,!0}var H6=j6;function U6(e){var t=this.__data__,r=$a(t,e);return r<0?void 0:t[r][1]}var K6=U6;function z6(e){return $a(this.__data__,e)>-1}var G6=z6;function W6(e,t){var r=this.__data__,n=$a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var V6=W6;function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qr.prototype.clear=L6;qr.prototype.delete=H6;qr.prototype.get=K6;qr.prototype.has=G6;qr.prototype.set=V6;var q6=qr,Y6=qb(qu,"Map"),X6=Y6;function J6(){this.size=0,this.__data__={hash:new kp,map:new(X6||q6),string:new kp}}var Z6=J6;function Q6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ek=Q6;function tk(e,t){var r=e.__data__;return ek(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ca=tk;function rk(e){var t=Ca(this,e).delete(e);return this.size-=t?1:0,t}var nk=rk;function ok(e){return Ca(this,e).get(e)}var ak=ok;function ik(e){return Ca(this,e).has(e)}var lk=ik;function sk(e,t){var r=Ca(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var uk=sk;function Yr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yr.prototype.clear=Z6;Yr.prototype.delete=nk;Yr.prototype.get=ak;Yr.prototype.has=lk;Yr.prototype.set=uk;var Yb=Yr,ck="Expected a function";function Yu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ck);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Yu.Cache||Yb),r}Yu.Cache=Yb;var dk=Yu,fk=500;function pk(e){var t=dk(e,function(n){return r.size===fk&&r.clear(),n}),r=t.cache;return t}var hk=pk,gk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mk=/\\(\\)?/g;hk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gk,function(r,n,o,i){t.push(o?i.replace(mk,"$1"):n||r)}),t});var yk=D7,bk=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Xb(e){if(!yk(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=X8(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var vk=function(e){let t,r,n,o;return function(i,a){var l;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return bk.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,w7.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,$7.default)(a))return;if((0,C7.default)(a)){if(!e.allowSymbol)return;let c=Symbol.keyFor(a);return c!==void 0?`_gsymbol_${c}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if((l=a==null?void 0:a.constructor)!=null&&l.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let c=t.get(a);if(!c){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((h,g)=>{try{h[g]=a[g]}catch{}return h},{})};return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${c}`}let u=t.get(a);if(!u){let c=Array.isArray(a)?a:Xb(a);return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}catch{return}}},Ek={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Sk=(e,t={})=>{let r={...Ek,...t};return JSON.stringify(Xb(e),vk(r),t.space)};function Jb(e){return Sk(e,{maxDepth:50})}var Xu=f.createContext({sources:{}}),Zb="--unknown--",xk=({children:e,channel:t})=>{let[r,n]=f.useState({});return f.useEffect(()=>{let o=(i,a=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof i=="string"?{id:i,source:a,format:l}:i,h=u?Jb(u):Zb;n(g=>({...g,[s]:{...g[s],[h]:{code:c||"",format:d}}}))};return t.on(rc,o),()=>t.off(rc,o)},[]),p.createElement(Xu.Provider,{value:{sources:r}},e)};function wk(e,t,r){let[n,o]=f.useState("Transforming..."),i=t?t==null?void 0:t(e,r):e;return f.useEffect(()=>{async function a(){let l=await i;l!==n&&o(l)}a()}),typeof i=="object"&&typeof i.then=="function"?n:i}var $k=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[Jb(t)])||(o==null?void 0:o[Zb])||{code:""}},Ck=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d;let o=t.parameters??{},{__isArgsStory:i}=o,a=((d=o.docs)==null?void 0:d.source)||{},l=r||a.type||_a.AUTO,s=l===_a.DYNAMIC||l===_a.AUTO&&e&&i?e:a.originalSource||"",u=n??a.transform,c=u?wk(s,u,t):s;return a.code!==void 0?a.code:c},Qb=(e,t,r)=>{var g,y;let{of:n}=e,o=f.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),i=o?t.getStoryContext(o):{},a=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,l=o?$k(o.id,a,r):null,s=Ck({snippet:l?l.code:"",storyContext:{...i,args:a},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((y=(g=o==null?void 0:o.parameters)==null?void 0:g.docs)==null?void 0:y.source)||{},c=e.format,d=e.language??u.language??"jsx",h=e.dark??u.dark??!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:h}:(c=(l==null?void 0:l.format)??!0,{code:s,format:c,language:d,dark:h})},_L=e=>{let t=f.useContext(Xu),r=f.useContext(Xe),n=Qb(e,r,t);return p.createElement(Lu,{...n})},Dk=e=>{var g,y,b,S,m,v,E,C,P,x,D,$,A,T;let t=f.useContext(Xe),r=f.useContext(Xu),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:i}=gr(n||"story",["story"]),a=Qb({...o,...n&&{of:n}},t,r),l=e.layout??i.parameters.layout??((y=(g=i.parameters.docs)==null?void 0:g.canvas)==null?void 0:y.layout)??"padded",s=e.withToolbar??((S=(b=i.parameters.docs)==null?void 0:b.canvas)==null?void 0:S.withToolbar)??!1,u=e.additionalActions??((v=(m=i.parameters.docs)==null?void 0:m.canvas)==null?void 0:v.additionalActions),c=e.sourceState??((C=(E=i.parameters.docs)==null?void 0:E.canvas)==null?void 0:C.sourceState)??"hidden",d=e.className??((x=(P=i.parameters.docs)==null?void 0:P.canvas)==null?void 0:x.className),h=((D=e.story)==null?void 0:D.inline)??((T=(A=($=i.parameters)==null?void 0:$.docs)==null?void 0:A.story)==null?void 0:T.inline)??!1;return p.createElement(Pb,{withSource:c==="none"?void 0:a,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:h},p.createElement(r8,{of:n||i.moduleExport,meta:e.meta,...e.story}))};const{filterArgTypes:Lp}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:Tk,STORY_ARGS_UPDATED:Np,UPDATE_STORY_ARGS:_k}=__STORYBOOK_MODULE_CORE_EVENTS__;var Ak=(e,t)=>{let r=Rk(e,t);if(!r)throw new Error("No result when story was defined");return r},Rk=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,i]=f.useState(r.args);f.useEffect(()=>{let s=u=>{u.storyId===n&&i(u.args)};return t.channel.on(Np,s),()=>t.channel.off(Np,s)},[n,t.channel]);let a=f.useCallback(s=>t.channel.emit(_k,{storyId:n,updatedArgs:s}),[n,t.channel]),l=f.useCallback(s=>t.channel.emit(Tk,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,a,l]};const{GLOBALS_UPDATED:Bp}=__STORYBOOK_MODULE_CORE_EVENTS__;var Pk=(e,t)=>{let r=t.getStoryContext(e),[n,o]=f.useState(r.globals);return f.useEffect(()=>{let i=a=>{o(a.globals)};return t.channel.on(Bp,i),()=>t.channel.off(Bp,i)},[t.channel]),[n]};function Ok(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Fk=e=>{var C;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=f.useContext(Xe),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:i,component:a,subcomponents:l}=n,s=((C=o.docs)==null?void 0:C.controls)||{},u=e.include??s.include,c=e.exclude??s.exclude,d=e.sort??s.sort,[h,g,y]=Ak(n,r),[b]=Pk(n,r),S=Lp(i,u,c);if(!(l&&Object.keys(l||{}).length>0))return Object.keys(S).length>0||Object.keys(h).length>0?p.createElement(bs,{rows:S,sort:d,args:h,globals:b,updateArgs:g,resetArgs:y}):null;let m=H8(a)||"Story",v=Object.fromEntries(Object.entries(l||{}).map(([P,x])=>[P,{rows:Lp(Ok(x,o),u,c),sort:d}])),E={[m]:{rows:S,sort:d},...v};return p.createElement(E8,{tabs:E,sort:d,args:h,globals:b,updateArgs:g,resetArgs:y})};const{NAVIGATE_URL:Ik}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:ev}=globalThis,kk=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return p.createElement(tu,null,t);let n=e&&e.split("-");return p.createElement(Lu,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Ju(e,t){e.channel.emit(Ik,t)}var Ss=Jy.a,Lk=({hash:e,children:t})=>{let r=f.useContext(Xe);return p.createElement(Ss,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);ev.getElementById(o)&&Ju(r,e)}},t)},Nk=e=>{let{href:t,target:r,children:n,...o}=e,i=f.useContext(Xe);return!t||r==="_blank"||/^https?:\/\//.test(t)?p.createElement(Ss,{...e}):t.startsWith("#")?p.createElement(Lk,{hash:t},n):p.createElement(Ss,{href:t,onClick:a=>{a.button===0&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&(a.preventDefault(),Ju(i,a.currentTarget.getAttribute("href")||""))},target:r,...o},n)},tv=["h1","h2","h3","h4","h5","h6"],Bk=tv.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Mk=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),jk=({as:e,id:t,children:r,...n})=>{let o=f.useContext(Xe),i=Bk[e],a=`#${t}`;return p.createElement(i,{id:t,...n},p.createElement(Mk,{"aria-hidden":"true",href:a,tabIndex:-1,target:"_self",onClick:l=>{ev.getElementById(t)&&Ju(o,a)}},p.createElement(aO,null)),r)},Zu=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return p.createElement(jk,{as:t,id:r,...o},n);let i=t,{as:a,...l}=e;return p.createElement(i,{...de(l,t)})},Hk=tv.reduce((e,t)=>({...e,[t]:r=>p.createElement(Zu,{as:t,...r})}),{}),Uk=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(dO`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
147
147
|
This is often caused by not wrapping the child in a template string.
|
|
148
148
|
|
|
149
149
|
This is invalid:
|