@p4code/cli 0.8.15 → 0.8.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +1 -1
- package/dist/{binCli-IAUzRF0Y.mjs → binCli-C2OtBl3_.mjs} +2 -2
- package/dist/client/.vite/manifest.json +2144 -2144
- package/dist/client/assets/AlertDialogRoot-C4_VBb4J.js +2 -0
- package/dist/client/assets/{AnimatedHeight-CzFc8xri.js → AnimatedHeight-CROd_m0y.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-ByOYQAV0.js → AuthSurfaceShell-BFqgU6Cf.js} +2 -2
- package/dist/client/assets/{CSPContext-DcW0os5z.js → CSPContext-BUFNSYww.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-KFBZLDN7.js → ChatGptUsageButton-CAkbdzVa.js} +2 -2
- package/dist/client/assets/{ChatMarkdown-BoxySKsC.js → ChatMarkdown-DRdUETgB.js} +4 -4
- package/dist/client/assets/{CheckboxIndicator-DRAilQdq.js → CheckboxIndicator-DS1cy5Y6.js} +2 -2
- package/dist/client/assets/{CodexSetupSection.logic-d-rT4H0o.js → CodexSetupSection.logic-B-Gs8BS6.js} +2 -2
- package/dist/client/assets/{CollapsiblePanel-DMH4QH0_.js → CollapsiblePanel-DzlAN8vm.js} +2 -2
- package/dist/client/assets/{ComboboxClear-DV4ygCOL.js → ComboboxClear-D3w2fM_m.js} +2 -2
- package/dist/client/assets/{CommandBlock-_boutMAe.js → CommandBlock-BaaPOUD7.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-BTCrYVhm.js → ComposerPromptEditor-jeEkR9fy.js} +4 -4
- package/dist/client/assets/{CompositeRoot-CsrLt1o5.js → CompositeRoot-r9p4LoiQ.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-uWbIqk3l.js → ConnectionStatusDot-C8T3Smus.js} +2 -2
- package/dist/client/assets/{DevicePanel-DwMrOlt0.js → DevicePanel-BG2hk0i3.js} +2 -2
- package/dist/client/assets/{DeviceSetup-CbOHLIaV.js → DeviceSetup-CKZmblju.js} +2 -2
- package/dist/client/assets/{DialogTitle-BgclXafx.js → DialogTitle-Bs5Povma.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-Aq3V-yP1.js → DiffCommentAnnotation-CX8scC3B.js} +2 -2
- package/dist/client/assets/{DiffFileTree-CKQPTUag.js → DiffFileTree-BnizHv7v.js} +2 -2
- package/dist/client/assets/{DiffPanel-BXML30Ty.js → DiffPanel-DxnHaLb1.js} +2 -2
- package/dist/client/assets/{DiffWorkerPoolProvider-CibTihO7.js → DiffWorkerPoolProvider-Bn4H-Zao.js} +2 -2
- package/dist/client/assets/{EmbeddedDesign-722JShay.js → EmbeddedDesign-BiW8ewmO.js} +2 -2
- package/dist/client/assets/{EnvironmentMachineIcon-Czk_PJpp.js → EnvironmentMachineIcon-DKzRVCQ4.js} +2 -2
- package/dist/client/assets/{ExpandableText-Ggw0uVXl.js → ExpandableText-BanCMyot.js} +2 -2
- package/dist/client/assets/{FieldControl-Bw2_eFMa.js → FieldControl-s_wzlnCP.js} +2 -2
- package/dist/client/assets/{FileDiff-Cen-Dayi.js → FileDiff-BTx35t8y.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-BMK5AG_P.js → FilePreviewPanel-Cii41zwQ.js} +2 -2
- package/dist/client/assets/{FoldedSettingsSection-G9y7luve.js → FoldedSettingsSection-BW3s8OMk.js} +2 -2
- package/dist/client/assets/{FormContext-7fCTOXXA.js → FormContext-CUlgAi-q.js} +2 -2
- package/dist/client/assets/{Icons-CSAp87pJ.js → Icons-3I0QXv0W.js} +2 -2
- package/dist/client/assets/Input-D-VEMFtp.js +2 -0
- package/dist/client/assets/{KeybindingsSettings.logic-CsSjvH9c.js → KeybindingsSettings.logic-CSyJIpFu.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-iGEFavkK.js → NoProjectsHero-Cbnk6tn0.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-C4Gm81F_.js → PanelLayoutControls-Cyag4Tur.js} +4 -4
- package/dist/client/assets/{PierreEntryIcon-CnGUKKOC.js → PierreEntryIcon-C5vp6j29.js} +2 -2
- package/dist/client/assets/{PopoverHandle-BkhR-kKK.js → PopoverHandle-CgOyoBVs.js} +2 -2
- package/dist/client/assets/{PreviewPanel-BZNqorNM.js → PreviewPanel-CZ_Qxxvo.js} +2 -2
- package/dist/client/assets/{ProjectDefaultsSettings-DzMIpb2U.js → ProjectDefaultsSettings-BIEY8BOO.js} +2 -2
- package/dist/client/assets/{ProjectFavicon-Dk18tk1C.js → ProjectFavicon-DU8VbXX4.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-DnmG78V1.js → ProjectIconPickerDialog-CK8qpgyz.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-CWdfC9NP.js → ProjectMonogram-BaA9dKQy.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-nDUEuuwR.js → ProviderAuthTerminal-AH-Cy_pb.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-DhOV_BIX.js → ProviderModelPicker-wOdtIBVW.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-Cyw48DUr.js → ProviderSettingsForm-DXzJoQR9.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-BpjwcQvb.js → PullRequestCodeTab-CkE2ul9K.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-DMF3eLls.js → ReadOnlySourcePreview-CBGeBLfB.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-DQC7sq87.js → RenderErrorBoundary-CgWfZhV9.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-CZK46eKO.js → ScheduledTasksSettings-CykPbEbT.js} +2 -2
- package/dist/client/assets/{ScopedSwitch-BECzQob0.js → ScopedSwitch-Bk5kVayQ.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-DXYr9Xbu.js → ScrollAreaCorner-CxSOla7S.js} +2 -2
- package/dist/client/assets/{SecretInput-WUih9JDs.js → SecretInput-6K6o0z_j.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-BIdW5z3c.js → SelectScrollUpArrow-DKwyzFlM.js} +2 -2
- package/dist/client/assets/{SettingsPanels-B3TcgEEZ.js → SettingsPanels-CzHOdmoE.js} +2 -2
- package/dist/client/assets/{SettingsPanels.logic-DpJJdWIn.js → SettingsPanels.logic-B9MzQwrf.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-CcgRSc9E.js → SettingsScopeNotice-ml10Xbs_.js} +2 -2
- package/dist/client/assets/{T3ConnectAccountPages-8GTdhVAB.js → T3ConnectAccountPages-DORAp_V3.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-CY6WtOps.js → T3ConnectSidebarSignIn-D4iDcrjK.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-i2RAKM6Z.js → ThemeEditorPanel-BiB-1tTU.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-D7lW_0Ez.js → ThreadTerminalDrawer-E3tgtH2-.js} +2 -2
- package/dist/client/assets/{TooltipViewport-Daddx30c.js → TooltipViewport-A4hJLsA1.js} +2 -2
- package/dist/client/assets/{Virtualizer-CTxMd1UV.js → Virtualizer-YZrA28xX.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-B3WecLwo.js → WorkspaceBreadcrumb-DRyODQoe.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-rn16R8Ps.js → WorkspacePageContainer-C9d1CC0F.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-B2wsiKGJ.js → WorkspacePageHeader-cjFWAiFR.js} +2 -2
- package/dist/client/assets/{_chat-DCAacYa_.js → _chat-DcFCVkrG.js} +5 -5
- package/dist/client/assets/{_chat.index-CqT22uaz.js → _chat.index-D1edR5Y7.js} +2 -2
- package/dist/client/assets/{_chat.new-CTRPd-7l.js → _chat.new-CNtY6xfX.js} +2 -2
- package/dist/client/assets/{_chat.pull-requests-DZwiHPhH.js → _chat.pull-requests-B9gYbv3C.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-0sYdmV4a.js → abnfDiagram-VCTEODGH-Bg9Y0ptm.js} +2 -2
- package/dist/client/assets/{alert-CvIEaZOb.js → alert-C9G2MwuB.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-B_DOBvMT.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-CyILOixS.js → architectureDiagram-5GKGNRK7-DaFWEoVm.js} +2 -2
- package/dist/client/assets/{assets-CqHuBXjp.js → assets-BngUvpba.js} +2 -2
- package/dist/client/assets/{blockDiagram-I7D4REHJ-x-VvNLUl.js → blockDiagram-I7D4REHJ-BLFoCG7i.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-BpqZwrsk.js → browserHistoryStore-D3jg6lW0.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-EXHYn6yB.js → browserLinkTarget-BTsZgYV0.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-B0k0wHF6.js → c4Diagram-7LVT6UL2-DI-I8wOH.js} +2 -2
- package/dist/client/assets/channel-D77117oc.js +2 -0
- package/dist/client/assets/{checkbox-EHQPSidC.js → checkbox-BMrBwYAj.js} +2 -2
- package/dist/client/assets/{chunk-4HAMMTFA-Uul0p-TJ.js → chunk-4HAMMTFA-DJYGf4Ym.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-SUa_8bmt.js → chunk-75Z2AOVW-BHc4yRCt.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-DZ_qPx6g.js → chunk-DU6HZSFF-CxeiyFio.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-DNArajpV.js → chunk-F27PBJKO-CoBuXptu.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-DCcQWsDo.js → chunk-GMAD6QVW-Djtqr7wA.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-CUeM0ruH.js → chunk-GVQU2GXP-B_dZvf-D.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-Dz48fQ1q.js → chunk-IMKFNOWR-CIZUn2vm.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-Css7u6Lh.js → chunk-L3NEJ4N5-DMIPUTzl.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-CDaAT2I-.js → chunk-OSK3NFVY-8kOFeAYp.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-CrKr6f8Y.js → chunk-P2QGCYS3-CRs2CVdk.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-BqMK6oaX.js → chunk-POPQ4Y6H-BF0zVulS.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-CyuqbEJS.js → chunk-PWAF6VOD-pAkrbks5.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-BrH-w9EI.js → chunk-SHT3W25Y-XA9rgPJk.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-DC8LP4Dl.js → chunk-SVP7TREG-BLPEkz6O.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-D9Rk3v5O.js → chunk-TICWLB2K-BDX6zFln.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-BOfzjSR1.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-BOfzjSR1.js +2 -0
- package/dist/client/assets/{color-picker-Dd1K-QRk.js → color-picker-CHpDpF1q.js} +2 -2
- package/dist/client/assets/{combobox-BqpUmoio.js → combobox-DsEnX06q.js} +2 -2
- package/dist/client/assets/{command-D1peviZr.js → command-7JZ4jreB.js} +2 -2
- package/dist/client/assets/{connect-_R8iiudK.js → connect-CrLJN7lo.js} +2 -2
- package/dist/client/assets/{connect-agent-hovmaVDF.js → connect-agent-iD4mBU_q.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-EgbU-rQt.js → cynefin-OW5HDTMX-BPbkuuD0.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-D1_um-xk.js → cynefinDiagram-5FMLGOSQ-Tg7_4aNX.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-BUeriIID.js → dagre-GXQ25YYZ-BO8vBn--.js} +2 -2
- package/dist/client/assets/{device-DIh4Fmq_.js → device-D7crohVQ.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-Du3htb_X.js → diagram-S7CK7UJ4-Cw7tf93w.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-B02FTV2h.js → diagram-UQ7AKVKN-CWCxivXY.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-C-GXxjgO.js → diagram-VSXAHHWV-obA2VrFx.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-C9x6jBO2.js → diagram-VX7I27RA-BZZX0tDC.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-BOzwpZ6f.js → diagram-Z3DM3KII-BXgCa2au.js} +2 -2
- package/dist/client/assets/{dialog-BfenC7sz.js → dialog-DWCEeJ2c.js} +2 -2
- package/dist/client/assets/{diffRendering-EPxtkQvT.js → diffRendering-BAlsKvkZ.js} +2 -2
- package/dist/client/assets/{discovery-list-NHMaJPrr.js → discovery-list-BaMSF62J.js} +2 -2
- package/dist/client/assets/{dist-BgOJfdC2.js → dist-CtlrzKKg.js} +3 -3
- package/dist/client/assets/{draft-input-rVkOduh_.js → draft-input-DZZB4KBb.js} +2 -2
- package/dist/client/assets/{duoViewer-CbfTiSKj.js → duoViewer-BDT5Pw1R.js} +2 -2
- package/dist/client/assets/{dynamic-7n-O1eEM.js → dynamic-B_1SDXVm.js} +2 -2
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-B-aK7ztf.js → ebnfDiagram-PWID7BFC-C79a3o-h.js} +2 -2
- package/dist/client/assets/{embeddedScripts-D-v7UxHT.js → embeddedScripts-DWtZjYSD.js} +2 -2
- package/dist/client/assets/{empty-xf3NEL4p.js → empty-CdigxFIr.js} +2 -2
- package/dist/client/assets/{entities-CyQRuOur.js → entities-Cri9JXzU.js} +2 -2
- package/dist/client/assets/{environments-CjU9SGCA.js → environments-CXLCfPlP.js} +2 -2
- package/dist/client/assets/{erDiagram-RLTQ6QDP-BUkP1ax_.js → erDiagram-RLTQ6QDP-C_C_xUYl.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-BBNrMOto.js +1 -0
- package/dist/client/assets/{fileLinks-sFAkJkUp.js → fileLinks-gi8wmjAc.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-BoG00fm4.js → fileTreeExpansion-By588Tlp.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-DE4e8-KT.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-C9-_e4R8.js → ganttDiagram-EL5Y4UJY-vDMTogcH.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-Eacwf1x6.js → getDiffFileInput-B20LTLvK.js} +2 -2
- package/dist/client/assets/{gitGraph-4MIJSDKK-DpJxnpww.js → gitGraph-4MIJSDKK-CP2HybJj.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-D1kbQfjj.js → gitGraphDiagram-WWUBYQGX-okkWrJG2.js} +2 -2
- package/dist/client/assets/{guideRunStore-pssxpidL.js → guideRunStore-BuNfL9zT.js} +2 -2
- package/dist/client/assets/{htmlRender-CDbYs9Mi.js → htmlRender-B0nsPoF5.js} +2 -2
- package/dist/client/assets/{index-BcfzEf8A.js → index-C4eY-csp.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-NwzA9LEB.js → info-A6RAGUB7-RHhd5N_M.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW--zzuhsyp.js → infoDiagram-27XIBGKW-YzE38gXg.js} +2 -2
- package/dist/client/assets/{input-CF-egQtG.js → input-RCV7-UKX.js} +2 -2
- package/dist/client/assets/{input-group-CifPZlNg.js → input-group-Bcuxz_AQ.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-BtNAzuJP.js → ishikawaDiagram-5VMMS53U-Sz6NR02e.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-CkOdxsrK.js → journeyDiagram-3NMN7TZE-BQjnHIg3.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-L-Zve5xm.js → kanban-definition-UXKFOSKX-DZUIDXIB.js} +2 -2
- package/dist/client/assets/{kbd-DN9MXWor.js → kbd-CIJ2_Q5W.js} +2 -2
- package/dist/client/assets/{keybindings-BlEA4Dlt.js → keybindings-BpKkzV__.js} +2 -2
- package/dist/client/assets/{lazyRouteComponent-b9hpLjZB.js → lazyRouteComponent-BRNgDsba.js} +2 -2
- package/dist/client/assets/{line-CUIFqVat.js → line-D2YW2WaY.js} +2 -2
- package/dist/client/assets/{link-BIudTto8.js → link-D4TtDnqi.js} +2 -2
- package/dist/client/assets/{linkedPrompt-DQkjE7kc.js → linkedPrompt-1QsAG0gO.js} +2 -2
- package/dist/client/assets/{main-CoSpTpWL.css → main-ChIB1-3M.css} +1 -1
- package/dist/client/assets/{main-C58_iQqs.js → main-Co3JeKTg.js} +7 -7
- package/dist/client/assets/{mediaReference-D5Qxnp2d.js → mediaReference-BUHO9ICD.js} +2 -2
- package/dist/client/assets/{mediaSource-DRXKCFCg.js → mediaSource-CHFugA8_.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-Dy9NqIcU.js → mermaid-parser.core-Ch6yrkIv.js} +4 -4
- package/dist/client/assets/{mermaid.core-C1Tbkxei.js → mermaid.core-CDUpMNay.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-CNHVmlJ4.js → mindmap-definition-YA3MSWOX-J5u85Ham.js} +2 -2
- package/dist/client/assets/{number-field-CydqGM9B.js → number-field-Osl5PZkX.js} +2 -2
- package/dist/client/assets/{observeResize-BxVCxCXG.js → observeResize-BeeOdDdQ.js} +2 -2
- package/dist/client/assets/{onboarding-DQxSrthd.js → onboarding-BF9yT3Xi.js} +2 -2
- package/dist/client/assets/{openFileInPreview-tPdJXpV4.js → openFileInPreview-C15eoyYZ.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-Dqppy-Sd.js → p4ProjectFile-CAKJOMUN.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-D66WQAPv.js → packet-AYTQ26CC-Cs25hnS9.js} +1 -1
- package/dist/client/assets/{pair-BgezPXaC.js → pair-BA6LcmsK.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-D4RZHNwH.js → pegDiagram-XKGWAZYB-BMn57iOd.js} +2 -2
- package/dist/client/assets/{phoneViewer-DKIr7vIR.js → phoneViewer-C-9G9sMe.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-ChXk3493.js → pie-WAS4IAKB-DSKy_d1u.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-BYlPIaAz.js → pieDiagram-E7YTZNPT-DJxOVDr9.js} +2 -2
- package/dist/client/assets/{pierre-icons-ByQ4P7uM.js → pierre-icons-Cp8tJJSF.js} +2 -2
- package/dist/client/assets/{popover-BunL7s_L.js → popover-B70_-gBS.js} +2 -2
- package/dist/client/assets/{preview-DDUAtKQn.js → preview-BHYM-_BL.js} +2 -2
- package/dist/client/assets/{preview-B_wcdd8X.js → preview-Dj_ac_jZ.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-gZV-IkW-.js → previewMiniPlayerStore-DX9IKNL3.js} +2 -2
- package/dist/client/assets/{primary-BI3yNRjI.js → primary-DHlSwiw_.js} +2 -2
- package/dist/client/assets/{primaryCloudLinkState-Dn_lMN_C.js → primaryCloudLinkState-LOtU3kc-.js} +2 -2
- package/dist/client/assets/{projectFilesQueryState-DfToGDLi.js → projectFilesQueryState-DPo8i5yD.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-De4HeOtY.js → projectScriptEditor-By8EdSYw.js} +2 -2
- package/dist/client/assets/{providerSkills-DrIXn_7R.js → providerSkills-mKD6o1i5.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-CGUKFcHo.js → pullRequestDetail.logic-B2AL8Xka.js} +2 -2
- package/dist/client/assets/{pullRequestIcons-BZCS4C5B.js → pullRequestIcons-B2-CZ5Ci.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-BqvYYzmT.js → pullRequestReviewStore-CxOHaJ2U.js} +2 -2
- package/dist/client/assets/{pullRequests-tIwkUcK2.js → pullRequests-DDmSd4bP.js} +2 -2
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-kMIaUDbV.js → quadrantDiagram-AXDQQJYC-DE0d6o0C.js} +2 -2
- package/dist/client/assets/{queries-DMjiMwzO.js → queries-DqFudp6N.js} +2 -2
- package/dist/client/assets/{query-CRswjQ7f.js → query-1tRB9OB0.js} +2 -2
- package/dist/client/assets/{radar-RG4KPBEZ-_vEYfKqV.js → radar-RG4KPBEZ-DveMwSB8.js} +1 -1
- package/dist/client/assets/{radio-group-DzD2uI5x.js → radio-group-BDPDnH4m.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-BiD9GwPs.js → railroad-74A4TZTK-7mru9krG.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Ch23A2t1.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-D0diYlkX.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-CnUWPGXT.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-VThEbY2-.js → railroadDiagram-O6MQD6OU-bAzEpkUJ.js} +2 -2
- package/dist/client/assets/{renderScheduler-ZbiToRGe.js → renderScheduler-DM1wgh78.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-CYlc8xoq.js → requirementDiagram-BXWQKSXE-ClHxFUNg.js} +2 -2
- package/dist/client/assets/{rightPanelStore-CcmIdfDA.js → rightPanelStore-DNohe5X6.js} +2 -2
- package/dist/client/assets/{runtime-BjJBBHTp.js → runtime-B75ae48c.js} +2 -2
- package/dist/client/assets/{runtime-D102A-Bu.js → runtime-B7jXrsPs.js} +3 -3
- package/dist/client/assets/{runtimeModeConfig-CGosfJJ5.js → runtimeModeConfig-D044rsFH.js} +2 -2
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-CHYSv9pX.js → sankeyDiagram-P5KCCOFB-BwX1Wn_u.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-DhrwaClP.js → scheduledTasksSettings.logic-Bw_obRa9.js} +2 -2
- package/dist/client/assets/{scroll-area-OkcD8f0Y.js → scroll-area-Ckz2bO0L.js} +2 -2
- package/dist/client/assets/{select-BUFUt6O3.js → select-DWT2vKJH.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-D1y7ChUn.js → sequenceDiagram-WJ2MYXX4-BSpw0E5m.js} +2 -2
- package/dist/client/assets/{server-DTGT8WWf.js → server-B0y-CZn0.js} +2 -2
- package/dist/client/assets/{session-Dh8maTO3.js → session-eKfJi_Kx.js} +2 -2
- package/dist/client/assets/{session-logic-CJeISKsG.js → session-logic-BAndUZwA.js} +2 -2
- package/dist/client/assets/{settings-CrZbdtKO.js → settings-D_eUqlLu.js} +2 -2
- package/dist/client/assets/{settings.appearance-BNB57wVJ.js → settings.appearance-kTWXGfao.js} +2 -2
- package/dist/client/assets/settings.archived-By7wX_fc.js +2 -0
- package/dist/client/assets/{settings.computer-use-CNLnfXe7.js → settings.computer-use-BuDMoYe7.js} +2 -2
- package/dist/client/assets/{settings.connections-CKn7dmOC.js → settings.connections-DwruajVk.js} +2 -2
- package/dist/client/assets/{settings.data-controls-B8uFJ36x.js → settings.data-controls-Ew7ogbgL.js} +2 -2
- package/dist/client/assets/{settings.decisions-Cy46-IzS.js → settings.decisions-rppoMBkE.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-BeATxGLt.js → settings.diagnostics-BcNTndhm.js} +2 -2
- package/dist/client/assets/{settings.general-BAL2BKm_.js → settings.general-D1vnEzQa.js} +2 -2
- package/dist/client/assets/{settings.integrations-Bg8Ve2zj.js → settings.integrations-DKEJMS6o.js} +2 -2
- package/dist/client/assets/{settings.keybindings-B3Yph4YE.js → settings.keybindings-BstDnaeV.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-Dx_Hoxhs.js → settings.open-source-licenses-s96NzjdF.js} +2 -2
- package/dist/client/assets/{settings.plugins-TfmhiHSr.js → settings.plugins--hNL0lcF.js} +2 -2
- package/dist/client/assets/{settings.projects-DyqRcoD5.js → settings.projects-BQBJ0eQ0.js} +3 -3
- package/dist/client/assets/settings.providers-C-R4_ra0.js +3 -0
- package/dist/client/assets/{settings.scheduled-tasks-gzepleP4.js → settings.scheduled-tasks-WuxBbfP4.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-DPIz29B9.js → settings.snap-shot-D-GpjQxg.js} +2 -2
- package/dist/client/assets/{settings.source-control-BMPVT8GA.js → settings.source-control-D_Ipwyto.js} +2 -2
- package/dist/client/assets/{settings.storage-Cd4Vn9s1.js → settings.storage-DHtjVWHK.js} +2 -2
- package/dist/client/assets/{settingsLayout-BRcW18Dy.js → settingsLayout-B_Bq9Cq9.js} +2 -2
- package/dist/client/assets/{sidebar-CNP67lTi.js → sidebar-m0COIl9s.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-BRC9yCnW.js → sidebarProjectGrouping-BpwyF0h8.js} +2 -2
- package/dist/client/assets/{skeleton-DDh76jpd.js → skeleton-DxoA_uLH.js} +2 -2
- package/dist/client/assets/{sortable.esm-KZlxUbRj.js → sortable.esm-DAcHa5SQ.js} +2 -2
- package/dist/client/assets/{sourceControl-DXwrIEUZ.js → sourceControl-C-R8wmTp.js} +2 -2
- package/dist/client/assets/{spinner-DYnZ-Bpa.js → spinner-B1oJASgu.js} +2 -2
- package/dist/client/assets/{standalone-page-DUgQaNPq.js → standalone-page-OuNLgPqS.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-DhHX_ym0.js → stateDiagram-D77RDMKH-DjLNu-aO.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-Cx2Qu8wY.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-gr_Fo6MW.js → swimlanes-42K2YHIH-BAlKsUJH.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-euVkUgFA.js +9 -0
- package/dist/client/assets/{terminal-links-CV_3r1U3.js → terminal-links-B7jzSUaR.js} +2 -2
- package/dist/client/assets/{terminalSessions-aS2PVMmc.js → terminalSessions-CHAAF5wF.js} +2 -2
- package/dist/client/assets/{textarea-Dt0w6mtc.js → textarea-B86ZyXzK.js} +2 -2
- package/dist/client/assets/{themePalette-9CODTNe7.js → themePalette-BAR7Sc97.js} +2 -2
- package/dist/client/assets/{threadSort-BGtAZpdL.js → threadSort-Dnq059Z5.js} +2 -2
- package/dist/client/assets/{timeline-definition-24CTP7MA-DOSB4Ras.js → timeline-definition-24CTP7MA-YXaIoqb6.js} +2 -2
- package/dist/client/assets/{toast-SPJYfh08.js → toast-e2DHftFl.js} +2 -2
- package/dist/client/assets/{toggle-C3pF5hng.js → toggle-D4IMx5jG.js} +2 -2
- package/dist/client/assets/{toggle-group-C4V_4iet.js → toggle-group-BWnqiNcg.js} +2 -2
- package/dist/client/assets/{tooltip-Cco13jKX.js → tooltip-DRGG_vM1.js} +2 -2
- package/dist/client/assets/{treeView-Q6P3EWNA-DTI4SxFY.js → treeView-Q6P3EWNA-BKHL242s.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-CVnkW1D0.js → treemap-WGGIJYW6-DKZHfhNz.js} +1 -1
- package/dist/client/assets/{usage-539lpsjW.js → usage-DZw1xQLa.js} +2 -2
- package/dist/client/assets/{usageAccess-CeCsk7TS.js → usageAccess-DLbz2bdv.js} +2 -2
- package/dist/client/assets/{usageFormat-CQXspPhL.js → usageFormat-CzWB9UsH.js} +2 -2
- package/dist/client/assets/{usageShortcuts-DaMuOxo1.js → usageShortcuts-DAEm4s6Q.js} +2 -2
- package/dist/client/assets/{use-atom-command-BHmF32aL.js → use-atom-command-BEpD82FZ.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-BinWYOc0.js → useAriaLabelledBy-D6y1qpkp.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-Tv2D0mTw.js → useHandleNewThread-6AAzzJsA.js} +2 -2
- package/dist/client/assets/{useLocation-BQwksr61.js → useLocation-X2uUveT9.js} +2 -2
- package/dist/client/assets/useNavigate-B7cVsvjL.js +2 -0
- package/dist/client/assets/{useNavigateBack-D2S1CDHR.js → useNavigateBack-DoGrCk85.js} +2 -2
- package/dist/client/assets/{useParams-D_8gJiai.js → useParams-Bschqkhl.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-Bl_cAihc.js → usePermissionStatus-DFa5P3Vr.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-DscMhi-m.js → usePullRequestActions-FCnq9KIj.js} +2 -2
- package/dist/client/assets/{useRegisterFieldControl-Bp078Il-.js → useRegisterFieldControl-BgyE4_OV.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-BP4GoHk-.js → useScopedModelAvailability-B8VSCR9i.js} +2 -2
- package/dist/client/assets/{useSettings-DUgjfqYw.js → useSettings-CUN8qNLl.js} +2 -2
- package/dist/client/assets/{useT3ConnectAuthPrompt-D0cW1Kb6.js → useT3ConnectAuthPrompt-BgqISbBe.js} +2 -2
- package/dist/client/assets/{utils-Dx_TSvdC.js → utils-BgVDKR83.js} +2 -2
- package/dist/client/assets/{vcsRefInvalidation-CRBfa6Wz.js → vcsRefInvalidation-BWvsbPLB.js} +2 -2
- package/dist/client/assets/{vennDiagram-4TSXK5OY-BVgFdMgp.js → vennDiagram-4TSXK5OY-BN0NlVtY.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-Dmh19KFW.js → wardley-WFR3VGLG-DWpJUQkf.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-CLjnvp-z.js → wardleyDiagram-VM6X3IG4-C_2_0OtT.js} +2 -2
- package/dist/client/assets/{welcome-BcEvYhrg.js → welcome-CT583VDG.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-CmyAZ93b.js → xychartDiagram-S5SC5T6Z-gSixBfkr.js} +2 -2
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-DYtW2IF3.js +0 -2
- package/dist/client/assets/Input-Cr3X6dPy.js +0 -2
- package/dist/client/assets/architecture-7GRP2DOG-Cre3v_DI.js +0 -1
- package/dist/client/assets/channel-DQC0VAAf.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-BnsjDrR7.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-BnsjDrR7.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-an9DCCTW.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-pchK5tHw.js +0 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Dx3SBIg8.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-DqrIX1EX.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-zKUem5fh.js +0 -1
- package/dist/client/assets/settings.archived-C3Vs8tIa.js +0 -2
- package/dist/client/assets/settings.providers-CqMvOZmv.js +0 -3
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-Dy0yVJgc.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-CPHF5kgn.js +0 -9
- package/dist/client/assets/useNavigate-LjcLtV_e.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e,n as t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{$i as r,Ap as i,Bi as a,By as o,Cd as s,Cm as c,Co as l,Cy as u,D as d,Ea as f,Em as p,Eo as m,Fa as h,Ia as g,Ii as _,Iy as v,Ks as y,Md as b,Mf as x,NE as S,Na as C,Or as w,Qi as T,Ra as E,Sa as D,So as ee,Td as te,Ti as O,To as k,Tr as A,Um as j,Uu as M,_o as N,ai as ne,bt as re,ca as P,ga as ie,ia as F,ib as I,jr as ae,ku as oe,lE as se,la as L,lr as ce,ma as R,oa as z,pa as le,ra as ue,sa as de,sl as fe,sr as B,t as V,ta as H,va as pe,vi as me,vo as U,za as he,zi as ge}from"./utils-Dx_TSvdC.js";import{jn as _e}from"./runtime-D102A-Bu.js";import{l as ve}from"./TooltipViewport-Daddx30c.js";import{t as ye}from"./spinner-DYnZ-Bpa.js";import{t as be}from"./useParams-D_8gJiai.js";import{c as xe,f as W,l as Se,u as Ce,y as we}from"./tooltip-Cco13jKX.js";var Te=I(fe);function Ee(e){return Te(e)&&e.bootstrapThreadDisposition===`deleted`}function De(e){return Te(e)&&e.bootstrapThreadDisposition===`not-created`}var Oe=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the T3 server WebSocket\./i,RegExp(`\\b(?:is not connected|disconnected|stopped responding|could not establish a WebSocket connection)\\.(?: ${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))(_e)})?$`,`i`),/\bClientProtocolError\b/i,/\bRpcClientError\b/i,/\bping timeout\b/i];function ke(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length!==0&&Oe.some(e=>e.test(t))}function Ae(e){return ke(e)?null:e??null}var G=e(n()),je=G.createContext(void 0);function Me(){let e=G.useContext(je);if(!e)throw Error(m(73));return e}var Ne=0;function Pe(e){return Ne+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Ne}`}function Fe(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Ie(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var Le=e=>e.toastMetadata,K={toasts:O(e=>e.toasts),isEmpty:O(e=>e.toasts.length===0),toast:O(Le,(e,t)=>e.get(t)?.value),toastIndex:O(Le,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:O(Le,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:O(Le,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:O(e=>e.hovering),focused:O(e=>e.focused),expanded:O(e=>e.hovering||e.focused),expandedOrOutOfFocus:O(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:O(e=>e.prevFocusElement)},Re=class extends me{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Ie(e.toasts)},{},K)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=K.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Pe(`toast`);if(e.id){let t=K.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=K.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=K.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:Ie(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Fe(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Fe(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Fe(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=le.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=L(e);P(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!K.expandedOrOutOfFocus(this.state),a=i?le.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:Ie(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=de(H(this.state.viewport));if(!this.state.viewport||!P(this.state.viewport,t)||!z(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=K.toasts(this.state),r=K.toastIndex(this.state,e),i=null,a=r+1;for(;a<n.length;){if(n[a].transitionStatus!==`ending`){i=n[a];break}a+=1}if(!i)for(a=r-1;a>=0;){if(n[a].transitionStatus!==`ending`){i=n[a];break}--a}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}},q=e(se()),ze=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=k(()=>new Re({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return D(a.disposeEffect),G.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),a.useSyncedValues({timeout:n,limit:r}),(0,q.jsx)(je.Provider,{value:a,children:t})},Be=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),Ve=G.forwardRef(function(e,t){let{render:n,className:i,style:a,children:o,...s}=e,c=Me(),l=R(),u=G.useRef(!1),d=G.useRef(!1),f=G.useRef(!1),p=c.useState(`isEmpty`),m=c.useState(`toasts`),h=c.useState(`focused`),g=c.useState(`expanded`),_=c.useState(`prevFocusElement`),v=m[0]?.height??0,y=G.useMemo(()=>m.some(e=>e.transitionStatus===`ending`),[m]),b=G.useMemo(()=>m.filter(e=>e.priority===`high`),[m]);G.useEffect(()=>{let e=c.state.viewport;if(!e)return;function t(t){p||t.key===`F6`&&L(t)!==e&&(t.preventDefault(),c.setPrevFocusElement(de(H(e))),e?.focus({preventScroll:!0}),c.pauseTimers(),c.setFocused(!0))}let n=E(e);return F(n,`keydown`,t)},[c,p]),G.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=E(e);function n(e){L(e)===t&&(c.setIsWindowFocused(!1),c.pauseTimers())}function r(n){if(n.relatedTarget)return;let r=L(n),i=de(H(e));(r===t||!P(e,r)||!z(i))&&c.resumeTimers(),l.start(0,()=>c.setIsWindowFocused(!0))}return ue(F(t,`blur`,n,!0),F(t,`focus`,r,!0))},[c,l,p]),G.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=H(e);return F(t,`pointerdown`,c.handleDocumentPointerDown,!0)},[p,c]);function x(e){let t=c.state.viewport;t&&(u.current=!0,e.relatedTarget===t?m[0]?.ref?.current?.focus():c.restoreFocusToPrevElement())}function S(e){e.key===`Tab`&&e.shiftKey&&L(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement(),c.resumeTimers())}function C(){let e=c.state.toasts.some(e=>e.transitionStatus===`ending`);c.state.isWindowFocused&&!e&&!f.current&&d.current&&(c.resumeTimers(),c.setHovering(!1),d.current=!1)}G.useEffect(C,[y,c]);function w(){c.pauseTimers(),c.setHovering(!0),d.current=!1}function D(){y||f.current?d.current=!0:(c.resumeTimers(),c.setHovering(!1))}function ee(e){e.pointerType===`touch`&&(f.current=!0)}function te(e){e.pointerType===`touch`&&(f.current=!1,C())}function O(){if(u.current){u.current=!1;return}h||z(de(H(c.state.viewport)))&&(c.setFocused(!0),c.pauseTimers())}function k(e){h&&!P(c.state.viewport,e.relatedTarget)&&(c.setFocused(!1),c.resumeTimers())}let A={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:w,onMouseMove:w,onMouseLeave:D,onFocus:O,onBlur:k,onKeyDown:S,onClick:O,onPointerDown:ee,onPointerUp:te,onPointerCancel:te},j={expanded:g},M=U(`div`,e,{ref:[t,c.setViewport],state:j,props:[A,{style:{[Be.frontmostHeight]:v?`${v}px`:void 0}},s,{children:(0,q.jsxs)(G.Fragment,{children:[!p&&_&&(0,q.jsx)(T,{onFocus:x}),o,!p&&_&&(0,q.jsx)(T,{onFocus:x})]})}]});return(0,q.jsxs)(G.Fragment,{children:[!p&&_&&(0,q.jsx)(T,{onFocus:x}),M,!h&&b.length>0&&(0,q.jsx)(`div`,{style:r,children:b.map(e=>(0,q.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,q.jsx)(`div`,{children:e.title}),(0,q.jsx)(`div`,{children:e.description})]},e.id))})]})}),He=e(pe()),Ue=G.createContext(void 0);function J(){let e=G.useContext(Ue);if(!e)throw Error(m(66));return e}var Y=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({});function We(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function Ge(e){let t=E(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}var Ke={...N,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},qe=40,Je=10,X=.5,Ye=1,Xe=`${_},${ge}`,Ze=G.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=Me(),[f,p]=G.useState(void 0),[m,_]=G.useState(!1),[v,y]=G.useState(!1),[b,x]=G.useState(!1),[S,C]=G.useState({x:0,y:0}),[w,T]=G.useState({x:0,y:0,scale:1}),[E,D]=G.useState(),[ee,te]=G.useState(),[O,k]=G.useState(null),A=G.useRef(null),j=G.useRef({x:0,y:0}),M=G.useRef({x:0,y:0,scale:1}),N=G.useRef(void 0),ne=G.useRef(0),re=G.useRef(!1),I=G.useRef({x:0,y:0}),oe=G.useRef(!1),se=G.useRef({x:0,y:0}),ce=G.useRef(null),R=G.useRef(null),z=d.useState(`toastIndex`,n.id),le=d.useState(`toastVisibleIndex`,n.id),ue=d.useState(`toastOffsetY`,n.id),fe=d.useState(`focused`),B=d.useState(`expanded`);ie({open:n.transitionStatus!==`ending`,ref:A,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let V=g((e=!1)=>{let t=A.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:A,height:i,...n.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?He.flushSync(a):a()});h(V,[V]);function pe(e){se.current=e,C(e)}h(()=>()=>{R.current?.abort()},[]);function me(e,t){let n=e,r=t;return!l.includes(`left`)&&!l.includes(`right`)?n=e>0?e**X:-(Math.abs(e)**X):(!l.includes(`right`)&&e>0&&(n=e**X),!l.includes(`left`)&&e<0&&(n=-(Math.abs(e)**X))),!l.includes(`up`)&&!l.includes(`down`)?r=t>0?t**X:-(Math.abs(t)**X):(!l.includes(`down`)&&t>0&&(r=t**X),!l.includes(`up`)&&t<0&&(r=-(Math.abs(t)**X))),{x:n,y:r}}let he=g(e=>{if(e.pointerId!==ce.current)return;ce.current=null,R.current?.abort(),R.current=null,_(!1),y(!1),k(null);let t=M.current;if(e.type===`pointercancel`||re.current){pe({x:t.x,y:t.y}),p(void 0);return}let r=!1,i=se.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of l){switch(e){case`right`:a>qe&&(r=!0,s=`right`);break;case`left`:a<-40&&(r=!0,s=`left`);break;case`down`:o>qe&&(r=!0,s=`down`);break;case`up`:o<-40&&(r=!0,s=`up`)}if(r)break}r?(p(s),x(!0),d.closeToast(n.id)):(pe({x:t.x,y:t.y}),p(void 0))});function ge(e){if(e.button!==0)return;e.pointerType===`touch`&&d.pauseTimers();let t=L(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${Xe}`))return;if(re.current=!1,N.current=void 0,ne.current=0,ce.current=e.pointerId,j.current={x:e.clientX,y:e.clientY},I.current=j.current,A.current){let e=Ge(A.current);M.current=e,T(e),pe({x:e.x,y:e.y})}d.setHovering(!0),_(!0),y(!1),k(null),oe.current=!0;let n=A.current;if(n){R.current?.abort();let t=new AbortController;R.current=t;let r=H(n);r.addEventListener(`pointerup`,he,{signal:t.signal}),r.addEventListener(`pointercancel`,he,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function _e(e){if(e.pointerId!==ce.current)return;e.preventDefault(),oe.current&&=(j.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>I.current.y||i>0&&t<I.current.y)&&(I.current={x:I.current.x,y:t}),(r<0&&n>I.current.x||r>0&&n<I.current.x)&&(I.current={x:n,y:I.current.y});let a=n-j.current.x,o=t-j.current.y,s=t-I.current.y,c=n-I.current.x;if(!v&&Math.sqrt(a*a+o*o)>=Ye&&(y(!0),O===null)){let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&k(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let u;if(!N.current)O===`vertical`?o>0?u=`down`:o<0&&(u=`up`):O===`horizontal`?a>0?u=`right`:a<0&&(u=`left`):u=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,u&&l.includes(u)&&(N.current=u,ne.current=We(u,a,o),p(u));else{let e=N.current,t=We(e,c,s);t>qe?(re.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&ne.current-t>=Je&&(re.current=!0)}let d=me(a,o),f=M.current.x,m=M.current.y;O===`horizontal`?(l.includes(`left`)||l.includes(`right`))&&(f+=d.x):(O===`vertical`||(l.includes(`left`)||l.includes(`right`))&&(f+=d.x),(l.includes(`up`)||l.includes(`down`))&&(m+=d.y)),pe({x:f,y:m})}function ve(e){if(e.key===`Escape`){if(!A.current||!P(A.current,de(H(A.current))))return;d.closeToast(n.id)}}G.useEffect(()=>{if(!u)return;let e=A.current;if(!e)return;function t(t){P(e,L(t))&&t.preventDefault()}return F(e,`touchmove`,t,{passive:!1})},[u]);function ye(){if(!m&&S.x===w.x&&S.y===w.y&&!b)return{[Y.swipeMovementX]:`0px`,[Y.swipeMovementY]:`0px`};let e=S.x-w.x,t=S.y-w.y;return{transition:m?`none`:void 0,transform:m?`translateX(${S.x}px) translateY(${S.y}px) scale(${w.scale})`:void 0,[Y.swipeMovementX]:`${e}px`,[Y.swipeMovementY]:`${t}px`}}let be=n.priority===`high`,xe={role:be?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":E,"aria-describedby":ee,"aria-hidden":be&&!fe?!0:void 0,onPointerDown:u?ge:void 0,onPointerMove:u?_e:void 0,onPointerUp:u?he:void 0,onPointerCancel:u?he:void 0,onKeyDown:ve,inert:ae(n.limited),style:{...ye(),[Y.index]:n.transitionStatus===`ending`?z:le,[Y.offsetY]:`${ue}px`,[Y.height]:n.height?`${n.height}px`:void 0}},W=G.useMemo(()=>({rootRef:A,toast:n,titleId:E,setTitleId:D,descriptionId:ee,setDescriptionId:te,swiping:m,swipeDirection:f,recalculateHeight:V,index:z,visibleIndex:le,expanded:B}),[n,E,ee,m,f,V,z,le,B]),Se={transitionStatus:n.transitionStatus,expanded:B,limited:n.limited||!1,type:n.type,swiping:W.swiping,swipeDirection:W.swipeDirection},Ce=U(`div`,e,{ref:[t,W.rootRef],state:Se,stateAttributesMapping:Ke,props:[xe,s]});return(0,q.jsx)(Ue.Provider,{value:W,children:Ce})}),Qe=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=J(),l=G.useRef(null);return h(()=>{let e=l.current;if(!e||(c(),typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`))return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),U(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})}),$e=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setDescriptionId:l}=J(),u=o??c.description,d=!!u,p=f(a);h(()=>{if(d)return l(p),()=>{l(void 0)}},[d,p,l]);let m={type:c.type},g=U(`p`,e,{ref:t,state:m,props:{...s,id:p,children:u}});return d?g:null}),et=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setTitleId:l}=J(),u=o??c.title,d=!!u,p=f(a);h(()=>{if(d)return l(p),()=>{l(void 0)}},[d,p,l]);let m={type:c.type},g=U(`h2`,e,{ref:t,state:m,props:{...s,id:p,children:u}});return d?g:null}),tt=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=Me(),{toast:l}=J(),u=c.useState(`expanded`),[d,f]=G.useState(!1),{getButtonProps:p,buttonRef:m}=C({disabled:a,native:o}),h={type:l.type};return U(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),nt=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=J(),l=c.actionProps?.children??s.children,u=!!l,{getButtonProps:d,buttonRef:f}=C({disabled:a,native:o}),p={type:c.type},m=U(`button`,e,{ref:[t,f],state:p,props:[s,c.actionProps,d,{children:l}]});return u?m:null}),rt=ve,it=G.createContext(void 0);function at(){let e=G.useContext(it);if(e===void 0)throw Error(m(84));return e}var ot=G.forwardRef(function(e,t){let{toast:n,...r}=e,i=Me(),o=n.positionerProps??ee,{render:s,className:c,anchor:u=o.anchor,positionMethod:d=o.positionMethod??`absolute`,side:f=o.side??`top`,align:p=o.align??`center`,sideOffset:m=o.sideOffset??0,alignOffset:h=o.alignOffset??0,collisionBoundary:g=o.collisionBoundary??`clipping-ancestors`,collisionPadding:_=o.collisionPadding??5,arrowPadding:v=o.arrowPadding??5,sticky:y=o.sticky??!1,disableAnchorTracking:b=o.disableAnchorTracking??!1,collisionAvoidance:x=o.collisionAvoidance??a,style:S,...C}=r,[T,E]=G.useState(null),D=i.useState(`toastIndex`,n.id),te=i.useState(`toastVisibleIndex`,n.id),O=he(u)?u:null,k=ne({open:!0,onOpenChange:l,elements:{floating:T,reference:O}}),j=w({anchor:O,positionMethod:d,floatingRootContext:k,mounted:!0,side:f,sideOffset:m,align:p,alignOffset:h,collisionBoundary:g,collisionPadding:_,sticky:y,arrowPadding:v,disableAnchorTracking:b,keepMounted:!0,collisionAvoidance:x}),M=G.useMemo(()=>({side:j.side,align:j.align,anchorHidden:j.anchorHidden}),[j.side,j.align,j.anchorHidden]),N=A(e,M,{styles:{...j.positionerStyles,[Y.index]:n.transitionStatus===`ending`?D:te},transitionStatus:n.transitionStatus,props:C,refs:[t,E]});return(0,q.jsx)(it.Provider,{value:j,children:N})}),st=G.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=at();return U(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function ct(){let e=G.useContext(je);if(!e)throw Error(m(73));let t=e.useState(`toasts`);return G.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function lt(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||Pe(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var ut=t({Action:()=>nt,Arrow:()=>st,Close:()=>tt,Content:()=>Qe,Description:()=>$e,Portal:()=>rt,Positioner:()=>ot,Provider:()=>ze,Root:()=>Ze,Title:()=>et,Viewport:()=>Ve,createToastManager:()=>lt,useToastManager:()=>ct});function dt(){let e=[],t=0,n=new Set,r=new Map,i=new Map,a=new Map,o=new Map,s=new Set,c=()=>n.forEach(e=>e()),l=e=>{clearTimeout(r.get(e)),r.delete(e);let t=a.get(e);t!==void 0&&(i.set(e,Math.max(0,(i.get(e)??0)-(Date.now()-t))),a.delete(e))},u=t=>{let n=e.find(e=>e.id===t);n&&(l(t),i.delete(t),o.delete(t),e=e.filter(e=>e.id!==t),c(),n.onDismiss?.())},d=e=>{s.size||o.get(e)?.size||r.has(e)||!i.has(e)||(a.set(e,Date.now()),r.set(e,setTimeout(()=>u(e),i.get(e))))},f=n=>{let r=n.id??`notification-${++t}`;l(r);let a={...n,id:r};e=[...e.filter(e=>e.id!==r),a];let o=n.durationMs??8e3;return o>0?i.set(r,o):i.delete(r),d(r),c(),r},p=(e,t)=>{let n=o.get(e)??new Set;n.add(t),o.set(e,n),l(e)},m=(e,t)=>{o.get(e)?.delete(t),d(e)};return{show:f,dismiss:u,pause:p,resume:m,getSnapshot:()=>e,subscribe:e=>(n.add(e),()=>{n.delete(e)}),setPaused:(t,n)=>{n?s.add(t):s.delete(t);for(let t of e)s.size?l(t.id):d(t.id)},performAction:async(t,n)=>{let r=e.find(e=>e.id===t),i=r?.actions?.find(e=>e.id===n);if(!r||!i||r.pendingActionId)return;let a={...r,pendingActionId:n};p(t,`action`),e=e.map(e=>e===r?a:e),c();try{await i.run(),e.includes(a)&&u(t)}catch(t){e.includes(a)&&f({...r,title:i.failureTitle??`Could not complete action`,description:t instanceof Error?t.message:`Please try again.`,tone:`error`})}finally{m(t,`action`)}}}}var Z=dt(),Q=S(),ft={archive:M,clock:b,pin:i,trash:c};function pt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,G.useEffect)(mt,t),null}function mt(){let e=!0,t=new Set,n=()=>{let n=Z.getSnapshot();for(let e of t)n.some(t=>t.id===e)||(t.delete(e),$.close(`shared:${e}`));for(let r of n){let n=r.icon&&r.tone!==`error`?ft[r.icon]:null,i=r.actions??[],a=i.find(gt),o=e=>({children:e.label,disabled:!!r.pendingActionId,onClick:()=>{Z.performAction(r.id,e.id)}}),s={title:r.title,description:r.description??null,type:r.tone??`info`,timeout:0,onClose:()=>{e&&Z.getSnapshot().includes(r)&&Z.dismiss(r.id)},actionProps:{children:null},data:{sharedToastId:r.id,leadingIcon:n?(0,q.jsx)(n,{className:`size-4`}):void 0,additionalActions:i.filter(e=>e!==a).map(e=>({id:e.id,props:o(e)})),...a?{secondaryActionProps:o(a)}:{},secondaryActionVariant:`soft`,hideCopyButton:!0}};t.has(r.id)?$.update(`shared:${r.id}`,s):(t.add(r.id),$.add({...s,id:`shared:${r.id}`}))}},r=Z.subscribe(n),i=ht;return document.addEventListener(`visibilitychange`,i),i(),n(),()=>{e=!1,r(),document.removeEventListener(`visibilitychange`,i),Z.setPaused(`web-hidden`,!1);for(let e of t)$.close(`shared:${e}`)}}function ht(){return Z.setPaused(`web-hidden`,document.hidden)}function gt(e){return e.primary}var _t=class extends o()(`ClipboardApiUnavailableError`,{target:v}){get message(){return`Clipboard API is unavailable while copying ${this.target}.`}},vt=class extends o()(`ClipboardWriteError`,{target:v,cause:u()}){get message(){return`Failed to copy ${this.target} to the clipboard.`}},yt=class extends o()(`ClipboardReadUnavailableError`,{target:v}){get message(){return`Clipboard API is unavailable while reading ${this.target}.`}},bt=class extends o()(`ClipboardReadError`,{target:v,cause:u()}){get message(){return`Failed to read ${this.target} from the clipboard.`}};function xt(e,t){if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let n=document.createElement(`textarea`);n.value=e,n.setAttribute(`readonly`,``),n.setAttribute(`aria-hidden`,`true`),n.style.position=`fixed`,n.style.top=`0`,n.style.left=`0`,n.style.opacity=`0`,n.style.fontSize=`16px`;let r=document.activeElement,i=n=>{if(t&&n.clipboardData){n.clipboardData.setData(`text/plain`,e);for(let[e,r]of Object.entries(t))n.clipboardData.setData(e,r);n.preventDefault()}};document.body.appendChild(n),n.addEventListener(`copy`,i);try{return n.focus({preventScroll:!0}),n.select(),n.setSelectionRange(0,e.length),document.execCommand(`copy`)}catch{return!1}finally{n.removeEventListener(`copy`,i),n.remove();let e=r?.focus;typeof e==`function`&&e.call(r)}}async function St(e,t=`text`,n){if(typeof window>`u`)throw new _t({target:t});if(!e)return!1;n&&=Object.fromEntries(Object.entries(n).filter(([e])=>e!==`text/plain`));let r=n?.[oe];if(r&&(n={...n,"text/html":re(e,r,n?.[`text/html`])}),typeof navigator>`u`||!navigator.clipboard?.writeText){if(xt(e,n))return!0;throw new _t({target:t})}try{if(n&&typeof ClipboardItem<`u`&&navigator.clipboard.write)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),...Object.fromEntries(Object.entries(n).map(([e,t])=>[e,new Blob([t],{type:e})]))})]),!0}catch{let t=n[`text/html`];if(t)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),"text/html":new Blob([t],{type:`text/html`})})]),!0}catch{}}return await navigator.clipboard.writeText(e),!0}catch(e){throw new vt({target:t,cause:e})}}async function Ct(e=`text`){if(typeof window>`u`||typeof navigator>`u`||!navigator.clipboard?.readText)throw new yt({target:e});try{return await navigator.clipboard.readText()}catch(t){throw new bt({target:e,cause:t})}}function wt({timeout:e=2e3,target:t=`text`,onCopy:n,onError:r,extraFlavors:i}={}){let[a,o]=G.useState(!1),s=G.useRef(null),c=G.useRef(n),l=G.useRef(r),u=G.useRef(t),d=G.useRef(e);c.current=n,l.current=r;let f=G.useRef(i);u.current=t,d.current=e,f.current=i;let p=G.useCallback((e,t)=>{St(e,u.current,f.current).then(e=>{e&&(s.current&&clearTimeout(s.current),o(!0),c.current?.(t),d.current!==0&&(s.current=setTimeout(()=>{o(!1),s.current=null},d.current)))},e=>{console.error(e),l.current?.(e,t)})},[]);return G.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),{copyToClipboard:p,isCopied:a}}function Tt(e){return e===`live`}function Et(e){return e.draftThreadExists||e.serverThreadExists&&!e.serverThreadDeleted?`ready`:e.bootstrapComplete?`missing`:`loading`}function Dt(e){return{environmentId:e.environmentId,threadId:e.threadId}}function Ot(e){return{draftId:e}}function kt(e){return!e.environmentId||!e.threadId?null:y(e.environmentId,e.threadId)}function At(e){return e.environmentId&&e.threadId?{kind:`server`,threadRef:y(e.environmentId,e.threadId)}:e.draftId?{kind:`draft`,draftId:e.draftId}:null}function jt(e,t){return e?.kind===`server`?e.threadRef:e?.kind!==`draft`||!t?.promotedTo?null:t.promotedTo}function Mt(e){if(typeof e!=`object`||!e||!(`children`in e))return!1;let t=e.children;return t!=null&&t!==!1&&t!==``}function Nt(e,t){return t<=1?!1:e>0}function Pt(e){let t=0,n=0,r=0,i=0,a=e.map(e=>{let a=Ft(e.height);if(e.transitionStatus===`ending`){let r={toast:e,visibleIndex:t,offsetY:n};return n+=a,t+=1,r}let o={toast:e,visibleIndex:r,offsetY:i};return n+=a,t+=1,i+=a,r+=1,o});return{frontmostHeight:Ft(e.find(e=>e.transitionStatus!==`ending`)?.height),items:a}}function Ft(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function It(e,t){if(e?.threadRef)return t!==null&&e.threadRef.environmentId===t.environmentId&&e.threadRef.threadId===t.threadId;let n=e?.threadId;return!n||t?.threadId===n}var $=lt(),Lt=lt(),Rt=new Map,zt={error:s,info:x,loading:ye,success:te,warning:p},Bt=180;function Vt(e,t){if(e===`error`&&typeof t==`string`&&!(t.length<Bt))return`line-clamp-4`}var Ht=`absolute z-20 -top-1.5 -right-1.5`,Ut=V(`inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-full border border-border/60 bg-popover/92 text-muted-foreground shadow-sm outline-none backdrop-blur-sm`,`transition-[color,background-color,box-shadow] hover:bg-popover hover:text-foreground`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`);function Wt(e,t,n){n?.(),e.close(t)}function Gt(e){let t=(0,Q.c)(13),{text:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={target:`error-message`},t[0]=r):r=t[0];let{copyToClipboard:i,isCopied:a}=wt(r),o=a?`Copied error`:`Copy error`,s;t[1]!==i||t[2]!==n?(s=()=>i(n),t[1]=i,t[2]=n,t[3]=s):s=t[3];let c=a&&`text-success`,l;t[4]===c?l=t[5]:(l=V(`size-3`,c),t[4]=c,t[5]=l);let u=a?Se:we,d;t[6]!==l||t[7]!==u?(d=(0,q.jsx)(xe,{className:l,icon:u}),t[6]=l,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==o||t[10]!==s||t[11]!==d?(f=(0,q.jsx)(B,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":o,className:`[--control-icon-color:currentColor] rounded-md text-muted-foreground/80 hover:bg-transparent hover:text-muted-foreground`,onClick:s,children:d}),t[9]=o,t[10]=s,t[11]=d,t[12]=f):f=t[12],f}var Kt=`mt-2 max-h-40 min-h-0 overflow-y-auto overscroll-contain pr-0.5 select-text`;function qt(e){let t=(0,Q.c)(13),{children:n,labels:r}=e,[i,a]=(0,G.useState)(!1),o=r.expand??`Show details`,s=r.collapse??`Hide details`,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>a(Jt),t[0]=c):c=t[0];let l=i?W:Ce,u;t[1]===l?u=t[2]:(u=(0,q.jsx)(xe,{className:`size-3.5 shrink-0 opacity-80`,icon:l,strokeWidth:2.25}),t[1]=l,t[2]=u);let d=i?s:o,f;t[3]!==i||t[4]!==u||t[5]!==d?(f=(0,q.jsxs)(`button`,{"aria-expanded":i,className:`inline-flex cursor-pointer items-center gap-1 rounded-md py-0.5 text-left text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,onClick:c,type:`button`,children:[u,d]}),t[3]=i,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;t[7]!==n||t[8]!==i?(p=i?(0,q.jsx)(`div`,{className:Kt,children:n}):null,t[7]=n,t[8]=i,t[9]=p):p=t[9];let m;return t[10]!==f||t[11]!==p?(m=(0,q.jsxs)(`div`,{className:`min-w-0`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}function Jt(e){return!e}function Yt(e){let t=(0,Q.c)(36),{toastData:n,toastDescription:r,toastType:i}=e,a=n?.expandableContent,o;t[0]===n?.expandableLabels?o=t[1]:(o=n?.expandableLabels??{},t[0]=n?.expandableLabels,t[1]=o);let s=o,c=n?.expandableDescriptionTrigger??!1,l;t[2]!==r||t[3]!==i?(l=V(`min-w-0 select-text wrap-break-word text-muted-foreground`,Vt(i,r)),t[2]=r,t[3]=i,t[4]=l):l=t[4];let u=l,[d,f]=(0,G.useState)(!1);if(!a){let e;return t[5]===u?e=t[6]:(e=(0,q.jsx)($e,{className:u,"data-slot":`toast-description`}),t[5]=u,t[6]=e),e}if(!c){let e;t[7]===u?e=t[8]:(e=(0,q.jsx)($e,{className:u,"data-slot":`toast-description`}),t[7]=u,t[8]=e);let n;t[9]!==a||t[10]!==s?(n=(0,q.jsx)(qt,{labels:s,children:a}),t[9]=a,t[10]=s,t[11]=n):n=t[11];let r;return t[12]!==e||t[13]!==n?(r=(0,q.jsxs)(q.Fragment,{children:[e,n]}),t[12]=e,t[13]=n,t[14]=r):r=t[14],r}let p=s.expand??`Show details`,m=s.collapse??`Hide details`,h;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>f(Xt),t[15]=h):h=t[15];let g=h,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g())},t[16]=_):_=t[16];let v=_,y=d?m:p,b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=V(`group flex min-w-0 w-full cursor-pointer select-none items-start gap-1.5 rounded-sm text-left outline-none ring-offset-background`,`transition-colors hover:bg-muted/40`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`),t[17]=b):b=t[17];let x;t[18]!==r||t[19]!==i?(x=V(`min-w-0 select-none wrap-break-word text-muted-foreground`,Vt(i,r),`underline-offset-2 decoration-muted-foreground/60 group-hover:underline`),t[18]=r,t[19]=i,t[20]=x):x=t[20];let S;t[21]===x?S=t[22]:(S=(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,q.jsx)($e,{className:x,"data-slot":`toast-description`})}),t[21]=x,t[22]=S);let C=d?W:Ce,w;t[23]===C?w=t[24]:(w=(0,q.jsx)(xe,{"aria-hidden":!0,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground opacity-80`,icon:C,strokeWidth:2.25}),t[23]=C,t[24]=w);let T;t[25]!==d||t[26]!==w||t[27]!==y||t[28]!==S?(T=(0,q.jsxs)(`div`,{"aria-label":y,"aria-expanded":d,className:b,onClick:g,onKeyDown:v,role:`button`,tabIndex:0,children:[S,w]}),t[25]=d,t[26]=w,t[27]=y,t[28]=S,t[29]=T):T=t[29];let E;t[30]!==a||t[31]!==d?(E=d?(0,q.jsx)(`div`,{className:Kt,children:a}):null,t[30]=a,t[31]=d,t[32]=E):E=t[32];let D;return t[33]!==T||t[34]!==E?(D=(0,q.jsxs)(q.Fragment,{children:[T,E]}),t[33]=T,t[34]=E,t[35]=D):D=t[35],D}function Xt(e){return!e}function Zt(e){let t=e.type?zt[e.type]:null,n=Mt(e.actionProps)&&e.data?.actionLayout===`stacked-end`,r=e.data?.actionVariant??`default`,i=e.data?.secondaryActionVariant??`outline`,a=e.type===`error`&&typeof e.description==`string`&&!e.data?.hideCopyButton?e.description:null,o=(e.data?.additionalActions?.length??0)>0,s=e.data?.secondaryActionProps!==void 0,c=a!==null||Mt(e.actionProps)||o||s;return{Icon:t,stackedActionLayout:n,actionVariant:r,secondaryActionVariant:i,copyErrorText:a,hasTrailingControls:c,inlineContentEndPad:c?`pr-6`:`pr-10`}}function Qt(e){let t=(0,Q.c)(38),{stackedActionLayout:n,Icon:r,copyErrorText:i,actionProps:a,actionVariant:o,secondaryActionVariant:s,hasTrailingControls:c,toastData:l,toastDescription:u,toastType:d}=e,f;t[0]===l?.additionalActions?f=t[1]:(f=l?.additionalActions??[],t[0]=l?.additionalActions,t[1]=f);let p=f,m=l?.secondaryActionProps,h=l?.leadingIcon,g;t[2]===m?g=t[3]:(g=m??{},t[2]=m,t[3]=g);let _,v;t[4]===g?(_=t[5],v=t[6]):({className:_,...v}=g,t[4]=g,t[5]=_,t[6]=v);let y=n?`pr-5`:`flex-1`,b;t[7]===y?b=t[8]:(b=V(`flex min-h-0 min-w-0 flex-col gap-0.5`,y),t[7]=y,t[8]=b);let x;t[9]!==r||t[10]!==h?(x=h?(0,q.jsx)(`div`,{className:`flex h-lh w-4 shrink-0 items-center justify-center`,"data-slot":`toast-icon`,children:h}):r?(0,q.jsx)(`div`,{className:`[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`toast-icon`,children:(0,q.jsx)(r,{className:`in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80`})}):null,t[9]=r,t[10]=h,t[11]=x):x=t[11];let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,q.jsx)(et,{className:`min-w-0 wrap-break-word font-medium`,"data-slot":`toast-title`}),t[12]=S):S=t[12];let C;t[13]===x?C=t[14]:(C=(0,q.jsxs)(`div`,{className:`flex min-w-0 gap-2`,children:[x,S]}),t[13]=x,t[14]=C);let w;t[15]!==l||t[16]!==u||t[17]!==d?(w=(0,q.jsx)(Yt,{toastData:l,toastDescription:u,toastType:d}),t[15]=l,t[16]=u,t[17]=d,t[18]=w):w=t[18];let T;t[19]!==b||t[20]!==C||t[21]!==w?(T=(0,q.jsxs)(`div`,{className:b,children:[C,w]}),t[19]=b,t[20]=C,t[21]=w,t[22]=T):T=t[22];let E;t[23]!==a||t[24]!==o||t[25]!==p||t[26]!==i||t[27]!==c||t[28]!==_||t[29]!==m||t[30]!==v||t[31]!==s||t[32]!==n||t[33]!==l?.sharedToastId?(E=c?(0,q.jsxs)(`div`,{className:V(`flex items-center gap-1.5`,n?`w-full justify-end`:`shrink-0`),children:[i===null?null:(0,q.jsx)(Gt,{text:i}),p.map(e=>{let{id:t,props:n}=e,{className:r,...i}=n;return(0,G.createElement)(B,{...i,className:r,key:t,size:`xs`,type:`button`,variant:s})}),m?(0,q.jsx)(B,{...v,className:_,size:`xs`,type:`button`,variant:l?.sharedToastId?`solid-neutral`:s}):null,Mt(a)?(0,q.jsx)(nt,{className:V(ce({size:`xs`,variant:o}),`shrink-0`),"data-slot":`toast-action`,children:a?.children}):null]}):null,t[23]=a,t[24]=o,t[25]=p,t[26]=i,t[27]=c,t[28]=_,t[29]=m,t[30]=v,t[31]=s,t[32]=n,t[33]=l?.sharedToastId,t[34]=E):E=t[34];let D;return t[35]!==E||t[36]!==T?(D=(0,q.jsxs)(q.Fragment,{children:[T,E]}),t[35]=E,t[36]=T,t[37]=D):D=t[37],D}function $t(){let e=(0,Q.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={strict:!1,select:en},e[0]=t):t=e[0];let n=be(t),r;e[1]===n?r=e[2]:(r=e=>n?.kind===`draft`?e.getDraftSession(n.draftId):null,e[1]=n,e[2]=r);let i=d(r),a;bb0:{if(n?.kind===`server`){a=n.threadRef;break bb0}if(n?.kind===`draft`&&i){let t;e[3]!==i.environmentId||e[4]!==i.threadId?(t={environmentId:i.environmentId,threadId:i.threadId},e[3]=i.environmentId,e[4]=i.threadId,e[5]=t):t=e[5],a=t;break bb0}a=null}return a}function en(e){return At(e)}function tn(e){let t=(0,Q.c)(4),{toastId:n,dismissAfterVisibleMs:r}=e,i,a;return t[0]!==r||t[1]!==n?(i=()=>{if(!r||r<=0||typeof window>`u`||typeof document>`u`)return;let e=Rt.get(n)??r,t=null,i=null,a=!1,o=()=>{i!==null&&(window.clearTimeout(i),i=null)},s=()=>{a||(a=!0,Rt.delete(n),$.close(n))},c=()=>{t!==null&&(e=Math.max(0,e-(Date.now()-t)),t=null,o(),Rt.set(n,e))},l=()=>{if(!(a||t!==null)){if(e<=0){s();return}t=Date.now(),o(),i=window.setTimeout(()=>{e=0,t=null,s()},e)}},u=()=>{if(document.visibilityState===`visible`&&document.hasFocus()){l();return}c()};return u(),document.addEventListener(`visibilitychange`,u),window.addEventListener(`focus`,u),window.addEventListener(`blur`,u),()=>{document.removeEventListener(`visibilitychange`,u),window.removeEventListener(`focus`,u),window.removeEventListener(`blur`,u),c(),o()}},a=[r,n],t[0]=r,t[1]=n,t[2]=i,t[3]=a):(i=t[2],a=t[3]),(0,G.useEffect)(i,a),null}function nn(e){let t=(0,Q.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,position:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`top-center`:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(pt,{}),t[4]=o):o=t[4];let s;t[5]===a?s=t[6]:(s=(0,q.jsx)(rn,{position:a}),t[5]=a,t[6]=s);let c;return t[7]!==n||t[8]!==r||t[9]!==s?(c=(0,q.jsxs)(ze,{toastManager:$,...r,children:[o,n,s]}),t[7]=n,t[8]=r,t[9]=s,t[10]=c):c=t[10],c}function rn(e){let t=(0,Q.c)(19),{position:n}=e,{toasts:r}=ct(),i=$t(),a;t[0]===n?a=t[1]:(a=n.startsWith(`top`),t[0]=n,t[1]=a);let o=a,s;t[2]===i?s=t[3]:(s=e=>It(e.data,i),t[2]=i,t[3]=s);let c=Pt(r.filter(s)),l,u;t[4]===r?(l=t[5],u=t[6]):(l=()=>{let e=new Set(r.map(an));for(let t of Rt.keys())e.has(t)||Rt.delete(t)},u=[r],t[4]=r,t[5]=l,t[6]=u),(0,G.useEffect)(l,u);let d=ut,f=ut,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=V(`fixed z-100 mx-auto flex w-[calc(100%-var(--toast-inset)*2)] max-w-90 [--toast-header-offset:var(--workspace-topbar-height)] [--toast-inset:--spacing(4)] sm:[--toast-inset:--spacing(8)]`,`data-[position*=top]:top-[calc(var(--toast-inset)+var(--toast-header-offset))]`,`data-[position*=bottom]:bottom-(--toast-inset)`,`data-[position*=left]:left-(--toast-inset)`,`data-[position*=right]:right-(--toast-inset)`,`data-[position*=center]:-translate-x-1/2 data-[position*=center]:left-1/2`),t[7]=p):p=t[7];let m=`${c.frontmostHeight}px`,h;t[8]===m?h=t[9]:(h={"--toast-frontmost-height":m},t[8]=m,t[9]=h);let g=h,_=c.items.map(e=>{let{toast:t,visibleIndex:r,offsetY:i}=e,a=Nt(r,c.items.length),s=Zt(t),{stackedActionLayout:l,inlineContentEndPad:u}=s;return(0,q.jsxs)(Ze,{className:V(`dropdown-glass absolute z-[calc(9999-var(--toast-index))] w-full overflow-visible select-none rounded-xl text-popover-foreground shadow-lg shadow-black/10 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s] motion-reduce:transition-none`,`data-[position*=right]:right-0 data-[position*=right]:left-auto`,`data-[position*=left]:right-auto data-[position*=left]:left-0`,`data-[position*=center]:right-0 data-[position*=center]:left-0`,`data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-top`,`data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-bottom`,`after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full`,`data-[position*=top]:after:top-full`,`data-[position*=bottom]:after:bottom-full`,r>0?`not-data-expanded:[--toast-calc-height:var(--toast-frontmost-height)] data-expanded:[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`:`[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`,`[--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]`,r>0?`not-data-expanded:h-(--toast-calc-height) data-expanded:h-auto`:`h-auto`,`data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]`,`data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]`,`data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-limited:opacity-0`,`data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]`,`data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]`,`data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]`,`data-[position*=top]:data-[position*=right]:data-starting-style:transform-[translateX(calc(100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:opacity-0`,`data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(var(--toast-calc-offset-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`),"data-position":n,onPointerEnter:()=>{t.data?.sharedToastId&&Z.pause(t.data.sharedToastId,`pointer`)},onPointerLeave:()=>{t.data?.sharedToastId&&Z.resume(t.data.sharedToastId,`pointer`)},onFocusCapture:()=>{t.data?.sharedToastId&&Z.pause(t.data.sharedToastId,`focus`)},onBlurCapture:e=>{t.data?.sharedToastId&&!e.currentTarget.contains(e.relatedTarget)&&Z.resume(t.data.sharedToastId,`focus`)},style:{"--toast-index":r,"--toast-offset-y":`${i}px`},swipeDirection:n.includes(`center`)?[o?`up`:`down`]:n.includes(`left`)?[`left`,o?`up`:`down`]:[`right`,o?`up`:`down`],toast:t,children:[(0,q.jsx)(tn,{dismissAfterVisibleMs:t.data?.dismissAfterVisibleMs,toastId:t.id}),!t.data?.sharedToastId&&(0,q.jsx)(`div`,{className:Ht,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Ut,"data-slot":`toast-close`,onClick:()=>Wt($,t.id,t.data?.onClose),type:`button`,children:(0,q.jsx)(j,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsxs)(Qe,{className:V(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm transition-opacity duration-250 [overflow-x:clip] data-expanded:opacity-100`,l?`flex flex-col gap-2 py-2.5 pr-3.5`:V(`py-3`,`flex items-center justify-between gap-2`,t.data?.sharedToastId?`pr-2`:u),a&&`not-data-expanded:pointer-events-none not-data-expanded:opacity-0`),children:[(0,q.jsx)(Qt,{...s,actionProps:t.actionProps,toastData:t.data,toastDescription:t.description,toastType:t.type}),t.data?.sharedToastId&&(0,q.jsx)(B,{size:`icon-xs`,variant:`ghost`,"aria-label":`Dismiss notification`,onClick:()=>Z.dismiss(t.data.sharedToastId),children:(0,q.jsx)(j,{})})]})]},t.id)}),v;t[10]!==n||t[11]!==g||t[12]!==_||t[13]!==f.Viewport||t[14]!==p?(v=(0,q.jsx)(f.Viewport,{className:p,"data-position":n,"data-slot":`toast-viewport`,style:g,children:_}),t[10]=n,t[11]=g,t[12]=_,t[13]=f.Viewport,t[14]=p,t[15]=v):v=t[15];let y;return t[16]!==v||t[17]!==d.Portal?(y=(0,q.jsx)(d.Portal,{"data-slot":`toast-portal`,children:v}),t[16]=v,t[17]=d.Portal,t[18]=y):y=t[18],y}function an(e){return e.id}function on(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,q.jsx)(sn,{}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,q.jsxs)(ze,{toastManager:Lt,...r,children:[n,i]}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function sn(){let e=(0,Q.c)(7),{toasts:t}=ct(),n=$t(),r;if(e[0]!==n||e[1]!==t){let i;e[3]===n?i=e[4]:(i=e=>It(e.data,n),e[3]=n,e[4]=i),r=t.filter(i).map(cn),e[0]=n,e[1]=t,e[2]=r}else r=e[2];let i;return e[5]===r?i=e[6]:(i=(0,q.jsx)(rt,{"data-slot":`toast-portal-anchored`,children:(0,q.jsx)(Ve,{className:`outline-none`,"data-slot":`toast-viewport-anchored`,children:r})}),e[5]=r,e[6]=i),i}function cn(e){let t=e.data?.tooltipStyle??!1,n=e.positionerProps,r=Zt(e),{stackedActionLayout:i,inlineContentEndPad:a}=r;return n?.anchor?(0,q.jsx)(ot,{className:`z-100 max-w-[min(--spacing(64),var(--available-width))]`,"data-slot":`toast-positioner`,sideOffset:n.sideOffset??4,toast:e,children:(0,q.jsx)(Ze,{className:V(`dropdown-glass relative overflow-visible text-balance text-popover-foreground text-xs shadow-xl shadow-black/25 transition-[scale,opacity] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0`,t?`rounded-md`:`rounded-lg`),"data-slot":`toast-popup`,toast:e,children:t?(0,q.jsx)(Qe,{className:`pointer-events-auto px-2 py-1`,children:(0,q.jsx)(et,{"data-slot":`toast-title`})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:Ht,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Ut,"data-slot":`toast-close`,onClick:()=>Wt(Lt,e.id,e.data?.onClose),type:`button`,children:(0,q.jsx)(j,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsx)(Qe,{className:V(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm [overflow-x:clip]`,i?`flex flex-col gap-2 py-2.5 pr-3.5`:V(`py-3`,`flex items-center justify-between gap-1.5`,a)),children:(0,q.jsx)(Qt,{...r,actionProps:e.actionProps,toastData:e.data,toastDescription:e.description,toastType:e.type})})]})})},e.id):null}export{Ee as _,Ot as a,jt as c,At as d,Ct as f,Ae as g,Z as h,$ as i,kt as l,St as m,nn as n,Dt as o,wt as p,Lt as r,Tt as s,on as t,Et as u,De as v};
|
|
2
|
-
//# sourceMappingURL=toast-
|
|
1
|
+
import{i as e,n as t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{$i as r,Ap as i,Bi as a,By as o,Cd as s,Cm as c,Co as l,Cy as u,D as d,Ea as f,Em as p,Eo as m,Fa as h,Ia as g,Ii as _,Iy as v,Ks as y,Md as b,Mf as x,NE as S,Na as C,Or as w,Qi as T,Ra as E,Sa as D,So as ee,Td as te,Ti as O,To as k,Tr as A,Um as j,Uu as M,_o as N,ai as ne,bt as re,ca as P,ga as ie,ia as F,ib as I,jr as ae,ku as oe,lE as se,la as L,lr as ce,ma as R,oa as z,pa as le,ra as ue,sa as de,sl as fe,sr as B,t as V,ta as H,va as pe,vi as me,vo as U,za as he,zi as ge}from"./utils-BgVDKR83.js";import{jn as _e}from"./runtime-B7jXrsPs.js";import{l as ve}from"./TooltipViewport-A4hJLsA1.js";import{t as ye}from"./spinner-B1oJASgu.js";import{t as be}from"./useParams-Bschqkhl.js";import{c as xe,f as W,l as Se,u as Ce,y as we}from"./tooltip-DRGG_vM1.js";var Te=I(fe);function Ee(e){return Te(e)&&e.bootstrapThreadDisposition===`deleted`}function De(e){return Te(e)&&e.bootstrapThreadDisposition===`not-created`}var Oe=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the T3 server WebSocket\./i,RegExp(`\\b(?:is not connected|disconnected|stopped responding|could not establish a WebSocket connection)\\.(?: ${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))(_e)})?$`,`i`),/\bClientProtocolError\b/i,/\bRpcClientError\b/i,/\bping timeout\b/i];function ke(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length!==0&&Oe.some(e=>e.test(t))}function Ae(e){return ke(e)?null:e??null}var G=e(n()),je=G.createContext(void 0);function Me(){let e=G.useContext(je);if(!e)throw Error(m(73));return e}var Ne=0;function Pe(e){return Ne+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Ne}`}function Fe(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Ie(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var Le=e=>e.toastMetadata,K={toasts:O(e=>e.toasts),isEmpty:O(e=>e.toasts.length===0),toast:O(Le,(e,t)=>e.get(t)?.value),toastIndex:O(Le,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:O(Le,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:O(Le,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:O(e=>e.hovering),focused:O(e=>e.focused),expanded:O(e=>e.hovering||e.focused),expandedOrOutOfFocus:O(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:O(e=>e.prevFocusElement)},Re=class extends me{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Ie(e.toasts)},{},K)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=K.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Pe(`toast`);if(e.id){let t=K.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=K.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),K.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=K.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:Ie(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Fe(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Fe(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Fe(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=le.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=L(e);P(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!K.expandedOrOutOfFocus(this.state),a=i?le.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:Ie(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=de(H(this.state.viewport));if(!this.state.viewport||!P(this.state.viewport,t)||!z(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=K.toasts(this.state),r=K.toastIndex(this.state,e),i=null,a=r+1;for(;a<n.length;){if(n[a].transitionStatus!==`ending`){i=n[a];break}a+=1}if(!i)for(a=r-1;a>=0;){if(n[a].transitionStatus!==`ending`){i=n[a];break}--a}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}},q=e(se()),ze=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=k(()=>new Re({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return D(a.disposeEffect),G.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),a.useSyncedValues({timeout:n,limit:r}),(0,q.jsx)(je.Provider,{value:a,children:t})},Be=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),Ve=G.forwardRef(function(e,t){let{render:n,className:i,style:a,children:o,...s}=e,c=Me(),l=R(),u=G.useRef(!1),d=G.useRef(!1),f=G.useRef(!1),p=c.useState(`isEmpty`),m=c.useState(`toasts`),h=c.useState(`focused`),g=c.useState(`expanded`),_=c.useState(`prevFocusElement`),v=m[0]?.height??0,y=G.useMemo(()=>m.some(e=>e.transitionStatus===`ending`),[m]),b=G.useMemo(()=>m.filter(e=>e.priority===`high`),[m]);G.useEffect(()=>{let e=c.state.viewport;if(!e)return;function t(t){p||t.key===`F6`&&L(t)!==e&&(t.preventDefault(),c.setPrevFocusElement(de(H(e))),e?.focus({preventScroll:!0}),c.pauseTimers(),c.setFocused(!0))}let n=E(e);return F(n,`keydown`,t)},[c,p]),G.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=E(e);function n(e){L(e)===t&&(c.setIsWindowFocused(!1),c.pauseTimers())}function r(n){if(n.relatedTarget)return;let r=L(n),i=de(H(e));(r===t||!P(e,r)||!z(i))&&c.resumeTimers(),l.start(0,()=>c.setIsWindowFocused(!0))}return ue(F(t,`blur`,n,!0),F(t,`focus`,r,!0))},[c,l,p]),G.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=H(e);return F(t,`pointerdown`,c.handleDocumentPointerDown,!0)},[p,c]);function x(e){let t=c.state.viewport;t&&(u.current=!0,e.relatedTarget===t?m[0]?.ref?.current?.focus():c.restoreFocusToPrevElement())}function S(e){e.key===`Tab`&&e.shiftKey&&L(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement(),c.resumeTimers())}function C(){let e=c.state.toasts.some(e=>e.transitionStatus===`ending`);c.state.isWindowFocused&&!e&&!f.current&&d.current&&(c.resumeTimers(),c.setHovering(!1),d.current=!1)}G.useEffect(C,[y,c]);function w(){c.pauseTimers(),c.setHovering(!0),d.current=!1}function D(){y||f.current?d.current=!0:(c.resumeTimers(),c.setHovering(!1))}function ee(e){e.pointerType===`touch`&&(f.current=!0)}function te(e){e.pointerType===`touch`&&(f.current=!1,C())}function O(){if(u.current){u.current=!1;return}h||z(de(H(c.state.viewport)))&&(c.setFocused(!0),c.pauseTimers())}function k(e){h&&!P(c.state.viewport,e.relatedTarget)&&(c.setFocused(!1),c.resumeTimers())}let A={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:w,onMouseMove:w,onMouseLeave:D,onFocus:O,onBlur:k,onKeyDown:S,onClick:O,onPointerDown:ee,onPointerUp:te,onPointerCancel:te},j={expanded:g},M=U(`div`,e,{ref:[t,c.setViewport],state:j,props:[A,{style:{[Be.frontmostHeight]:v?`${v}px`:void 0}},s,{children:(0,q.jsxs)(G.Fragment,{children:[!p&&_&&(0,q.jsx)(T,{onFocus:x}),o,!p&&_&&(0,q.jsx)(T,{onFocus:x})]})}]});return(0,q.jsxs)(G.Fragment,{children:[!p&&_&&(0,q.jsx)(T,{onFocus:x}),M,!h&&b.length>0&&(0,q.jsx)(`div`,{style:r,children:b.map(e=>(0,q.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,q.jsx)(`div`,{children:e.title}),(0,q.jsx)(`div`,{children:e.description})]},e.id))})]})}),He=e(pe()),Ue=G.createContext(void 0);function J(){let e=G.useContext(Ue);if(!e)throw Error(m(66));return e}var Y=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({});function We(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function Ge(e){let t=E(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}var Ke={...N,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},qe=40,Je=10,X=.5,Ye=1,Xe=`${_},${ge}`,Ze=G.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=Me(),[f,p]=G.useState(void 0),[m,_]=G.useState(!1),[v,y]=G.useState(!1),[b,x]=G.useState(!1),[S,C]=G.useState({x:0,y:0}),[w,T]=G.useState({x:0,y:0,scale:1}),[E,D]=G.useState(),[ee,te]=G.useState(),[O,k]=G.useState(null),A=G.useRef(null),j=G.useRef({x:0,y:0}),M=G.useRef({x:0,y:0,scale:1}),N=G.useRef(void 0),ne=G.useRef(0),re=G.useRef(!1),I=G.useRef({x:0,y:0}),oe=G.useRef(!1),se=G.useRef({x:0,y:0}),ce=G.useRef(null),R=G.useRef(null),z=d.useState(`toastIndex`,n.id),le=d.useState(`toastVisibleIndex`,n.id),ue=d.useState(`toastOffsetY`,n.id),fe=d.useState(`focused`),B=d.useState(`expanded`);ie({open:n.transitionStatus!==`ending`,ref:A,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let V=g((e=!1)=>{let t=A.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:A,height:i,...n.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?He.flushSync(a):a()});h(V,[V]);function pe(e){se.current=e,C(e)}h(()=>()=>{R.current?.abort()},[]);function me(e,t){let n=e,r=t;return!l.includes(`left`)&&!l.includes(`right`)?n=e>0?e**X:-(Math.abs(e)**X):(!l.includes(`right`)&&e>0&&(n=e**X),!l.includes(`left`)&&e<0&&(n=-(Math.abs(e)**X))),!l.includes(`up`)&&!l.includes(`down`)?r=t>0?t**X:-(Math.abs(t)**X):(!l.includes(`down`)&&t>0&&(r=t**X),!l.includes(`up`)&&t<0&&(r=-(Math.abs(t)**X))),{x:n,y:r}}let he=g(e=>{if(e.pointerId!==ce.current)return;ce.current=null,R.current?.abort(),R.current=null,_(!1),y(!1),k(null);let t=M.current;if(e.type===`pointercancel`||re.current){pe({x:t.x,y:t.y}),p(void 0);return}let r=!1,i=se.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of l){switch(e){case`right`:a>qe&&(r=!0,s=`right`);break;case`left`:a<-40&&(r=!0,s=`left`);break;case`down`:o>qe&&(r=!0,s=`down`);break;case`up`:o<-40&&(r=!0,s=`up`)}if(r)break}r?(p(s),x(!0),d.closeToast(n.id)):(pe({x:t.x,y:t.y}),p(void 0))});function ge(e){if(e.button!==0)return;e.pointerType===`touch`&&d.pauseTimers();let t=L(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${Xe}`))return;if(re.current=!1,N.current=void 0,ne.current=0,ce.current=e.pointerId,j.current={x:e.clientX,y:e.clientY},I.current=j.current,A.current){let e=Ge(A.current);M.current=e,T(e),pe({x:e.x,y:e.y})}d.setHovering(!0),_(!0),y(!1),k(null),oe.current=!0;let n=A.current;if(n){R.current?.abort();let t=new AbortController;R.current=t;let r=H(n);r.addEventListener(`pointerup`,he,{signal:t.signal}),r.addEventListener(`pointercancel`,he,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function _e(e){if(e.pointerId!==ce.current)return;e.preventDefault(),oe.current&&=(j.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>I.current.y||i>0&&t<I.current.y)&&(I.current={x:I.current.x,y:t}),(r<0&&n>I.current.x||r>0&&n<I.current.x)&&(I.current={x:n,y:I.current.y});let a=n-j.current.x,o=t-j.current.y,s=t-I.current.y,c=n-I.current.x;if(!v&&Math.sqrt(a*a+o*o)>=Ye&&(y(!0),O===null)){let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&k(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let u;if(!N.current)O===`vertical`?o>0?u=`down`:o<0&&(u=`up`):O===`horizontal`?a>0?u=`right`:a<0&&(u=`left`):u=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,u&&l.includes(u)&&(N.current=u,ne.current=We(u,a,o),p(u));else{let e=N.current,t=We(e,c,s);t>qe?(re.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&ne.current-t>=Je&&(re.current=!0)}let d=me(a,o),f=M.current.x,m=M.current.y;O===`horizontal`?(l.includes(`left`)||l.includes(`right`))&&(f+=d.x):(O===`vertical`||(l.includes(`left`)||l.includes(`right`))&&(f+=d.x),(l.includes(`up`)||l.includes(`down`))&&(m+=d.y)),pe({x:f,y:m})}function ve(e){if(e.key===`Escape`){if(!A.current||!P(A.current,de(H(A.current))))return;d.closeToast(n.id)}}G.useEffect(()=>{if(!u)return;let e=A.current;if(!e)return;function t(t){P(e,L(t))&&t.preventDefault()}return F(e,`touchmove`,t,{passive:!1})},[u]);function ye(){if(!m&&S.x===w.x&&S.y===w.y&&!b)return{[Y.swipeMovementX]:`0px`,[Y.swipeMovementY]:`0px`};let e=S.x-w.x,t=S.y-w.y;return{transition:m?`none`:void 0,transform:m?`translateX(${S.x}px) translateY(${S.y}px) scale(${w.scale})`:void 0,[Y.swipeMovementX]:`${e}px`,[Y.swipeMovementY]:`${t}px`}}let be=n.priority===`high`,xe={role:be?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":E,"aria-describedby":ee,"aria-hidden":be&&!fe?!0:void 0,onPointerDown:u?ge:void 0,onPointerMove:u?_e:void 0,onPointerUp:u?he:void 0,onPointerCancel:u?he:void 0,onKeyDown:ve,inert:ae(n.limited),style:{...ye(),[Y.index]:n.transitionStatus===`ending`?z:le,[Y.offsetY]:`${ue}px`,[Y.height]:n.height?`${n.height}px`:void 0}},W=G.useMemo(()=>({rootRef:A,toast:n,titleId:E,setTitleId:D,descriptionId:ee,setDescriptionId:te,swiping:m,swipeDirection:f,recalculateHeight:V,index:z,visibleIndex:le,expanded:B}),[n,E,ee,m,f,V,z,le,B]),Se={transitionStatus:n.transitionStatus,expanded:B,limited:n.limited||!1,type:n.type,swiping:W.swiping,swipeDirection:W.swipeDirection},Ce=U(`div`,e,{ref:[t,W.rootRef],state:Se,stateAttributesMapping:Ke,props:[xe,s]});return(0,q.jsx)(Ue.Provider,{value:W,children:Ce})}),Qe=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=J(),l=G.useRef(null);return h(()=>{let e=l.current;if(!e||(c(),typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`))return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),U(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})}),$e=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setDescriptionId:l}=J(),u=o??c.description,d=!!u,p=f(a);h(()=>{if(d)return l(p),()=>{l(void 0)}},[d,p,l]);let m={type:c.type},g=U(`p`,e,{ref:t,state:m,props:{...s,id:p,children:u}});return d?g:null}),et=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setTitleId:l}=J(),u=o??c.title,d=!!u,p=f(a);h(()=>{if(d)return l(p),()=>{l(void 0)}},[d,p,l]);let m={type:c.type},g=U(`h2`,e,{ref:t,state:m,props:{...s,id:p,children:u}});return d?g:null}),tt=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=Me(),{toast:l}=J(),u=c.useState(`expanded`),[d,f]=G.useState(!1),{getButtonProps:p,buttonRef:m}=C({disabled:a,native:o}),h={type:l.type};return U(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),nt=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=J(),l=c.actionProps?.children??s.children,u=!!l,{getButtonProps:d,buttonRef:f}=C({disabled:a,native:o}),p={type:c.type},m=U(`button`,e,{ref:[t,f],state:p,props:[s,c.actionProps,d,{children:l}]});return u?m:null}),rt=ve,it=G.createContext(void 0);function at(){let e=G.useContext(it);if(e===void 0)throw Error(m(84));return e}var ot=G.forwardRef(function(e,t){let{toast:n,...r}=e,i=Me(),o=n.positionerProps??ee,{render:s,className:c,anchor:u=o.anchor,positionMethod:d=o.positionMethod??`absolute`,side:f=o.side??`top`,align:p=o.align??`center`,sideOffset:m=o.sideOffset??0,alignOffset:h=o.alignOffset??0,collisionBoundary:g=o.collisionBoundary??`clipping-ancestors`,collisionPadding:_=o.collisionPadding??5,arrowPadding:v=o.arrowPadding??5,sticky:y=o.sticky??!1,disableAnchorTracking:b=o.disableAnchorTracking??!1,collisionAvoidance:x=o.collisionAvoidance??a,style:S,...C}=r,[T,E]=G.useState(null),D=i.useState(`toastIndex`,n.id),te=i.useState(`toastVisibleIndex`,n.id),O=he(u)?u:null,k=ne({open:!0,onOpenChange:l,elements:{floating:T,reference:O}}),j=w({anchor:O,positionMethod:d,floatingRootContext:k,mounted:!0,side:f,sideOffset:m,align:p,alignOffset:h,collisionBoundary:g,collisionPadding:_,sticky:y,arrowPadding:v,disableAnchorTracking:b,keepMounted:!0,collisionAvoidance:x}),M=G.useMemo(()=>({side:j.side,align:j.align,anchorHidden:j.anchorHidden}),[j.side,j.align,j.anchorHidden]),N=A(e,M,{styles:{...j.positionerStyles,[Y.index]:n.transitionStatus===`ending`?D:te},transitionStatus:n.transitionStatus,props:C,refs:[t,E]});return(0,q.jsx)(it.Provider,{value:j,children:N})}),st=G.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=at();return U(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function ct(){let e=G.useContext(je);if(!e)throw Error(m(73));let t=e.useState(`toasts`);return G.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function lt(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||Pe(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var ut=t({Action:()=>nt,Arrow:()=>st,Close:()=>tt,Content:()=>Qe,Description:()=>$e,Portal:()=>rt,Positioner:()=>ot,Provider:()=>ze,Root:()=>Ze,Title:()=>et,Viewport:()=>Ve,createToastManager:()=>lt,useToastManager:()=>ct});function dt(){let e=[],t=0,n=new Set,r=new Map,i=new Map,a=new Map,o=new Map,s=new Set,c=()=>n.forEach(e=>e()),l=e=>{clearTimeout(r.get(e)),r.delete(e);let t=a.get(e);t!==void 0&&(i.set(e,Math.max(0,(i.get(e)??0)-(Date.now()-t))),a.delete(e))},u=t=>{let n=e.find(e=>e.id===t);n&&(l(t),i.delete(t),o.delete(t),e=e.filter(e=>e.id!==t),c(),n.onDismiss?.())},d=e=>{s.size||o.get(e)?.size||r.has(e)||!i.has(e)||(a.set(e,Date.now()),r.set(e,setTimeout(()=>u(e),i.get(e))))},f=n=>{let r=n.id??`notification-${++t}`;l(r);let a={...n,id:r};e=[...e.filter(e=>e.id!==r),a];let o=n.durationMs??8e3;return o>0?i.set(r,o):i.delete(r),d(r),c(),r},p=(e,t)=>{let n=o.get(e)??new Set;n.add(t),o.set(e,n),l(e)},m=(e,t)=>{o.get(e)?.delete(t),d(e)};return{show:f,dismiss:u,pause:p,resume:m,getSnapshot:()=>e,subscribe:e=>(n.add(e),()=>{n.delete(e)}),setPaused:(t,n)=>{n?s.add(t):s.delete(t);for(let t of e)s.size?l(t.id):d(t.id)},performAction:async(t,n)=>{let r=e.find(e=>e.id===t),i=r?.actions?.find(e=>e.id===n);if(!r||!i||r.pendingActionId)return;let a={...r,pendingActionId:n};p(t,`action`),e=e.map(e=>e===r?a:e),c();try{await i.run(),e.includes(a)&&u(t)}catch(t){e.includes(a)&&f({...r,title:i.failureTitle??`Could not complete action`,description:t instanceof Error?t.message:`Please try again.`,tone:`error`})}finally{m(t,`action`)}}}}var Z=dt(),Q=S(),ft={archive:M,clock:b,pin:i,trash:c};function pt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,G.useEffect)(mt,t),null}function mt(){let e=!0,t=new Set,n=()=>{let n=Z.getSnapshot();for(let e of t)n.some(t=>t.id===e)||(t.delete(e),$.close(`shared:${e}`));for(let r of n){let n=r.icon&&r.tone!==`error`?ft[r.icon]:null,i=r.actions??[],a=i.find(gt),o=e=>({children:e.label,disabled:!!r.pendingActionId,onClick:()=>{Z.performAction(r.id,e.id)}}),s={title:r.title,description:r.description??null,type:r.tone??`info`,timeout:0,onClose:()=>{e&&Z.getSnapshot().includes(r)&&Z.dismiss(r.id)},actionProps:{children:null},data:{sharedToastId:r.id,leadingIcon:n?(0,q.jsx)(n,{className:`size-4`}):void 0,additionalActions:i.filter(e=>e!==a).map(e=>({id:e.id,props:o(e)})),...a?{secondaryActionProps:o(a)}:{},secondaryActionVariant:`soft`,hideCopyButton:!0}};t.has(r.id)?$.update(`shared:${r.id}`,s):(t.add(r.id),$.add({...s,id:`shared:${r.id}`}))}},r=Z.subscribe(n),i=ht;return document.addEventListener(`visibilitychange`,i),i(),n(),()=>{e=!1,r(),document.removeEventListener(`visibilitychange`,i),Z.setPaused(`web-hidden`,!1);for(let e of t)$.close(`shared:${e}`)}}function ht(){return Z.setPaused(`web-hidden`,document.hidden)}function gt(e){return e.primary}var _t=class extends o()(`ClipboardApiUnavailableError`,{target:v}){get message(){return`Clipboard API is unavailable while copying ${this.target}.`}},vt=class extends o()(`ClipboardWriteError`,{target:v,cause:u()}){get message(){return`Failed to copy ${this.target} to the clipboard.`}},yt=class extends o()(`ClipboardReadUnavailableError`,{target:v}){get message(){return`Clipboard API is unavailable while reading ${this.target}.`}},bt=class extends o()(`ClipboardReadError`,{target:v,cause:u()}){get message(){return`Failed to read ${this.target} from the clipboard.`}};function xt(e,t){if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let n=document.createElement(`textarea`);n.value=e,n.setAttribute(`readonly`,``),n.setAttribute(`aria-hidden`,`true`),n.style.position=`fixed`,n.style.top=`0`,n.style.left=`0`,n.style.opacity=`0`,n.style.fontSize=`16px`;let r=document.activeElement,i=n=>{if(t&&n.clipboardData){n.clipboardData.setData(`text/plain`,e);for(let[e,r]of Object.entries(t))n.clipboardData.setData(e,r);n.preventDefault()}};document.body.appendChild(n),n.addEventListener(`copy`,i);try{return n.focus({preventScroll:!0}),n.select(),n.setSelectionRange(0,e.length),document.execCommand(`copy`)}catch{return!1}finally{n.removeEventListener(`copy`,i),n.remove();let e=r?.focus;typeof e==`function`&&e.call(r)}}async function St(e,t=`text`,n){if(typeof window>`u`)throw new _t({target:t});if(!e)return!1;n&&=Object.fromEntries(Object.entries(n).filter(([e])=>e!==`text/plain`));let r=n?.[oe];if(r&&(n={...n,"text/html":re(e,r,n?.[`text/html`])}),typeof navigator>`u`||!navigator.clipboard?.writeText){if(xt(e,n))return!0;throw new _t({target:t})}try{if(n&&typeof ClipboardItem<`u`&&navigator.clipboard.write)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),...Object.fromEntries(Object.entries(n).map(([e,t])=>[e,new Blob([t],{type:e})]))})]),!0}catch{let t=n[`text/html`];if(t)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),"text/html":new Blob([t],{type:`text/html`})})]),!0}catch{}}return await navigator.clipboard.writeText(e),!0}catch(e){throw new vt({target:t,cause:e})}}async function Ct(e=`text`){if(typeof window>`u`||typeof navigator>`u`||!navigator.clipboard?.readText)throw new yt({target:e});try{return await navigator.clipboard.readText()}catch(t){throw new bt({target:e,cause:t})}}function wt({timeout:e=2e3,target:t=`text`,onCopy:n,onError:r,extraFlavors:i}={}){let[a,o]=G.useState(!1),s=G.useRef(null),c=G.useRef(n),l=G.useRef(r),u=G.useRef(t),d=G.useRef(e);c.current=n,l.current=r;let f=G.useRef(i);u.current=t,d.current=e,f.current=i;let p=G.useCallback((e,t)=>{St(e,u.current,f.current).then(e=>{e&&(s.current&&clearTimeout(s.current),o(!0),c.current?.(t),d.current!==0&&(s.current=setTimeout(()=>{o(!1),s.current=null},d.current)))},e=>{console.error(e),l.current?.(e,t)})},[]);return G.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),{copyToClipboard:p,isCopied:a}}function Tt(e){return e===`live`}function Et(e){return e.draftThreadExists||e.serverThreadExists&&!e.serverThreadDeleted?`ready`:e.bootstrapComplete?`missing`:`loading`}function Dt(e){return{environmentId:e.environmentId,threadId:e.threadId}}function Ot(e){return{draftId:e}}function kt(e){return!e.environmentId||!e.threadId?null:y(e.environmentId,e.threadId)}function At(e){return e.environmentId&&e.threadId?{kind:`server`,threadRef:y(e.environmentId,e.threadId)}:e.draftId?{kind:`draft`,draftId:e.draftId}:null}function jt(e,t){return e?.kind===`server`?e.threadRef:e?.kind!==`draft`||!t?.promotedTo?null:t.promotedTo}function Mt(e){if(typeof e!=`object`||!e||!(`children`in e))return!1;let t=e.children;return t!=null&&t!==!1&&t!==``}function Nt(e,t){return t<=1?!1:e>0}function Pt(e){let t=0,n=0,r=0,i=0,a=e.map(e=>{let a=Ft(e.height);if(e.transitionStatus===`ending`){let r={toast:e,visibleIndex:t,offsetY:n};return n+=a,t+=1,r}let o={toast:e,visibleIndex:r,offsetY:i};return n+=a,t+=1,i+=a,r+=1,o});return{frontmostHeight:Ft(e.find(e=>e.transitionStatus!==`ending`)?.height),items:a}}function Ft(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function It(e,t){if(e?.threadRef)return t!==null&&e.threadRef.environmentId===t.environmentId&&e.threadRef.threadId===t.threadId;let n=e?.threadId;return!n||t?.threadId===n}var $=lt(),Lt=lt(),Rt=new Map,zt={error:s,info:x,loading:ye,success:te,warning:p},Bt=180;function Vt(e,t){if(e===`error`&&typeof t==`string`&&!(t.length<Bt))return`line-clamp-4`}var Ht=`absolute z-20 -top-1.5 -right-1.5`,Ut=V(`inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-full border border-border/60 bg-popover/92 text-muted-foreground shadow-sm outline-none backdrop-blur-sm`,`transition-[color,background-color,box-shadow] hover:bg-popover hover:text-foreground`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`);function Wt(e,t,n){n?.(),e.close(t)}function Gt(e){let t=(0,Q.c)(13),{text:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={target:`error-message`},t[0]=r):r=t[0];let{copyToClipboard:i,isCopied:a}=wt(r),o=a?`Copied error`:`Copy error`,s;t[1]!==i||t[2]!==n?(s=()=>i(n),t[1]=i,t[2]=n,t[3]=s):s=t[3];let c=a&&`text-success`,l;t[4]===c?l=t[5]:(l=V(`size-3`,c),t[4]=c,t[5]=l);let u=a?Se:we,d;t[6]!==l||t[7]!==u?(d=(0,q.jsx)(xe,{className:l,icon:u}),t[6]=l,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==o||t[10]!==s||t[11]!==d?(f=(0,q.jsx)(B,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":o,className:`[--control-icon-color:currentColor] rounded-md text-muted-foreground/80 hover:bg-transparent hover:text-muted-foreground`,onClick:s,children:d}),t[9]=o,t[10]=s,t[11]=d,t[12]=f):f=t[12],f}var Kt=`mt-2 max-h-40 min-h-0 overflow-y-auto overscroll-contain pr-0.5 select-text`;function qt(e){let t=(0,Q.c)(13),{children:n,labels:r}=e,[i,a]=(0,G.useState)(!1),o=r.expand??`Show details`,s=r.collapse??`Hide details`,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>a(Jt),t[0]=c):c=t[0];let l=i?W:Ce,u;t[1]===l?u=t[2]:(u=(0,q.jsx)(xe,{className:`size-3.5 shrink-0 opacity-80`,icon:l,strokeWidth:2.25}),t[1]=l,t[2]=u);let d=i?s:o,f;t[3]!==i||t[4]!==u||t[5]!==d?(f=(0,q.jsxs)(`button`,{"aria-expanded":i,className:`inline-flex cursor-pointer items-center gap-1 rounded-md py-0.5 text-left text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,onClick:c,type:`button`,children:[u,d]}),t[3]=i,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;t[7]!==n||t[8]!==i?(p=i?(0,q.jsx)(`div`,{className:Kt,children:n}):null,t[7]=n,t[8]=i,t[9]=p):p=t[9];let m;return t[10]!==f||t[11]!==p?(m=(0,q.jsxs)(`div`,{className:`min-w-0`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}function Jt(e){return!e}function Yt(e){let t=(0,Q.c)(36),{toastData:n,toastDescription:r,toastType:i}=e,a=n?.expandableContent,o;t[0]===n?.expandableLabels?o=t[1]:(o=n?.expandableLabels??{},t[0]=n?.expandableLabels,t[1]=o);let s=o,c=n?.expandableDescriptionTrigger??!1,l;t[2]!==r||t[3]!==i?(l=V(`min-w-0 select-text wrap-break-word text-muted-foreground`,Vt(i,r)),t[2]=r,t[3]=i,t[4]=l):l=t[4];let u=l,[d,f]=(0,G.useState)(!1);if(!a){let e;return t[5]===u?e=t[6]:(e=(0,q.jsx)($e,{className:u,"data-slot":`toast-description`}),t[5]=u,t[6]=e),e}if(!c){let e;t[7]===u?e=t[8]:(e=(0,q.jsx)($e,{className:u,"data-slot":`toast-description`}),t[7]=u,t[8]=e);let n;t[9]!==a||t[10]!==s?(n=(0,q.jsx)(qt,{labels:s,children:a}),t[9]=a,t[10]=s,t[11]=n):n=t[11];let r;return t[12]!==e||t[13]!==n?(r=(0,q.jsxs)(q.Fragment,{children:[e,n]}),t[12]=e,t[13]=n,t[14]=r):r=t[14],r}let p=s.expand??`Show details`,m=s.collapse??`Hide details`,h;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>f(Xt),t[15]=h):h=t[15];let g=h,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g())},t[16]=_):_=t[16];let v=_,y=d?m:p,b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=V(`group flex min-w-0 w-full cursor-pointer select-none items-start gap-1.5 rounded-sm text-left outline-none ring-offset-background`,`transition-colors hover:bg-muted/40`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`),t[17]=b):b=t[17];let x;t[18]!==r||t[19]!==i?(x=V(`min-w-0 select-none wrap-break-word text-muted-foreground`,Vt(i,r),`underline-offset-2 decoration-muted-foreground/60 group-hover:underline`),t[18]=r,t[19]=i,t[20]=x):x=t[20];let S;t[21]===x?S=t[22]:(S=(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,q.jsx)($e,{className:x,"data-slot":`toast-description`})}),t[21]=x,t[22]=S);let C=d?W:Ce,w;t[23]===C?w=t[24]:(w=(0,q.jsx)(xe,{"aria-hidden":!0,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground opacity-80`,icon:C,strokeWidth:2.25}),t[23]=C,t[24]=w);let T;t[25]!==d||t[26]!==w||t[27]!==y||t[28]!==S?(T=(0,q.jsxs)(`div`,{"aria-label":y,"aria-expanded":d,className:b,onClick:g,onKeyDown:v,role:`button`,tabIndex:0,children:[S,w]}),t[25]=d,t[26]=w,t[27]=y,t[28]=S,t[29]=T):T=t[29];let E;t[30]!==a||t[31]!==d?(E=d?(0,q.jsx)(`div`,{className:Kt,children:a}):null,t[30]=a,t[31]=d,t[32]=E):E=t[32];let D;return t[33]!==T||t[34]!==E?(D=(0,q.jsxs)(q.Fragment,{children:[T,E]}),t[33]=T,t[34]=E,t[35]=D):D=t[35],D}function Xt(e){return!e}function Zt(e){let t=e.type?zt[e.type]:null,n=Mt(e.actionProps)&&e.data?.actionLayout===`stacked-end`,r=e.data?.actionVariant??`default`,i=e.data?.secondaryActionVariant??`outline`,a=e.type===`error`&&typeof e.description==`string`&&!e.data?.hideCopyButton?e.description:null,o=(e.data?.additionalActions?.length??0)>0,s=e.data?.secondaryActionProps!==void 0,c=a!==null||Mt(e.actionProps)||o||s;return{Icon:t,stackedActionLayout:n,actionVariant:r,secondaryActionVariant:i,copyErrorText:a,hasTrailingControls:c,inlineContentEndPad:c?`pr-6`:`pr-10`}}function Qt(e){let t=(0,Q.c)(38),{stackedActionLayout:n,Icon:r,copyErrorText:i,actionProps:a,actionVariant:o,secondaryActionVariant:s,hasTrailingControls:c,toastData:l,toastDescription:u,toastType:d}=e,f;t[0]===l?.additionalActions?f=t[1]:(f=l?.additionalActions??[],t[0]=l?.additionalActions,t[1]=f);let p=f,m=l?.secondaryActionProps,h=l?.leadingIcon,g;t[2]===m?g=t[3]:(g=m??{},t[2]=m,t[3]=g);let _,v;t[4]===g?(_=t[5],v=t[6]):({className:_,...v}=g,t[4]=g,t[5]=_,t[6]=v);let y=n?`pr-5`:`flex-1`,b;t[7]===y?b=t[8]:(b=V(`flex min-h-0 min-w-0 flex-col gap-0.5`,y),t[7]=y,t[8]=b);let x;t[9]!==r||t[10]!==h?(x=h?(0,q.jsx)(`div`,{className:`flex h-lh w-4 shrink-0 items-center justify-center`,"data-slot":`toast-icon`,children:h}):r?(0,q.jsx)(`div`,{className:`[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`toast-icon`,children:(0,q.jsx)(r,{className:`in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80`})}):null,t[9]=r,t[10]=h,t[11]=x):x=t[11];let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,q.jsx)(et,{className:`min-w-0 wrap-break-word font-medium`,"data-slot":`toast-title`}),t[12]=S):S=t[12];let C;t[13]===x?C=t[14]:(C=(0,q.jsxs)(`div`,{className:`flex min-w-0 gap-2`,children:[x,S]}),t[13]=x,t[14]=C);let w;t[15]!==l||t[16]!==u||t[17]!==d?(w=(0,q.jsx)(Yt,{toastData:l,toastDescription:u,toastType:d}),t[15]=l,t[16]=u,t[17]=d,t[18]=w):w=t[18];let T;t[19]!==b||t[20]!==C||t[21]!==w?(T=(0,q.jsxs)(`div`,{className:b,children:[C,w]}),t[19]=b,t[20]=C,t[21]=w,t[22]=T):T=t[22];let E;t[23]!==a||t[24]!==o||t[25]!==p||t[26]!==i||t[27]!==c||t[28]!==_||t[29]!==m||t[30]!==v||t[31]!==s||t[32]!==n||t[33]!==l?.sharedToastId?(E=c?(0,q.jsxs)(`div`,{className:V(`flex items-center gap-1.5`,n?`w-full justify-end`:`shrink-0`),children:[i===null?null:(0,q.jsx)(Gt,{text:i}),p.map(e=>{let{id:t,props:n}=e,{className:r,...i}=n;return(0,G.createElement)(B,{...i,className:r,key:t,size:`xs`,type:`button`,variant:s})}),m?(0,q.jsx)(B,{...v,className:_,size:`xs`,type:`button`,variant:l?.sharedToastId?`solid-neutral`:s}):null,Mt(a)?(0,q.jsx)(nt,{className:V(ce({size:`xs`,variant:o}),`shrink-0`),"data-slot":`toast-action`,children:a?.children}):null]}):null,t[23]=a,t[24]=o,t[25]=p,t[26]=i,t[27]=c,t[28]=_,t[29]=m,t[30]=v,t[31]=s,t[32]=n,t[33]=l?.sharedToastId,t[34]=E):E=t[34];let D;return t[35]!==E||t[36]!==T?(D=(0,q.jsxs)(q.Fragment,{children:[T,E]}),t[35]=E,t[36]=T,t[37]=D):D=t[37],D}function $t(){let e=(0,Q.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={strict:!1,select:en},e[0]=t):t=e[0];let n=be(t),r;e[1]===n?r=e[2]:(r=e=>n?.kind===`draft`?e.getDraftSession(n.draftId):null,e[1]=n,e[2]=r);let i=d(r),a;bb0:{if(n?.kind===`server`){a=n.threadRef;break bb0}if(n?.kind===`draft`&&i){let t;e[3]!==i.environmentId||e[4]!==i.threadId?(t={environmentId:i.environmentId,threadId:i.threadId},e[3]=i.environmentId,e[4]=i.threadId,e[5]=t):t=e[5],a=t;break bb0}a=null}return a}function en(e){return At(e)}function tn(e){let t=(0,Q.c)(4),{toastId:n,dismissAfterVisibleMs:r}=e,i,a;return t[0]!==r||t[1]!==n?(i=()=>{if(!r||r<=0||typeof window>`u`||typeof document>`u`)return;let e=Rt.get(n)??r,t=null,i=null,a=!1,o=()=>{i!==null&&(window.clearTimeout(i),i=null)},s=()=>{a||(a=!0,Rt.delete(n),$.close(n))},c=()=>{t!==null&&(e=Math.max(0,e-(Date.now()-t)),t=null,o(),Rt.set(n,e))},l=()=>{if(!(a||t!==null)){if(e<=0){s();return}t=Date.now(),o(),i=window.setTimeout(()=>{e=0,t=null,s()},e)}},u=()=>{if(document.visibilityState===`visible`&&document.hasFocus()){l();return}c()};return u(),document.addEventListener(`visibilitychange`,u),window.addEventListener(`focus`,u),window.addEventListener(`blur`,u),()=>{document.removeEventListener(`visibilitychange`,u),window.removeEventListener(`focus`,u),window.removeEventListener(`blur`,u),c(),o()}},a=[r,n],t[0]=r,t[1]=n,t[2]=i,t[3]=a):(i=t[2],a=t[3]),(0,G.useEffect)(i,a),null}function nn(e){let t=(0,Q.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,position:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`top-center`:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(pt,{}),t[4]=o):o=t[4];let s;t[5]===a?s=t[6]:(s=(0,q.jsx)(rn,{position:a}),t[5]=a,t[6]=s);let c;return t[7]!==n||t[8]!==r||t[9]!==s?(c=(0,q.jsxs)(ze,{toastManager:$,...r,children:[o,n,s]}),t[7]=n,t[8]=r,t[9]=s,t[10]=c):c=t[10],c}function rn(e){let t=(0,Q.c)(19),{position:n}=e,{toasts:r}=ct(),i=$t(),a;t[0]===n?a=t[1]:(a=n.startsWith(`top`),t[0]=n,t[1]=a);let o=a,s;t[2]===i?s=t[3]:(s=e=>It(e.data,i),t[2]=i,t[3]=s);let c=Pt(r.filter(s)),l,u;t[4]===r?(l=t[5],u=t[6]):(l=()=>{let e=new Set(r.map(an));for(let t of Rt.keys())e.has(t)||Rt.delete(t)},u=[r],t[4]=r,t[5]=l,t[6]=u),(0,G.useEffect)(l,u);let d=ut,f=ut,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=V(`fixed z-100 mx-auto flex w-[calc(100%-var(--toast-inset)*2)] max-w-90 [--toast-header-offset:var(--workspace-topbar-height)] [--toast-inset:--spacing(4)] sm:[--toast-inset:--spacing(8)]`,`data-[position*=top]:top-[calc(var(--toast-inset)+var(--toast-header-offset))]`,`data-[position*=bottom]:bottom-(--toast-inset)`,`data-[position*=left]:left-(--toast-inset)`,`data-[position*=right]:right-(--toast-inset)`,`data-[position*=center]:-translate-x-1/2 data-[position*=center]:left-1/2`),t[7]=p):p=t[7];let m=`${c.frontmostHeight}px`,h;t[8]===m?h=t[9]:(h={"--toast-frontmost-height":m},t[8]=m,t[9]=h);let g=h,_=c.items.map(e=>{let{toast:t,visibleIndex:r,offsetY:i}=e,a=Nt(r,c.items.length),s=Zt(t),{stackedActionLayout:l,inlineContentEndPad:u}=s;return(0,q.jsxs)(Ze,{className:V(`dropdown-glass absolute z-[calc(9999-var(--toast-index))] w-full overflow-visible select-none rounded-xl text-popover-foreground shadow-lg shadow-black/10 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s] motion-reduce:transition-none`,`data-[position*=right]:right-0 data-[position*=right]:left-auto`,`data-[position*=left]:right-auto data-[position*=left]:left-0`,`data-[position*=center]:right-0 data-[position*=center]:left-0`,`data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-top`,`data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-bottom`,`after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full`,`data-[position*=top]:after:top-full`,`data-[position*=bottom]:after:bottom-full`,r>0?`not-data-expanded:[--toast-calc-height:var(--toast-frontmost-height)] data-expanded:[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`:`[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`,`[--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]`,r>0?`not-data-expanded:h-(--toast-calc-height) data-expanded:h-auto`:`h-auto`,`data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]`,`data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]`,`data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-limited:opacity-0`,`data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]`,`data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]`,`data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]`,`data-[position*=top]:data-[position*=right]:data-starting-style:transform-[translateX(calc(100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:opacity-0`,`data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(var(--toast-calc-offset-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`),"data-position":n,onPointerEnter:()=>{t.data?.sharedToastId&&Z.pause(t.data.sharedToastId,`pointer`)},onPointerLeave:()=>{t.data?.sharedToastId&&Z.resume(t.data.sharedToastId,`pointer`)},onFocusCapture:()=>{t.data?.sharedToastId&&Z.pause(t.data.sharedToastId,`focus`)},onBlurCapture:e=>{t.data?.sharedToastId&&!e.currentTarget.contains(e.relatedTarget)&&Z.resume(t.data.sharedToastId,`focus`)},style:{"--toast-index":r,"--toast-offset-y":`${i}px`},swipeDirection:n.includes(`center`)?[o?`up`:`down`]:n.includes(`left`)?[`left`,o?`up`:`down`]:[`right`,o?`up`:`down`],toast:t,children:[(0,q.jsx)(tn,{dismissAfterVisibleMs:t.data?.dismissAfterVisibleMs,toastId:t.id}),!t.data?.sharedToastId&&(0,q.jsx)(`div`,{className:Ht,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Ut,"data-slot":`toast-close`,onClick:()=>Wt($,t.id,t.data?.onClose),type:`button`,children:(0,q.jsx)(j,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsxs)(Qe,{className:V(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm transition-opacity duration-250 [overflow-x:clip] data-expanded:opacity-100`,l?`flex flex-col gap-2 py-2.5 pr-3.5`:V(`py-3`,`flex items-center justify-between gap-2`,t.data?.sharedToastId?`pr-2`:u),a&&`not-data-expanded:pointer-events-none not-data-expanded:opacity-0`),children:[(0,q.jsx)(Qt,{...s,actionProps:t.actionProps,toastData:t.data,toastDescription:t.description,toastType:t.type}),t.data?.sharedToastId&&(0,q.jsx)(B,{size:`icon-xs`,variant:`ghost`,"aria-label":`Dismiss notification`,onClick:()=>Z.dismiss(t.data.sharedToastId),children:(0,q.jsx)(j,{})})]})]},t.id)}),v;t[10]!==n||t[11]!==g||t[12]!==_||t[13]!==f.Viewport||t[14]!==p?(v=(0,q.jsx)(f.Viewport,{className:p,"data-position":n,"data-slot":`toast-viewport`,style:g,children:_}),t[10]=n,t[11]=g,t[12]=_,t[13]=f.Viewport,t[14]=p,t[15]=v):v=t[15];let y;return t[16]!==v||t[17]!==d.Portal?(y=(0,q.jsx)(d.Portal,{"data-slot":`toast-portal`,children:v}),t[16]=v,t[17]=d.Portal,t[18]=y):y=t[18],y}function an(e){return e.id}function on(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,q.jsx)(sn,{}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,q.jsxs)(ze,{toastManager:Lt,...r,children:[n,i]}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function sn(){let e=(0,Q.c)(7),{toasts:t}=ct(),n=$t(),r;if(e[0]!==n||e[1]!==t){let i;e[3]===n?i=e[4]:(i=e=>It(e.data,n),e[3]=n,e[4]=i),r=t.filter(i).map(cn),e[0]=n,e[1]=t,e[2]=r}else r=e[2];let i;return e[5]===r?i=e[6]:(i=(0,q.jsx)(rt,{"data-slot":`toast-portal-anchored`,children:(0,q.jsx)(Ve,{className:`outline-none`,"data-slot":`toast-viewport-anchored`,children:r})}),e[5]=r,e[6]=i),i}function cn(e){let t=e.data?.tooltipStyle??!1,n=e.positionerProps,r=Zt(e),{stackedActionLayout:i,inlineContentEndPad:a}=r;return n?.anchor?(0,q.jsx)(ot,{className:`z-100 max-w-[min(--spacing(64),var(--available-width))]`,"data-slot":`toast-positioner`,sideOffset:n.sideOffset??4,toast:e,children:(0,q.jsx)(Ze,{className:V(`dropdown-glass relative overflow-visible text-balance text-popover-foreground text-xs shadow-xl shadow-black/25 transition-[scale,opacity] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0`,t?`rounded-md`:`rounded-lg`),"data-slot":`toast-popup`,toast:e,children:t?(0,q.jsx)(Qe,{className:`pointer-events-auto px-2 py-1`,children:(0,q.jsx)(et,{"data-slot":`toast-title`})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:Ht,children:(0,q.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Ut,"data-slot":`toast-close`,onClick:()=>Wt(Lt,e.id,e.data?.onClose),type:`button`,children:(0,q.jsx)(j,{className:`size-3`,strokeWidth:2.25})})}),(0,q.jsx)(Qe,{className:V(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm [overflow-x:clip]`,i?`flex flex-col gap-2 py-2.5 pr-3.5`:V(`py-3`,`flex items-center justify-between gap-1.5`,a)),children:(0,q.jsx)(Qt,{...r,actionProps:e.actionProps,toastData:e.data,toastDescription:e.description,toastType:e.type})})]})})},e.id):null}export{Ee as _,Ot as a,jt as c,At as d,Ct as f,Ae as g,Z as h,$ as i,kt as l,St as m,nn as n,Dt as o,wt as p,Lt as r,Tt as s,on as t,Et as u,De as v};
|
|
2
|
+
//# sourceMappingURL=toast-e2DHftFl.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ca as n,Eo as r,Lu as i,NE as a,Na as o,Ta as s,Va as c,io as l,lE as u,mr as d,t as f,vo as p}from"./utils-
|
|
2
|
-
//# sourceMappingURL=toggle-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ca as n,Eo as r,Lu as i,NE as a,Na as o,Ta as s,Va as c,io as l,lE as u,mr as d,t as f,vo as p}from"./utils-BgVDKR83.js";var m=e(t()),h=m.createContext(void 0);function g(e=!0){let t=m.useContext(h);if(t===void 0&&!e)throw Error(r(7));return t}var _=e(u()),v=m.forwardRef(function(e,t){let{className:r,defaultPressed:i=!1,disabled:a=!1,form:u,onPressedChange:f,pressed:m,render:h,type:v,value:y,nativeButton:b=!0,style:x,...S}=e,C=s(y||void 0),w=g(),T=w?.value??[],E=w?void 0:i,D=(a||w?.disabled)??!1,[O,k]=c({controlled:w?C!==void 0&&T.indexOf(C)>-1:m,default:E,name:`Toggle`,state:`pressed`}),{getButtonProps:A,buttonRef:j}=o({disabled:D,native:b}),M={disabled:D,pressed:O},N=[j,t],P=[{"aria-pressed":O,onClick(e){let t=!O,r=n(l,e.nativeEvent);C&&w?.setGroupValue?.(C,t,r),f?.(t,r),!r.isCanceled&&k(t)}},S,A],F=p(`button`,e,{enabled:!w,state:M,ref:N,props:P});return w?(0,_.jsx)(d,{tag:`button`,render:h,className:r,style:x,state:M,refs:N,props:P}):F}),y=a(),b=i(`[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base text-foreground outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 aria-disabled:opacity-64 data-pressed:bg-input/64 data-pressed:text-accent-foreground sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{compact:`h-7 min-w-7 rounded-md px-[calc(--spacing(1)-1px)] text-xs before:rounded-[calc(var(--radius-md)-1px)] [&_svg:not([class*='size-'])]:size-3.5`,default:`h-9 min-w-9 px-[calc(--spacing(2)-1px)] sm:h-8 sm:min-w-8`,lg:`h-10 min-w-10 px-[calc(--spacing(2.5)-1px)] sm:h-9 sm:min-w-9`,segmented:`h-6 min-w-0 rounded-md px-2.5 text-xs before:rounded-[calc(var(--radius-md)-1px)]`,sm:`h-8 min-w-8 px-[calc(--spacing(1.5)-1px)] sm:h-7 sm:min-w-7`,xs:`h-7 min-w-7 px-[calc(--spacing(1)-1px)] sm:h-6 sm:min-w-6 rounded-md`},variant:{default:`border-transparent`,pill:`border-transparent rounded-full px-3 font-normal text-muted-foreground data-pressed:text-foreground`,ghost:`border-transparent text-foreground shadow-none [:disabled,:active,[data-pressed]]:shadow-none before:shadow-none data-pressed:bg-accent data-pressed:text-accent-foreground disabled:opacity-100 disabled:text-muted-foreground disabled:[&_svg]:opacity-100`,outline:`border-input bg-background not-dark:bg-clip-padding shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:data-pressed:bg-input dark:hover:bg-input/64 dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] dark:not-disabled:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/2%)] [:disabled,:active,[data-pressed]]:shadow-none`,segmented:`border-transparent text-muted-foreground shadow-none transition-colors before:shadow-none hover:bg-background/55 hover:text-foreground data-pressed:bg-background data-pressed:text-foreground data-pressed:shadow-xs/10 dark:hover:bg-input/32 dark:data-pressed:bg-input/72`}}});function x(e){let t=(0,y.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:a,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]!==n||t[6]!==i||t[7]!==a?(o=f(b({className:n,size:i,variant:a})),t[5]=n,t[6]=i,t[7]=a,t[8]=o):o=t[8];let s;return t[9]!==r||t[10]!==o?(s=(0,_.jsx)(v,{className:o,"data-slot":`toggle`,...r}),t[9]=r,t[10]=o,t[11]=s):s=t[11],s}export{h as n,x as t};
|
|
2
|
+
//# sourceMappingURL=toggle-D4IMx5jG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ia as n,NE as r,Va as i,Zr as a,lE as o,t as s,vo as c,xo as l}from"./utils-
|
|
2
|
-
//# sourceMappingURL=toggle-group-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ia as n,NE as r,Va as i,Zr as a,lE as o,t as s,vo as c,xo as l}from"./utils-BgVDKR83.js";import{t as u}from"./CompositeRoot-r9p4LoiQ.js";import{n as d,t as f}from"./toggle-D4IMx5jG.js";var p=e(t()),m=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),h=e(o()),g={multiple(e){return e?{[m.multiple]:``}:null}},_=p.forwardRef(function(e,t){let{defaultValue:r,disabled:o=!1,loopFocus:s=!0,onValueChange:f,orientation:m=`horizontal`,multiple:_=!1,value:v,className:y,render:b,style:x,...S}=e,C=a(!0),w=p.useMemo(()=>v!==void 0||r!==void 0,[v,r]),T=(C?.disabled??!1)||o,[E,D]=i({controlled:v,default:v===void 0?r??l:void 0,name:`ToggleGroup`,state:`value`}),O=n((e,t,n)=>{let r;_?(r=E.slice(),t?r.push(e):r.splice(E.indexOf(e),1)):r=t?[e]:[],f?.(r,n),!n.isCanceled&&D(r)}),k={disabled:T,multiple:_,orientation:m},A=p.useMemo(()=>({disabled:T,orientation:m,setGroupValue:O,value:E,isValueInitialized:w}),[T,m,O,E,w]),j={role:`group`},M=c(`div`,e,{enabled:!!C,state:k,ref:t,props:[j,S],stateAttributesMapping:g});return(0,h.jsx)(d.Provider,{value:A,children:C?M:(0,h.jsx)(u,{render:b,className:y,style:x,state:k,refs:[t],props:[j,S],stateAttributesMapping:g,loopFocus:s,enableHomeAndEndKeys:!0,orientation:m})})}),v=r(),y=p.createContext({size:`default`,variant:`default`});function b({className:e,variant:t=`segmented`,size:n=t===`segmented`?`segmented`:`default`,orientation:r=`horizontal`,children:i,...a}){let o=p.useMemo(()=>({size:n,variant:t}),[n,t]);return(0,h.jsx)(_,{className:s(`flex w-fit *:focus-visible:z-10 dark:*:[[data-slot=separator]:has(+[data-slot=toggle]:hover)]:before:bg-input/64 dark:*:[[data-slot=separator]:has(+[data-slot=toggle][data-pressed])]:before:bg-input dark:*:[[data-slot=toggle]:hover+[data-slot=separator]]:before:bg-input/64 dark:*:[[data-slot=toggle][data-pressed]+[data-slot=separator]]:before:bg-input`,r===`horizontal`?`*:pointer-coarse:after:min-w-auto`:`*:pointer-coarse:after:min-h-auto`,t===`segmented`?`gap-0.5 rounded-lg bg-input/40 p-0.5`:t==="default"?`gap-0.5`:r===`horizontal`?`*:not-first:not-data-[slot=separator]:before:-start-[0.5px] *:not-last:not-data-[slot=separator]:before:-end-[0.5px] *:not-first:rounded-s-none *:not-last:rounded-e-none *:not-first:border-s-0 *:not-last:border-e-0 *:not-first:before:rounded-s-none *:not-last:before:rounded-e-none`:`*:not-first:not-data-[slot=separator]:before:-top-[0.5px] *:not-last:not-data-[slot=separator]:before:-bottom-[0.5px] flex-col *:not-first:rounded-t-none *:not-last:rounded-b-none *:not-first:border-t-0 *:not-last:border-b-0 *:not-first:before:rounded-t-none *:not-last:before:rounded-b-none *:data-[slot=toggle]:not-last:before:hidden dark:*:last:before:hidden dark:*:first:before:block`,e),"data-size":n,"data-slot":`toggle-group`,"data-variant":t,orientation:r,...a,children:(0,h.jsx)(y,{value:o,children:i})})}function x(e){let t=(0,v.c)(12),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,variant:o,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=p.use(y),c=o??s.variant,l=a??s.size,u;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==l||t[10]!==c?(u=(0,h.jsx)(f,{className:r,"data-size":l,"data-variant":c,size:l,variant:c,...i,children:n}),t[6]=n,t[7]=r,t[8]=i,t[9]=l,t[10]=c,t[11]=u):u=t[11],u}export{b as n,x as t};
|
|
2
|
+
//# sourceMappingURL=toggle-group-BWnqiNcg.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{AE as r,CE as i,DE as a,Dc as o,EE as s,Km as c,ME as l,NE as u,OE as d,SE as f,TE as p,Ym as m,_E as h,bE as g,dE as _,fE as v,gE as y,hE as b,jE as x,kE as S,lE as C,mE as w,pE as T,qm as E,r as D,t as ee,uE as O,vE as k,wE as te,xE as ne,yE as A}from"./utils-Dx_TSvdC.js";import{a as j,i as M,n as re,o as N,r as ie,s as ae,t as oe}from"./TooltipViewport-Daddx30c.js";import{t as se}from"./env-wK1YYxA8.js";var P=e(t((e=>{e.Check=[[`path`,{d:`M20 6 9 17l-5-5`}]],e.ChevronDown=[[`path`,{d:`m6 9 6 6 6-6`}]],e.ChevronRight=[[`path`,{d:`m9 18 6-6-6-6`}]],e.ChevronUp=[[`path`,{d:`m18 15-6-6-6 6`}]],e.ChevronsDownUp=[[`path`,{d:`m7 20 5-5 5 5`}],[`path`,{d:`m7 4 5 5 5-5`}]],e.ChevronsUpDown=[[`path`,{d:`m7 15 5 5 5-5`}],[`path`,{d:`m7 9 5-5 5 5`}]],e.Circle=[[`circle`,{cx:`12`,cy:`12`,r:`10`}]],e.CircleAlert=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]],e.CircleCheck=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`m9 12 2 2 4-4`}]],e.Code2=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]],e.Copy=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]],e.CornerUpRight=[[`path`,{d:`m15 14 5-5-5-5`}],[`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`}]],e.Eye=[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]],e.FoldVertical=[[`path`,{d:`M12 22v-6`}],[`path`,{d:`M12 8V2`}],[`path`,{d:`M4 12H2`}],[`path`,{d:`M10 12H8`}],[`path`,{d:`M16 12h-2`}],[`path`,{d:`M22 12h-2`}],[`path`,{d:`m15 19-3-3-3 3`}],[`path`,{d:`m15 5-3 3-3-3`}]],e.Folder=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]],e.FolderClosed=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}],[`path`,{d:`M2 10h20`}]],e.FolderOpen=[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`}]],e.Image=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}]],e.Link=[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}]],e.ListPlus=[[`path`,{d:`M16 5H3`}],[`path`,{d:`M11 12H3`}],[`path`,{d:`M16 19H3`}],[`path`,{d:`M18 9v6`}],[`path`,{d:`M21 12h-6`}]],e.Lock=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]],e.LockOpen=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`}]],e.Maximize2=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]],e.Minimize2=[[`path`,{d:`m14 10 7-7`}],[`path`,{d:`M20 10h-6V4`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M4 14h6v6`}]],e.Minus=[[`path`,{d:`M5 12h14`}]],e.Moon=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]],e.PanelLeft=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}]],e.PanelLeftClose=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}],[`path`,{d:`m16 15-3-3 3-3`}]],e.Plus=[[`path`,{d:`M5 12h14`}],[`path`,{d:`M12 5v14`}]],e.Sun=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]],e.Table2=[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`}]],e.Text=[[`path`,{d:`M21 5H3`}],[`path`,{d:`M15 12H3`}],[`path`,{d:`M17 19H3`}]],e.UnfoldVertical=[[`path`,{d:`M12 22v-6`}],[`path`,{d:`M12 8V2`}],[`path`,{d:`M4 12H2`}],[`path`,{d:`M10 12H8`}],[`path`,{d:`M16 12h-2`}],[`path`,{d:`M22 12h-2`}],[`path`,{d:`m15 19-3 3-3-3`}],[`path`,{d:`m15 5-3-3-3 3`}]],e.Volume2=[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`}]],e.VolumeOff=[[`path`,{d:`M16 9a5 5 0 0 1 .95 2.293`}],[`path`,{d:`M19.364 5.636a9 9 0 0 1 1.889 9.96`}],[`path`,{d:`m2 2 20 20`}],[`path`,{d:`m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11`}],[`path`,{d:`M9.828 4.172A.686.686 0 0 1 11 4.657v.686`}]]}))(),1),ce=c(P.Check,v),le=c(P.ChevronDown,T),ue=c(P.ChevronRight,w),de=c(P.ChevronUp,b),fe=c(P.ChevronsDownUp,null),pe=c(P.ChevronsUpDown,null),me=c(P.Circle,y),he=c(P.CircleAlert,_),ge=c(P.CircleCheck,r),_e=c(P.Code2,h),ve=c(P.Copy,k),ye=c(P.CornerUpRight,null),be=c(P.Eye,null),xe=c(P.FoldVertical,null),Se=c(P.Folder,A),Ce=c(P.FolderClosed,A),we=c(P.FolderOpen,g),Te=c(P.Image,ne),Ee=c(P.Link,f),De=c(P.ListPlus,null),Oe=c(P.Lock,null),ke=c(P.LockOpen,null),Ae=c(P.Maximize2,i),je=c(P.Minimize2,null),Me=c(P.Minus,te),Ne=c(P.Moon,p),Pe=c(P.PanelLeft,s),Fe=c(P.PanelLeftClose,null),Ie=c(P.Plus,O),Le=c(P.Sun,a),Re=c(P.Table2,d),ze=c(P.Text,S),Be=c(P.UnfoldVertical,null),Ve=c(P.Volume2,x),He=c(P.VolumeOff,l),F=u(),Ue=`MmLlHhVvCcSsQqTtAaZz`;function We(e){let t=[],n=e.length,r=0,i=0,a=0,o=0,s=0,c=null,l=``,u=0,d=0,f=``,p=!1,m=e=>{throw Error(`morphicons: ${e} at d[${r}]`)},h=e=>e>=48&&e<=57,g=()=>{for(;r<n;){let t=e.charCodeAt(r);if(t===32||t===9||t===10||t===13||t===12||t===44)r++;else break}},_=()=>{g();let t=r;r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(r<n&&e[r]===`.`)for(r++;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(i||m(`expected number`),r<n&&(e[r]===`e`||e[r]===`E`)){let t=r;r++,r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;i||(r=t)}return Number(e.slice(t,r))},v=()=>{g();let t=e[r];return t===`0`||t===`1`?(r++,+(t===`1`)):m(`expected arc flag (0|1)`)},y=()=>(p||m(`path must start with M/m`),c||(c={x0:i,y0:a,segs:[],closed:!1},t.push(c)),c),b=!1,x=()=>_()+(b?i:0),S=()=>_()+(b?a:0);for(;g(),!(r>=n);){let n=e[r];switch(Ue.includes(n)?(l=n,r++):l===``?m(`path must start with M/m`):l===`M`?l=`L`:l===`m`?l=`l`:(l===`Z`||l===`z`)&&m(`stray data after Z`),b=l>=`a`,b?l.toUpperCase():l){case`M`:{p=!0;let e=x(),n=S();i=e,a=n,o=e,s=n,c={x0:e,y0:n,segs:[],closed:!1},t.push(c),f=``;break}case`L`:{let e=x(),t=S();y().segs.push([`L`,e,t]),i=e,a=t,f=``;break}case`H`:{let e=x();y().segs.push([`L`,e,a]),i=e,f=``;break}case`V`:{let e=S();y().segs.push([`L`,i,e]),a=e,f=``;break}case`C`:case`S`:{let e,t;l===`C`||l===`c`?(e=x(),t=S()):(e=f===`C`?2*i-u:i,t=f===`C`?2*a-d:a);let n=x(),r=S(),o=x(),s=S();y().segs.push([`C`,e,t,n,r,o,s]),u=n,d=r,i=o,a=s,f=`C`;break}case`Q`:case`T`:{let e,t;l===`Q`||l===`q`?(e=x(),t=S()):(e=f===`Q`?2*i-u:i,t=f===`Q`?2*a-d:a);let n=x(),r=S();y().segs.push([`Q`,e,t,n,r]),u=e,d=t,i=n,a=r,f=`Q`;break}case`A`:{let e=_(),t=_(),n=_(),r=v(),o=v(),s=x(),c=S();y().segs.push([`A`,e,t,n,r,o,s,c]),i=s,a=c,f=``;break}case`Z`:c&&=(c.closed=!0,null),i=o,a=s,f=``;break;default:m(`unsupported command "${l}"`)}}return t.filter(e=>e.segs.length>0)}function I(e){return String(Math.round(e*100)/100)}function Ge(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e[r],a=i.length/2;n+=`M${I(i[0])} ${I(i[1])}`;for(let e=1;e<a;e++)n+=`L${I(i[2*e])} ${I(i[2*e+1])}`;t?.[r]&&(n+=`Z`)}return n}function L(e){return String(Math.round(e*1e4)/1e4)}function Ke(e){let t=``;for(let{pts:n,closed:r}of e){t+=`M${L(n[0])} ${L(n[1])}`;for(let e=2;e<n.length;e+=6)t+=`C${L(n[e])} ${L(n[e+1])} ${L(n[e+2])} ${L(n[e+3])} ${L(n[e+4])} ${L(n[e+5])}`;r&&(t+=`Z`)}return t}var R=4/3*Math.tan(Math.PI/8),qe=2*Math.PI;function z(e,t){let n=[e,t],r=e,i=t,a=(e,t,a,o,s,c)=>{n.push(e,t,a,o,s,c),r=s,i=c},o=(e,t)=>{Math.abs(e-r)<1e-12&&Math.abs(t-i)<1e-12||a(r+(e-r)/3,i+(t-i)/3,r+2*(e-r)/3,i+2*(t-i)/3,e,t)};return[a,o,(e,t,n,o)=>{a(r+2/3*(e-r),i+2/3*(t-i),n+2/3*(e-n),o+2/3*(t-o),n,o)},(e,t,n,s,c,l,u)=>{let d=r,f=i;if(Math.abs(l-d)<1e-12&&Math.abs(u-f)<1e-12)return;let p=Math.abs(e),m=Math.abs(t);if(p<1e-12||m<1e-12){o(l,u);return}let h=n*Math.PI/180,g=Math.cos(h),_=Math.sin(h),v=(d-l)/2,y=(f-u)/2,b=g*v+_*y,x=-_*v+g*y,S=b*b/(p*p)+x*x/(m*m);if(S>1){let e=Math.sqrt(S);p*=e,m*=e}let C=p*p,w=m*m,T=b*b,E=x*x,D=(C*w-C*E-w*T)/(C*E+w*T);D<0&&(D=0);let ee=(s===c?-1:1)*Math.sqrt(D),O=ee*p*x/m,k=-ee*m*b/p,te=g*O-_*k+(d+l)/2,ne=_*O+g*k+(f+u)/2,A=Math.atan2((x-k)/m,(b-O)/p),j=Math.atan2((-x-k)/m,(-b-O)/p)-A;c===0&&j>0?j-=qe:c===1&&j<0&&(j+=qe);let M=Math.max(1,Math.ceil(Math.abs(j)/(Math.PI/2)-1e-9)),re=j/M,N=4/3*Math.tan(re/4),ie=e=>te+p*Math.cos(e)*g-m*Math.sin(e)*_,ae=e=>ne+p*Math.cos(e)*_+m*Math.sin(e)*g,oe=e=>-p*Math.sin(e)*g-m*Math.cos(e)*_,se=e=>-p*Math.sin(e)*_+m*Math.cos(e)*g,P=A,ce=d,le=f;for(let e=1;e<=M;e++){let t=A+re*e,n=e===M?l:ie(t),r=e===M?u:ae(t);a(ce+N*oe(P),le+N*se(P),n-N*oe(t),r-N*se(t),n,r),P=t,ce=n,le=r}},e=>(e&&o(n[0],n[1]),n.length<8?null:{pts:Float64Array.from(n),closed:e})]}function Je(e){let[t,n,r,i,a]=z(e.x0,e.y0);for(let a of e.segs)switch(a[0]){case`L`:n(a[1],a[2]);break;case`C`:t(a[1],a[2],a[3],a[4],a[5],a[6]);break;case`Q`:r(a[1],a[2],a[3],a[4]);break;case`A`:i(a[1],a[2],a[3],a[4],a[5],a[6],a[7])}return a(e.closed)}function B(e,t,n=0){let r=e[t];if(r===void 0)return n;let i=typeof r==`number`?r:Number(r);return Number.isFinite(i)?i:n}function Ye(e){let t=String(e??``).trim();if(!t)return[];let n=t.split(/[\s,]+/).map(Number);if(n.some(e=>!Number.isFinite(e)))throw Error(`morphicons: invalid points: "${t}"`);return n}function Xe(e,t){if(e.length<4)return null;let[,n,,,r]=z(e[0],e[1]);for(let t=2;t+1<e.length;t+=2)n(e[t],e[t+1]);return r(t)}function Ze(e,t,n,r){if(n<1e-12||r<1e-12)return null;let i=R*n,a=R*r,o=e+n,s=e-n,c=t+r,l=t-r,[u,,,,d]=z(o,t);return u(o,t+a,e+i,c,e,c),u(e-i,c,s,t+a,s,t),u(s,t-a,e-i,l,e,l),u(e+i,l,o,t-a,o,t),d(!0)}function Qe(e){let t=B(e,`x`),n=B(e,`y`),r=B(e,`width`),i=B(e,`height`);if(r<1e-12||i<1e-12)return null;let a=B(e,`rx`,NaN),o=B(e,`ry`,NaN);if(Number.isNaN(a)&&(a=Number.isNaN(o)?0:o),Number.isNaN(o)&&(o=a),a=Math.min(Math.max(a,0),r/2),o=Math.min(Math.max(o,0),i/2),a<1e-12||o<1e-12)return Xe([t,n,t+r,n,t+r,n+i,t,n+i],!0);let s=t+a,c=t+r-a,l=t+r,u=n+o,d=n+i-o,f=n+i,p=R*a,m=R*o,[h,g,,,_]=z(s,n);return g(c,n),h(c+p,n,l,u-m,l,u),g(l,d),h(l,d+m,c+p,f,c,f),g(s,f),h(s-p,f,t,d+m,t,d),g(t,u),h(t,u-m,s-p,n,s,n),_(!0)}function $e(e){let t=[],n=e=>{e&&t.push(e)};if(typeof e==`string`){for(let t of We(e))n(Je(t));return t}for(let[t,r]of e)switch(t){case`path`:for(let e of We(String(r.d??``)))n(Je(e));break;case`line`:{let[,e,,,t]=z(B(r,`x1`),B(r,`y1`));e(B(r,`x2`),B(r,`y2`)),n(t(!1));break}case`circle`:{let e=B(r,`r`);n(Ze(B(r,`cx`),B(r,`cy`),e,e));break}case`ellipse`:n(Ze(B(r,`cx`),B(r,`cy`),B(r,`rx`),B(r,`ry`)));break;case`rect`:n(Qe(r));break;case`polyline`:n(Xe(Ye(r.points),!1));break;case`polygon`:n(Xe(Ye(r.points),!0));break;default:throw Error(`morphicons: unsupported tag <${t}>`)}return t}function et(e){return e.items.map(()=>new Float64Array(2*e.n))}function tt(e,t,n){for(let r=0;r<e.items.length;r++){let i=e.items[r],a=n[r],o=e.n,s=Math.exp(i.lnSigma*t),c=i.theta*t,l=Math.cos(c)*s,u=Math.sin(c)*s,d,f;if(i.block){let[e,n]=i.block.off,[r,a]=i.block.drift;d=i.ca[0]+r*t+(e*l-n*u-e),f=i.ca[1]+a*t+(e*u+n*l-n)}else d=i.ca[0]+(i.cb[0]-i.ca[0])*t,f=i.ca[1]+(i.cb[1]-i.ca[1])*t;for(let e=0;e<o;e++){let n=i.aC[2*e]+(i.bT[2*e]-i.aC[2*e])*t,r=i.aC[2*e+1]+(i.bT[2*e+1]-i.aC[2*e+1])*t;a[2*e]=d+n*l-r*u,a[2*e+1]=f+n*u+r*l}}}var nt=.35,rt=.05,it=.005,at=8,ot=1e5;function V(e){let t=e.length/2,n=0,r=0;for(let i=0;i<t;i++)n+=e[2*i],r+=e[2*i+1];return[n/t,r/t]}function st(e){let t=e.length/2,n=0;for(let r=1;r<t;r++)n+=Math.hypot(e[2*r]-e[2*r-2],e[2*r+1]-e[2*r-1]);return n}function ct(e){let t=e.length/2,n=new Float64Array(2*t);for(let r=0;r<t;r++)n[2*r]=e[2*(t-1-r)],n[2*r+1]=e[2*(t-1-r)+1];return n}function lt(e,t){let n=e.length/2,r=new Float64Array(2*n);for(let i=0;i<n;i++){let a=(i+t)%n;r[2*i]=e[2*a],r[2*i+1]=e[2*a+1]}return r}function ut(e,t,n,r){let i=e.length/2,a=0,o=0,s=0,c=0,l=0,u=0;for(let d=0;d<i;d++){let i=e[2*d]-n[0],f=e[2*d+1]-n[1],p=t[2*d]-r[0],m=t[2*d+1]-r[1];a+=i*p,c+=f*m,o+=i*m,s+=f*p,l+=i*i+f*f,u+=p*p+m*m}let d=Math.atan2(o-s,a+c),f=Math.cos(d)*(a+c)+Math.sin(d)*(o-s),p=l>1e-12?f/l:1;p>1e-6||(p=1e-6);let m=Math.max(0,p*p*l-2*p*f+u),h=u>1e-12?Math.sqrt(m/u):0;return{theta:d,sigma:p,res:h}}function dt(e,t,n=!1,r=!1){let i=V(e),a=V(t),o=n&&!r,s=o?e:t,c=n||r?s.length/2:1,l=1/0,u=s,d={theta:0,sigma:1,res:0};for(let n=0;n<2;n++){let r=n?ct(s):s;for(let n=0;n<c;n++){let s=n?lt(r,n):r,c=o?ut(s,t,i,a):ut(e,s,i,a),f=c.res+rt*Math.abs(c.theta)/Math.PI;f<l&&(l=f,u=s,d=c)}}return o?{ca:i,cb:a,a:u,b:t,...d}:{ca:i,cb:a,a:e,b:u,...d}}function H(e,t){let n=t.map(V),r=t.map(st);return e.map(e=>{let t=V(e),i=st(e);return n.map((e,n)=>Math.hypot(t[0]-e[0],t[1]-e[1])+nt*Math.abs(i-r[n]))})}function ft(e){let t=e.length;if(t>at){let n=[];for(let r=0;r<t;r++)for(let i=0;i<t;i++)n.push([e[r][i],r,i]);n.sort((e,t)=>e[0]-t[0]);let r=Array(t).fill(-1),i=Array(t).fill(!1);for(let[,e,t]of n)r[e]<0&&!i[t]&&(r[e]=t,i[t]=!0);return r}let n=Array.from({length:t},(e,t)=>t),r=n.slice(),i=1/0,a=(n,o,s)=>{if(!(s>=i)){if(o===t){i=s,r=n.slice();return}for(let r=o;r<t;r++)[n[o],n[r]]=[n[r],n[o]],a(n,o+1,s+e[o][n[o]]),[n[o],n[r]]=[n[r],n[o]]}};return a(n,0,0),r}function pt(e){let t=e.length,n=e[0].length;if(n**t>ot){let r=e.map(e=>{let t=0;for(let n=1;n<e.length;n++)e[n]<e[t]&&(t=n);return t}),i=Array(n).fill(0);for(let e of r)i[e]++;for(let a=0;a<n;a++){if(i[a]>0)continue;let n=-1,o=1/0;for(let s=0;s<t;s++){if(i[r[s]]<2)continue;let t=e[s][a]-e[s][r[s]];t<o&&(o=t,n=s)}i[r[n]]--,r[n]=a,i[a]++}return r}let r=null,i=1/0,a=Array(t),o=Array(n).fill(0),s=(c,l,u)=>{if(!(l>=i||n-u>t-c)){if(c===t){i=l,r=a.slice();return}for(let t=0;t<n;t++)a[c]=t,o[t]++,s(c+1,l+e[c][t],u+ +(o[t]===1)),o[t]--}};if(s(0,0,0),!r)throw Error(`morphicons: no valid surjection (B < S)`);return r}function mt(e,t){let n=e.length*t,r=new Float64Array(2*n),i=new Float64Array(2*n);e.forEach((e,n)=>{r.set(e.a,2*t*n),i.set(e.bO,2*t*n)});let a=V(r),o=ut(r,i,a,V(i));if(o.res>=it)return;let s=Math.cos(-o.theta),c=Math.sin(-o.theta),l=Math.cos(o.theta),u=Math.sin(o.theta);for(let n of e){let e=0,r=0;for(let i=0;i<t;i++){let t=n.bO[2*i]-n.cb[0],a=n.bO[2*i+1]-n.cb[1];n.bT[2*i]=(t*s-a*c)/o.sigma,n.bT[2*i+1]=(t*c+a*s)/o.sigma;let d=o.sigma*(l*n.aC[2*i]-u*n.aC[2*i+1])-t,f=o.sigma*(u*n.aC[2*i]+l*n.aC[2*i+1])-a;e+=d*d+f*f,r+=t*t+a*a}n.theta=o.theta,n.lnSigma=Math.log(o.sigma),n.res=r>1e-12?Math.sqrt(e/r):0;let i=Math.exp(n.lnSigma),d=Math.cos(n.theta)*i,f=Math.sin(n.theta)*i,p=n.ca[0]-a[0],m=n.ca[1]-a[1],h=p*d-m*f-p,g=p*f+m*d-m;n.block={off:[p,m],drift:[n.cb[0]-n.ca[0]-h,n.cb[1]-n.ca[1]-g]}}}function U(e,t){let n=e.length,r=t.length;if(n===0||r===0)throw Error(`morphicons: icon has no subpaths`);let i=e.map(e=>e.pts),a=t.map(e=>e.pts),o=[];if(n===r){let e=ft(H(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}else if(n<r){let e=pt(H(a,i));for(let t=0;t<r;t++)o.push([e[t],t])}else{let e=pt(H(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}let s=i[0].length/2,c=o.map(([n,r])=>{let o=dt(i[n],a[r],e[n].closed,t[r].closed),c=o.a,l=new Float64Array(2*s),u=new Float64Array(2*s),d=new Float64Array(2*s),f=Math.cos(-o.theta),p=Math.sin(-o.theta);for(let e=0;e<s;e++){l[2*e]=c[2*e]-o.ca[0],l[2*e+1]=c[2*e+1]-o.ca[1];let t=o.b[2*e]-o.cb[0],n=o.b[2*e+1]-o.cb[1];u[2*e]=(t*f-n*p)/o.sigma,u[2*e+1]=(t*p+n*f)/o.sigma,d[2*e]=o.b[2*e],d[2*e+1]=o.b[2*e+1]}return{a:c,aC:l,bT:u,bO:d,ca:o.ca,cb:o.cb,theta:o.theta,lnSigma:Math.log(o.sigma),res:o.res,closed:e[n].closed&&t[r].closed,block:null}});return c.length>1&&mt(c,s),{items:c,n:s}}var ht=Math.PI/8,gt=[.18343464249564978,.525532409916329,.7966664774136267,.9602898564975363],_t=[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626];function vt(e,t,n){let r=6*t,i=1-n,a=3*i*i,o=6*i*n,s=3*n*n,c=a*(e[r+2]-e[r])+o*(e[r+4]-e[r+2])+s*(e[r+6]-e[r+4]),l=a*(e[r+3]-e[r+1])+o*(e[r+5]-e[r+3])+s*(e[r+7]-e[r+5]);return Math.hypot(c,l)}function yt(e,t,n=1){let r=n/2,i=0;for(let n=0;n<4;n++)i+=_t[n]*(vt(e,t,r+r*gt[n])+vt(e,t,r-r*gt[n]));return i*r}function bt(e,t,n,r,i){let a=6*t,o=1-n,s=o*o*o,c=3*o*o*n,l=3*o*n*n,u=n*n*n;r[i]=s*e[a]+c*e[a+2]+l*e[a+4]+u*e[a+6],r[i+1]=s*e[a+1]+c*e[a+3]+l*e[a+5]+u*e[a+7]}function xt(e,t,n){let r=6*t,i=n?r+6:r,a=n?-1:1;for(let t of n?[4,2,0]:[2,4,6]){let n=a*(e[r+t]-e[i]),o=a*(e[r+t+1]-e[i+1]);if(n*n+o*o>1e-18)return[n,o]}return null}function St(e,t=ht){let n=e.pts,r=(n.length/2-1)/3,i=[];for(let e=0;e<r;e++)yt(n,e)>1e-9&&i.push(e);if(i.length===0)return[];let a=new Set,o=(e,r)=>{let i=xt(n,e,!0),o=xt(n,r,!1);i&&o&&Math.abs(Math.atan2(i[0]*o[1]-i[1]*o[0],i[0]*o[0]+i[1]*o[1]))>t&&a.add(r)};for(let e=0;e+1<i.length;e++)o(i[e],i[e+1]);return e.closed&&i.length>1&&o(i[i.length-1],i[0]),[...a].sort((e,t)=>e-t)}function Ct(e,t,n,r){if(n<=0)return 0;if(n>=r)return 1;let i=0,a=1,o=n/r;for(let s=0;s<12;s++){let s=yt(e,t,o)-n;if(Math.abs(s)<1e-10*r+1e-14)break;s>0?a=o:i=o;let c=vt(e,t,o),l=c>1e-12?o-s/c:(i+a)/2;l>i&&l<a||(l=(i+a)/2),o=l}return o}function wt(e,t=64,n=ht){let r=e.pts,i=(r.length/2-1)/3,a=new Float64Array(2*t),o=()=>{for(let e=0;e<t;e++)a[2*e]=r[0],a[2*e+1]=r[1];return a};if(i<1)return o();let s=Array(i),c=0;for(let e=0;e<i;e++)s[e]=yt(r,e),c+=s[e];if(c<1e-12)return o();let l=St(e,n),u=e.closed?l.length>0?l:[0]:[...new Set([0,...l,i])].sort((e,t)=>e-t),d=[];if(e.closed)for(let e=0;e<u.length;e++){let t=u[e],n=e+1<u.length?u[e+1]:u[0]+i;d.push([t,n])}else for(let e=0;e+1<u.length;e++)d.push([u[e],u[e+1]]);let f=d.map(([e,t])=>{let n=0;for(let r=e;r<t;r++)n+=s[r%i];return n}),p=e.closed?t:t-1;if(d.length>p)throw Error(`morphicons: N=${t} too small (${d.length} runs)`);let m=f.reduce((e,t)=>e+t,0)||1,h=f.map(e=>p*e/m),g=h.map(e=>Math.max(1,Math.floor(e))),_=p-g.reduce((e,t)=>e+t,0);if(_>0){let e=h.map((e,t)=>[Math.round((e-Math.floor(e))*1e9),t]).sort((e,t)=>t[0]-e[0]||e[1]-t[1]);for(let t=0;t<_;t++)g[e[t%g.length][1]]++}for(;_<0;){let e=0;for(let t=1;t<g.length;t++)g[t]>g[e]&&(e=t);if(g[e]<=1)break;g[e]--,_++}let v=0;for(let e=0;e<d.length;e++){let[t,n]=d[e],o=g[e],c=f[e],l=t%i*6;a[2*v]=r[l],a[2*v+1]=r[l+1],v++;let u=t,p=0;for(let e=1;e<o;e++){let t=c*e/o;for(;u<n-1&&p+s[u%i]<t;)p+=s[u%i],u++;let l=u%i,d=s[l];bt(r,l,d>1e-12?Ct(r,l,t-p,d):0,a,2*v),v++}}if(!e.closed){let e=6*i;a[2*v]=r[e],a[2*v+1]=r[e+1]}return a}function W(e,t=64){return $e(e).map(e=>({pts:wt(e,t),closed:e.closed}))}var Tt=class{x=1;v=0;k=250;c=24;config(e,t){this.k=e,this.c=t}start(){this.x=0,this.v>14&&(this.v=14),this.v<-14&&(this.v=-14)}step(e){let t=Math.max(1,Math.min(16,Math.ceil(e/(1/240)))),n=e/t;for(let e=0;e<t;e++){let e=this.k*(1-this.x)-this.c*this.v;this.v+=e*n,this.x+=this.v*n}return Math.abs(1-this.x)<.001&&Math.abs(this.v)<.02}},Et={smooth:{k:170,c:26},snappy:{k:420,c:30},bouncy:{k:300,c:14}},G=new Set,K=0,q=-1;function Dt(e){let t=q<0?0:Math.min(Math.max((e-q)/1e3,0),.1);q=e;for(let e of[...G])e(t);G.size>0?K=requestAnimationFrame(Dt):(K=0,q=-1)}function Ot(e){G.add(e),K===0&&(q=-1,K=requestAnimationFrame(Dt))}function kt(e){G.delete(e),G.size===0&&K!==0&&(cancelAnimationFrame(K),K=0,q=-1)}var At=new WeakMap,jt=new WeakMap,Mt=new WeakMap;function J(e){if(typeof e==`string`)return W(e);let t=At.get(e);return t||(t=W(e),At.set(e,t)),t}function Y(e){if(typeof e==`string`)return e;let t=jt.get(e);return t||(t=Ke($e(e)),jt.set(e,t)),t}function Nt(e,t){if(typeof e==`string`||typeof t==`string`)return U(J(e),J(t));let n=Mt.get(e);n||(n=new WeakMap,Mt.set(e,n));let r=n.get(t);return r||(r=U(J(e),J(t)),n.set(t,r)),r}function Pt(e){if(typeof e==`string`)return Et[e];let t=Et.snappy;return{k:e?.stiffness??t.k,c:e?.damping??t.c}}function Ft(e,t,n){let r=new Tt,i=n?.reducedMotion??`never`,a=t,o=!0,s=null,c=null,l=null,u=1,d=!1,f=!1;e.setAttribute(`d`,Y(t));let p=t=>{let n=s,r=c,i=l;n&&r&&i&&(u=t,tt(n,t,r),e.setAttribute(`d`,Ge(r,i)))},m=()=>{d&&(d=!1,kt(h))},h=e=>{let t=r.step(e);p(r.x),t&&(m(),g())},g=()=>{o=!0,s=null,c=null,l=null,u=1,r.x=1,r.v=0,e.setAttribute(`d`,Y(a))},_=()=>{let e=s,t=c;return o||!e||!t?J(a):t.map((t,n)=>({pts:Float64Array.from(t),closed:e.items[n].closed}))},v=e=>{s=o?Nt(a,e):U(_(),J(e)),c=et(s),l=s.items.map(e=>e.closed),a=e,o=!1},y=e=>{m(),a=e,g()},b=()=>i===`always`?!0:i!==`user`||typeof matchMedia>`u`?!1:matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,x=(e,t)=>{if(f)return;let n=!o&&s!==null&&e===a;m(),r.v=0,n||v(e),p(t)};return{morphTo(e,t){if(f||e===a&&(o||d))return;if(b()){y(e);return}let{k:n,c:i}=Pt(t);r.config(n,i),v(e),r.start(),d||(d=!0,Ot(h))},set(e){f||y(e)},seek:x,get progress(){return o?1:u},set progress(e){f||x(a,e)},get reducedMotion(){return i},set reducedMotion(e){i=e},destroy(){m(),f=!0,s=null,c=null,l=null}}}var X=e(n(),1),Z=e(C(),1),It=typeof document>`u`?X.useEffect:X.useLayoutEffect;function Lt(e,t,n){if(n<=0)return Y(e);if(n>=1)return Y(t);let r=U(W(e),W(t)),i=et(r);return tt(r,n,i),Ge(i,r.items.map(e=>e.closed))}var Rt=(0,X.forwardRef)(function(e,t){let{icon:n,from:r,to:i,progress:a,spring:o,reducedMotion:s,size:c=24,color:l=`currentColor`,strokeWidth:u=2,absoluteStrokeWidth:d,label:f,...p}=e,m=r!==void 0&&i!==void 0,h=n??r??i,[g]=(0,X.useState)(()=>m?Lt(r,i,a??0):h===void 0?``:Y(h)),_=(0,X.useRef)(null),v=(0,X.useRef)(null),y=(0,X.useRef)(o);y.current=o;let b=(0,X.useRef)(s);b.current=s;let x=(0,X.useRef)(n),S=(0,X.useRef)(m),C=(0,X.useRef)(!1),w=(0,X.useRef)(!1),T=(0,X.useRef)(null),E=(0,X.useCallback)(e=>{if(v.current)return v.current;let t=_.current;return C.current||!t?null:(v.current=Ft(t,e,{reducedMotion:b.current}),v.current)},[]);It(()=>{C.current=!1;let e=_.current;if(e&&h!==void 0){let t=Ft(e,m?r:h,{reducedMotion:b.current});if(v.current=t,m){T.current=[r,i];let e=a??0;e<=0?t.set(r):e>=1?t.set(i):(t.seek(i,e),w.current=!0)}}return()=>{C.current=!0,v.current?.destroy(),v.current=null,w.current=!1,T.current=null}},[]),(0,X.useEffect)(()=>{let e=v.current;e&&(e.reducedMotion=s??`never`)},[s]),(0,X.useEffect)(()=>{let e=S.current&&!m;S.current=m;let t=n!==x.current;if(x.current=n,m||n===void 0||!t&&!e)return;T.current=null,w.current=!1;let r=v.current;r?r.morphTo(n,y.current):E(n)},[n,m,E]),(0,X.useEffect)(()=>{if(!m)return;let e=v.current??E(r);if(!e)return;let t=a??0;(!T.current||T.current[0]!==r||T.current[1]!==i)&&(T.current=[r,i],w.current=!1),t<=0?(e.set(r),w.current=!1):t>=1?(e.set(i),w.current=!1):(w.current||=(e.set(r),!0),e.seek(i,t))},[m,r,i,a,E]),(0,X.useImperativeHandle)(t,()=>({morphTo:(e,t)=>{T.current=null,w.current=!1;let n=v.current;n?n.morphTo(e,t??y.current):E(e)},set:e=>{T.current=null,w.current=!1;let t=v.current;t?t.set(e):E(e)}}),[E]);let D=d?Number(u)*24/Number(c):u;return(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:c,height:c,viewBox:`0 0 24 24`,fill:`none`,stroke:l,strokeWidth:D,strokeLinecap:`round`,strokeLinejoin:`round`,role:f?`img`:void 0,"aria-hidden":!f||void 0,...p,children:[f?(0,Z.jsx)(`title`,{children:f}):null,(0,Z.jsx)(`path`,{ref:_,d:g})]})});function zt(e){return typeof e==`object`&&!!e&&`lucide`in e}function Bt(e){let t=(0,F.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({reducedMotion:a,icon:n,strokeWidth:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`user`:a,s=m(),c=zt(n)?s===`p4`?n.p4??n.lucide:n.lucide:n,l;t[5]!==s||t[6]!==i?(l=s===`p4`?E(i):i,t[5]=s,t[6]=i,t[7]=l):l=t[7];let u=l,d;t[8]===c?d=t[9]:(d=c===void 0?{}:{icon:c},t[8]=c,t[9]=d);let f;t[10]===u?f=t[11]:(f=u===void 0?{}:{strokeWidth:u},t[10]=u,t[11]=f);let p;return t[12]!==r||t[13]!==o||t[14]!==d||t[15]!==f?(p=(0,Z.jsx)(Rt,{reducedMotion:o,...d,...f,...r}),t[12]=r,t[13]=o,t[14]=d,t[15]=f,t[16]=p):p=t[16],p}var Vt=`wco`,Ht=`electron`,Ut=`electron-windows`,Wt=52;function Gt(){return typeof navigator>`u`?null:navigator.windowControlsOverlay??null}function Kt(){if(typeof document>`u`)return()=>{};let e=Gt(),t=()=>{document.documentElement.classList.toggle(Vt,e!==null&&e.visible)};return t(),e?(e.addEventListener(`geometrychange`,t),()=>{e.removeEventListener(`geometrychange`,t)}):()=>{}}function qt(e){let t=Gt();return t?.addEventListener(`geometrychange`,e),()=>t?.removeEventListener(`geometrychange`,e)}function Jt(){if(se&&o(navigator.platform))return Wt;let e=Gt();return e?.visible?e.getTitlebarAreaRect().bottom:0}function Yt(){return(0,X.useSyncExternalStore)(qt,Jt,Xt)}function Xt(){return 0}function Zt(e){return D(e)?[Ht,Ut]:[Ht]}function Qt(e){if(typeof document>`u`)return()=>{};let t=Zt(e);return document.documentElement.classList.add(...t),()=>{document.documentElement.classList.remove(...t)}}var Q=5,$t=re,en=(0,X.createContext)(null),$=(0,X.createContext)(null);function tn(e){let t=(0,F.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({onScrollCapture:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=(0,X.useRef)(null),a;t[3]===n?a=t[4]:(a=e=>{n?.(e);let t=i.current;t&&!t.trigger.contains(t.trigger.ownerDocument.activeElement)&&(i.current=null,t.actionsRef.current?.close())},t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Z.jsx)($,{value:i,children:(0,Z.jsx)(`div`,{...r,onScrollCapture:a})}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function nn(e){let t=(0,X.use)($),n=(0,X.useRef)(null),r=e.actionsRef??n;return(0,X.useEffect)(()=>()=>{t?.current?.actionsRef===r&&(t.current=null)},[r,t]),t?(0,Z.jsx)(en,{value:r,children:(0,Z.jsx)(ae,{...e,actionsRef:r,onOpenChange:(n,i)=>{e.onOpenChange?.(n,i),!n&&!i.isCanceled&&t.current?.actionsRef===r&&(t.current=null)}})}):(0,Z.jsx)(ae,{...e})}function rn(e){let t=(0,X.use)($),n=(0,X.use)(en);return!t||!n?(0,Z.jsx)(N,{"data-slot":`tooltip-trigger`,...e}):(0,Z.jsx)(N,{"data-slot":`tooltip-trigger`,...e,onMouseEnter:r=>{e.onMouseEnter?.(r),t.current={trigger:r.currentTarget,actionsRef:n}}})}function an(e){let t=(0,F.c)(5),n=Q+Yt(),r;t[0]===n?r=t[1]:(r={top:n,right:Q,bottom:Q,left:Q},t[0]=n,t[1]=r);let i;return t[2]!==e||t[3]!==r?(i=(0,Z.jsx)(M,{className:`pointer-events-none z-[140] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none`,collisionPadding:r,"data-slot":`tooltip-positioner`,...e}),t[2]=e,t[3]=r,t[4]=i):i=t[4],i}function on(e){let t=(0,F.c)(25),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:i,align:o,sideOffset:s,side:c,variant:l,anchor:n,children:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=o===void 0?`center`:o,d=s===void 0?4:s,f=c===void 0?`top`:c,p=l===void 0?`default`:l,m=p===`glass`?`dropdown-glass shadow-xl shadow-black/25 before:hidden`:p===`inverse`?`rounded-xl border border-foreground bg-foreground text-background shadow-md/10 before:hidden`:`border bg-popover not-dark:bg-clip-padding shadow-md/5`,h=p===`code`?`max-w-120 wrap-anywhere text-left font-mono text-[11px] leading-relaxed`:`max-w-80 wrap-anywhere whitespace-normal leading-snug`,g;t[9]!==i||t[10]!==m||t[11]!==h?(g=ee(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md text-popover-foreground text-xs transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,m,h,i),t[9]=i,t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]===r?_=t[14]:(_=(0,Z.jsx)(oe,{className:`relative size-full overflow-clip px-(--viewport-inline-padding) py-1 [--viewport-inline-padding:--spacing(2)] data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:truncate **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,"data-slot":`tooltip-viewport`,children:r}),t[13]=r,t[14]=_);let v;t[15]!==a||t[16]!==g||t[17]!==_?(v=(0,Z.jsx)(ie,{className:g,"data-slot":`tooltip-popup`,...a,children:_}),t[15]=a,t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;return t[19]!==u||t[20]!==n||t[21]!==f||t[22]!==d||t[23]!==v?(y=(0,Z.jsx)(j,{children:(0,Z.jsx)(an,{align:u,anchor:n,side:f,sideOffset:d,children:v})}),t[19]=u,t[20]=n,t[21]=f,t[22]=d,t[23]=v,t[24]=y):y=t[24],y}export{ke as A,ze as B,Se as C,Ee as D,Te as E,Pe as F,Ve as H,Fe as I,Ie as L,je as M,Me as N,De as O,Ne as P,Le as R,xe as S,we as T,He as U,Be as V,ge as _,rn as a,ye as b,Bt as c,ue as d,de as f,he as g,me as h,tn as i,Ae as j,Oe as k,ce as l,pe as m,on as n,Qt as o,fe as p,$t as r,Kt as s,nn as t,le as u,_e as v,Ce as w,be as x,ve as y,Re as z};
|
|
2
|
-
//# sourceMappingURL=tooltip-
|
|
1
|
+
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{AE as r,CE as i,DE as a,Dc as o,EE as s,Km as c,ME as l,NE as u,OE as d,SE as f,TE as p,Ym as m,_E as h,bE as g,dE as _,fE as v,gE as y,hE as b,jE as x,kE as S,lE as C,mE as w,pE as T,qm as E,r as D,t as ee,uE as O,vE as k,wE as te,xE as ne,yE as A}from"./utils-BgVDKR83.js";import{a as j,i as M,n as re,o as N,r as ie,s as ae,t as oe}from"./TooltipViewport-A4hJLsA1.js";import{t as se}from"./env-wK1YYxA8.js";var P=e(t((e=>{e.Check=[[`path`,{d:`M20 6 9 17l-5-5`}]],e.ChevronDown=[[`path`,{d:`m6 9 6 6 6-6`}]],e.ChevronRight=[[`path`,{d:`m9 18 6-6-6-6`}]],e.ChevronUp=[[`path`,{d:`m18 15-6-6-6 6`}]],e.ChevronsDownUp=[[`path`,{d:`m7 20 5-5 5 5`}],[`path`,{d:`m7 4 5 5 5-5`}]],e.ChevronsUpDown=[[`path`,{d:`m7 15 5 5 5-5`}],[`path`,{d:`m7 9 5-5 5 5`}]],e.Circle=[[`circle`,{cx:`12`,cy:`12`,r:`10`}]],e.CircleAlert=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]],e.CircleCheck=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`m9 12 2 2 4-4`}]],e.Code2=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]],e.Copy=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]],e.CornerUpRight=[[`path`,{d:`m15 14 5-5-5-5`}],[`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`}]],e.Eye=[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]],e.FoldVertical=[[`path`,{d:`M12 22v-6`}],[`path`,{d:`M12 8V2`}],[`path`,{d:`M4 12H2`}],[`path`,{d:`M10 12H8`}],[`path`,{d:`M16 12h-2`}],[`path`,{d:`M22 12h-2`}],[`path`,{d:`m15 19-3-3-3 3`}],[`path`,{d:`m15 5-3 3-3-3`}]],e.Folder=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]],e.FolderClosed=[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}],[`path`,{d:`M2 10h20`}]],e.FolderOpen=[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`}]],e.Image=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}]],e.Link=[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}]],e.ListPlus=[[`path`,{d:`M16 5H3`}],[`path`,{d:`M11 12H3`}],[`path`,{d:`M16 19H3`}],[`path`,{d:`M18 9v6`}],[`path`,{d:`M21 12h-6`}]],e.Lock=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]],e.LockOpen=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`}]],e.Maximize2=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]],e.Minimize2=[[`path`,{d:`m14 10 7-7`}],[`path`,{d:`M20 10h-6V4`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M4 14h6v6`}]],e.Minus=[[`path`,{d:`M5 12h14`}]],e.Moon=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]],e.PanelLeft=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}]],e.PanelLeftClose=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}],[`path`,{d:`m16 15-3-3 3-3`}]],e.Plus=[[`path`,{d:`M5 12h14`}],[`path`,{d:`M12 5v14`}]],e.Sun=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]],e.Table2=[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`}]],e.Text=[[`path`,{d:`M21 5H3`}],[`path`,{d:`M15 12H3`}],[`path`,{d:`M17 19H3`}]],e.UnfoldVertical=[[`path`,{d:`M12 22v-6`}],[`path`,{d:`M12 8V2`}],[`path`,{d:`M4 12H2`}],[`path`,{d:`M10 12H8`}],[`path`,{d:`M16 12h-2`}],[`path`,{d:`M22 12h-2`}],[`path`,{d:`m15 19-3 3-3-3`}],[`path`,{d:`m15 5-3-3-3 3`}]],e.Volume2=[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`}]],e.VolumeOff=[[`path`,{d:`M16 9a5 5 0 0 1 .95 2.293`}],[`path`,{d:`M19.364 5.636a9 9 0 0 1 1.889 9.96`}],[`path`,{d:`m2 2 20 20`}],[`path`,{d:`m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11`}],[`path`,{d:`M9.828 4.172A.686.686 0 0 1 11 4.657v.686`}]]}))(),1),ce=c(P.Check,v),le=c(P.ChevronDown,T),ue=c(P.ChevronRight,w),de=c(P.ChevronUp,b),fe=c(P.ChevronsDownUp,null),pe=c(P.ChevronsUpDown,null),me=c(P.Circle,y),he=c(P.CircleAlert,_),ge=c(P.CircleCheck,r),_e=c(P.Code2,h),ve=c(P.Copy,k),ye=c(P.CornerUpRight,null),be=c(P.Eye,null),xe=c(P.FoldVertical,null),Se=c(P.Folder,A),Ce=c(P.FolderClosed,A),we=c(P.FolderOpen,g),Te=c(P.Image,ne),Ee=c(P.Link,f),De=c(P.ListPlus,null),Oe=c(P.Lock,null),ke=c(P.LockOpen,null),Ae=c(P.Maximize2,i),je=c(P.Minimize2,null),Me=c(P.Minus,te),Ne=c(P.Moon,p),Pe=c(P.PanelLeft,s),Fe=c(P.PanelLeftClose,null),Ie=c(P.Plus,O),Le=c(P.Sun,a),Re=c(P.Table2,d),ze=c(P.Text,S),Be=c(P.UnfoldVertical,null),Ve=c(P.Volume2,x),He=c(P.VolumeOff,l),F=u(),Ue=`MmLlHhVvCcSsQqTtAaZz`;function We(e){let t=[],n=e.length,r=0,i=0,a=0,o=0,s=0,c=null,l=``,u=0,d=0,f=``,p=!1,m=e=>{throw Error(`morphicons: ${e} at d[${r}]`)},h=e=>e>=48&&e<=57,g=()=>{for(;r<n;){let t=e.charCodeAt(r);if(t===32||t===9||t===10||t===13||t===12||t===44)r++;else break}},_=()=>{g();let t=r;r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(r<n&&e[r]===`.`)for(r++;r<n&&h(e.charCodeAt(r));)r++,i=!0;if(i||m(`expected number`),r<n&&(e[r]===`e`||e[r]===`E`)){let t=r;r++,r<n&&(e[r]===`+`||e[r]===`-`)&&r++;let i=!1;for(;r<n&&h(e.charCodeAt(r));)r++,i=!0;i||(r=t)}return Number(e.slice(t,r))},v=()=>{g();let t=e[r];return t===`0`||t===`1`?(r++,+(t===`1`)):m(`expected arc flag (0|1)`)},y=()=>(p||m(`path must start with M/m`),c||(c={x0:i,y0:a,segs:[],closed:!1},t.push(c)),c),b=!1,x=()=>_()+(b?i:0),S=()=>_()+(b?a:0);for(;g(),!(r>=n);){let n=e[r];switch(Ue.includes(n)?(l=n,r++):l===``?m(`path must start with M/m`):l===`M`?l=`L`:l===`m`?l=`l`:(l===`Z`||l===`z`)&&m(`stray data after Z`),b=l>=`a`,b?l.toUpperCase():l){case`M`:{p=!0;let e=x(),n=S();i=e,a=n,o=e,s=n,c={x0:e,y0:n,segs:[],closed:!1},t.push(c),f=``;break}case`L`:{let e=x(),t=S();y().segs.push([`L`,e,t]),i=e,a=t,f=``;break}case`H`:{let e=x();y().segs.push([`L`,e,a]),i=e,f=``;break}case`V`:{let e=S();y().segs.push([`L`,i,e]),a=e,f=``;break}case`C`:case`S`:{let e,t;l===`C`||l===`c`?(e=x(),t=S()):(e=f===`C`?2*i-u:i,t=f===`C`?2*a-d:a);let n=x(),r=S(),o=x(),s=S();y().segs.push([`C`,e,t,n,r,o,s]),u=n,d=r,i=o,a=s,f=`C`;break}case`Q`:case`T`:{let e,t;l===`Q`||l===`q`?(e=x(),t=S()):(e=f===`Q`?2*i-u:i,t=f===`Q`?2*a-d:a);let n=x(),r=S();y().segs.push([`Q`,e,t,n,r]),u=e,d=t,i=n,a=r,f=`Q`;break}case`A`:{let e=_(),t=_(),n=_(),r=v(),o=v(),s=x(),c=S();y().segs.push([`A`,e,t,n,r,o,s,c]),i=s,a=c,f=``;break}case`Z`:c&&=(c.closed=!0,null),i=o,a=s,f=``;break;default:m(`unsupported command "${l}"`)}}return t.filter(e=>e.segs.length>0)}function I(e){return String(Math.round(e*100)/100)}function Ge(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e[r],a=i.length/2;n+=`M${I(i[0])} ${I(i[1])}`;for(let e=1;e<a;e++)n+=`L${I(i[2*e])} ${I(i[2*e+1])}`;t?.[r]&&(n+=`Z`)}return n}function L(e){return String(Math.round(e*1e4)/1e4)}function Ke(e){let t=``;for(let{pts:n,closed:r}of e){t+=`M${L(n[0])} ${L(n[1])}`;for(let e=2;e<n.length;e+=6)t+=`C${L(n[e])} ${L(n[e+1])} ${L(n[e+2])} ${L(n[e+3])} ${L(n[e+4])} ${L(n[e+5])}`;r&&(t+=`Z`)}return t}var R=4/3*Math.tan(Math.PI/8),qe=2*Math.PI;function z(e,t){let n=[e,t],r=e,i=t,a=(e,t,a,o,s,c)=>{n.push(e,t,a,o,s,c),r=s,i=c},o=(e,t)=>{Math.abs(e-r)<1e-12&&Math.abs(t-i)<1e-12||a(r+(e-r)/3,i+(t-i)/3,r+2*(e-r)/3,i+2*(t-i)/3,e,t)};return[a,o,(e,t,n,o)=>{a(r+2/3*(e-r),i+2/3*(t-i),n+2/3*(e-n),o+2/3*(t-o),n,o)},(e,t,n,s,c,l,u)=>{let d=r,f=i;if(Math.abs(l-d)<1e-12&&Math.abs(u-f)<1e-12)return;let p=Math.abs(e),m=Math.abs(t);if(p<1e-12||m<1e-12){o(l,u);return}let h=n*Math.PI/180,g=Math.cos(h),_=Math.sin(h),v=(d-l)/2,y=(f-u)/2,b=g*v+_*y,x=-_*v+g*y,S=b*b/(p*p)+x*x/(m*m);if(S>1){let e=Math.sqrt(S);p*=e,m*=e}let C=p*p,w=m*m,T=b*b,E=x*x,D=(C*w-C*E-w*T)/(C*E+w*T);D<0&&(D=0);let ee=(s===c?-1:1)*Math.sqrt(D),O=ee*p*x/m,k=-ee*m*b/p,te=g*O-_*k+(d+l)/2,ne=_*O+g*k+(f+u)/2,A=Math.atan2((x-k)/m,(b-O)/p),j=Math.atan2((-x-k)/m,(-b-O)/p)-A;c===0&&j>0?j-=qe:c===1&&j<0&&(j+=qe);let M=Math.max(1,Math.ceil(Math.abs(j)/(Math.PI/2)-1e-9)),re=j/M,N=4/3*Math.tan(re/4),ie=e=>te+p*Math.cos(e)*g-m*Math.sin(e)*_,ae=e=>ne+p*Math.cos(e)*_+m*Math.sin(e)*g,oe=e=>-p*Math.sin(e)*g-m*Math.cos(e)*_,se=e=>-p*Math.sin(e)*_+m*Math.cos(e)*g,P=A,ce=d,le=f;for(let e=1;e<=M;e++){let t=A+re*e,n=e===M?l:ie(t),r=e===M?u:ae(t);a(ce+N*oe(P),le+N*se(P),n-N*oe(t),r-N*se(t),n,r),P=t,ce=n,le=r}},e=>(e&&o(n[0],n[1]),n.length<8?null:{pts:Float64Array.from(n),closed:e})]}function Je(e){let[t,n,r,i,a]=z(e.x0,e.y0);for(let a of e.segs)switch(a[0]){case`L`:n(a[1],a[2]);break;case`C`:t(a[1],a[2],a[3],a[4],a[5],a[6]);break;case`Q`:r(a[1],a[2],a[3],a[4]);break;case`A`:i(a[1],a[2],a[3],a[4],a[5],a[6],a[7])}return a(e.closed)}function B(e,t,n=0){let r=e[t];if(r===void 0)return n;let i=typeof r==`number`?r:Number(r);return Number.isFinite(i)?i:n}function Ye(e){let t=String(e??``).trim();if(!t)return[];let n=t.split(/[\s,]+/).map(Number);if(n.some(e=>!Number.isFinite(e)))throw Error(`morphicons: invalid points: "${t}"`);return n}function Xe(e,t){if(e.length<4)return null;let[,n,,,r]=z(e[0],e[1]);for(let t=2;t+1<e.length;t+=2)n(e[t],e[t+1]);return r(t)}function Ze(e,t,n,r){if(n<1e-12||r<1e-12)return null;let i=R*n,a=R*r,o=e+n,s=e-n,c=t+r,l=t-r,[u,,,,d]=z(o,t);return u(o,t+a,e+i,c,e,c),u(e-i,c,s,t+a,s,t),u(s,t-a,e-i,l,e,l),u(e+i,l,o,t-a,o,t),d(!0)}function Qe(e){let t=B(e,`x`),n=B(e,`y`),r=B(e,`width`),i=B(e,`height`);if(r<1e-12||i<1e-12)return null;let a=B(e,`rx`,NaN),o=B(e,`ry`,NaN);if(Number.isNaN(a)&&(a=Number.isNaN(o)?0:o),Number.isNaN(o)&&(o=a),a=Math.min(Math.max(a,0),r/2),o=Math.min(Math.max(o,0),i/2),a<1e-12||o<1e-12)return Xe([t,n,t+r,n,t+r,n+i,t,n+i],!0);let s=t+a,c=t+r-a,l=t+r,u=n+o,d=n+i-o,f=n+i,p=R*a,m=R*o,[h,g,,,_]=z(s,n);return g(c,n),h(c+p,n,l,u-m,l,u),g(l,d),h(l,d+m,c+p,f,c,f),g(s,f),h(s-p,f,t,d+m,t,d),g(t,u),h(t,u-m,s-p,n,s,n),_(!0)}function $e(e){let t=[],n=e=>{e&&t.push(e)};if(typeof e==`string`){for(let t of We(e))n(Je(t));return t}for(let[t,r]of e)switch(t){case`path`:for(let e of We(String(r.d??``)))n(Je(e));break;case`line`:{let[,e,,,t]=z(B(r,`x1`),B(r,`y1`));e(B(r,`x2`),B(r,`y2`)),n(t(!1));break}case`circle`:{let e=B(r,`r`);n(Ze(B(r,`cx`),B(r,`cy`),e,e));break}case`ellipse`:n(Ze(B(r,`cx`),B(r,`cy`),B(r,`rx`),B(r,`ry`)));break;case`rect`:n(Qe(r));break;case`polyline`:n(Xe(Ye(r.points),!1));break;case`polygon`:n(Xe(Ye(r.points),!0));break;default:throw Error(`morphicons: unsupported tag <${t}>`)}return t}function et(e){return e.items.map(()=>new Float64Array(2*e.n))}function tt(e,t,n){for(let r=0;r<e.items.length;r++){let i=e.items[r],a=n[r],o=e.n,s=Math.exp(i.lnSigma*t),c=i.theta*t,l=Math.cos(c)*s,u=Math.sin(c)*s,d,f;if(i.block){let[e,n]=i.block.off,[r,a]=i.block.drift;d=i.ca[0]+r*t+(e*l-n*u-e),f=i.ca[1]+a*t+(e*u+n*l-n)}else d=i.ca[0]+(i.cb[0]-i.ca[0])*t,f=i.ca[1]+(i.cb[1]-i.ca[1])*t;for(let e=0;e<o;e++){let n=i.aC[2*e]+(i.bT[2*e]-i.aC[2*e])*t,r=i.aC[2*e+1]+(i.bT[2*e+1]-i.aC[2*e+1])*t;a[2*e]=d+n*l-r*u,a[2*e+1]=f+n*u+r*l}}}var nt=.35,rt=.05,it=.005,at=8,ot=1e5;function V(e){let t=e.length/2,n=0,r=0;for(let i=0;i<t;i++)n+=e[2*i],r+=e[2*i+1];return[n/t,r/t]}function st(e){let t=e.length/2,n=0;for(let r=1;r<t;r++)n+=Math.hypot(e[2*r]-e[2*r-2],e[2*r+1]-e[2*r-1]);return n}function ct(e){let t=e.length/2,n=new Float64Array(2*t);for(let r=0;r<t;r++)n[2*r]=e[2*(t-1-r)],n[2*r+1]=e[2*(t-1-r)+1];return n}function lt(e,t){let n=e.length/2,r=new Float64Array(2*n);for(let i=0;i<n;i++){let a=(i+t)%n;r[2*i]=e[2*a],r[2*i+1]=e[2*a+1]}return r}function ut(e,t,n,r){let i=e.length/2,a=0,o=0,s=0,c=0,l=0,u=0;for(let d=0;d<i;d++){let i=e[2*d]-n[0],f=e[2*d+1]-n[1],p=t[2*d]-r[0],m=t[2*d+1]-r[1];a+=i*p,c+=f*m,o+=i*m,s+=f*p,l+=i*i+f*f,u+=p*p+m*m}let d=Math.atan2(o-s,a+c),f=Math.cos(d)*(a+c)+Math.sin(d)*(o-s),p=l>1e-12?f/l:1;p>1e-6||(p=1e-6);let m=Math.max(0,p*p*l-2*p*f+u),h=u>1e-12?Math.sqrt(m/u):0;return{theta:d,sigma:p,res:h}}function dt(e,t,n=!1,r=!1){let i=V(e),a=V(t),o=n&&!r,s=o?e:t,c=n||r?s.length/2:1,l=1/0,u=s,d={theta:0,sigma:1,res:0};for(let n=0;n<2;n++){let r=n?ct(s):s;for(let n=0;n<c;n++){let s=n?lt(r,n):r,c=o?ut(s,t,i,a):ut(e,s,i,a),f=c.res+rt*Math.abs(c.theta)/Math.PI;f<l&&(l=f,u=s,d=c)}}return o?{ca:i,cb:a,a:u,b:t,...d}:{ca:i,cb:a,a:e,b:u,...d}}function H(e,t){let n=t.map(V),r=t.map(st);return e.map(e=>{let t=V(e),i=st(e);return n.map((e,n)=>Math.hypot(t[0]-e[0],t[1]-e[1])+nt*Math.abs(i-r[n]))})}function ft(e){let t=e.length;if(t>at){let n=[];for(let r=0;r<t;r++)for(let i=0;i<t;i++)n.push([e[r][i],r,i]);n.sort((e,t)=>e[0]-t[0]);let r=Array(t).fill(-1),i=Array(t).fill(!1);for(let[,e,t]of n)r[e]<0&&!i[t]&&(r[e]=t,i[t]=!0);return r}let n=Array.from({length:t},(e,t)=>t),r=n.slice(),i=1/0,a=(n,o,s)=>{if(!(s>=i)){if(o===t){i=s,r=n.slice();return}for(let r=o;r<t;r++)[n[o],n[r]]=[n[r],n[o]],a(n,o+1,s+e[o][n[o]]),[n[o],n[r]]=[n[r],n[o]]}};return a(n,0,0),r}function pt(e){let t=e.length,n=e[0].length;if(n**t>ot){let r=e.map(e=>{let t=0;for(let n=1;n<e.length;n++)e[n]<e[t]&&(t=n);return t}),i=Array(n).fill(0);for(let e of r)i[e]++;for(let a=0;a<n;a++){if(i[a]>0)continue;let n=-1,o=1/0;for(let s=0;s<t;s++){if(i[r[s]]<2)continue;let t=e[s][a]-e[s][r[s]];t<o&&(o=t,n=s)}i[r[n]]--,r[n]=a,i[a]++}return r}let r=null,i=1/0,a=Array(t),o=Array(n).fill(0),s=(c,l,u)=>{if(!(l>=i||n-u>t-c)){if(c===t){i=l,r=a.slice();return}for(let t=0;t<n;t++)a[c]=t,o[t]++,s(c+1,l+e[c][t],u+ +(o[t]===1)),o[t]--}};if(s(0,0,0),!r)throw Error(`morphicons: no valid surjection (B < S)`);return r}function mt(e,t){let n=e.length*t,r=new Float64Array(2*n),i=new Float64Array(2*n);e.forEach((e,n)=>{r.set(e.a,2*t*n),i.set(e.bO,2*t*n)});let a=V(r),o=ut(r,i,a,V(i));if(o.res>=it)return;let s=Math.cos(-o.theta),c=Math.sin(-o.theta),l=Math.cos(o.theta),u=Math.sin(o.theta);for(let n of e){let e=0,r=0;for(let i=0;i<t;i++){let t=n.bO[2*i]-n.cb[0],a=n.bO[2*i+1]-n.cb[1];n.bT[2*i]=(t*s-a*c)/o.sigma,n.bT[2*i+1]=(t*c+a*s)/o.sigma;let d=o.sigma*(l*n.aC[2*i]-u*n.aC[2*i+1])-t,f=o.sigma*(u*n.aC[2*i]+l*n.aC[2*i+1])-a;e+=d*d+f*f,r+=t*t+a*a}n.theta=o.theta,n.lnSigma=Math.log(o.sigma),n.res=r>1e-12?Math.sqrt(e/r):0;let i=Math.exp(n.lnSigma),d=Math.cos(n.theta)*i,f=Math.sin(n.theta)*i,p=n.ca[0]-a[0],m=n.ca[1]-a[1],h=p*d-m*f-p,g=p*f+m*d-m;n.block={off:[p,m],drift:[n.cb[0]-n.ca[0]-h,n.cb[1]-n.ca[1]-g]}}}function U(e,t){let n=e.length,r=t.length;if(n===0||r===0)throw Error(`morphicons: icon has no subpaths`);let i=e.map(e=>e.pts),a=t.map(e=>e.pts),o=[];if(n===r){let e=ft(H(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}else if(n<r){let e=pt(H(a,i));for(let t=0;t<r;t++)o.push([e[t],t])}else{let e=pt(H(i,a));for(let t=0;t<n;t++)o.push([t,e[t]])}let s=i[0].length/2,c=o.map(([n,r])=>{let o=dt(i[n],a[r],e[n].closed,t[r].closed),c=o.a,l=new Float64Array(2*s),u=new Float64Array(2*s),d=new Float64Array(2*s),f=Math.cos(-o.theta),p=Math.sin(-o.theta);for(let e=0;e<s;e++){l[2*e]=c[2*e]-o.ca[0],l[2*e+1]=c[2*e+1]-o.ca[1];let t=o.b[2*e]-o.cb[0],n=o.b[2*e+1]-o.cb[1];u[2*e]=(t*f-n*p)/o.sigma,u[2*e+1]=(t*p+n*f)/o.sigma,d[2*e]=o.b[2*e],d[2*e+1]=o.b[2*e+1]}return{a:c,aC:l,bT:u,bO:d,ca:o.ca,cb:o.cb,theta:o.theta,lnSigma:Math.log(o.sigma),res:o.res,closed:e[n].closed&&t[r].closed,block:null}});return c.length>1&&mt(c,s),{items:c,n:s}}var ht=Math.PI/8,gt=[.18343464249564978,.525532409916329,.7966664774136267,.9602898564975363],_t=[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626];function vt(e,t,n){let r=6*t,i=1-n,a=3*i*i,o=6*i*n,s=3*n*n,c=a*(e[r+2]-e[r])+o*(e[r+4]-e[r+2])+s*(e[r+6]-e[r+4]),l=a*(e[r+3]-e[r+1])+o*(e[r+5]-e[r+3])+s*(e[r+7]-e[r+5]);return Math.hypot(c,l)}function yt(e,t,n=1){let r=n/2,i=0;for(let n=0;n<4;n++)i+=_t[n]*(vt(e,t,r+r*gt[n])+vt(e,t,r-r*gt[n]));return i*r}function bt(e,t,n,r,i){let a=6*t,o=1-n,s=o*o*o,c=3*o*o*n,l=3*o*n*n,u=n*n*n;r[i]=s*e[a]+c*e[a+2]+l*e[a+4]+u*e[a+6],r[i+1]=s*e[a+1]+c*e[a+3]+l*e[a+5]+u*e[a+7]}function xt(e,t,n){let r=6*t,i=n?r+6:r,a=n?-1:1;for(let t of n?[4,2,0]:[2,4,6]){let n=a*(e[r+t]-e[i]),o=a*(e[r+t+1]-e[i+1]);if(n*n+o*o>1e-18)return[n,o]}return null}function St(e,t=ht){let n=e.pts,r=(n.length/2-1)/3,i=[];for(let e=0;e<r;e++)yt(n,e)>1e-9&&i.push(e);if(i.length===0)return[];let a=new Set,o=(e,r)=>{let i=xt(n,e,!0),o=xt(n,r,!1);i&&o&&Math.abs(Math.atan2(i[0]*o[1]-i[1]*o[0],i[0]*o[0]+i[1]*o[1]))>t&&a.add(r)};for(let e=0;e+1<i.length;e++)o(i[e],i[e+1]);return e.closed&&i.length>1&&o(i[i.length-1],i[0]),[...a].sort((e,t)=>e-t)}function Ct(e,t,n,r){if(n<=0)return 0;if(n>=r)return 1;let i=0,a=1,o=n/r;for(let s=0;s<12;s++){let s=yt(e,t,o)-n;if(Math.abs(s)<1e-10*r+1e-14)break;s>0?a=o:i=o;let c=vt(e,t,o),l=c>1e-12?o-s/c:(i+a)/2;l>i&&l<a||(l=(i+a)/2),o=l}return o}function wt(e,t=64,n=ht){let r=e.pts,i=(r.length/2-1)/3,a=new Float64Array(2*t),o=()=>{for(let e=0;e<t;e++)a[2*e]=r[0],a[2*e+1]=r[1];return a};if(i<1)return o();let s=Array(i),c=0;for(let e=0;e<i;e++)s[e]=yt(r,e),c+=s[e];if(c<1e-12)return o();let l=St(e,n),u=e.closed?l.length>0?l:[0]:[...new Set([0,...l,i])].sort((e,t)=>e-t),d=[];if(e.closed)for(let e=0;e<u.length;e++){let t=u[e],n=e+1<u.length?u[e+1]:u[0]+i;d.push([t,n])}else for(let e=0;e+1<u.length;e++)d.push([u[e],u[e+1]]);let f=d.map(([e,t])=>{let n=0;for(let r=e;r<t;r++)n+=s[r%i];return n}),p=e.closed?t:t-1;if(d.length>p)throw Error(`morphicons: N=${t} too small (${d.length} runs)`);let m=f.reduce((e,t)=>e+t,0)||1,h=f.map(e=>p*e/m),g=h.map(e=>Math.max(1,Math.floor(e))),_=p-g.reduce((e,t)=>e+t,0);if(_>0){let e=h.map((e,t)=>[Math.round((e-Math.floor(e))*1e9),t]).sort((e,t)=>t[0]-e[0]||e[1]-t[1]);for(let t=0;t<_;t++)g[e[t%g.length][1]]++}for(;_<0;){let e=0;for(let t=1;t<g.length;t++)g[t]>g[e]&&(e=t);if(g[e]<=1)break;g[e]--,_++}let v=0;for(let e=0;e<d.length;e++){let[t,n]=d[e],o=g[e],c=f[e],l=t%i*6;a[2*v]=r[l],a[2*v+1]=r[l+1],v++;let u=t,p=0;for(let e=1;e<o;e++){let t=c*e/o;for(;u<n-1&&p+s[u%i]<t;)p+=s[u%i],u++;let l=u%i,d=s[l];bt(r,l,d>1e-12?Ct(r,l,t-p,d):0,a,2*v),v++}}if(!e.closed){let e=6*i;a[2*v]=r[e],a[2*v+1]=r[e+1]}return a}function W(e,t=64){return $e(e).map(e=>({pts:wt(e,t),closed:e.closed}))}var Tt=class{x=1;v=0;k=250;c=24;config(e,t){this.k=e,this.c=t}start(){this.x=0,this.v>14&&(this.v=14),this.v<-14&&(this.v=-14)}step(e){let t=Math.max(1,Math.min(16,Math.ceil(e/(1/240)))),n=e/t;for(let e=0;e<t;e++){let e=this.k*(1-this.x)-this.c*this.v;this.v+=e*n,this.x+=this.v*n}return Math.abs(1-this.x)<.001&&Math.abs(this.v)<.02}},Et={smooth:{k:170,c:26},snappy:{k:420,c:30},bouncy:{k:300,c:14}},G=new Set,K=0,q=-1;function Dt(e){let t=q<0?0:Math.min(Math.max((e-q)/1e3,0),.1);q=e;for(let e of[...G])e(t);G.size>0?K=requestAnimationFrame(Dt):(K=0,q=-1)}function Ot(e){G.add(e),K===0&&(q=-1,K=requestAnimationFrame(Dt))}function kt(e){G.delete(e),G.size===0&&K!==0&&(cancelAnimationFrame(K),K=0,q=-1)}var At=new WeakMap,jt=new WeakMap,Mt=new WeakMap;function J(e){if(typeof e==`string`)return W(e);let t=At.get(e);return t||(t=W(e),At.set(e,t)),t}function Y(e){if(typeof e==`string`)return e;let t=jt.get(e);return t||(t=Ke($e(e)),jt.set(e,t)),t}function Nt(e,t){if(typeof e==`string`||typeof t==`string`)return U(J(e),J(t));let n=Mt.get(e);n||(n=new WeakMap,Mt.set(e,n));let r=n.get(t);return r||(r=U(J(e),J(t)),n.set(t,r)),r}function Pt(e){if(typeof e==`string`)return Et[e];let t=Et.snappy;return{k:e?.stiffness??t.k,c:e?.damping??t.c}}function Ft(e,t,n){let r=new Tt,i=n?.reducedMotion??`never`,a=t,o=!0,s=null,c=null,l=null,u=1,d=!1,f=!1;e.setAttribute(`d`,Y(t));let p=t=>{let n=s,r=c,i=l;n&&r&&i&&(u=t,tt(n,t,r),e.setAttribute(`d`,Ge(r,i)))},m=()=>{d&&(d=!1,kt(h))},h=e=>{let t=r.step(e);p(r.x),t&&(m(),g())},g=()=>{o=!0,s=null,c=null,l=null,u=1,r.x=1,r.v=0,e.setAttribute(`d`,Y(a))},_=()=>{let e=s,t=c;return o||!e||!t?J(a):t.map((t,n)=>({pts:Float64Array.from(t),closed:e.items[n].closed}))},v=e=>{s=o?Nt(a,e):U(_(),J(e)),c=et(s),l=s.items.map(e=>e.closed),a=e,o=!1},y=e=>{m(),a=e,g()},b=()=>i===`always`?!0:i!==`user`||typeof matchMedia>`u`?!1:matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,x=(e,t)=>{if(f)return;let n=!o&&s!==null&&e===a;m(),r.v=0,n||v(e),p(t)};return{morphTo(e,t){if(f||e===a&&(o||d))return;if(b()){y(e);return}let{k:n,c:i}=Pt(t);r.config(n,i),v(e),r.start(),d||(d=!0,Ot(h))},set(e){f||y(e)},seek:x,get progress(){return o?1:u},set progress(e){f||x(a,e)},get reducedMotion(){return i},set reducedMotion(e){i=e},destroy(){m(),f=!0,s=null,c=null,l=null}}}var X=e(n(),1),Z=e(C(),1),It=typeof document>`u`?X.useEffect:X.useLayoutEffect;function Lt(e,t,n){if(n<=0)return Y(e);if(n>=1)return Y(t);let r=U(W(e),W(t)),i=et(r);return tt(r,n,i),Ge(i,r.items.map(e=>e.closed))}var Rt=(0,X.forwardRef)(function(e,t){let{icon:n,from:r,to:i,progress:a,spring:o,reducedMotion:s,size:c=24,color:l=`currentColor`,strokeWidth:u=2,absoluteStrokeWidth:d,label:f,...p}=e,m=r!==void 0&&i!==void 0,h=n??r??i,[g]=(0,X.useState)(()=>m?Lt(r,i,a??0):h===void 0?``:Y(h)),_=(0,X.useRef)(null),v=(0,X.useRef)(null),y=(0,X.useRef)(o);y.current=o;let b=(0,X.useRef)(s);b.current=s;let x=(0,X.useRef)(n),S=(0,X.useRef)(m),C=(0,X.useRef)(!1),w=(0,X.useRef)(!1),T=(0,X.useRef)(null),E=(0,X.useCallback)(e=>{if(v.current)return v.current;let t=_.current;return C.current||!t?null:(v.current=Ft(t,e,{reducedMotion:b.current}),v.current)},[]);It(()=>{C.current=!1;let e=_.current;if(e&&h!==void 0){let t=Ft(e,m?r:h,{reducedMotion:b.current});if(v.current=t,m){T.current=[r,i];let e=a??0;e<=0?t.set(r):e>=1?t.set(i):(t.seek(i,e),w.current=!0)}}return()=>{C.current=!0,v.current?.destroy(),v.current=null,w.current=!1,T.current=null}},[]),(0,X.useEffect)(()=>{let e=v.current;e&&(e.reducedMotion=s??`never`)},[s]),(0,X.useEffect)(()=>{let e=S.current&&!m;S.current=m;let t=n!==x.current;if(x.current=n,m||n===void 0||!t&&!e)return;T.current=null,w.current=!1;let r=v.current;r?r.morphTo(n,y.current):E(n)},[n,m,E]),(0,X.useEffect)(()=>{if(!m)return;let e=v.current??E(r);if(!e)return;let t=a??0;(!T.current||T.current[0]!==r||T.current[1]!==i)&&(T.current=[r,i],w.current=!1),t<=0?(e.set(r),w.current=!1):t>=1?(e.set(i),w.current=!1):(w.current||=(e.set(r),!0),e.seek(i,t))},[m,r,i,a,E]),(0,X.useImperativeHandle)(t,()=>({morphTo:(e,t)=>{T.current=null,w.current=!1;let n=v.current;n?n.morphTo(e,t??y.current):E(e)},set:e=>{T.current=null,w.current=!1;let t=v.current;t?t.set(e):E(e)}}),[E]);let D=d?Number(u)*24/Number(c):u;return(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:c,height:c,viewBox:`0 0 24 24`,fill:`none`,stroke:l,strokeWidth:D,strokeLinecap:`round`,strokeLinejoin:`round`,role:f?`img`:void 0,"aria-hidden":!f||void 0,...p,children:[f?(0,Z.jsx)(`title`,{children:f}):null,(0,Z.jsx)(`path`,{ref:_,d:g})]})});function zt(e){return typeof e==`object`&&!!e&&`lucide`in e}function Bt(e){let t=(0,F.c)(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({reducedMotion:a,icon:n,strokeWidth:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`user`:a,s=m(),c=zt(n)?s===`p4`?n.p4??n.lucide:n.lucide:n,l;t[5]!==s||t[6]!==i?(l=s===`p4`?E(i):i,t[5]=s,t[6]=i,t[7]=l):l=t[7];let u=l,d;t[8]===c?d=t[9]:(d=c===void 0?{}:{icon:c},t[8]=c,t[9]=d);let f;t[10]===u?f=t[11]:(f=u===void 0?{}:{strokeWidth:u},t[10]=u,t[11]=f);let p;return t[12]!==r||t[13]!==o||t[14]!==d||t[15]!==f?(p=(0,Z.jsx)(Rt,{reducedMotion:o,...d,...f,...r}),t[12]=r,t[13]=o,t[14]=d,t[15]=f,t[16]=p):p=t[16],p}var Vt=`wco`,Ht=`electron`,Ut=`electron-windows`,Wt=52;function Gt(){return typeof navigator>`u`?null:navigator.windowControlsOverlay??null}function Kt(){if(typeof document>`u`)return()=>{};let e=Gt(),t=()=>{document.documentElement.classList.toggle(Vt,e!==null&&e.visible)};return t(),e?(e.addEventListener(`geometrychange`,t),()=>{e.removeEventListener(`geometrychange`,t)}):()=>{}}function qt(e){let t=Gt();return t?.addEventListener(`geometrychange`,e),()=>t?.removeEventListener(`geometrychange`,e)}function Jt(){if(se&&o(navigator.platform))return Wt;let e=Gt();return e?.visible?e.getTitlebarAreaRect().bottom:0}function Yt(){return(0,X.useSyncExternalStore)(qt,Jt,Xt)}function Xt(){return 0}function Zt(e){return D(e)?[Ht,Ut]:[Ht]}function Qt(e){if(typeof document>`u`)return()=>{};let t=Zt(e);return document.documentElement.classList.add(...t),()=>{document.documentElement.classList.remove(...t)}}var Q=5,$t=re,en=(0,X.createContext)(null),$=(0,X.createContext)(null);function tn(e){let t=(0,F.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({onScrollCapture:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=(0,X.useRef)(null),a;t[3]===n?a=t[4]:(a=e=>{n?.(e);let t=i.current;t&&!t.trigger.contains(t.trigger.ownerDocument.activeElement)&&(i.current=null,t.actionsRef.current?.close())},t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Z.jsx)($,{value:i,children:(0,Z.jsx)(`div`,{...r,onScrollCapture:a})}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function nn(e){let t=(0,X.use)($),n=(0,X.useRef)(null),r=e.actionsRef??n;return(0,X.useEffect)(()=>()=>{t?.current?.actionsRef===r&&(t.current=null)},[r,t]),t?(0,Z.jsx)(en,{value:r,children:(0,Z.jsx)(ae,{...e,actionsRef:r,onOpenChange:(n,i)=>{e.onOpenChange?.(n,i),!n&&!i.isCanceled&&t.current?.actionsRef===r&&(t.current=null)}})}):(0,Z.jsx)(ae,{...e})}function rn(e){let t=(0,X.use)($),n=(0,X.use)(en);return!t||!n?(0,Z.jsx)(N,{"data-slot":`tooltip-trigger`,...e}):(0,Z.jsx)(N,{"data-slot":`tooltip-trigger`,...e,onMouseEnter:r=>{e.onMouseEnter?.(r),t.current={trigger:r.currentTarget,actionsRef:n}}})}function an(e){let t=(0,F.c)(5),n=Q+Yt(),r;t[0]===n?r=t[1]:(r={top:n,right:Q,bottom:Q,left:Q},t[0]=n,t[1]=r);let i;return t[2]!==e||t[3]!==r?(i=(0,Z.jsx)(M,{className:`pointer-events-none z-[140] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none`,collisionPadding:r,"data-slot":`tooltip-positioner`,...e}),t[2]=e,t[3]=r,t[4]=i):i=t[4],i}function on(e){let t=(0,F.c)(25),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:i,align:o,sideOffset:s,side:c,variant:l,anchor:n,children:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=o===void 0?`center`:o,d=s===void 0?4:s,f=c===void 0?`top`:c,p=l===void 0?`default`:l,m=p===`glass`?`dropdown-glass shadow-xl shadow-black/25 before:hidden`:p===`inverse`?`rounded-xl border border-foreground bg-foreground text-background shadow-md/10 before:hidden`:`border bg-popover not-dark:bg-clip-padding shadow-md/5`,h=p===`code`?`max-w-120 wrap-anywhere text-left font-mono text-[11px] leading-relaxed`:`max-w-80 wrap-anywhere whitespace-normal leading-snug`,g;t[9]!==i||t[10]!==m||t[11]!==h?(g=ee(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md text-popover-foreground text-xs transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,m,h,i),t[9]=i,t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]===r?_=t[14]:(_=(0,Z.jsx)(oe,{className:`relative size-full overflow-clip px-(--viewport-inline-padding) py-1 [--viewport-inline-padding:--spacing(2)] data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:truncate **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,"data-slot":`tooltip-viewport`,children:r}),t[13]=r,t[14]=_);let v;t[15]!==a||t[16]!==g||t[17]!==_?(v=(0,Z.jsx)(ie,{className:g,"data-slot":`tooltip-popup`,...a,children:_}),t[15]=a,t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;return t[19]!==u||t[20]!==n||t[21]!==f||t[22]!==d||t[23]!==v?(y=(0,Z.jsx)(j,{children:(0,Z.jsx)(an,{align:u,anchor:n,side:f,sideOffset:d,children:v})}),t[19]=u,t[20]=n,t[21]=f,t[22]=d,t[23]=v,t[24]=y):y=t[24],y}export{ke as A,ze as B,Se as C,Ee as D,Te as E,Pe as F,Ve as H,Fe as I,Ie as L,je as M,Me as N,De as O,Ne as P,Le as R,xe as S,we as T,He as U,Be as V,ge as _,rn as a,ye as b,Bt as c,ue as d,de as f,he as g,me as h,tn as i,Ae as j,Oe as k,ce as l,pe as m,on as n,Qt as o,fe as p,$t as r,Kt as s,nn as t,le as u,_e as v,Ce as w,be as x,ve as y,Re as z};
|
|
2
|
+
//# sourceMappingURL=tooltip-DRGG_vM1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{c as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{c as e}from"./mermaid-parser.core-Ch6yrkIv.js";export{e as createTreeViewServices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{o as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{o as e}from"./mermaid-parser.core-Ch6yrkIv.js";export{e as createTreemapServices};
|