@p4code/cli 0.9.13 → 0.9.15
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/{AcpMcpStdioBridge-DGUY2q8q.mjs → AcpMcpStdioBridge-BPNHFfTr.mjs} +11 -4
- package/dist/AcpMcpStdioBridge-CtXfvrFO.mjs +3 -0
- package/dist/{Effect-Cus50zSB.mjs → Effect-COOccdaU.mjs} +25 -2
- package/dist/{Schema-B1iWvOKX.mjs → Schema-BXiVImR2.mjs} +2 -2
- package/dist/{Stream-XZd8srjf.mjs → Stream-D2XZdzH6.mjs} +45 -3
- package/dist/bin.mjs +15 -2
- package/dist/{binCli-D22yxtxv.mjs → binCli-06acKUH_.mjs} +7990 -4896
- package/dist/claude-history-worker.mjs +1 -1
- package/dist/{claudeHistoryWorker-Ew_jxLJH.mjs → claudeHistoryWorker-BJKXFgWC.mjs} +4 -4
- package/dist/client/.vite/manifest.json +2120 -2104
- package/dist/client/assets/{2NI2N5EU-DBKJSvEQ.js → 2NI2N5EU-CzVcbH89.js} +2 -2
- package/dist/client/assets/{4UO7MD6I-1JuY3zN7.js → 4UO7MD6I-DS3UFSUE.js} +2 -2
- package/dist/client/assets/{5B3SVYGG-CwgmePuE.js → 5B3SVYGG-lbor_c4_.js} +2 -2
- package/dist/client/assets/{5GK6JWQ2-D9VJsozU.js → 5GK6JWQ2-DufacBFC.js} +2 -2
- package/dist/client/assets/{5N7A7DKN-CFgZoUw5.js → 5N7A7DKN-B3iWX-TC.js} +2 -2
- package/dist/client/assets/{5OC2THR4-Cx6keXWX.js → 5OC2THR4-DoDDWXtD.js} +2 -2
- package/dist/client/assets/{5S6HY5KT-Ce1reKKv.js → 5S6HY5KT-7n94quvm.js} +2 -2
- package/dist/client/assets/{6IMQ5BUJ-D7X0q9kf.js → 6IMQ5BUJ-CqcR9lZq.js} +2 -2
- package/dist/client/assets/{6OLKWJ4F-YLfMA9aH.js → 6OLKWJ4F-BeCI6be_.js} +2 -2
- package/dist/client/assets/{74OO7NKP-Wm5pZPTC.js → 74OO7NKP-XWvi4Kgp.js} +2 -2
- package/dist/client/assets/{75O6YZUN-D2He6_fp.js → 75O6YZUN-BbbGiqdI.js} +2 -2
- package/dist/client/assets/{77XECAW3-CV_JLSeU.js → 77XECAW3-BVGMXOi_.js} +2 -2
- package/dist/client/assets/{ABYRPUBD-D0xOVN1A.js → ABYRPUBD-D4oehH5y.js} +2 -2
- package/dist/client/assets/AlertDialogRoot-BI19p1Pb.js +2 -0
- package/dist/client/assets/{AnimatedHeight-yuTG4G03.js → AnimatedHeight-DT585xP0.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-CCBOJP5G.js → AuthSurfaceShell-C312CXz7.js} +2 -2
- package/dist/client/assets/{BB2UYUI2-BdXGRPif.js → BB2UYUI2-BkFcdWkE.js} +2 -2
- package/dist/client/assets/{BUM34MOA-isqGnSvm.js → BUM34MOA-DK6xDbTB.js} +2 -2
- package/dist/client/assets/{CEQABKGZ-DE0PWXRq.js → CEQABKGZ-rLn9wSBN.js} +2 -2
- package/dist/client/assets/{CXAC5362-0Zr5tv4C.js → CXAC5362-C1eQCQMX.js} +2 -2
- package/dist/client/assets/ChatGptUsageButton-BldpBXxU.js +2 -0
- package/dist/client/assets/ChatMarkdown-BUoR67CT.js +49 -0
- package/dist/client/assets/CheckboxIndicator-C4iAbUMh.js +2 -0
- package/dist/client/assets/ClippedText-TtLeyAVc.js +2 -0
- package/dist/client/assets/CodexSetupSection.logic-BO6ZAijp.js +2 -0
- package/dist/client/assets/ComboboxClear-CtNsa8Al.js +2 -0
- package/dist/client/assets/ComboboxGroupLabel-vQ7y8c50.js +2 -0
- package/dist/client/assets/{CommandBlock-CluJmhVo.js → CommandBlock-40eSIrOe.js} +2 -2
- package/dist/client/assets/CompositeRoot-CL7X20MU.js +2 -0
- package/dist/client/assets/ConnectAgentSurface-B_AYPHWs.js +2 -0
- package/dist/client/assets/{ConnectionStatusDot-CpmZ8NE5.js → ConnectionStatusDot-7Tjfknn6.js} +2 -2
- package/dist/client/assets/{DRLTVNUE-Dttc5MrD.js → DRLTVNUE-BPoomdQn.js} +2 -2
- package/dist/client/assets/{DYY6UVD2-DTrZAR1D.js → DYY6UVD2-BVvdA84B.js} +2 -2
- package/dist/client/assets/DevicePanel-Cqexcbm2.js +2 -0
- package/dist/client/assets/DeviceSetup-Cdyw5Z9a.js +2 -0
- package/dist/client/assets/DialogTitle-CFYK6V6-.js +2 -0
- package/dist/client/assets/{DiffCommentAnnotation-6V9nI3Cm.js → DiffCommentAnnotation-C28NAT6f.js} +3 -3
- package/dist/client/assets/{DiffFileTree-CBEjDul5.js → DiffFileTree-DNP9E3To.js} +2 -2
- package/dist/client/assets/DiffPanel-CrswOKS6.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-f4-YQsHo.js → DiffWorkerPoolProvider-TgqbZJCv.js} +3 -3
- package/dist/client/assets/{EmbeddedDesign-DSEjf0KK.js → EmbeddedDesign-Bdq5oAfI.js} +8 -8
- package/dist/client/assets/{EnvironmentMachineIcon-B6wAZat7.js → EnvironmentMachineIcon-B81Bujkx.js} +2 -2
- package/dist/client/assets/{ExpandableText-Cjat32hh.js → ExpandableText-CViqRFUp.js} +2 -2
- package/dist/client/assets/{FNOVOB4O-LisHSqAM.js → FNOVOB4O-CmMgcKnc.js} +2 -2
- package/dist/client/assets/FieldControl-95mCsa0m.js +2 -0
- package/dist/client/assets/{FileDiff-Bj9kBLN2.js → FileDiff-BnZVGRTP.js} +2 -2
- package/dist/client/assets/FilePreviewPanel-BUTTBdpa.js +34 -0
- package/dist/client/assets/{FoldedSettingsSection-DIlgxayr.js → FoldedSettingsSection-CioXtXIT.js} +2 -2
- package/dist/client/assets/FormContext-BcA1kdFD.js +2 -0
- package/dist/client/assets/{HDGCDEEZ-Bn1jLSys.js → HDGCDEEZ-BsN0BbNt.js} +2 -2
- package/dist/client/assets/{HSJLKHB7-CHpiqxlA.js → HSJLKHB7-Bn8VFRt5.js} +2 -2
- package/dist/client/assets/{Icons-Be1TL1sN.js → Icons-D_LFMxsj.js} +2 -2
- package/dist/client/assets/Input-C9KIhPlP.js +2 -0
- package/dist/client/assets/JZOYTAAL-B8H2VC7A.js +1 -0
- package/dist/client/assets/{K3MD6TGW-D5oCFPkP.js → K3MD6TGW-BEaTend7.js} +2 -2
- package/dist/client/assets/{K7RP3OMA-ZIPW--CU.js → K7RP3OMA-Ca837W6z.js} +2 -2
- package/dist/client/assets/KeybindingsSettings.logic-DwMUZYvv.js +2 -0
- package/dist/client/assets/{LHDIQX7Q-BkDTNH4X.js → LHDIQX7Q-kLYZmy22.js} +2 -2
- package/dist/client/assets/{LUXOKEGN-BMFFLlMk.js → LUXOKEGN-C6-9ARpy.js} +2 -2
- package/dist/client/assets/LinkMachineSelect-BVNnYUBb.js +2 -0
- package/dist/client/assets/{MathTypeset-DpXMOBGY.js → MathTypeset-CO0wlzDm.js} +2 -2
- package/dist/client/assets/{N3JZAHOW-CV9TIlCo.js → N3JZAHOW-BFAKVTw8.js} +2 -2
- package/dist/client/assets/{NUIALGQ3-WBqakHka.js → NUIALGQ3-DJg3tvBl.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-BfU7AxbB.js → NoProjectsHero-ClDVFY0-.js} +2 -2
- package/dist/client/assets/{O65XPQGZ-CYhr2tYZ.js → O65XPQGZ-C5dkxqix.js} +2 -2
- package/dist/client/assets/{O7XIQ6OM-D2JMbFqc.js → O7XIQ6OM-BUT403yQ.js} +2 -2
- package/dist/client/assets/{OFQON5FD-B1aTfx9o.js → OFQON5FD-BPK3FXUG.js} +2 -2
- package/dist/client/assets/P4ConnectAccountPages-ChT866qO.js +2 -0
- package/dist/client/assets/{P4ConnectSidebarSignIn-Bc4xlsJh.js → P4ConnectSidebarSignIn-D7BBbl_u.js} +2 -2
- package/dist/client/assets/{PJQHF43J-Dm3RMjWi.js → PJQHF43J-DrfICuu-.js} +2 -2
- package/dist/client/assets/PanelLayoutControls-DMUv135M.js +216 -0
- package/dist/client/assets/PierreEntryIcon-DLXDEcqA.js +2 -0
- package/dist/client/assets/PopoverHandle-D8JhsX32.js +2 -0
- package/dist/client/assets/PreviewPanel-D7YWnWZS.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-BZSw74tU.js +2 -0
- package/dist/client/assets/ProjectFavicon-BbtNdeB8.js +3 -0
- package/dist/client/assets/{ProjectIconPickerDialog-D03-Jrsi.js → ProjectIconPickerDialog-7vur_TCX.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-C8FlNLaU.js → ProjectMonogram-CjAGnMXr.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-DMTbKboR.js → ProviderAuthTerminal-83vDClUK.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-af7MWLPO.js +2 -0
- package/dist/client/assets/{ProviderSettingsForm-DrCFln8c.js → ProviderSettingsForm-B4N4tsxv.js} +2 -2
- package/dist/client/assets/PullRequestCodeTab-B07M_QW4.js +6 -0
- package/dist/client/assets/{RHNBAITX-C7mnxleL.js → RHNBAITX-CzAdLNMd.js} +2 -2
- package/dist/client/assets/ReadOnlySourcePreview-CRy5hHfx.js +2 -0
- package/dist/client/assets/{RedactedSensitiveText-DACYfm7e.js → RedactedSensitiveText-B-u4PB3I.js} +2 -2
- package/dist/client/assets/RenderErrorBoundary-BbxLD-66.js +23 -0
- package/dist/client/assets/RightPanelResizeHandle-BODMyZa6.js +2 -0
- package/dist/client/assets/{SLD4V6NK-BkeVs7gb.js → SLD4V6NK-DIFaAadw.js} +2 -2
- package/dist/client/assets/ScheduledTasksSettings-BTi69FRq.js +6 -0
- package/dist/client/assets/{ScopedSwitch-D1uscoF8.js → ScopedSwitch-sSIKDf2q.js} +2 -2
- package/dist/client/assets/ScrollAreaCorner-CsKGemsf.js +2 -0
- package/dist/client/assets/{SecretInput-ZW3hnCoN.js → SecretInput-DxjaAnSE.js} +2 -2
- package/dist/client/assets/SelectScrollUpArrow-BMZtcPXM.js +2 -0
- package/dist/client/assets/SelfImproveSettingsSection-Dx6spJXh.js +2 -0
- package/dist/client/assets/SettingsPanels-DhuEF0_Y.js +46 -0
- package/dist/client/assets/{SettingsPanels.logic-H5v8FTnu.js → SettingsPanels.logic-D5Fnq4gS.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-gFtgpybO.js → SettingsScopeNotice-B1JDmqM6.js} +2 -2
- package/dist/client/assets/{SidebarStageBackdrop-DSuAw8Ob.js → SidebarStageBackdrop-Bbv3JBlJ.js} +2 -2
- package/dist/client/assets/{T3PCR2KE-D6MHoseG.js → T3PCR2KE-CACWvOHn.js} +2 -2
- package/dist/client/assets/{TKWO2OVW-gZK7dLQZ.js → TKWO2OVW-DpiGaVko.js} +2 -2
- package/dist/client/assets/{TSHNXIZL-BKUmF3Cu.js → TSHNXIZL-Cs6g4gXN.js} +2 -2
- package/dist/client/assets/ThemeEditorPanel-w-RJEK3t.js +5 -0
- package/dist/client/assets/{ComposerPromptEditor-DR1WsmjD.js → ThreadDetailsItemsMenu-DEwUOoLt.js} +60 -60
- package/dist/client/assets/ThreadTerminalDrawer-CY2qHldP.js +5 -0
- package/dist/client/assets/TooltipProvider-Czzm7ro-.js +2 -0
- package/dist/client/assets/{UQJE5E4I-D6av033t.js → UQJE5E4I-C2gKDRv_.js} +2 -2
- package/dist/client/assets/{USNYFO5S-Cy6sDMEU.js → USNYFO5S-CQ8LfY6F.js} +2 -2
- package/dist/client/assets/{Virtualizer-B_IsUzcr.js → Virtualizer-DsEq6qUF.js} +2 -2
- package/dist/client/assets/{WEVWDWVA-Cq1fZcng.js → WEVWDWVA-DK2GTAKk.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-DbQW7iNE.js → WorkspaceBreadcrumb-BImJJpuo.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-BxI-x0oV.js → WorkspacePageContainer-BlYFBUKE.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-Bc_F6Uog.js → WorkspacePageHeader-B7O16593.js} +2 -2
- package/dist/client/assets/{X5RFHQXM-DdtKPA-W.js → X5RFHQXM-sPxDCIwv.js} +2 -2
- package/dist/client/assets/{X62E3GBT-C7OjB5pB.js → X62E3GBT-DVWr270S.js} +2 -2
- package/dist/client/assets/{XBNEOJTC-_Tbl2Kwh.js → XBNEOJTC-C4ZNtSrU.js} +2 -2
- package/dist/client/assets/{YHV2MVVZ-CA4YS5f4.js → YHV2MVVZ-aSYUfq9n.js} +2 -2
- package/dist/client/assets/{YURCZMG2-DSnhUUsH.js → YURCZMG2-fnxZxUja.js} +2 -2
- package/dist/client/assets/{YVG2LODB-D-qFsH5t.js → YVG2LODB-DxaZKaXT.js} +2 -2
- package/dist/client/assets/_chat-BeJoXsdK.js +47 -0
- package/dist/client/assets/{_chat.design-SX7SShjI.js → _chat.design-AJz30uXq.js} +2 -2
- package/dist/client/assets/_chat.index-D1csjyRQ.js +2 -0
- package/dist/client/assets/_chat.new-IhhWgwNo.js +4 -0
- package/dist/client/assets/_chat.pull-requests-B84LUHIv.js +2 -0
- package/dist/client/assets/{alert-BOVMKHDy.js → alert-D6MFRWZv.js} +2 -2
- package/dist/client/assets/{alert-dialog-Du3fYY3I.js → alert-dialog-BCq0Qme9.js} +2 -2
- package/dist/client/assets/assetUrls-CpRsTTqn.js +2 -0
- package/dist/client/assets/assets-Dh1LFwqL.js +2 -0
- package/dist/client/assets/browserHistoryStore-BVEWgOnh.js +2 -0
- package/dist/client/assets/{browserLinkTarget-Bf9H9UVe.js → browserLinkTarget-IOprEiHF.js} +2 -2
- package/dist/client/assets/{checkbox-d50pgAVe.js → checkbox-CGhJug34.js} +2 -2
- package/dist/client/assets/{color-picker-zcQshxaE.js → color-picker-CRaqqL5F.js} +2 -2
- package/dist/client/assets/{combobox-BrCd1kH5.js → combobox-5RzytEjd.js} +2 -2
- package/dist/client/assets/{command-DFkhX6wm.js → command-06bu9QoQ.js} +2 -2
- package/dist/client/assets/{connect-DkH09d_M.js → connect-7OV1IEwO.js} +2 -2
- package/dist/client/assets/connect-agent-B6pgZuy8.js +2 -0
- package/dist/client/assets/design-DSoix9e1.js +2 -0
- package/dist/client/assets/device-DQmQm4GC.js +2 -0
- package/dist/client/assets/{dialog-BpR3dRVS.js → dialog-DTVhbEqi.js} +2 -2
- package/dist/client/assets/{diffRendering-BuOJdnZ8.js → diffRendering-DAzPanqh.js} +3 -3
- package/dist/client/assets/{dist-CMJL98Oz.js → dist-BuxsAlG0.js} +3 -3
- package/dist/client/assets/draft-input-BTetoXSt.js +2 -0
- package/dist/client/assets/{duoViewer-ChrCWcjO.js → duoViewer-DxmaOmHS.js} +2 -2
- package/dist/client/assets/{dynamic-CVt07u2H.js → dynamic-wBSCLNxy.js} +3 -3
- package/dist/client/assets/{embeddedScripts-BWqMWwOU.js → embeddedScripts-ZebptRJ0.js} +2 -2
- package/dist/client/assets/{empty-Cy-8us9l.js → empty-B4h5DyMQ.js} +2 -2
- package/dist/client/assets/entities-CWtNgawi.js +2 -0
- package/dist/client/assets/env-BfPir1X4.js +2 -0
- package/dist/client/assets/{fileLinks-BgHa8yE4.js → fileLinks-BfcK2bJU.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-CBn1SzSX.js → fileTreeExpansion-DjiK1m5s.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-IQ1TDM4E.js → getDiffFileInput-XE3jyXxK.js} +2 -2
- package/dist/client/assets/{guideRunStore-DfNfJUIu.js → guideRunStore-CzF0q6A8.js} +2 -2
- package/dist/client/assets/{htmlRender-lwQ3HyqS.js → htmlRender-DGe3WaPg.js} +2 -2
- package/dist/client/assets/index-CurDuwfz.js +3 -0
- package/dist/client/assets/{input-FUjAUGXY.js → input-CQaedaQh.js} +2 -2
- package/dist/client/assets/{input-group-BdZ_CKvG.js → input-group-BQ_2ox-w.js} +2 -2
- package/dist/client/assets/{kbd-CGgmav-Q.js → kbd-DQRicdHu.js} +2 -2
- package/dist/client/assets/key-round-POn1aRXW.js +2 -0
- package/dist/client/assets/{keybindings-DuCyi9aT.js → keybindings-tgj8XFFz.js} +2 -2
- package/dist/client/assets/{lazy-Bs2SFpYS.js → lazy-DmPH_lNd.js} +4 -4
- package/dist/client/assets/{lazyRouteComponent-CYNRqeNP.js → lazyRouteComponent-CE6uW_5p.js} +2 -2
- package/dist/client/assets/{link-DW1IQk5s.js → link-CKfckeju.js} +2 -2
- package/dist/client/assets/{linkedPrompt-yo2xi4Z8.js → linkedPrompt-68_t5vwh.js} +2 -2
- package/dist/client/assets/main-B1sXOjZZ.js +37 -0
- package/dist/client/assets/main-CbkvDRKP.css +2 -0
- package/dist/client/assets/{mediaReference-BQ9J-tjl.js → mediaReference-DQ6GIZY7.js} +2 -2
- package/dist/client/assets/mediaSource-DfTsMdqm.js +2 -0
- package/dist/client/assets/number-field-xEi5ylvp.js +2 -0
- package/dist/client/assets/{observeResize-CZuDzlcZ.js → observeResize-BbXolq6K.js} +2 -2
- package/dist/client/assets/onboarding-CkdZxdNL.js +2 -0
- package/dist/client/assets/openFileInPreview-BHhDd-id.js +2 -0
- package/dist/client/assets/{p4ProjectFile-jwYvYDE-.js → p4ProjectFile-5VDI-yAx.js} +2 -2
- package/dist/client/assets/{pair-OPslYcM9.js → pair-BpCo33SH.js} +2 -2
- package/dist/client/assets/{pendingSendStore-CLwMM17y.js → pendingSendStore-Ba--K6cH.js} +2 -2
- package/dist/client/assets/{phoneViewer-CkTxyA9N.js → phoneViewer-C1aGY-h1.js} +2 -2
- package/dist/client/assets/{pierre-icons-DY8ZeGCr.js → pierre-icons-BdcegjLq.js} +3 -3
- package/dist/client/assets/popover-BB2K1---.js +2 -0
- package/dist/client/assets/preview-B4_sjsUX.js +2 -0
- package/dist/client/assets/preview-DgXn94k5.js +2 -0
- package/dist/client/assets/{previewMiniPlayerStore-DUPe1gGI.js → previewMiniPlayerStore-DguWdL1f.js} +2 -2
- package/dist/client/assets/primary-BDoRkJqU.js +2 -0
- package/dist/client/assets/primaryCloudLinkState-Cc0Xobh6.js +2 -0
- package/dist/client/assets/projectFilesQueryState-BdfD5cZ2.js +2 -0
- package/dist/client/assets/projectScriptEditor-faOsFlds.js +2 -0
- package/dist/client/assets/{providerSkills-Ca_7EbAx.js → providerSkills-C8PrnHb-.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-DYx7bEwE.js → pullRequestDetail.logic-kOhR5jr9.js} +4 -4
- package/dist/client/assets/{pullRequestIcons-csprKuju.js → pullRequestIcons-CbDg0o8q.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-_uEYgfaW.js → pullRequestReviewStore-0WIH92NQ.js} +2 -2
- package/dist/client/assets/pullRequests-Cf9E2kW-.js +2 -0
- package/dist/client/assets/queries-Cl508kPw.js +2 -0
- package/dist/client/assets/query-D3KVoW9G.js +2 -0
- package/dist/client/assets/radio-group-BnZVD-CO.js +2 -0
- package/dist/client/assets/relay-Do9UB5iT.js +2 -0
- package/dist/client/assets/{renderScheduler-DR2WAtIH.js → renderScheduler-DsjkE3rh.js} +2 -2
- package/dist/client/assets/rightPanelStore-DB1OP4MT.js +2 -0
- package/dist/client/assets/runtime-BBYIQ0f-.js +7 -0
- package/dist/client/assets/runtimeModeConfig-CRXk0H6e.js +2 -0
- package/dist/client/assets/scheduledTasksSettings.logic-Dw_swg_M.js +3 -0
- package/dist/client/assets/{scroll-area-Cf7uLi_s.js → scroll-area-Cm9XZdHp.js} +2 -2
- package/dist/client/assets/{select-vBkqTMKL.js → select-Cz_1ByI4.js} +2 -2
- package/dist/client/assets/{selfImproveFindings-4GGN9cRm.js → selfImproveFindings-DtoTFNL_.js} +2 -2
- package/dist/client/assets/semver-BoU8Be_3.js +2 -0
- package/dist/client/assets/server-Dkj4NeYG.js +2 -0
- package/dist/client/assets/session-CBEVNHld.js +2 -0
- package/dist/client/assets/{session-logic-D8FbVFDm.js → session-logic-DB_ei-pn.js} +4 -4
- package/dist/client/assets/{settings-C58Y7hMl.js → settings-Yvo1RMvg.js} +2 -2
- package/dist/client/assets/{settings.appearance-C9ZmuG-n.js → settings.appearance-ONDNW-gc.js} +2 -2
- package/dist/client/assets/settings.archived-CjdyCMyi.js +2 -0
- package/dist/client/assets/{settings.computer-use-CeIs-8zf.js → settings.computer-use-97ffp9C_.js} +2 -2
- package/dist/client/assets/settings.connections-w3qKRKGa.js +2 -0
- package/dist/client/assets/settings.data-controls-C8ozSexu.js +2 -0
- package/dist/client/assets/{settings.decisions-DagsCV4K.js → settings.decisions-BvR3_OTv.js} +2 -2
- package/dist/client/assets/{settings.designs-DEThhuEj.js → settings.designs-CB8PWHwW.js} +2 -2
- package/dist/client/assets/settings.diagnostics-DdInPrq0.js +2 -0
- package/dist/client/assets/{settings.general-RgU1jNmB.js → settings.general-Cf_bIbyH.js} +2 -2
- package/dist/client/assets/settings.integrations-pj9KVvtd.js +2 -0
- package/dist/client/assets/settings.keybindings-3diGciV1.js +2 -0
- package/dist/client/assets/{settings.open-source-licenses-rG8Neftl.js → settings.open-source-licenses-DlqO6HBa.js} +2 -2
- package/dist/client/assets/{settings.plugins-Dr0VpcPy.js → settings.plugins-DpaJJH_J.js} +4 -4
- package/dist/client/assets/settings.projects-Bfh3CJ1a.js +4 -0
- package/dist/client/assets/settings.providers-DNiEeQYT.js +3 -0
- package/dist/client/assets/{settings.scheduled-tasks-DwUd14Xj.js → settings.scheduled-tasks-BIaHEXVF.js} +2 -2
- package/dist/client/assets/settings.secrets-BSNXem5A.js +2 -0
- package/dist/client/assets/{settings.snap-shot-CTMJRtJe.js → settings.snap-shot-Ds0ywKhE.js} +2 -2
- package/dist/client/assets/settings.source-control-C41AVNSm.js +2 -0
- package/dist/client/assets/settings.storage-B-Hm5vEC.js +2 -0
- package/dist/client/assets/settingsLayout-BbEwQ6Fy.js +3 -0
- package/dist/client/assets/{sidebar-O52WtiJv.js → sidebar-B70J7v16.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-BYVdJp_w.js → sidebarProjectGrouping-Cy06FqQF.js} +2 -2
- package/dist/client/assets/{skeleton-PlPtYr_f.js → skeleton-BavPX8IL.js} +2 -2
- package/dist/client/assets/sourceControl-De64nxc-.js +2 -0
- package/dist/client/assets/{sourceControlClients-CtMx7u86.js → sourceControlClients-BofXnV5S.js} +2 -2
- package/dist/client/assets/{spinner-BZ5ohCyO.js → spinner-BiCpg0TU.js} +2 -2
- package/dist/client/assets/terminal-links-DkNuyYrs.js +2 -0
- package/dist/client/assets/terminalSessions-BLnAzTpE.js +2 -0
- package/dist/client/assets/{textarea-DIg__-Gi.js → textarea-DPWqoJRQ.js} +2 -2
- package/dist/client/assets/themePalette-1UQmJk98.js +5 -0
- package/dist/client/assets/threadCheckpoints-C5aLz9nv.js +2 -0
- package/dist/client/assets/{toggle-DJ8KOwn5.js → toggle-DERKSGyC.js} +2 -2
- package/dist/client/assets/{toggle-group-2e3XGJdx.js → toggle-group-DYSJFIn3.js} +2 -2
- package/dist/client/assets/tooltip-C7NAkYG3.js +2 -0
- package/dist/client/assets/{uiStateStore-4i21PZUL.js → uiStateStore-FYiLqqos.js} +2 -2
- package/dist/client/assets/usage-CtcqAwlu.js +2 -0
- package/dist/client/assets/{usageAccess-CsMv6eC9.js → usageAccess-2Wks5kIN.js} +2 -2
- package/dist/client/assets/{usageFormat-DhefL58S.js → usageFormat-BZJ9qCn4.js} +2 -2
- package/dist/client/assets/{usageShortcuts-CREc0FBr.js → usageShortcuts-BJyp1xT6.js} +2 -2
- package/dist/client/assets/use-atom-command-BbFDhw_c.js +2 -0
- package/dist/client/assets/useAriaLabelledBy-BJnK5b5h.js +2 -0
- package/dist/client/assets/useHandleNewThread-C6MtV3AM.js +2 -0
- package/dist/client/assets/{useLocation-DHd-KBb-.js → useLocation-NTw9A5XQ.js} +2 -2
- package/dist/client/assets/{useNavigate-AZUCIeU4.js → useNavigate-DV9bXnWr.js} +2 -2
- package/dist/client/assets/{useNavigateBack-C7DkQuEE.js → useNavigateBack-D62rsj_4.js} +2 -2
- package/dist/client/assets/{useP4ConnectAuthPrompt-u1GHgwlc.js → useP4ConnectAuthPrompt-Bj5GIxgy.js} +2 -2
- package/dist/client/assets/{useParams-rbhXoEw9.js → useParams-jklHVL7l.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-DHzE_VGG.js → usePermissionStatus-DaCu90iN.js} +2 -2
- package/dist/client/assets/usePopupViewport-D1lXH2SQ.js +2 -0
- package/dist/client/assets/usePreviousValue-Dx4Nv0v8.js +2 -0
- package/dist/client/assets/usePullRequestActions-WFmep5Tm.js +3 -0
- package/dist/client/assets/useRegisterFieldControl-BtJcyaxh.js +2 -0
- package/dist/client/assets/{useScopedModelAvailability-D6cbxQLl.js → useScopedModelAvailability-hsJL85Tg.js} +2 -2
- package/dist/client/assets/useSettings-EYJbJzT3.js +3 -0
- package/dist/client/assets/utils-DjbLtxuo.js +37 -0
- package/dist/client/assets/vcsRefInvalidation-DkXoQApH.js +2 -0
- package/dist/client/assets/welcome-uKSqaFeK.js +2 -0
- package/dist/client/index.html +1 -1
- package/dist/client/third-party-licenses.json +1 -1
- package/dist/pele-RvfyfJB5.mjs +29609 -0
- package/dist/{renderer-CuqsXHrO.mjs → renderer-D9dDeERN.mjs} +68 -13
- package/dist/resource-monitor/darwin-arm64/p4-resource-monitor +0 -0
- package/dist/{runtime-CWPUW_8Y.mjs → runtime-C3UJDGLb.mjs} +159 -19
- package/package.json +1 -1
- package/dist/AcpMcpStdioBridge-BFMDWrrj.mjs +0 -3
- package/dist/client/assets/AlertDialogRoot-DaczVYX9.js +0 -2
- package/dist/client/assets/ChatGptUsageButton-w6RkBCUH.js +0 -2
- package/dist/client/assets/ChatMarkdown-CFUfXlYp.js +0 -48
- package/dist/client/assets/CheckboxIndicator-lkbFKbE7.js +0 -2
- package/dist/client/assets/ClippedText-Bf8FSQkX.js +0 -2
- package/dist/client/assets/CodexSetupSection.logic-SHExnMKR.js +0 -2
- package/dist/client/assets/ComboboxClear-B0HJXjbz.js +0 -2
- package/dist/client/assets/ComboboxGroupLabel-CMc5xUrd.js +0 -2
- package/dist/client/assets/CompositeRoot-BMHKb-nN.js +0 -2
- package/dist/client/assets/ConnectAgentSurface-CNWdh9ck.js +0 -2
- package/dist/client/assets/DevicePanel-CRFuAv_j.js +0 -2
- package/dist/client/assets/DeviceSetup-DRzepax4.js +0 -2
- package/dist/client/assets/DialogTitle-pLX9Mw1n.js +0 -2
- package/dist/client/assets/DiffPanel-CM5Rvb_z.js +0 -2
- package/dist/client/assets/FieldControl-DwBVFJAI.js +0 -2
- package/dist/client/assets/FilePreviewPanel-z6NirC2y.js +0 -34
- package/dist/client/assets/FormContext-DcnLkh-4.js +0 -2
- package/dist/client/assets/Input-BZ1XdBC0.js +0 -2
- package/dist/client/assets/JZOYTAAL-BZEjBuKj.js +0 -1
- package/dist/client/assets/KeybindingsSettings.logic-Ctmq4InP.js +0 -2
- package/dist/client/assets/LinkMachineSelect-DGm4EDKi.js +0 -2
- package/dist/client/assets/P4ConnectAccountPages-J205rNHS.js +0 -2
- package/dist/client/assets/PanelLayoutControls-BQZYES2T.js +0 -216
- package/dist/client/assets/PierreEntryIcon-CHy821MU.js +0 -2
- package/dist/client/assets/PopoverHandle-BkzqaTB6.js +0 -2
- package/dist/client/assets/PreviewPanel-D8V2zDl4.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-6UkudkKP.js +0 -2
- package/dist/client/assets/ProjectFavicon-LcyFYpHB.js +0 -3
- package/dist/client/assets/ProviderModelPicker-CpWE-Lfx.js +0 -2
- package/dist/client/assets/PullRequestCodeTab-CjBrGNWY.js +0 -6
- package/dist/client/assets/ReadOnlySourcePreview-BasbTHVd.js +0 -2
- package/dist/client/assets/RenderErrorBoundary-CIVNp8r9.js +0 -23
- package/dist/client/assets/ScheduledTasksSettings-DpYigye5.js +0 -4
- package/dist/client/assets/ScrollAreaCorner-DBtks1xb.js +0 -2
- package/dist/client/assets/SelectScrollUpArrow-Bq-GYRhT.js +0 -2
- package/dist/client/assets/SelfImproveSettingsSection-CDIhJO4P.js +0 -2
- package/dist/client/assets/SettingsPanels-Co5mks6X.js +0 -46
- package/dist/client/assets/ThemeEditorPanel-lI_9CbBH.js +0 -5
- package/dist/client/assets/ThreadTerminalDrawer-CD3plt2C.js +0 -5
- package/dist/client/assets/TooltipViewport-Be_gbUW1.js +0 -2
- package/dist/client/assets/_chat-Cnc6rxt6.js +0 -47
- package/dist/client/assets/_chat.index-Bz1lJLpv.js +0 -2
- package/dist/client/assets/_chat.new-BEqc5oJc.js +0 -4
- package/dist/client/assets/_chat.pull-requests-A3IwVYWs.js +0 -2
- package/dist/client/assets/assetUrls-CYjvy6P4.js +0 -2
- package/dist/client/assets/assets-JgE2I_Ix.js +0 -2
- package/dist/client/assets/browserHistoryStore-CdncPjG8.js +0 -2
- package/dist/client/assets/connect-agent-DJHm1Ubj.js +0 -2
- package/dist/client/assets/design-DrpehYJf.js +0 -2
- package/dist/client/assets/device-Nh7DArH7.js +0 -2
- package/dist/client/assets/draft-input-CzfhM72Z.js +0 -2
- package/dist/client/assets/entities-aKdRyfsJ.js +0 -2
- package/dist/client/assets/env-wK1YYxA8.js +0 -2
- package/dist/client/assets/index-BXvrSYK3.js +0 -3
- package/dist/client/assets/key-round-CoEmBzzZ.js +0 -2
- package/dist/client/assets/main-BD4pReCY.css +0 -2
- package/dist/client/assets/main-C0z861OK.js +0 -37
- package/dist/client/assets/mediaSource-BLpxwEw3.js +0 -2
- package/dist/client/assets/number-field-Pve745k3.js +0 -2
- package/dist/client/assets/onboarding-CE8pzS12.js +0 -2
- package/dist/client/assets/openFileInPreview-Dns9tPaB.js +0 -2
- package/dist/client/assets/popover-hYAmvSJj.js +0 -2
- package/dist/client/assets/preview-CI9HEdfV.js +0 -2
- package/dist/client/assets/preview-YhZE3kRt.js +0 -2
- package/dist/client/assets/primary-BlS2rEKe.js +0 -2
- package/dist/client/assets/primaryCloudLinkState-CyPf4N0F.js +0 -2
- package/dist/client/assets/projectFilesQueryState-BdWJ4WwI.js +0 -2
- package/dist/client/assets/projectScriptEditor-C0FBhCbn.js +0 -2
- package/dist/client/assets/pullRequests-B85p5Xnw.js +0 -2
- package/dist/client/assets/queries-B0FvRKmk.js +0 -2
- package/dist/client/assets/query-B2_Td0ad.js +0 -2
- package/dist/client/assets/radio-group-IyWHDcIP.js +0 -2
- package/dist/client/assets/rightPanelStore-rZSIb-5z.js +0 -2
- package/dist/client/assets/runtime-BK2Lh1vB.js +0 -3
- package/dist/client/assets/runtime-BVmDVuJ-.js +0 -6
- package/dist/client/assets/runtimeModeConfig-DFxXOIlV.js +0 -2
- package/dist/client/assets/scheduledTasksSettings.logic-W9AQpJk4.js +0 -3
- package/dist/client/assets/semver-CFbvOQKc.js +0 -2
- package/dist/client/assets/server-DwkxciXh.js +0 -2
- package/dist/client/assets/session-BIwsf8Q4.js +0 -2
- package/dist/client/assets/settings.archived-BxqS4kuW.js +0 -2
- package/dist/client/assets/settings.connections-CEr4PdrJ.js +0 -2
- package/dist/client/assets/settings.data-controls-BbzJxjBi.js +0 -2
- package/dist/client/assets/settings.diagnostics-DdsecwWn.js +0 -2
- package/dist/client/assets/settings.integrations-CO-aLXSC.js +0 -2
- package/dist/client/assets/settings.keybindings-CU8fBQaI.js +0 -2
- package/dist/client/assets/settings.projects-hxwk8_7r.js +0 -4
- package/dist/client/assets/settings.providers-D5-Kj1jY.js +0 -3
- package/dist/client/assets/settings.source-control-BHD5KE8W.js +0 -2
- package/dist/client/assets/settings.storage-Bhd9ragP.js +0 -2
- package/dist/client/assets/settingsLayout-WhjsCfB6.js +0 -3
- package/dist/client/assets/sourceControl-BkJeQRrv.js +0 -2
- package/dist/client/assets/terminal-links-UI2UJn0y.js +0 -2
- package/dist/client/assets/terminalSessions-C1xOLG3i.js +0 -2
- package/dist/client/assets/themePalette-BMlBfFUx.js +0 -5
- package/dist/client/assets/toast-BZ96uuab.js +0 -2
- package/dist/client/assets/tooltip-BPiLl1TV.js +0 -2
- package/dist/client/assets/usage-uuNPbJve.js +0 -2
- package/dist/client/assets/use-atom-command-CdV5BZYB.js +0 -2
- package/dist/client/assets/useAriaLabelledBy-CYRfRdAq.js +0 -2
- package/dist/client/assets/useHandleNewThread-BsnMrEPr.js +0 -2
- package/dist/client/assets/usePullRequestActions-Cv12eqOn.js +0 -3
- package/dist/client/assets/useRegisterFieldControl-D4FG4i3_.js +0 -2
- package/dist/client/assets/useSettings-B09a3zie.js +0 -3
- package/dist/client/assets/utils-C5GGWTfe.js +0 -37
- package/dist/client/assets/vcsRefInvalidation-B66hRx4g.js +0 -2
- package/dist/client/assets/welcome-D2-tjFV3.js +0 -2
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Bh as i,Fd as a,Fh as o,Gh as s,Hh as c,Id as l,ME as u,Ms as d,Pl as f,Uh as p,Xh as m,Xn as h,Ym as g,Zh as _,ar as v,cs as y,dT as b,dr as x,ep as S,fr as C,hE as w,hl as T,hv as E,ir as D,lv as O,ml as ee,nr as te,ns as k,or as A,pr as j,qw as M,rp as N,rr as P,sb as F,t as I,wh as ne,ws as re,zh as ie}from"./utils-C5GGWTfe.js";import{C as ae}from"./entities-aKdRyfsJ.js";import{t as oe}from"./useNavigate-AZUCIeU4.js";import{t as L}from"./useLocation-DHd-KBb-.js";import{i as se}from"./toast-BZ96uuab.js";import{D as ce,E as le,O as ue,a as de,f as fe,h as pe,i as me,s as R,t as he}from"./useSettings-B09a3zie.js";import{f as ge}from"./server-DwkxciXh.js";import{i as _e,n as ve,o as ye}from"./session-BIwsf8Q4.js";import{t as be}from"./use-atom-command-CdV5BZYB.js";import{m as xe}from"./queries-B0FvRKmk.js";import{a as Se,n as Ce,t as we}from"./tooltip-BPiLl1TV.js";import{o as Te}from"./threadSort-Bd2rijEy.js";import{i as Ee,o as De,t as Oe}from"./popover-hYAmvSJj.js";import{t as ke}from"./ProjectFavicon-LcyFYpHB.js";import{r as z,s as B}from"./projectFilesQueryState-BdWJ4WwI.js";import{t as V}from"./pullRequestDetail.logic-DYx7bEwE.js";import{a as H,f as U,i as W,n as G,t as K}from"./p4ProjectFile-jwYvYDE-.js";import{r as q}from"./sidebarProjectGrouping-BYVdJp_w.js";import{n as J}from"./EnvironmentMachineIcon-B6wAZat7.js";import{t as Y}from"./WorkspacePageContainer-BxI-x0oV.js";var X=n(),Z=e(r(),1);function Ae(e){let t=(0,X.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({variant:i,divided:a,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`grouped`:i,s=a===void 0||a,c=o===`grouped`?`rounded-xl border border-border/60 bg-card/40 shadow-xs/5`:`space-y-1`,l=o===`grouped`&&s&&`[&>*+*]:border-t [&>*+*]:border-border/50 [&>[data-slot=settings-row]]:rounded-none`,u;t[5]!==n||t[6]!==c||t[7]!==l?(u=I(`relative overflow-visible text-foreground`,c,l,n),t[5]=n,t[6]=c,t[7]=l,t[8]=u):u=t[8];let d;return t[9]!==r||t[10]!==u?(d=(0,Z.jsx)(`div`,{...r,className:u}),t[9]=r,t[10]=u,t[11]=d):d=t[11],d}var Q=e(t(),1);function je(){let e=(0,X.c)(5),t=ae(),n=R(U),r=ue(),{environments:i}=le(),a;if(e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n){let o=new Map(i.map(Ne));a=q({projects:t,settings:n,primaryEnvironmentId:r,resolveEnvironmentLabel:e=>o.get(e)??null}).sort(Me),e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=a}else a=e[4];return a}function Me(e,t){return e.displayName.localeCompare(t.displayName)}function Ne(e){return[e.environmentId,e.label]}var Pe=new Set(Object.keys(i.fields)),Fe=new Set(Object.keys(ne.fields)),Ie=new Set(ie);function $(e){return Ie.has(e)}function Le(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Re(e,t,n){let r=new Set(e.environmentIds),i=t.filter(e=>r.has(e.environmentId)),a=i.filter(e=>e.connection.phase===`connected`&&e.serverConfig!==null);return{environments:i,connectedEnvironments:a,environment:a.find(e=>e.environmentId===n)??a[0]??null}}function ze(e,t,n){let r=new Map(t.map(e=>[e.environmentId,e]));return e.kind===`project`||e.kind===`checkout`?e.members.flatMap(e=>{let t=r.get(e.environmentId);if(!t?.serverConfig)return[];let i=n?.get(e.physicalProjectKey),a=i===void 0?W(t.serverConfig.settings,e.id):W(t.serverConfig.settings,e.id,null,i);return[{environmentId:e.environmentId,label:t.label,projectId:e.id,settings:a.settings,sources:a.sources}]}):t.flatMap(e=>e.serverConfig?[{environmentId:e.environmentId,label:e.label,projectId:null,settings:e.serverConfig.settings,sources:W(e.serverConfig.settings,null).sources}]:[])}function Be(e,t){let n=e[0];return n!==void 0&&e.some(e=>t.some(t=>!u(n.settings[t],e.settings[t])))}function Ve(e){let t=e.map(e=>c(e.settings));return{mixed:t.some(e=>e!==t[0]),neverAvailable:e.every(e=>m(e.settings))}}function He(e,t){let n=t.filter($);if(n.length===0||e.length===0)return`environment`;let r=new Set(e.flatMap(e=>n.map(t=>e.sources[t])));return r.size>1?`mixed`:r.has(`project`)?`project`:r.has(`p4.json`)?`p4.json`:`environment`}function Ue(e,t,n){let r=new Map(t.map(e=>[e.environmentId,e])),i=new Map;for(let t of e.members){let e=r.get(t.environmentId);if(!e?.serverConfig||e.connection.phase!==`connected`||e.serverConfig.environment?.capabilities.projectSettingsOverrides!==!0)continue;let a=e.serverConfig.settings,o=n(a.projectSettingsOverrides[t.id]??{},a,t.id),s=i.get(t.environmentId);i.set(t.environmentId,{environmentId:t.environmentId,label:e.label,previous:a,patch:{projectSettingsOverrides:{...s?.patch.projectSettingsOverrides,[t.id]:o}}})}return[...i.values()]}function We(e,t){if(t.idleCompaction===void 0)return t;let{idleCompaction:n,compactIdleThreads:r,...i}=t;return{...i,...p(e,n)}}function Ge(e,t,n){let r=Object.fromEntries(Object.entries(n).filter(([e])=>Fe.has(e)&&!Pe.has(e))),i=Object.fromEntries(Object.entries(n).filter(([e])=>Pe.has(e))),a=Object.keys(i),{connectedEnvironments:o}=Re(e,t,null),c=e.kind===`project`||e.kind===`checkout`,l=c?a.filter(e=>!$(e)):[],u=a.length===0?[]:c?l.length>0?[]:Ue(e,t,(e,t,n)=>{let r=W(t,n).settings,a={...e};for(let[e,o]of Object.entries(i)){if(e===`worktreeCleanup`&&i.worktreeCleanup?.mode===`custom`){a[e]={mode:`custom`,rules:{...H(t,n),...i.worktreeCleanup.rules}};continue}if(o===null&&!s(e)){delete a[e];continue}let c=r[e];a[e]=Le(o)&&Le(c)?{...c,...o}:o}return a}):e.kind===`all`||e.kind===`environment`?o.flatMap(e=>{let t=e.serverConfig?.settings;return t?[{environmentId:e.environmentId,label:e.label,previous:t,patch:We(t,t.worktreeCleanup!=null&&i.storageCleanup&&Object.keys(i.storageCleanup).some(e=>e.startsWith(`worktree`))?{...i,worktreeCleanup:{mode:`custom`,rules:{...H(t,null),...Object.fromEntries(Object.entries(i.storageCleanup).filter(([e])=>e.startsWith(`worktree`)))}}}:i)}]:[]}):[],d=Object.keys(r).length>0;return{clientPatch:r,hasClientWrite:d,serverWrites:u,unavailableReason:d||u.length>0||Object.keys(n).length===0?null:e.kind===`unavailable`?e.message:l.length>0?`This setting is environment-wide and cannot be overridden by a project.`:c?`Connect the selected checkouts, or update their environments, to save a project override.`:`Connect ${e.kind===`environment`?e.label:`an environment`} to save this setting.`}}function Ke(e,t,n){let r=e.kind===`project`||e.kind===`checkout`?Ue(e,t,(e,t,r)=>G(t,r,n)):[];return{clientPatch:{},hasClientWrite:!1,serverWrites:r,unavailableReason:r.length>0?null:`Connect the selected checkouts, or update their environments, to reset this override.`}}function qe(e,t){let n=t.filter($);return n.length===0?[]:e.flatMap(e=>{let t=e.serverConfig?.settings.projectSettingsOverrides;return t?Object.entries(t).flatMap(([t,r])=>n.some(e=>Object.hasOwn(r,e))?[{environmentId:e.environmentId,projectId:t}]:[]):[]})}function Je(e,t,n){let r=new Map(e.map(e=>[e.environmentId,e])),i=new Map;for(let{environmentId:e,projectId:a}of t){let t=r.get(e);if(!t?.serverConfig||t.connection.phase!==`connected`)continue;let o=t.serverConfig.settings,s=i.get(e);i.set(e,{environmentId:e,label:t.label,previous:o,patch:{projectSettingsOverrides:{...s?.patch.projectSettingsOverrides,[a]:G(o,a,n)}}})}let a=[...i.values()];return{clientPatch:{},hasClientWrite:!1,serverWrites:a,unavailableReason:a.length>0?null:`Connect the environments to reset these overrides.`}}function Ye(e,t,n){if(e===null)return t!=null&&u(n,t);if(Le(e)&&!Array.isArray(t)&&!Array.isArray(n)){let r=(e,t)=>Le(e)?e[t]:void 0;return Object.entries(e).some(([e,i])=>Ye(i,r(t,e),r(n,e)))}return!(typeof e==`string`&&typeof t==`string`?e.trim()===t:u(e,t))&&u(n,t)}function Xe(e,t){return t===void 0?[]:Object.entries(e.patch).flatMap(([n,r])=>Ye(r,e.previous[n],t[n])?[n]:[])}async function Ze(e,t,n){e.hasClientWrite&&n(e.clientPatch);let r=await Promise.allSettled(e.serverWrites.map(({environmentId:e,patch:n})=>t({environmentId:e,input:{patch:n}}))),i=t=>{let n=r[t];return n?.status===`fulfilled`&&n.value._tag===`Success`&&Xe(e.serverWrites[t],n.value.value).length===0},a=e.serverWrites.flatMap((e,t)=>{if(i(t))return[];let n=r[t];if(n?.status===`fulfilled`&&n.value._tag===`Success`)return[{...e,message:`This environment does not support this setting. Update P4 Code on it.`}];let a=n?.status===`rejected`?n.reason:n?.status===`fulfilled`&&n.value.cause?b(n.value.cause):void 0;return[{...e,message:a instanceof Error?a.message:`The save failed. Try reconnecting and saving again.`}]}),o=e.serverWrites.filter((e,t)=>i(t));return{failedEnvironments:a,savedEnvironments:o,savedEnvironmentCount:o.length}}function Qe(e){let t=e=>typeof e==`string`&&e.trim().length>0?e:void 0,n=t(e.project),r=t(e.machine),i=t(e.checkout);return{...n===void 0?{}:{project:n},...r===void 0?{}:{machine:r},...i===void 0?{}:{checkout:i}}}function $e(e,t,n){let r=(e,t)=>({kind:`unavailable`,reason:e,label:`Unavailable selection`,message:t,members:[],environmentIds:[]});if(e.checkout&&!e.project)return r(`project-required`,`Select a project to choose one of its checkouts.`);let i=n.find(t=>t.environmentId===e.machine);if(e.machine&&!i)return r(`environment-missing`,`This environment is no longer available.`);if(e.project){let a=t.find(t=>t.projectKey===e.project);if(!a)return r(`project-missing`,`This project is no longer available.`);let o=a.memberProjects.filter(t=>(e.machine===void 0||t.environmentId===e.machine)&&(e.checkout===void 0||t.physicalProjectKey===e.checkout));if(o.length===0)return r(`checkout-missing`,e.checkout?`This checkout is no longer available in the selected project and environment.`:`This project has no checkout on this environment.`);if(e.checkout){let e=o[0],t=n.find(t=>t.environmentId===e.environmentId);if(!t)return r(`environment-missing`,`This checkout's environment is no longer available.`);let i=a.memberProjects.some(t=>t.environmentId===e.environmentId&&t.physicalProjectKey!==e.physicalProjectKey);return{kind:`checkout`,group:a,checkout:e,environmentId:e.environmentId,label:`${a.displayName} / ${t.label}${i?` · ${e.workspaceRoot}`:``}`,members:o,environmentIds:[e.environmentId]}}return{kind:`project`,group:a,environmentId:i?.environmentId??null,label:`${a.displayName} / ${i?.label??`All checkouts`}`,members:o,environmentIds:[...new Set(o.map(e=>e.environmentId))]}}return i?{kind:`environment`,environmentId:i.environmentId,label:i.label,members:[],environmentIds:[i.environmentId]}:{kind:`all`,label:`All environments`,members:[],environmentIds:n.map(e=>e.environmentId)}}function et(e,t){return t.some(t=>t.environmentId!==e.environmentId&&t.label===e.label)?`${e.label} · ${e.displayUrl??e.environmentId}`:e.label}function tt(e,t){return e.machine??t??`all`}function nt(e){return e.project??`all`}function rt(e,t){let n={};return e.project&&(n.project=e.project),t!==`all`&&(n.machine=t),n}function it(e,t){let n={};return t!==`all`&&(n.project=t),e.machine&&(n.machine=e.machine),n}function at(e,t,n,r){if(e.machine||t.kind===`unavailable`)return e;let i=new Set(t.environmentIds),a=n.filter(e=>i.has(e.environmentId)),o=a.find(e=>e.environmentId===r)??a.find(e=>e.connection.phase===`connected`)??a[0];return o?{...e,machine:o.environmentId}:e}function ot(e){let t=(0,X.c)(5),n;t[0]!==e.kind||t[1]!==e.members?(n=e.kind===`project`||e.kind===`checkout`?e.members:[],t[0]=e.kind,t[1]=e.members,t[2]=n):n=t[2];let r=n,i;return t[3]===r?i=t[4]:(i=y(e=>{let t=new Map;for(let n of r){let r=e(z(n.environmentId,n.workspaceRoot,ee));if(r.waiting)continue;let i=w(d(r)),a=e(B(n.environmentId,n.workspaceRoot,`p4.json`))?.data??e(B(n.environmentId,n.workspaceRoot,i?.relativePath??`p4.json`))?.data??i;t.set(n.physicalProjectKey,a===null||a.truncated?null:K(a.contents))}return t}),t[3]=r,t[4]=i),k(i)}function st(e,t){let n=(0,X.c)(24),r=je(),{environments:i}=le(),a=ue(),o;n[0]!==i||n[1]!==r||n[2]!==a||n[3]!==e||n[4]!==t?(o=t?at(e,$e(e,r,i),i,a):e,n[0]=i,n[1]=r,n[2]=a,n[3]=e,n[4]=t,n[5]=o):o=n[5];let s=o,c;n[6]!==i||n[7]!==r||n[8]!==s?(c=$e(s,r,i),n[6]=i,n[7]=r,n[8]=s,n[9]=c):c=n[9];let l=c,u=ot(l),d,f,p;n[10]!==i||n[11]!==a||n[12]!==u||n[13]!==l?(d=Re(l,i,a),p=ze(l,d.connectedEnvironments,u),f=p.find(e=>e.environmentId===d.environment?.environmentId)??p[0]??null,n[10]=i,n[11]=a,n[12]=u,n[13]=l,n[14]=d,n[15]=f,n[16]=p):(d=n[14],f=n[15],p=n[16]);let m=f,h;return n[17]!==r||n[18]!==l||n[19]!==s||n[20]!==d||n[21]!==m||n[22]!==p?(h={scope:l,groups:r,search:s,...d,targets:p,target:m},n[17]=r,n[18]=l,n[19]=s,n[20]=d,n[21]=m,n[22]=p,n[23]=h):h=n[23],h}var ct=(0,Q.createContext)(null);function lt(e){let t=(0,X.c)(7),{search:n,onChange:r,children:i,singleEnvironment:a}=e,o=a!==void 0&&a,s=st(n,o),c;t[0]!==r||t[1]!==s||t[2]!==o?(c={...s,singleEnvironment:o,selectScope:r},t[0]=r,t[1]=s,t[2]=o,t[3]=c):c=t[3];let l=c,u;return t[4]!==i||t[5]!==l?(u=(0,Z.jsx)(ct,{value:l,children:i}),t[4]=i,t[5]=l,t[6]=u):u=t[6],u}function ut(){return(0,Q.useContext)(ct)}function dt(){let e=ut();if(e===null)throw Error(`Settings scope must be read inside SettingsScopeProvider.`);return e}var ft=new Set([`/settings/appearance`,`/settings/snap-shot`,`/settings/connections`]);function pt(){let e=(0,X.c)(20),t=ut(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:mt},e[0]=n):n=e[0];let r=L(n),{environments:i}=le();if(t===null||ft.has(r))return null;let a;e[1]!==i||e[2]!==t.groups||e[3]!==t.search||e[4]!==t.selectScope||e[5]!==t.singleEnvironment?(a={value:t.search,singleEnvironment:t.singleEnvironment,groups:t.groups,environments:i,onChange:t.selectScope},e[1]=i,e[2]=t.groups,e[3]=t.search,e[4]=t.selectScope,e[5]=t.singleEnvironment,e[6]=a):a=e[6];let o=a,s;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(`span`,{className:`shrink-0`,children:`Applying settings for`}),e[7]=s):s=e[7];let c;e[8]===o?c=e[9]:(c=(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[s,(0,Z.jsx)(_t,{...o})]}),e[8]=o,e[9]=c);let l=t.search.machine||t.scope.kind===`checkout`?`on`:`across`,u;e[10]===l?u=e[11]:(u=(0,Z.jsx)(`span`,{className:`shrink-0`,children:l}),e[10]=l,e[11]=u);let d;e[12]===o?d=e[13]:(d=(0,Z.jsx)(gt,{...o}),e[12]=o,e[13]=d);let f;e[14]!==u||e[15]!==d?(f=(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[u,d]}),e[14]=u,e[15]=d,e[16]=f):f=e[16];let p;return e[17]!==c||e[18]!==f?(p=(0,Z.jsxs)(`p`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 px-3 text-base text-muted-foreground sm:px-4`,children:[c,f]}),e[17]=c,e[18]=f,e[19]=p):p=e[19],p}function mt(e){return e.pathname}function ht(e){let t=(0,X.c)(13),{ariaLabel:n,icon:r,label:i,children:a}=e,o=`${n}: ${i}`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(j,{tone:`picker`}),t[0]=s):s=t[0];let c;t[1]===i?c=t[2]:(c=(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:i}),t[1]=i,t[2]=c);let u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(l,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-muted-foreground`}),t[3]=u):u=t[3];let d;t[4]!==r||t[5]!==o||t[6]!==c?(d=(0,Z.jsxs)(x,{"aria-label":o,render:s,className:`min-w-0 max-w-72`,children:[r,c,u]}),t[4]=r,t[5]=o,t[6]=c,t[7]=d):d=t[7];let f;t[8]===a?f=t[9]:(f=(0,Z.jsx)(te,{align:`start`,children:a}),t[8]=a,t[9]=f);let p;return t[10]!==d||t[11]!==f?(p=(0,Z.jsxs)(h,{children:[d,f]}),t[10]=d,t[11]=f,t[12]=p):p=t[12],p}function gt(e){let t=(0,X.c)(31),{value:n,groups:r,environments:i,onChange:a,singleEnvironment:o}=e,s;if(t[0]!==i||t[1]!==r||t[2]!==n){let e=$e(n,r,i);s=tt(n,e.kind===`checkout`?e.environmentId:null),t[0]=i,t[1]=r,t[2]=n,t[3]=s}else s=t[3];let c=s,l,u,d,p;if(t[4]!==c||t[5]!==i||t[6]!==o){let e;t[11]===c?e=t[12]:(e=e=>e.environmentId===c,t[11]=c,t[12]=e);let n=i.find(e);l=ht,u=`Environment scope`,d=n?(0,Z.jsx)(J,{"aria-hidden":!0,kind:f(n.serverConfig),className:`size-3.5 shrink-0`}):null,p=n?et(n,i):c===`all`?o?`No environments`:`All environments`:`Unavailable environment`,t[4]=c,t[5]=i,t[6]=o,t[7]=l,t[8]=u,t[9]=d,t[10]=p}else l=t[7],u=t[8],d=t[9],p=t[10];let m;t[13]!==a||t[14]!==n?(m=e=>{typeof e==`string`&&a(rt(n,e))},t[13]=a,t[14]=n,t[15]=m):m=t[15];let h;t[16]===o?h=t[17]:(h=o?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(D,{value:`all`,closeOnClick:!0,children:(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Z.jsx)(N,{"aria-hidden":!0,className:`size-3.5`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:`All environments`}),(0,Z.jsx)(v,{})]})}),(0,Z.jsx)(A,{})]}),t[16]=o,t[17]=h);let g;t[18]===i?g=t[19]:(g=i.map(e=>(0,Z.jsx)(D,{value:e.environmentId,closeOnClick:!0,children:(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Z.jsx)(J,{"aria-hidden":!0,kind:f(e.serverConfig),className:`size-3.5`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:et(e,i)}),e.connection.phase===`connected`?null:(0,Z.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:`Offline`}),(0,Z.jsx)(v,{})]})},e.environmentId)),t[18]=i,t[19]=g);let _;t[20]!==c||t[21]!==m||t[22]!==h||t[23]!==g?(_=(0,Z.jsxs)(P,{value:c,onValueChange:m,children:[h,g]}),t[20]=c,t[21]=m,t[22]=h,t[23]=g,t[24]=_):_=t[24];let y;return t[25]!==l||t[26]!==u||t[27]!==d||t[28]!==p||t[29]!==_?(y=(0,Z.jsx)(l,{ariaLabel:u,icon:d,label:p,children:_}),t[25]=l,t[26]=u,t[27]=d,t[28]=p,t[29]=_,t[30]=y):y=t[30],y}function _t(e){let t=(0,X.c)(24),{value:n,groups:r,onChange:i}=e,a;if(t[0]!==r||t[1]!==n){let e;t[3]===n?e=t[4]:(e=e=>e.projectKey===n.project,t[3]=n,t[4]=e),a=r.find(e),t[0]=r,t[1]=n,t[2]=a}else a=t[2];let o=a,s;t[5]===o?s=t[6]:(s=o?(0,Z.jsx)(ke,{project:o,className:`size-3.5 shrink-0`}):null,t[5]=o,t[6]=s);let c=o?.displayName??(n.project?`Unavailable project`:`All projects`),l;t[7]===n?l=t[8]:(l=nt(n),t[7]=n,t[8]=l);let u;t[9]!==i||t[10]!==n?(u=e=>{typeof e==`string`&&i(it(n,e))},t[9]=i,t[10]=n,t[11]=u):u=t[11];let d,f;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Z.jsx)(D,{value:`all`,closeOnClick:!0,children:(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:`All projects`}),(0,Z.jsx)(v,{})]})}),f=(0,Z.jsx)(A,{}),t[12]=d,t[13]=f):(d=t[12],f=t[13]);let p;t[14]===r?p=t[15]:(p=r.map(vt),t[14]=r,t[15]=p);let m;t[16]!==l||t[17]!==u||t[18]!==p?(m=(0,Z.jsxs)(P,{value:l,onValueChange:u,children:[d,f,p]}),t[16]=l,t[17]=u,t[18]=p,t[19]=m):m=t[19];let h;return t[20]!==s||t[21]!==c||t[22]!==m?(h=(0,Z.jsx)(ht,{ariaLabel:`Project scope`,icon:s,label:c,children:m}),t[20]=s,t[21]=c,t[22]=m,t[23]=h):h=t[23],h}function vt(e){return(0,Z.jsx)(D,{value:e.projectKey,closeOnClick:!0,children:(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Z.jsx)(ke,{project:e,className:`size-3.5`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.displayName}),(0,Z.jsx)(v,{})]})},e.projectKey)}function yt(e){let t=(0,X.c)(6),{target:n}=dt(),r=R(),i=n?.settings??o;fe(n?.environmentId??null,n?.settings??null);let a;t[0]!==r||t[1]!==i?(a=me(i,r),t[0]=r,t[1]=i,t[2]=a):a=t[2];let s=a,c;return t[3]!==e||t[4]!==s?(c=e?e(s):s,t[3]=e,t[4]=s,t[5]=c):c=t[5],c}function bt(e){let t=(0,X.c)(3),{targets:n}=dt(),r;return t[0]!==e||t[1]!==n?(r=Be(n,e),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function xt(e){let t=(0,X.c)(3),{targets:n}=dt(),r;return t[0]!==e||t[1]!==n?(r=He(n,e),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function St(){let e=(0,X.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={reportFailure:!1},e[0]=t):t=e[0];let n=be(ge.updateSettings,t),r;return e[1]===n?r=e[2]:(r=e=>{e.unavailableReason?se.add({type:`warning`,title:`Setting not saved`,description:e.unavailableReason}):Ze(e,async e=>{let t=_(e.input.patch).find(t=>!ve(e.environmentId,t));return t?re(M(new E({requiredScope:t,message:`This connection lacks permission to change these settings.`}))):n(e)},de).then(Ct)},e[1]=n,e[2]=r),r}function Ct(e){let{failedEnvironments:t,savedEnvironments:n,savedEnvironmentCount:r}=e;t.length!==0&&se.add({type:`error`,title:r>0?`Setting saved on some environments`:`Setting not saved`,description:[...t.map(Tt),...r>0?[`Saved on ${n.map(wt).join(`, `)}.`]:[]].join(`
|
|
2
|
-
`)})}function wt(e){let{label:t}=e;return t}function Tt(e){let{label:t,message:n}=e;return`Could not save on ${t}: ${n}`}function Et(){let e=(0,X.c)(4),{scope:t,environments:n}=dt(),r=St(),i;return e[0]!==n||e[1]!==r||e[2]!==t?(i=e=>r(Ge(t,n,e)),e[0]=n,e[1]=r,e[2]=t,e[3]=i):i=e[3],i}function Dt(){let e=(0,X.c)(3),t=ut(),n=St(),r;return e[0]!==t||e[1]!==n?(r=e=>{t!==null&&n(Ke(t.scope,t.environments,e))},e[0]=t,e[1]=n,e[2]=r):r=e[2],r}function Ot(){let e=(0,X.c)(3),t=ut(),n=St(),r;return e[0]!==t||e[1]!==n?(r=(e,r)=>{t!==null&&n(Je(t.environments,e,r))},e[0]=t,e[1]=n,e[2]=r):r=e[2],r}function kt(){let e=(0,X.c)(3),{connectedEnvironments:t}=dt(),n=ye(t,O),r;return e[0]!==t||e[1]!==n?(r=t.length>0&&t.every(e=>n.has(e.environmentId)),e[0]=t,e[1]=n,e[2]=r):r=e[2],r}var At=`flex min-w-0 items-center gap-1.5 opacity-55 in-data-highlighted:opacity-100 in-data-popup-open:opacity-100`;F([`auto`,`local`,`worktree`]);function jt(e){return e!==`local`}var Mt=new Set([`local`,`local environment`]);function Nt(e){let t=e?.trim();return t&&t.length>0?t:null}function Pt(e){let t=Nt(e.runtimeLabel),n=Nt(e.savedLabel);return e.isPrimary?[t,n].find(e=>e?!Mt.has(e.toLowerCase()):!1)??`This device`:t??n??e.environmentId}function Ft(e){return e.canPickEnvironment?!0:e.activeEnvironment!==null&&!e.activeEnvironment.isPrimary}function It(e){return e.hasActiveProject&&(e.isDraftHeroState||e.persistInActiveThreads)&&(e.isGitRepo||e.showEnvironmentIndicator||e.hostsRestingComposerControls)}var Lt=16;function Rt(e){return e.compact?e.neededWidth>e.availableWidth-Lt:e.neededWidth>e.availableWidth}function zt(e){return e===`worktree`?`New worktree`:e===`auto`?`Auto`:`Current checkout`}var Bt={recursive:`Recursive`,"top-level":`Top level only`,none:`Skip`};function Vt(e){return e?`Current worktree`:zt(`local`)}function Ht(e,t){return e?`Worktree`:t===`worktree`?zt(`worktree`):`Local checkout`}function Ut(e){let t=null;for(let n of e.threads){if(!n.worktreePath||n.worktreePath===e.currentWorktreePath||(n.archivedAt??null)!==null)continue;let r=Te(n.updatedAt);r!==null&&(t===null||r>t.updatedAt)&&(t={branch:n.branch,worktreePath:n.worktreePath,updatedAt:r})}return t===null?null:{branch:t.branch,worktreePath:t.worktreePath}}function Wt(e){return e.branch?`Previous worktree (${e.branch})`:`Previous worktree`}function Gt(e){let{activeWorktreePath:t,hasServerThread:n,draftThreadEnvMode:r,preparingWorktree:i}=e;return n?t||i?`worktree`:`local`:t?`local`:r??`local`}function Kt(e){let{nextWorktreePath:t,currentWorktreePath:n,effectiveEnvMode:r}=e;return t?`worktree`:jt(r)&&!n?r:`local`}function qt(e){let{envMode:t,activeWorktreePath:n,activeThreadBranch:r,currentGitBranch:i}=e;return jt(t)&&!n?r??i:i??r}function Jt(e){let{activeWorktreePath:t,effectiveEnvMode:n,resolvedActiveBranch:r,resolvedActiveBranchIsRemote:i,startFromOrigin:a}=e;return r?jt(n)&&!t?`From ${a&&i===!1?`origin/${r}`:r}`:r:`Select ref`}function Yt(e){return e.activeThreadBranch===e.resolvedActiveBranch?e.activeThreadBranch:null}function Xt(e){let{effectiveEnvMode:t,activeWorktreePath:n,activeThreadBranch:r,currentGitBranch:i}=e;return t!==`local`||n!==null||!r||!i||r===i?null:{threadBranch:r,currentBranch:i}}function Zt(e){let{activeProjectCwd:t,activeWorktreePath:n,refName:r}=e;if(r.worktreePath)return{checkoutCwd:r.worktreePath,nextWorktreePath:r.worktreePath===t?null:r.worktreePath,reuseExistingWorktree:!0};let i=n!==null&&r.isDefault?null:n;return{checkoutCwd:i??t,nextWorktreePath:i,reuseExistingWorktree:!1}}function Qt(e){let{itemValue:t,normalizedQuery:n,createBranchItemValue:r,checkoutPullRequestItemValue:i}=e;if(n.length===0||r&&t===r||i&&t===i)return!0;let a=t.toLowerCase();if(a.includes(n))return!0;let o=xe(n);return o.length>0&&o!==n&&a.includes(o)}var $t={repo_conventions:`Repository conventions`,conventional_commits:`Conventional Commits`,custom:`Custom instructions`};function en(e,t){if(t==null)return e===`pullRequestMergeMethod`?`Last selected`:e===`defaultModelSelection`?`Automatic`:e===`sourceControlWriterModelSelection`?`Text generation model`:e===`reviewGuideModelSelection`?`Source control writer model`:e===`defaultThreadEnvMode`||e===`worktreeSubmodules`?`Inherit`:`Not set`;if(typeof t==`boolean`)return t?`On`:`Off`;if(typeof t==`number`)return String(t);if(typeof t==`string`)return e===`defaultThreadEnvMode`&&(t===`auto`||t===`local`||t===`worktree`)?zt(t):e===`worktreeSubmodules`&&t in Bt?Bt[t]:e===`pullRequestMergeMethod`&&t in V?V[t]:t===``?`Empty`:t;if(Array.isArray(t))return`${t.length} ${t.length===1?`item`:`items`}`;if(typeof t==`object`){if(`model`in t&&typeof t.model==`string`)return t.model;if(`mode`in t&&typeof t.mode==`string`)return $t[t.mode]??t.mode}return`Custom`}function tn(e,t,n){let r=t[n],i=$(n)?e.sources[n]:`environment`,a=!u(r,o[n]),s=nn(n),c=[];e.projectId!==null&&$(n)&&c.push({key:`project`,label:`Project`,value:i===`project`?en(n,e.settings[n]):`Inherits`,effective:i===`project`,set:i===`project`}),c.push({key:`environment`,label:e.label,value:a?en(n,r):`Inherits`,effective:i===`environment`&&a,set:a}),s&&e.projectId!==null&&c.push({key:`p4.json`,label:`p4.json`,value:i===`p4.json`?en(n,e.settings[n]):`Inherits`,effective:i===`p4.json`,set:i===`p4.json`});let l=s?T[n].builtIn:o[n];return c.push({key:`built-in`,label:`Default`,value:en(n,l),effective:i===`environment`&&!a,set:!0}),c}function nn(e){return Object.hasOwn(T,e)}function rn(e){let t=(0,X.c)(52),{state:n,summary:r,targets:i,environments:a,keys:o,overridingProjects:s,onClearOverrides:c}=e,l;t[0]===s?l=t[1]:(l=s===void 0?[]:s,t[0]=s,t[1]=l);let u=l,d=o[0];if(!d||i.length===0)return null;let p=u.length>0?`${r} · ${u.length} project ${u.length===1?`override`:`overrides`}`:r,m,h,g,_,v,y,b,x;if(t[2]!==a||t[3]!==d||t[4]!==c||t[5]!==p||t[6]!==u||t[7]!==n||t[8]!==i){let e;t[17]!==a||t[18]!==d?(e=e=>{let t=a.find(t=>t.environmentId===e.environmentId);return t?.serverConfig?[{target:e,environment:{...t,serverConfig:t.serverConfig},machine:f(t.serverConfig),layers:tn(e,t.serverConfig.settings,d)}]:[]},t[17]=a,t[18]=d,t[19]=e):e=t[19];let r=i.flatMap(e);h=Oe;let o=`${p}. Show where this value comes from`,s;t[20]===o?s=t[21]:(s=(0,Z.jsx)(De,{render:(0,Z.jsx)(C,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":o})}),t[20]=o,t[21]=s);let l=n===`overridden`&&`text-primary`,S=n===`mixed`&&`text-warning`,w;t[22]!==l||t[23]!==S?(w=I(`size-3`,l,S),t[22]=l,t[23]=S,t[24]=w):w=t[24];let T;t[25]===w?T=t[26]:(T=(0,Z.jsx)(N,{className:w}),t[25]=w,t[26]=T);let E;t[27]!==s||t[28]!==T?(E=(0,Z.jsx)(Se,{render:s,children:T}),t[27]=s,t[28]=T,t[29]=E):E=t[29];let D;t[30]===p?D=t[31]:(D=(0,Z.jsx)(Ce,{side:`top`,children:p}),t[30]=p,t[31]=D),t[32]!==E||t[33]!==D?(x=(0,Z.jsxs)(we,{children:[E,D]}),t[32]=E,t[33]=D,t[34]=x):x=t[34],m=Ee,v=`start`,y=`md`,b=`none`,g=`divide-y divide-border/60`;let O;t[35]!==d||t[36]!==c||t[37]!==u?(O=e=>{let{target:t,environment:n,machine:r,layers:i}=e;return(0,Z.jsxs)(`section`,{className:`px-3 py-2.5`,children:[(0,Z.jsxs)(`h4`,{className:`flex items-center gap-1.5 pb-1.5 text-xs font-medium text-muted-foreground`,children:[(0,Z.jsx)(J,{"aria-hidden":!0,kind:r,className:`size-3.5 shrink-0`}),(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:t.label})]}),(0,Z.jsx)(`ol`,{role:`list`,className:`text-sm`,children:i.map(an)}),(()=>{let e=u.filter(e=>e.environmentId===t.environmentId);if(e.length===0)return null;let r=n.serverConfig.settings.projectSettingsOverrides;return(0,Z.jsxs)(`div`,{className:`mt-2 border-t border-border/60 pt-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-2 text-xs text-muted-foreground`,children:[(0,Z.jsx)(`span`,{children:`Overridden by`}),c?(0,Z.jsxs)(j,{onClick:()=>c(e),children:[`Reset `,e.length===1?`it`:`all`]}):null]}),(0,Z.jsx)(`ul`,{role:`list`,className:`mt-0.5 text-sm`,children:e.map(e=>(0,Z.jsxs)(`li`,{className:`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 px-2 py-1`,children:[(0,Z.jsx)(j,{className:`min-w-0 justify-start`,onClick:e.open,children:(0,Z.jsx)(`span`,{className:`truncate`,children:e.label})}),(0,Z.jsx)(`span`,{className:`max-w-32 truncate text-muted-foreground tabular-nums`,children:$(d)?en(d,r[e.projectId]?.[d]):null})]},e.projectId))})]})})()]},`${t.environmentId}:${t.projectId??``}`)},t[35]=d,t[36]=c,t[37]=u,t[38]=O):O=t[38],_=r.map(O),t[2]=a,t[3]=d,t[4]=c,t[5]=p,t[6]=u,t[7]=n,t[8]=i,t[9]=m,t[10]=h,t[11]=g,t[12]=_,t[13]=v,t[14]=y,t[15]=b,t[16]=x}else m=t[9],h=t[10],g=t[11],_=t[12],v=t[13],y=t[14],b=t[15],x=t[16];let S;t[39]!==g||t[40]!==_?(S=(0,Z.jsx)(`div`,{className:g,children:_}),t[39]=g,t[40]=_,t[41]=S):S=t[41];let w;t[42]!==m||t[43]!==v||t[44]!==y||t[45]!==b||t[46]!==S?(w=(0,Z.jsx)(m,{align:v,width:y,padding:b,children:S}),t[42]=m,t[43]=v,t[44]=y,t[45]=b,t[46]=S,t[47]=w):w=t[47];let T;return t[48]!==h||t[49]!==w||t[50]!==x?(T=(0,Z.jsxs)(h,{children:[x,w]}),t[48]=h,t[49]=w,t[50]=x,t[51]=T):T=t[51],T}function an(e){return(0,Z.jsxs)(`li`,{className:I(`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 rounded-md px-2 py-1`,e.effective&&`bg-foreground/[0.06]`),children:[(0,Z.jsx)(`span`,{className:I(`min-w-0 truncate`,e.effective?`font-medium text-foreground`:`text-muted-foreground`),children:e.key===`environment`?`Environment`:e.label}),(0,Z.jsxs)(`span`,{className:I(`flex items-center gap-1.5 tabular-nums`,e.effective?`text-foreground`:e.set?`text-muted-foreground`:`text-muted-foreground/60`),children:[(0,Z.jsx)(`span`,{className:`max-w-32 truncate`,children:e.value}),e.effective?(0,Z.jsx)(a,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-primary`}):(0,Z.jsx)(`span`,{"aria-hidden":!0,className:`size-3.5 shrink-0`})]})]},e.key)}var on=[],sn=()=>void 0,cn=(0,Q.createContext)({targetId:null,highlightTarget:!0,onTargetHandled:sn});function ln(e){let t=(0,X.c)(7),{targetId:n,highlightTarget:r,onTargetHandled:i,children:a}=e,o=r===void 0||r,s=i===void 0?sn:i,c;t[0]!==o||t[1]!==s||t[2]!==n?(c={targetId:n,highlightTarget:o,onTargetHandled:s},t[0]=o,t[1]=s,t[2]=n,t[3]=c):c=t[3];let l=c,u;return t[4]!==a||t[5]!==l?(u=(0,Z.jsx)(cn,{value:l,children:a}),t[4]=a,t[5]=l,t[6]=u):u=t[6],u}function un(e,t=!0){let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;((typeof e.querySelector==`function`?e.querySelector(`:scope > [data-settings-scroll-target]`):null)??(e.tagName===`SECTION`&&e.firstElementChild?e.firstElementChild:e)).scrollIntoView({behavior:n?`auto`:`smooth`,block:`center`}),e.focus({preventScroll:!0}),e.classList.remove(`settings-search-target-pulse`),t&&!n&&(e.offsetWidth,e.classList.add(`settings-search-target-pulse`),e.addEventListener(`blur`,()=>e.classList.remove(`settings-search-target-pulse`),{once:!0}))}function dn(){return(0,Q.useContext)(cn).targetId}function fn(e){let t=(0,X.c)(4),{targetId:n,highlightTarget:r,onTargetHandled:i}=(0,Q.useContext)(cn),a=e!==void 0&&e===n,o;return t[0]!==r||t[1]!==a||t[2]!==i?(o=e=>{e&&a&&(un(e,r),i())},t[0]=r,t[1]=a,t[2]=i,t[3]=o):o=t[3],o}function pn(e){let t=(0,X.c)(8),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=fn(r.id),a=r.id?-1:r.tabIndex,o;return t[3]!==n||t[4]!==a||t[5]!==r||t[6]!==i?(o=(0,Z.jsx)(`div`,{...r,ref:i,tabIndex:a,children:n}),t[3]=n,t[4]=a,t[5]=r,t[6]=i,t[7]=o):o=t[7],o}var mn=`min-w-0 max-w-none shrink-0`;function hn(e){let t=(0,X.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsx)(Se,{delay:200,render:(0,Z.jsx)(C,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":`Background policy details`,children:(0,Z.jsx)(S,{className:`size-3.5`})})}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,Z.jsxs)(we,{children:[r,(0,Z.jsx)(Ce,{side:`top`,children:n})]}),t[1]=n,t[2]=i),i}function gn(e){let t=(0,X.c)(3),n=e===void 0?1e3:e,[r,i]=(0,Q.useState)(_n),a,o;return t[0]===n?(a=t[1],o=t[2]):(a=()=>{let e=setInterval(()=>i(Date.now()),n);return()=>clearInterval(e)},o=[n],t[0]=n,t[1]=a,t[2]=o),(0,Q.useEffect)(a,o),r}function _n(){return Date.now()}function vn(e){let t=(0,X.c)(30),n,r,i,a,o,s,c,l,u;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],u=t[9]):({title:l,hideTitle:s,icon:a,titleAction:u,headerAction:i,variant:c,children:n,className:r,...o}=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,t[9]=u);let d=s!==void 0&&s,f=c===void 0?`grouped`:c,p=fn(o.id),m=o.id?-1:o.tabIndex,h=!d&&`space-y-2.5`,g;t[10]!==r||t[11]!==h?(g=I(h,r),t[10]=r,t[11]=h,t[12]=g):g=t[12];let _;t[13]!==i||t[14]!==d||t[15]!==a||t[16]!==l||t[17]!==u?(_=d?(0,Z.jsx)(`h2`,{className:`sr-only`,children:l}):(0,Z.jsxs)(`div`,{"data-settings-scroll-target":!0,className:`flex min-h-7 items-start justify-between gap-4 px-3 sm:px-4`,children:[(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,Z.jsxs)(`h2`,{className:`flex min-h-7 items-center gap-2 text-sm font-normal text-foreground/70`,children:[a,l]}),u]}),(0,Z.jsx)(`div`,{className:`flex min-h-7 min-w-7 items-center justify-end`,children:i})]}),t[13]=i,t[14]=d,t[15]=a,t[16]=l,t[17]=u,t[18]=_):_=t[18];let v=d?``:void 0,y;t[19]!==n||t[20]!==v||t[21]!==f?(y=(0,Z.jsx)(Ae,{"data-settings-scroll-target":v,variant:f,children:n}),t[19]=n,t[20]=v,t[21]=f,t[22]=y):y=t[22];let b;return t[23]!==o||t[24]!==m||t[25]!==g||t[26]!==_||t[27]!==y||t[28]!==p?(b=(0,Z.jsxs)(`section`,{...o,ref:p,tabIndex:m,className:g,children:[_,y]}),t[23]=o,t[24]=m,t[25]=g,t[26]=_,t[27]=y,t[28]=p,t[29]=b):b=t[29],b}function yn(e){let t=(0,X.c)(8),{children:n,message:r}=e;if(r===void 0)return n;let i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(S,{className:`mt-0.5 size-3.5 shrink-0 text-warning`}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=(0,Z.jsxs)(`div`,{className:`flex items-start gap-2 px-3 py-2 text-xs leading-relaxed text-muted-foreground sm:px-4`,children:[i,(0,Z.jsx)(`p`,{children:r})]}),t[1]=r,t[2]=a);let o;t[3]===n?o=t[4]:(o=(0,Z.jsx)(`div`,{className:`[&_h3]:opacity-64 [&_p]:opacity-64`,children:n}),t[3]=n,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,Z.jsxs)(`div`,{className:`border-border/60 bg-muted/20 py-1.5`,children:[a,o]}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function bn(e){let t=(0,X.c)(118),n,r,i,a,s,c,l,d,f,p,m,h;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],s=t[5],c=t[6],l=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12]):({title:h,description:a,status:f,resetAction:l,onResetOverride:c,control:i,serverScoped:p,settingKeys:m,mixed:s,children:n,className:r,...d}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=s,t[6]=c,t[7]=l,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h);let g=p!==void 0&&p,_=m===void 0?on:m,v=fn(d.id),y=pe(),b=ut(),x=ue(),S=ce(),C=_e(x,O),w;t[13]===b?.connectedEnvironments?w=t[14]:(w=b?.connectedEnvironments??[],t[13]=b?.connectedEnvironments,t[14]=w);let T=ye(w,O),E;t[15]!==b||t[16]!==C||t[17]!==T?(E=b?b.connectedEnvironments.length>0&&b.connectedEnvironments.every(e=>T.has(e.environmentId)):C,t[15]=b,t[16]=C,t[17]=T,t[18]=E):E=t[18];let D=E,ee=Dt(),te=Ot(),k=b!==null&&(b.scope.kind===`project`||b.scope.kind===`checkout`),A,j,M,N;if(t[19]!==b||t[20]!==k||t[21]!==s||t[22]!==g||t[23]!==_){M=_.filter($),A=k&&g&&M.length===0;let e;t[28]!==b||t[29]!==s||t[30]!==_?(e=s??(b!==null&&Be(b.targets,_)),t[28]=b,t[29]=s,t[30]=_,t[31]=e):e=t[31],j=e,N=b&&k?He(b.targets,M):null,t[19]=b,t[20]=k,t[21]=s,t[22]=g,t[23]=_,t[24]=A,t[25]=j,t[26]=M,t[27]=N}else A=t[24],j=t[25],M=t[26],N=t[27];let P=N,F=g&&(!D||!(b?b.connectedEnvironments.length>0:y)),ne;t[32]!==b||t[33]!==P?(ne=P===`environment`&&b?.scope.environmentIds.length===1?b.environments.find(e=>e.environmentId===b.scope.environmentIds[0])?.label??`environment`:`environment`,t[32]=b,t[33]=P,t[34]=ne):ne=t[34];let re=ne;b?.connectedEnvironments;let ie;t[35]===b?.connectedEnvironments?ie=t[36]:(ie=new Map((b?.connectedEnvironments??[]).flatMap(Sn)),t[35]=b?.connectedEnvironments,t[36]=ie);let ae=ie,oe;bb0:{if(b===null||k||M.length===0){let e;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],t[37]=e):e=t[37],oe=e;break bb0}let e;if(t[38]!==b||t[39]!==M){let n;t[41]===b?n=t[42]:(n=e=>{let t=b.groups.find(t=>t.memberProjects.some(t=>t.environmentId===e.environmentId&&t.id===e.projectId));return t?[{...e,label:t.displayName,open:()=>b.selectScope({project:t.projectKey,...b.search.machine?{machine:b.search.machine}:{}})}]:[]},t[41]=b,t[42]=n),e=qe(b.connectedEnvironments,M).flatMap(n),t[38]=b,t[39]=M,t[40]=e}else e=t[40];oe=e}let L=oe,se;t[43]!==ee||t[44]!==k||t[45]!==c||t[46]!==l||t[47]!==M||t[48]!==P||t[49]!==h||t[50]!==F?(se=F?null:k&&M.length>0?P===`project`||P===`mixed`?(0,Z.jsx)(Cn,{label:typeof h==`string`?h:`override`,tooltip:`Reset to inherited value`,onClick:()=>c?c():ee(M)}):null:l,t[43]=ee,t[44]=k,t[45]=c,t[46]=l,t[47]=M,t[48]=P,t[49]=h,t[50]=F,t[51]=se):se=t[51];let le=se,de;t[52]===i?de=t[53]:(de=e=>(0,Z.jsxs)(we,{children:[(0,Z.jsx)(Se,{render:(0,Z.jsx)(`span`,{tabIndex:0,className:`flex w-full items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring @min-[32rem]/settings-row:w-auto`}),children:(0,Z.jsx)(`div`,{inert:!0,className:`flex w-full items-center gap-2 opacity-50 @min-[32rem]/settings-row:w-auto`,children:i})}),(0,Z.jsx)(Ce,{side:`top`,children:e})]}),t[52]=i,t[53]=de);let fe=de,me;t[54]!==D||t[55]!==b||t[56]!==i||t[57]!==A||t[58]!==fe||t[59]!==S?.label||t[60]!==F||t[61]!==T?(me=F&&i?fe(D?b?`Reconnect the selected environment to change this setting.`:he:`This connection lacks permission to change settings on ${b?b.connectedEnvironments.filter(e=>!T.has(e.environmentId)).map(xn).join(`, `)||`the selected environment`:S?.label??`the primary environment`}.`):A&&i?fe(`Environment-wide setting. Select an environment to change it.`):i,t[54]=D,t[55]=b,t[56]=i,t[57]=A,t[58]=fe,t[59]=S?.label,t[60]=F,t[61]=T,t[62]=me):me=t[62];let R=me,ge;t[63]!==b||t[64]!==ae||t[65]!==_?(ge=b!==null&&_.some(e=>b.targets.some(t=>{let n=ae.get(t.environmentId);return n!==void 0&&!u(n[e],o[e])})),t[63]=b,t[64]=ae,t[65]=_,t[66]=ge):ge=t[66];let ve=ge,be;t[67]!==ve||t[68]!==re||t[69]!==j||t[70]!==M||t[71]!==P?(be=j?{state:`mixed`,summary:`Mixed across selected environments`}:P===`project`?{state:`overridden`,summary:`Overridden for this project`}:P===`p4.json`?{state:`inherited`,summary:`Inherited from the repository's p4.json`}:P===`environment`&&M.length>0?{state:`inherited`,summary:`Inherited from ${re}`}:ve?{state:`environment`,summary:`Set on the environment`}:{state:`default`,summary:`Built-in default`},t[67]=ve,t[68]=re,t[69]=j,t[70]=M,t[71]=P,t[72]=be):be=t[72];let xe=be,Te;t[73]!==D||t[74]!==te||t[75]!==b||t[76]!==xe||t[77]!==L||t[78]!==M||t[79]!==g||t[80]!==_?(Te=b&&g&&_.length>0?(0,Z.jsx)(rn,{state:xe.state,summary:xe.summary,targets:b.targets,environments:b.connectedEnvironments,keys:_,overridingProjects:L,...D?{onClearOverrides:e=>te(e,M)}:{}}):null,t[73]=D,t[74]=te,t[75]=b,t[76]=xe,t[77]=L,t[78]=M,t[79]=g,t[80]=_,t[81]=Te):Te=t[81];let Ee=Te,De=f,Oe=d.id?-1:d.tabIndex,ke=n?`pt-3 pb-1`:`py-3`,z;t[82]!==r||t[83]!==ke?(z=I(`@container/settings-row rounded-xl px-3 sm:px-4 aria-disabled:opacity-64 aria-disabled:[&_*]:text-muted-foreground`,ke,r),t[82]=r,t[83]=ke,t[84]=z):z=t[84];let B;t[85]===h?B=t[86]:(B=(0,Z.jsx)(`h3`,{className:`text-sm font-medium text-foreground`,children:h}),t[85]=h,t[86]=B);let V;t[87]===Ee?V=t[88]:(V=Ee?(0,Z.jsx)(`span`,{className:`inline-flex h-5 w-5 shrink-0 items-center justify-center`,children:Ee}):null,t[87]=Ee,t[88]=V);let H;t[89]===le?H=t[90]:(H=(0,Z.jsx)(`span`,{className:`inline-flex h-5 w-5 shrink-0 items-center justify-center`,children:le}),t[89]=le,t[90]=H);let U;t[91]!==B||t[92]!==V||t[93]!==H?(U=(0,Z.jsxs)(`div`,{className:`flex min-h-5 items-center gap-1.5`,children:[B,V,H]}),t[91]=B,t[92]=V,t[93]=H,t[94]=U):U=t[94];let W;t[95]===a?W=t[96]:(W=a?(0,Z.jsx)(`p`,{className:`max-w-xl text-xs leading-normal text-muted-foreground/80`,children:a}):null,t[95]=a,t[96]=W);let G;t[97]===De?G=t[98]:(G=De?(0,Z.jsx)(`div`,{className:`pt-0.5 text-xs text-muted-foreground`,children:De}):null,t[97]=De,t[98]=G);let K;t[99]!==U||t[100]!==W||t[101]!==G?(K=(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[U,W,G]}),t[99]=U,t[100]=W,t[101]=G,t[102]=K):K=t[102];let q;t[103]===R?q=t[104]:(q=R?(0,Z.jsx)(`div`,{className:`flex w-full min-w-0 shrink-0 items-center gap-2 @min-[32rem]/settings-row:w-auto @min-[32rem]/settings-row:justify-end`,children:R}):null,t[103]=R,t[104]=q);let J;t[105]!==K||t[106]!==q?(J=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-3 @min-[32rem]/settings-row:grid @min-[32rem]/settings-row:grid-cols-[minmax(0,1fr)_minmax(10rem,auto)] @min-[32rem]/settings-row:items-center @min-[32rem]/settings-row:gap-8`,children:[K,q]}),t[105]=K,t[106]=q,t[107]=J):J=t[107];let Y;t[108]!==n||t[109]!==F?(Y=F&&n?(0,Z.jsx)(`div`,{inert:!0,className:`opacity-50`,children:n}):n,t[108]=n,t[109]=F,t[110]=Y):Y=t[110];let Ae;return t[111]!==d||t[112]!==Oe||t[113]!==z||t[114]!==J||t[115]!==Y||t[116]!==v?(Ae=(0,Z.jsxs)(`div`,{...d,ref:v,tabIndex:Oe,"data-slot":`settings-row`,className:z,children:[J,Y]}),t[111]=d,t[112]=Oe,t[113]=z,t[114]=J,t[115]=Y,t[116]=v,t[117]=Ae):Ae=t[117],Ae}function xn(e){return e.label}function Sn(e){return e.serverConfig?[[e.environmentId,e.serverConfig.settings]]:[]}function Cn(e){let t=(0,X.c)(12),{label:n,tooltip:r,disabled:i,onClick:a}=e,o=r===void 0?`Reset to default`:r,s=i!==void 0&&i,c=`Reset ${n} to default`,l;t[0]===a?l=t[1]:(l=e=>{e.stopPropagation(),a()},t[0]=a,t[1]=l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(g,{className:`size-3`}),t[2]=u):u=t[2];let d;t[3]!==s||t[4]!==c||t[5]!==l?(d=(0,Z.jsx)(Se,{render:(0,Z.jsx)(C,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":c,disabled:s,onClick:l,children:u})}),t[3]=s,t[4]=c,t[5]=l,t[6]=d):d=t[6];let f;t[7]===o?f=t[8]:(f=(0,Z.jsx)(Ce,{side:`top`,children:o}),t[7]=o,t[8]=f);let p;return t[9]!==d||t[10]!==f?(p=(0,Z.jsxs)(we,{children:[d,f]}),t[9]=d,t[10]=f,t[11]=p):p=t[11],p}function wn(e){let t=(0,X.c)(18),{children:n,className:r,width:i}=e,a=i===void 0?`readable`:i,o=oe(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={select:En},t[0]=s):s=t[0];let c=L(s),l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l={select:Tn},t[1]=l):l=t[1];let u=L(l),d;t[2]===c?d=t[3]:(d=c.replace(/^#/,``)||null,t[2]=c,t[3]=d);let f=d,p;t[4]===o?p=t[5]:(p=()=>{o({hash:``,replace:!0,resetScroll:!1,hashScrollIntoView:!1,state:{settingsTargetHighlight:!0}})},t[4]=o,t[5]=p);let m=p,h;t[6]===r?h=t[7]:(h=I(`gap-8`,r),t[6]=r,t[7]=h);let g;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsx)(pt,{}),t[8]=g):g=t[8];let _;t[9]!==n||t[10]!==h||t[11]!==a?(_=(0,Z.jsx)(`div`,{className:`topbar-scroll-fade scrollbar-gutter-both flex-1 overflow-y-auto`,"data-settings-page-scroll":!0,children:(0,Z.jsxs)(Y,{width:a,className:h,children:[g,n]})}),t[9]=n,t[10]=h,t[11]=a,t[12]=_):_=t[12];let v;return t[13]!==m||t[14]!==u||t[15]!==_||t[16]!==f?(v=(0,Z.jsx)(ln,{targetId:f,highlightTarget:u,onTargetHandled:m,children:_}),t[13]=m,t[14]=u,t[15]=_,t[16]=f,t[17]=v):v=t[17],v}function Tn(e){return e.state.settingsTargetHighlight!==!1}function En(e){return e.hash}function Dn(e,{highlight:t=!0}={}){let n=document.getElementById(e);return n?(un(n,t),!0):!1}export{It as A,lt as B,zt as C,Wt as D,Ht as E,yt as F,Ae as G,Qe as H,bt as I,kt as L,jt as M,Dt as N,Ut as O,xt as P,Et as R,Gt as S,Xt as T,Ve as U,dt as V,je as W,qt as _,bn as a,Vt as b,yn as c,fn as d,dn as f,Yt as g,Zt as h,wn as i,Ft as j,Qt as k,Dn as l,Bt as m,mn as n,pn as o,At as p,Cn as r,vn as s,hn as t,gn as u,Jt as v,Pt as w,Kt as x,Rt as y,ft as z};
|
|
3
|
-
//# sourceMappingURL=settingsLayout-WhjsCfB6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Yc as e}from"./utils-C5GGWTfe.js";import{M as t,N as n,P as r,k as i}from"./runtime-BVmDVuJ-.js";import{a,i as o,t as s}from"./vcsRefInvalidation-B66hRx4g.js";import{t as c}from"./runtime-BK2Lh1vB.js";function l(c){let l=i();return{discovery:n(c,{label:`environment-data:server:source-control-discovery`,tag:e.serverDiscoverSourceControl}),repository:n(c,{label:`environment-data:source-control:repository`,tag:e.sourceControlLookupRepository}),cloneRepository:t(c,{label:`environment-data:source-control:clone-repository`,tag:e.sourceControlCloneRepository,scheduler:l,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),startProjectClone:t(c,{label:`environment-data:source-control:project-clone-start`,tag:e.projectCloneStart,scheduler:l,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),cancelProjectClone:t(c,{label:`environment-data:source-control:project-clone-cancel`,tag:e.projectCloneCancel,scheduler:l,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),retryProjectClone:t(c,{label:`environment-data:source-control:project-clone-retry`,tag:e.projectCloneRetry,scheduler:l,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),projectClones:r(c,{label:`environment-data:source-control:project-clones`,tag:e.subscribeProjectClones}),publishRepository:t(c,{label:`environment-data:source-control:publish-repository`,tag:e.sourceControlPublishRepository,scheduler:a,concurrency:o,onSettled:(e,t)=>s(t,{environmentId:e.environmentId,cwd:e.input.cwd})})}}var u=l(c);export{u as t};
|
|
2
|
-
//# sourceMappingURL=sourceControl-BkJeQRrv.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{zc as e}from"./utils-C5GGWTfe.js";var t=/https?:\/\/[^\s"'`<>]+/giu,n=/(?:~\/|\.{1,2}\/|\/|[A-Za-z]:[\\/]|\\\\)[^\s"'`<>]+|[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)+(?::\d+){0,2}/g,r=/[.,;!?]+$/,i=/[.,;:!?]+$/;function a(e,t){let n=e.replace(t===`path`?i:r,``);if(n.length===0)return n;let a=(e,t)=>{for(;n.endsWith(t);){if(n.split(e).length-1>=n.split(t).length-1)return;n=n.slice(0,-1)}};return a(`(`,`)`),a(`[`,`]`),a(`{`,`}`),n}function o(e,t){return e.start<t.end&&t.start<e.end}function s(e,t,n,r){let i=[];n.lastIndex=0;for(let s of e.matchAll(n)){let e=s[0],n=s.index??-1;if(n<0||e.length===0)continue;let c=a(e,t);if(c.length===0||t===`path`&&l(c))continue;let u={kind:t,text:c,start:n,end:n+c.length};[...r,...i].some(e=>o(u,e))||i.push(u)}return i}function c(e){let r=s(e,`url`,t,[]),i=s(e,`path`,n,r);return[...r,...i].toSorted((e,t)=>e.start-t.start)}function l(e){return/^https?:\/\//iu.test(e)}function u(e,t){let n=t(e-1);if(!n)return null;let r=e,i=n;for(;r>1&&i.isWrapped;){let e=t(r-2);if(!e)return null;--r,i=e}let a=[],o=0,s=r;for(;;){let e=t(s-1);if(!e)break;let n=t(s)?.isWrapped===!0,r=e.translateToString(!n);if(a.push({bufferLineNumber:s,text:r,startIndex:o,endIndex:o+r.length}),o+=r.length,!n)break;s+=1}return{text:a.map(e=>e.text).join(``),segments:a}}function d(t,n=typeof navigator>`u`?``:navigator.platform){return n.length===0?!1:e(n)?t.metaKey&&!t.ctrlKey:t.ctrlKey&&!t.metaKey}export{l as i,c as n,d as r,u as t};
|
|
2
|
-
//# sourceMappingURL=terminal-links-UI2UJn0y.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./jsx-runtime-DJeoFXNw.js";import{Qv as t,Xy as n,Yc as r,ey as i,fv as a,pv as o}from"./utils-C5GGWTfe.js";import{F as s,M as c,P as l,k as u,tt as d}from"./runtime-BVmDVuJ-.js";import{t as f}from"./runtime-BK2Lh1vB.js";import{i as p}from"./session-BIwsf8Q4.js";import{n as m}from"./query-B2_Td0ad.js";var h=e(),g=Object.freeze({generation:-1,resetVersion:-1,offset:0}),_=524288,v=16384,y=1024,b=new TextEncoder,x=new TextDecoder(`utf-8`,{ignoreBOM:!0}),S=Object.freeze({generation:0,chunks:Object.freeze([]),retainedBytes:0,resetVersion:0,nextOffset:0});function C(e,t){if(e.length===0)return[];let n=b.encode(e);if(n.byteLength<=t)return[{data:e,byteLength:n.byteLength}];let r=[],i=0;for(;i<n.byteLength;){let e=Math.min(i+t,n.byteLength);for(;e<n.byteLength&&((n[e]??0)&192)==128;)--e;if(e===i)for(e=Math.min(i+t,n.byteLength);e<n.byteLength&&((n[e]??0)&192)==128;)e+=1;let a=n.subarray(i,e);r.push({data:x.decode(a),byteLength:a.byteLength}),i=e}return r}function w(e,t){if(t<=0)return``;let n=b.encode(e);if(n.byteLength<=t)return e;let r=n.byteLength-t;for(;r<n.length;){let e=n[r];if(e===void 0||(e&192)!=128)break;r+=1}return x.decode(n.subarray(r))}function T(e,t,n=v){let r=C(e,n),i=0,a=t;return{chunks:r.map(e=>{i+=e.byteLength;let t=a;return a+=e.data.length,{startOffset:t,data:e.data,byteLength:e.byteLength}}),nextOffset:a,byteLength:i}}function E(e){let t=[];for(let n of e){let e=t.at(-1);e!==void 0&&e.startOffset+e.data.length===n.startOffset&&e.byteLength+n.byteLength<=v?t[t.length-1]={startOffset:e.startOffset,data:`${e.data}${n.data}`,byteLength:e.byteLength+n.byteLength}:t.push(n)}return t}function D(e,t){let n=0,r=0;for(;r<t&&n<e.data.length;){let t=e.data.codePointAt(n);r+=t<=127?1:t<=2047?2:t<=65535?3:4,n+=t<=65535?1:2}return{...e,startOffset:e.startOffset+n,data:e.data.slice(n),byteLength:e.byteLength-r}}function O(e,t,n){if(t.length===0)return e;if(n<=0)return{generation:e.generation,chunks:[],retainedBytes:0,resetVersion:e.resetVersion+1,nextOffset:e.nextOffset+t.length};let r=T(t,e.nextOffset,Math.min(v,Math.max(1,n))),i=[...e.chunks,...r.chunks],a=e.retainedBytes+r.byteLength,o=0;for(;a>n&&o<i.length;){let e=i[o],t=a-n;if(t<e.byteLength){let n=D(e,t);a-=e.byteLength-n.byteLength,n.byteLength>0?i[o]=n:o+=1;break}a-=e.byteLength,o+=1}let s=o===0?i:i.slice(o);if(s.length>y){s=E(s);let e=s.length-y;if(e>0){for(let t of s.slice(0,e))a-=t.byteLength;s=s.slice(e)}}return{generation:e.generation,chunks:s,retainedBytes:a,resetVersion:e.resetVersion,nextOffset:r.nextOffset}}function k(e,t,n){let r=T(w(t,n),0,Math.min(v,Math.max(1,n)));return{generation:e.generation,chunks:r.chunks,retainedBytes:r.byteLength,resetVersion:e.resetVersion+1,nextOffset:r.nextOffset}}function A(e){return e.chunks.map(e=>e.data).join(``)}function j(e,t){let n={generation:e.generation,resetVersion:e.resetVersion,offset:e.nextOffset},r=e.chunks[0];if(t.generation!==e.generation||t.resetVersion!==e.resetVersion||t.offset<(r?.startOffset??e.nextOffset))return{type:`reset`,data:A(e),cursor:n};let i=e.chunks.filter(e=>e.startOffset+e.data.length>t.offset);return i.length===0?{type:`none`,cursor:n}:{type:`append`,data:i.map(e=>e.data.slice(Math.max(0,t.offset-e.startOffset))).join(``),cursor:n}}function M(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var N=Object.freeze({output:S,grid:null,status:`closed`,error:null,updatedAt:null,version:0,lifecycleVersion:0}),P=Object.freeze({summary:null,output:S,grid:null,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0,lifecycleVersion:0}),F=0;function I(){return{...N,output:{...S,generation:++F}}}function L(e,t,n=N){return{output:k(n.output,e.history,t),grid:R(n.grid,e),status:e.status,error:null,updatedAt:e.updatedAt,version:n.version+1,lifecycleVersion:n.lifecycleVersion}}function R(e,t){return t.cols===void 0||t.rows===void 0||e?.cols===t.cols&&e.rows===t.rows?e:{cols:t.cols,rows:t.rows}}function z(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function B(e,t){return{summary:e,output:t.output,grid:t.grid,status:t.version>0?t.status:e?.status??t.status,error:t.error,hasRunningSubprocess:e?.hasRunningSubprocess??!1,updatedAt:z(e?.updatedAt??null,t.updatedAt),version:t.version,lifecycleVersion:t.lifecycleVersion}}function V(e,t,n=_){switch(t.type){case`snapshot`:return{...L(t.snapshot,n,e),lifecycleVersion:e.version===0?e.lifecycleVersion:e.lifecycleVersion+1};case`restarted`:return{...L(t.snapshot,n,e),lifecycleVersion:e.lifecycleVersion+1};case`output`:return{...e,output:O(e.output,t.data,n),status:e.status===`closed`?`running`:e.status,error:null,version:e.version+1};case`cleared`:return{...e,output:k(e.output,``,n),error:null,version:e.version+1};case`exited`:return{...e,status:`exited`,error:null,version:e.version+1};case`closed`:return{...e,status:`closed`,error:null,version:e.version+1};case`error`:return{...e,status:`error`,error:t.message,version:e.version+1};case`activity`:{let n=R(e.grid,t);return n===e.grid?e:{...e,grid:n}}}}function H(e,t){return t.type===`snapshot`?t.terminals:t.type===`remove`?e.filter(e=>e.threadId!==t.threadId||e.terminalId!==t.terminalId):[...e.filter(e=>e.threadId!==t.terminal.threadId||e.terminalId!==t.terminal.terminalId),t.terminal]}function U(e){let n=u(),a=u(),o=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId]),f=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.terminalId??null]),p={mode:`serial`,key:o};return{observe:s(e,{label:`environment-data:terminal:observe`,subscribe:e=>i(()=>d(r.terminalObserve,e).pipe(t(I,V)))}),attach:s(e,{label:`environment-data:terminal:attach`,subscribe:e=>i(()=>d(r.terminalAttach,e).pipe(t(I,V)))}),events:l(e,{label:`environment-data:terminal:events`,tag:r.subscribeTerminalEvents}),metadata:s(e,{label:`environment-data:terminal:metadata`,subscribe:e=>d(r.subscribeTerminalMetadata,{}).pipe(t(()=>[],H))}),open:c(e,{label:`environment-data:terminal:open`,tag:r.terminalOpen,scheduler:n,concurrency:p}),write:c(e,{label:`environment-data:terminal:write`,tag:r.terminalWrite}),resize:c(e,{label:`environment-data:terminal:resize`,tag:r.terminalResize,scheduler:a,concurrency:{mode:`latest`,key:f}}),clear:c(e,{label:`environment-data:terminal:clear`,tag:r.terminalClear,scheduler:n,concurrency:p}),restart:c(e,{label:`environment-data:terminal:restart`,tag:r.terminalRestart,scheduler:n,concurrency:p}),close:c(e,{label:`environment-data:terminal:close`,tag:r.terminalClose,scheduler:n,concurrency:p})}}var W=U(f),G=Object.freeze([]),K=new WeakMap,q=new WeakMap,J=new WeakMap;function Y(e,t){let r=q.get(e),i=r?.get(t);if(i)return i;let a={target:{environmentId:t,threadId:n.make(e.threadId),terminalId:e.terminalId},state:B(e,N)};return r||(r=new Map,q.set(e,r)),r.set(t,a),a}function X(e){let t=K.get(e);if(!t){let n=new Intl.Collator(void 0,{numeric:!0}).compare,r=e.toSorted((e,t)=>n(e.terminalId,t.terminalId)),i=new Map;for(let e of r){let t=i.get(e.threadId);t?t.push(e):i.set(e.threadId,[e])}t={all:r,byThreadId:i,views:new Map},K.set(e,t)}return t}function Z(e,t,n){if(t===null||e===null||e.length===0)return G;let r=X(e),i=r.views.get(t),a=i?.get(n);if(a)return a;let o=n===null?r.all:r.byThreadId.get(n);if(!o||o.length===0)return G;let s=o[0],c=n===null?`all`:`thread`,l=J.get(s),u=l?.get(t),d=u?.[c]?.deref(),f=d?.length===o.length&&d.every((e,t)=>e.state.summary===o[t])?d:o.map(e=>Y(e,t));return l||(l=new Map,J.set(s,l)),f!==d&&l.set(t,{...u,[c]:new WeakRef(f)}),i||(i=new Map,r.views.set(t,i)),i.set(n,f),f}function Q(e){let t=(0,h.c)(15),n=p(e.environmentId,o),r=p(e.environmentId,a),i;t[0]!==r||t[1]!==n||t[2]!==e.environmentId||t[3]!==e.terminal?(i=e.environmentId!==null&&e.terminal!==null?r?W.attach({environmentId:e.environmentId,input:e.terminal}):n?W.observe({environmentId:e.environmentId,input:{threadId:e.terminal.threadId,terminalId:e.terminal.terminalId}}):null:null,t[0]=r,t[1]=n,t[2]=e.environmentId,t[3]=e.terminal,t[4]=i):i=t[4];let s=m(i),c;t[5]!==n||t[6]!==e.environmentId?(c=e.environmentId===null||!n?null:W.metadata({environmentId:e.environmentId,input:null}),t[5]=n,t[6]=e.environmentId,t[7]=c):c=t[7];let l=m(c),u;bb0:{if(e.environmentId===null||e.terminal===null){u=P;break bb0}let n;t[8]!==s.data||t[9]!==e.terminal||t[10]!==l.data?(n=B((l.data===null?null:X(l.data).byThreadId.get(e.terminal.threadId)?.find(t=>t.terminalId===e.terminal?.terminalId))??null,s.data??N),t[8]=s.data,t[9]=e.terminal,t[10]=l.data,t[11]=n):n=t[11];let r=n,i;t[12]!==s.error||t[13]!==r?(i=s.error===null?r:{...r,error:s.error,status:`error`},t[12]=s.error,t[13]=r,t[14]=i):i=t[14],u=i}return u}function $(e){let t=(0,h.c)(8),n=p(e.environmentId,o),r;t[0]!==n||t[1]!==e.environmentId?(r=e.environmentId===null||!n?null:W.metadata({environmentId:e.environmentId,input:null}),t[0]=n,t[1]=e.environmentId,t[2]=r):r=t[2];let i=m(r),a;return t[3]!==e.environmentId||t[4]!==e.threadId||t[5]!==i.data||t[6]!==i.error?(a=i.data===null||i.error!==null?null:Z(i.data,e.environmentId,e.threadId),t[3]=e.environmentId,t[4]=e.threadId,t[5]=i.data,t[6]=i.error,t[7]=a):a=t[7],a}function ee(e){let t=(0,h.c)(4),n=$(e),r;t[0]===n?r=t[1]:(r=n??[],t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=M(r),t[2]=r,t[3]=i),i}export{g as a,W as i,$ as n,j as o,ee as r,Q as t};
|
|
2
|
-
//# sourceMappingURL=terminalSessions-C1xOLG3i.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{ME as e,Wb as t,hb as n,nb as r,sb as i,yb as a}from"./utils-C5GGWTfe.js";var o=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},s={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},c=e=>o(s[e.toLowerCase()],6),l=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,u=e=>{let t;return(t=e.match(l))?o(parseInt(t[1],16),t[1].length):void 0},d=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`,f=`${d}%`,p=`(?:${d}%|${d})`,m=`(?:${d}%|${d}|none)`,h=`(?:${d}(deg|grad|rad|turn)|${d})`,g=`\\s*,\\s*`;RegExp(`^`+m+`$`);var ee=RegExp(`^rgba?\\(\\s*${d}${g}${d}${g}${d}\\s*(?:,\\s*${p}\\s*)?\\)$`),te=RegExp(`^rgba?\\(\\s*${f}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),ne=e=>{let t={mode:`rgb`},n;if(n=e.match(ee))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(te))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t},re=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:ve(e),ie=(e=`rgb`)=>t=>(t=re(t,e))===void 0?void 0:t.mode===e?t:_[t.mode][e]?_[t.mode][e](t):e===`rgb`?_[t.mode].rgb(t):_.rgb[e](_[t.mode].rgb(t)),_={},ae={},v=[],oe={},se=e=>e,y=e=>(_[e.mode]={..._[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{_[t]||(_[t]={}),_[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=se)}),ae[e.mode]=e,(e.parse||[]).forEach(t=>{le(t,e.mode)}),ie(e.mode)),ce=e=>ae[e],le=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);oe[e]=t}else typeof e==`function`&&v.indexOf(e)<0&&v.push(e)},ue=/[^\x00-\x7F]|[a-zA-Z_]/,de=/[^\x00-\x7F]|[-\w]/,b={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`},x=0;function S(e){let t=e[x],n=e[x+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[x+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function C(e){if(x>=e.length)return!1;let t=e[x];if(ue.test(t))return!0;if(t===`-`){if(e.length-x<2)return!1;let t=e[x+1];return!!(t===`-`||ue.test(t))}return!1}var fe={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function w(e){let t=``;if((e[x]===`-`||e[x]===`+`)&&(t+=e[x++]),t+=T(e),e[x]===`.`&&/\d/.test(e[x+1])&&(t+=e[x++]+T(e)),(e[x]===`e`||e[x]===`E`)&&((e[x+1]===`-`||e[x+1]===`+`)&&/\d/.test(e[x+2])?t+=e[x++]+e[x++]+T(e):/\d/.test(e[x+1])&&(t+=e[x++]+T(e))),C(e)){let n=E(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:b.Hue,value:t*fe[n]}:void 0}return e[x]===`%`?(x++,{type:b.Percentage,value:+t}):{type:b.Number,value:+t}}function T(e){let t=``;for(;/\d/.test(e[x]);)t+=e[x++];return t}function E(e){let t=``;for(;x<e.length&&de.test(e[x]);)t+=e[x++];return t}function pe(e){let t=E(e);return e[x]===`(`?(x++,{type:b.Function,value:t}):t===`none`?{type:b.None,value:void 0}:{type:b.Ident,value:t}}function me(e=``){let t=e.trim(),n=[],r;for(x=0;x<t.length;)if(r=t[x++],r===`
|
|
2
|
-
`||r===` `||r===` `)for(;x<t.length&&(t[x]===`
|
|
3
|
-
`||t[x]===` `||t[x]===` `);)x++;else{if(r===`,`)return;if(r===`)`)n.push({type:b.ParenClose});else{if(r===`+`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`-`){if(x--,S(t)){n.push(w(t));continue}if(C(t)){n.push({type:b.Ident,value:E(t)});continue}return}if(r===`.`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`/`){for(;x<t.length&&(t[x]===`
|
|
4
|
-
`||t[x]===` `||t[x]===` `);)x++;let e;if(S(t)&&(e=w(t),e.type!==b.Hue)){n.push({type:b.Alpha,value:e});continue}if(C(t)&&E(t)===`none`){n.push({type:b.Alpha,value:{type:b.None,value:void 0}});continue}return}if(/\d/.test(r))x--,n.push(w(t));else if(ue.test(r))x--,n.push(pe(t));else return}}return n}function he(e){e._i=0;let t=e[e._i++];if(!t||t.type!==b.Function||t.value!==`color`||(t=e[e._i++],t.type!==b.Ident))return;let n=oe[t.value];if(!n)return;let r={mode:n},i=ge(e,!1);if(!i)return;let a=ce(n).channels;for(let e=0,t,n;e<a.length;e++)t=i[e],n=a[e],t.type!==b.None&&(r[n]=t.type===b.Number?t.value:t.value/100,n===`alpha`&&(r[n]=Math.max(0,Math.min(1,r[n]))));return r}function ge(e,t){let n=[],r;for(;e._i<e.length;)if(r=e[e._i++],r.type===b.None||r.type===b.Number||r.type===b.Alpha||r.type===b.Percentage||t&&r.type===b.Hue)n.push(r);else if(r.type===b.ParenClose){if(e._i<e.length)return}else return;if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==b.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:b.None,value:void 0}),n.every(e=>e.type!==b.Alpha)?n:void 0}}function _e(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==b.Function)return;let r=ge(e,t);if(r)return r.unshift(n.value),r}var ve=e=>{if(typeof e!=`string`)return;let t=me(e),n=t?_e(t,!0):void 0,r,i=0,a=v.length;for(;i<a;)if((r=v[i++](e,n))!==void 0)return r;return t?he(t):void 0};function ye(e,t){if(!t||t[0]!==`rgb`&&t[0]!==`rgba`)return;let n={mode:`rgb`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.r=r.type===b.Number?r.value/255:r.value/100),i.type!==b.None&&(n.g=i.type===b.Number?i.value/255:i.value/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value/255:a.value/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var be=e=>e===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0,xe=(e,t,n)=>e+n*(t-e),Se=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];r===void 0&&i===void 0?t.push(void 0):r!==void 0&&i!==void 0?t.push([r,i]):t.push(r===void 0?[i,i]:[r,r])}return t},D=(e=>t=>{let n=Se(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}})(xe),O=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},k={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[ye,u,ne,c,be,`srgb`],serialize:`srgb`,interpolate:{r:D,g:D,b:D,alpha:{use:D,fixup:O}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ce=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),we=e=>{let t=Ce(e.r),n=Ce(e.g),r=Ce(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Te=e=>Math.abs(e)**(256/563)*Math.sign(e),Ee=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:Te(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:Te(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:Te(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},De=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},Oe=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:De(e),g:De(t),b:De(n)};return r!==void 0&&(i.alpha=r),i},ke=e=>{let{r:t,g:n,b:r,alpha:i}=Oe(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a},Ae=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},je=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:Ae(e),g:Ae(t),b:Ae(n)};return r!==void 0&&(a.alpha=r),a},A=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=je({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},Me={...k,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>Ee(ke(e)),xyz65:Ee},toMode:{rgb:e=>A(we(e)),xyz65:we}},j=e=>(e%=360)<0?e+360:e;function Ne({h:e,s:t,l:n,alpha:r}){e=j(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=n+t*(n<.5?n:1-n),a=i-(i-n)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:i,g:a,b:2*n-i};break;case 1:o={r:a,g:i,b:2*n-i};break;case 2:o={r:2*n-i,g:i,b:a};break;case 3:o={r:2*n-i,g:a,b:i};break;case 4:o={r:a,g:2*n-i,b:i};break;case 5:o={r:i,g:2*n-i,b:a};break;default:o={r:2*n-i,g:2*n-i,b:2*n-i}}return o.mode=`rgb`,r!==void 0&&(o.alpha=r),o}function Pe({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsl`,s:i===a?0:(i-a)/(1-Math.abs(i+a-1)),l:.5*(i+a)};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var Fe=(e,t)=>{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}},Ie=RegExp(`^hsla?\\(\\s*${h}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),Le=e=>{let t=e.match(Ie);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=Fe(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};function Re(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.s=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.l=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var ze=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=j(n);return r===0||e[r-1]===void 0?a:t(a-j(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),Be=e=>ze(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Ve=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=j(e.h),r=j(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},He=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=j(e.h),r=j(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Ue=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=j(e.h),r=j(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},We=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},Ge={mode:`hsl`,toMode:{rgb:Ne},fromMode:{rgb:Pe},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Re,Le],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:Be},s:D,l:D,alpha:{use:D,fixup:O}},difference:{h:Ve},average:{h:We}};function Ke({h:e,s:t,v:n,alpha:r}){e=j(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function qe({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var Je={mode:`hsv`,toMode:{rgb:Ke},parse:[`--hsv`],serialize:`--hsv`,fromMode:{rgb:qe},channels:[`h`,`s`,`v`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,interpolate:{h:{use:D,fixup:Be},s:D,v:D,alpha:{use:D,fixup:O}},difference:{h:Ve},average:{h:We}};function Ye({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let e=t+n;t/=e,n/=e}return Ke({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function Xe(e){let t=qe(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function Ze(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.w=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.b=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Qe={mode:`hwb`,toMode:{rgb:Ye},fromMode:{rgb:Xe},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Ze],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:Be},w:D,b:D,alpha:{use:D,fixup:O}},difference:{h:He},average:{h:We}},$e=29**3/27,et=216/29**3,M={X:.3457/.3585,Y:1,Z:.2958/.3585},N={X:.3127/.329,Y:1,Z:.3583/.329},tt=e=>e**3>et?e**3:(116*e-16)/$e,nt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:tt(a)*M.X,y:tt(i)*M.Y,z:tt(o)*M.Z};return r!==void 0&&(s.alpha=r),s},rt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=je({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},it=e=>rt(nt(e)),at=e=>{let{r:t,g:n,b:r,alpha:i}=Oe(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a},ot=e=>e>et?Math.cbrt(e):($e*e+16)/116,st=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ot(e/M.X),a=ot(t/M.Y),o=ot(n/M.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},ct=e=>{let t=st(at(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function lt(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*125/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*125/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var ut={mode:`lab`,toMode:{xyz50:nt,rgb:it},fromMode:{xyz50:st,rgb:ct},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[lt],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:D,a:D,b:D,alpha:{use:D,fixup:O}}},dt=29**3/27,ft=216/29**3,pt=e=>e**3>ft?e**3:(116*e-16)/dt,mt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:pt(a)*N.X,y:pt(i)*N.Y,z:pt(o)*N.Z};return r!==void 0&&(s.alpha=r),s},ht=e=>A(mt(e)),gt=e=>e>ft?Math.cbrt(e):(dt*e+16)/116,_t=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=gt(e/N.X),a=gt(t/N.Y),o=gt(n/N.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},vt=e=>{let t=_t(ke(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},yt={...ut,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:mt,rgb:ht},fromMode:{xyz65:_t,rgb:vt},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},P=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=j(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},F=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a};function bt(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*150/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var xt={mode:`lch`,toMode:{lab:F,rgb:e=>it(F(e))},fromMode:{rgb:e=>P(ct(e)),lab:P},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[bt],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:Be},c:D,l:D,alpha:{use:D,fixup:O}},difference:{h:Ue},average:{h:We}},St={...xt,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>F(e,`lab65`),rgb:e=>ht(F(e,`lab65`))},fromMode:{rgb:e=>P(vt(e),`lch65`),lab65:e=>P(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}},Ct={...k,mode:`lrgb`,toMode:{rgb:je},fromMode:{rgb:Oe},parse:[`srgb-linear`],serialize:`srgb-linear`},wt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s},Tt=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s},Et=e=>{let t=Tt(Oe(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Dt=e=>je(wt(e));function Ot(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*.4/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*.4/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var kt={...ut,mode:`oklab`,toMode:{lrgb:wt,rgb:Dt},fromMode:{lrgb:Tt,rgb:Et},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ot],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};function At(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*.4/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var jt={...xt,mode:`oklch`,toMode:{oklab:e=>F(e,`oklab`),rgb:e=>Dt(F(e,`oklab`))},fromMode:{rgb:e=>P(Et(e),`oklch`),oklab:e=>P(e,`oklch`)},parse:[At],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Mt=e=>{let{r:t,g:n,b:r,alpha:i}=Oe(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a},Nt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=je({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i},Pt={...k,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>Nt(ke(e)),xyz65:Nt},toMode:{rgb:e=>A(Mt(e)),xyz65:Mt}},Ft=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},It=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:Ft(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:Ft(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:Ft(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},Lt=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},Rt=e=>{let t=Lt(e.r),n=Lt(e.g),r=Lt(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},zt={...k,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:It,rgb:e=>It(at(e))},toMode:{xyz50:Rt,rgb:e=>rt(Rt(e))}},Bt=1.09929682680944,Vt=.018053968510807,Ht=e=>{let t=Math.abs(e);return t>Vt?(Math.sign(e)||1)*(Bt*t**.45-.09929682680944008):4.5*e},Ut=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:Ht(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:Ht(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:Ht(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Wt=1.09929682680944,Gt=.018053968510807,Kt=(e=0)=>{let t=Math.abs(e);return t<Gt*4.5?e/4.5:(Math.sign(e)||1)*((t+Wt-1)/Wt)**(1/.45)},qt=e=>{let t=Kt(e.r),n=Kt(e.g),r=Kt(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Jt={...k,mode:`rec2020`,fromMode:{xyz65:Ut,rgb:e=>Ut(ke(e))},toMode:{xyz65:qt,rgb:e=>A(qt(e))},parse:[`rec2020`],serialize:`rec2020`},Yt={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:rt,lab:st},fromMode:{rgb:at,lab:nt},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}},Xt={mode:`xyz65`,toMode:{rgb:A,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a}},fromMode:{rgb:ke,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}};y(Me),y(Ge),y(Je),y(Qe),y(ut),y(yt),y(xt),y(St),y(Ct),y(kt),y(jt),y(Pt),y(zt),y(Jt),y(k),y(Yt),y(Xt);var Zt=[`orchid`,`grove`,`ocean`,`ember`,`iris`];[...Zt];var I=new Set([`system`,`light`,`dark`,...Zt]);[...I];var Qt=`canvas.chrome.toolbar.toolbarForeground.toolbarBorder.toolbarControl.toolbarControlForeground.toolbarControlHover.surface.surfaceRaised.surfaceOverlay.text.textMuted.border.input.focus.accent.accentForeground.secondary.secondaryForeground.muted.mutedForeground.placeholder.secondaryLabel.iconMuted.error.errorForeground.errorSurface.warning.warningForeground.warningSurface.update.updateForeground.updateSurface.accentSurface.accentSurfaceForeground.messageSurface.messageForeground.messageAction.messageActionForeground.messageActionHover.codeBackground.codeForeground.searchMatchBackground.searchMatchForeground.searchMatchActiveBackground.searchMatchActiveForeground.sidebar.sidebarForeground.sidebarMutedForeground.sidebarControlSurface.sidebarRowHover.sidebarRowActive.sidebarRowSelected.sidebarBorder.terminalBackground.terminalForeground.terminalCursor.terminalSelection.terminalScrollbar.terminalScrollbarHover`.split(`.`),$t={searchMatchBackground:`#ffde8b`,searchMatchForeground:`#21180a`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(1 0 0)`,chrome:`#f4f4f4`,toolbar:`#f4f4f4`,toolbarForeground:`oklch(0.274 0.006 286.033)`,toolbarBorder:`oklch(0.92 0.004 286)`,toolbarControl:`oklch(1 0 0)`,toolbarControlForeground:`oklch(0.274 0.006 286.033)`,toolbarControlHover:`#f4f4f4`,surface:`oklch(1 0 0)`,surfaceRaised:`oklch(1 0 0)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.274 0.006 286.033)`,textMuted:`oklch(0.442 0.017 285.786)`,border:`oklch(0.92 0.004 286)`,input:`oklch(0.871 0.006 286)`,focus:`oklch(0.546 0.215 262.881)`,accent:`oklch(0.546 0.215 262.881)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.977 0.001 286)`,secondaryForeground:`oklch(0.274 0.006 286.033)`,muted:`oklch(0.977 0.001 286)`,mutedForeground:`oklch(0.442 0.017 285.786)`,placeholder:`oklch(0.442 0.017 285.786)`,secondaryLabel:`oklch(0.442 0.017 285.786)`,iconMuted:`oklch(0.442 0.017 285.786)`,error:`oklch(0.637 0.237 25.331)`,errorForeground:`oklch(0.505 0.213 27.518)`,errorSurface:`#fcebec`,warning:`#fe9a00`,warningForeground:`#bb4d00`,warningSurface:`#fcf4e8`,update:`oklch(0.546 0.215 262.881)`,updateForeground:`oklch(0.546 0.215 262.881)`,updateSurface:`#e0e6f7`,accentSurface:`#f4f4f4`,accentSurfaceForeground:`oklch(0.21 0.006 286)`,messageSurface:`oklch(0.967 0.001 286)`,messageForeground:`oklch(0.274 0.006 286.033)`,messageAction:`oklch(0.546 0.215 262.881)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`#3a72ed`,codeBackground:`oklch(1 0 0)`,codeForeground:`oklch(0.274 0.006 286.033)`,sidebar:`#f4f4f4`,sidebarForeground:`oklch(0.274 0.006 286.033)`,sidebarMutedForeground:`oklch(0.442 0.017 285.786)`,sidebarControlSurface:`oklch(0.977 0.001 286)`,sidebarRowHover:`#f4f4f4`,sidebarRowActive:`#e7e8e8`,sidebarRowSelected:`#e7e8e8`,sidebarBorder:`oklch(0.92 0.004 286)`,terminalBackground:`oklch(0.988 0.001 286)`,terminalForeground:`oklch(0.274 0.006 286.033)`,terminalCursor:`oklch(0.546 0.215 262.881)`,terminalSelection:`#d0d6dd`,terminalScrollbar:`#d6d6d6`,terminalScrollbarHover:`#bdbdbd`},en={searchMatchBackground:`#8c6c1f`,searchMatchForeground:`#f5f5f5`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(0.145 0.005 286)`,chrome:`oklch(0.185 0.006 286)`,toolbar:`oklch(0.185 0.006 286)`,toolbarForeground:`oklch(0.967 0.001 286)`,toolbarBorder:`oklch(0.274 0.006 286)`,toolbarControl:`oklch(0.205 0.006 286)`,toolbarControlForeground:`oklch(0.967 0.001 286)`,toolbarControlHover:`oklch(0.245 0.006 286)`,surface:`oklch(0.185 0.006 286)`,surfaceRaised:`oklch(0.185 0.006 286)`,surfaceOverlay:`oklch(0.205 0.006 286)`,text:`oklch(0.967 0.001 286)`,textMuted:`oklch(0.674 0.006 286)`,border:`oklch(0.274 0.006 286)`,input:`oklch(0.311 0.006 286)`,focus:`oklch(0.707 0.165 254.624)`,accent:`oklch(0.707 0.165 254.624)`,accentForeground:`oklch(0.145 0.005 286)`,secondary:`oklch(0.225 0.006 286)`,secondaryForeground:`oklch(0.967 0.001 286)`,muted:`oklch(0.225 0.006 286)`,mutedForeground:`oklch(0.674 0.006 286)`,placeholder:`oklch(0.674 0.006 286)`,secondaryLabel:`oklch(0.674 0.006 286)`,iconMuted:`oklch(0.674 0.006 286)`,error:`oklch(0.704 0.191 22.216)`,errorForeground:`oklch(0.783 0.157 21.5)`,errorSurface:`#301214`,warning:`#fe9a00`,warningForeground:`#ffb900`,warningSurface:`#312108`,update:`oklch(0.707 0.165 254.624)`,updateForeground:`oklch(0.707 0.165 254.624)`,updateSurface:`#121b34`,accentSurface:`oklch(0.245 0.006 286)`,accentSurfaceForeground:`oklch(0.967 0.001 286)`,messageSurface:`oklch(0.245 0.006 286)`,messageForeground:`oklch(0.967 0.001 286)`,messageAction:`oklch(0.707 0.165 254.624)`,messageActionForeground:`oklch(0.145 0.005 286)`,messageActionHover:`#4993ec`,codeBackground:`oklch(0.185 0.006 286)`,codeForeground:`oklch(0.967 0.001 286)`,sidebar:`oklch(0.185 0.006 286)`,sidebarForeground:`oklch(0.967 0.001 286)`,sidebarMutedForeground:`oklch(0.674 0.006 286)`,sidebarControlSurface:`oklch(0.225 0.006 286)`,sidebarRowHover:`oklch(0.245 0.006 286)`,sidebarRowActive:`oklch(0.245 0.006 286)`,sidebarRowSelected:`oklch(0.245 0.006 286)`,sidebarBorder:`oklch(0.274 0.006 286)`,terminalBackground:`oklch(0.145 0.005 286)`,terminalForeground:`oklch(0.967 0.001 286)`,terminalCursor:`oklch(0.707 0.165 254.624)`,terminalSelection:`#343a47`,terminalScrollbar:`#222222`,terminalScrollbarHover:`#363636`},tn={id:`orchid`,label:`Orchid`,appearance:`light`,colors:{canvas:`oklch(0.982446 0.010114 325.653)`,chrome:`oklch(0.982446 0.010114 325.653)`,toolbar:`oklch(0.982446 0.010114 325.653)`,toolbarForeground:`oklch(0.325698 0.116116 325.037)`,toolbarBorder:`oklch(0.856784 0.082879 328.911)`,toolbarControl:`oklch(0.939552 0.024286 321.664)`,toolbarControlForeground:`oklch(0.325698 0.116116 325.037)`,toolbarControlHover:`oklch(0.884525 0.041658 337.177)`,surface:`oklch(0.971835 0.012884 321.894)`,surfaceRaised:`oklch(0.988235 0.005049 325.615)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.325698 0.116116 325.037)`,textMuted:`oklch(0.494754 0.190937 354.544)`,border:`oklch(0.923531 0.021247 328.096)`,input:`oklch(0.851713 0.055822 336.6)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.591646 0.217985 0.584)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.869588 0.06751 334.899)`,secondaryForeground:`oklch(0.444777 0.134061 324.799)`,muted:`oklch(0.802407 0.090963 345.892)`,mutedForeground:`oklch(0.428932 0.163929 354.332)`,placeholder:`oklch(0.549927 0.090215 323.149)`,secondaryLabel:`oklch(0.494754 0.190937 354.544)`,iconMuted:`oklch(0.494754 0.190937 354.544)`,error:`oklch(0.627117 0.248974 7.734)`,errorForeground:`oklch(0.458704 0.169677 3.815)`,errorSurface:`oklch(0.942787 0.032076 344.963)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.54612 0.143036 48.949)`,warningSurface:`oklch(0.962901 0.015297 48.56)`,update:`oklch(0.591646 0.217985 0.584)`,updateForeground:`oklch(0.494754 0.190937 354.544)`,updateSurface:`oklch(0.930264 0.036194 341.45)`,accentSurface:`oklch(0.939552 0.024286 321.664)`,accentSurfaceForeground:`oklch(0.396296 0.025134 285.196)`,messageSurface:`oklch(0.926746 0.037898 332.6)`,messageForeground:`oklch(0.354591 0.093575 307.568)`,messageAction:`oklch(0.591646 0.217985 0.584)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`oklch(0.539042 0.197866 0.305)`,codeBackground:`oklch(0.953855 0.019695 315.668)`,codeForeground:`oklch(0.445128 0.13005 307.026)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.928886 0.031178 322.592)`,sidebarForeground:`oklch(0.396296 0.025134 285.196)`,sidebarMutedForeground:`oklch(0.494754 0.190937 354.544)`,sidebarControlSurface:`oklch(0.978851 0.001321 106.424)`,sidebarRowHover:`oklch(0.978851 0.001321 106.424)`,sidebarRowActive:`oklch(0.978851 0.001321 106.424)`,sidebarRowSelected:`oklch(0.978851 0.001321 106.424)`,sidebarBorder:`oklch(0.938313 0.002552 48.717)`,terminalBackground:`oklch(0.982446 0.010114 325.653)`,terminalForeground:`oklch(0.325698 0.116116 325.037)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.869588 0.06751 334.899)`,terminalScrollbar:`oklch(0.851713 0.055822 336.6)`,terminalScrollbarHover:`oklch(0.802407 0.090963 345.892)`},variants:{dark:{canvas:`oklch(0.22813 0.020366 307.469)`,chrome:`oklch(0.22813 0.020366 307.469)`,toolbar:`oklch(0.22813 0.020366 307.469)`,toolbarForeground:`oklch(0.980735 0.004092 301.426)`,toolbarBorder:`oklch(0.266943 0.015262 302.425)`,toolbarControl:`oklch(0.313674 0.030572 310.061)`,toolbarControlForeground:`oklch(0.848252 0.038248 307.961)`,toolbarControlHover:`oklch(0.364912 0.050794 308.491)`,surface:`oklch(0.267101 0.02016 311.799)`,surfaceRaised:`oklch(0.279864 0.021572 309.532)`,surfaceOverlay:`oklch(0.154761 0.01316 338.901)`,text:`oklch(0.980735 0.004092 301.426)`,textMuted:`oklch(0.880303 0.03077 342.696)`,border:`oklch(0.266943 0.015262 302.425)`,input:`oklch(0.266817 0.02897 344.461)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.460685 0.185347 4.099)`,accentForeground:`oklch(0.901233 0.057189 343.694)`,secondary:`oklch(0.313674 0.030572 310.061)`,secondaryForeground:`oklch(0.848252 0.038248 307.961)`,muted:`oklch(0.360924 0.021469 316.83)`,mutedForeground:`oklch(0.880303 0.03077 342.696)`,placeholder:`oklch(0.657087 0.028226 307.985)`,secondaryLabel:`oklch(0.880303 0.03077 342.696)`,iconMuted:`oklch(0.848252 0.038248 307.961)`,error:`oklch(0.458704 0.169677 3.815)`,errorForeground:`oklch(0.901233 0.057189 343.694)`,errorSurface:`oklch(0.259022 0.04799 340.062)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.836861 0.164422 84.429)`,warningSurface:`oklch(0.321706 0.036256 60.806)`,update:`oklch(0.460685 0.185347 4.099)`,updateForeground:`oklch(0.901233 0.057189 343.694)`,updateSurface:`oklch(0.256077 0.063004 342.914)`,accentSurface:`oklch(0.364912 0.050794 308.491)`,accentSurfaceForeground:`oklch(0.964695 0.009139 341.803)`,messageSurface:`oklch(0.273791 0.025541 309.079)`,messageForeground:`oklch(0.949872 0.021269 306.838)`,messageAction:`oklch(0.460685 0.185347 4.099)`,messageActionForeground:`oklch(0.901233 0.057189 343.694)`,messageActionHover:`oklch(0.458754 0.184639 3.857)`,codeBackground:`oklch(0.22813 0.020366 307.469)`,codeForeground:`oklch(0.848703 0.064239 306.645)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.185778 0.019368 322.159)`,sidebarForeground:`oklch(0.967434 0.001326 286.375)`,sidebarMutedForeground:`oklch(0.880303 0.03077 342.696)`,sidebarControlSurface:`oklch(0.23366 0.026081 338.196)`,sidebarRowHover:`oklch(0.23366 0.026081 338.196)`,sidebarRowActive:`oklch(0.23366 0.026081 338.196)`,sidebarRowSelected:`oklch(0.23366 0.026081 338.196)`,sidebarBorder:`oklch(0.269132 0.030766 351.067)`,terminalBackground:`oklch(0.22813 0.020366 307.469)`,terminalForeground:`oklch(0.980735 0.004092 301.426)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.313674 0.030572 310.061)`,terminalScrollbar:`oklch(0.266817 0.02897 344.461)`,terminalScrollbarHover:`oklch(0.360924 0.021469 316.83)`}},sidebarArtwork:!0},nn={id:`grove`,label:`Grove`,appearance:`light`,colors:{canvas:`oklch(0.972369 0.005497 157.15)`,chrome:`oklch(0.972369 0.005497 157.15)`,toolbar:`oklch(0.972369 0.005497 157.15)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.864831 0.01312 167.255)`,toolbarControl:`oklch(0.932695 0.003778 160.944)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.949276 0.004496 159.002)`,surface:`oklch(0.972369 0.005497 157.15)`,surfaceRaised:`oklch(0.972369 0.005497 157.15)`,surfaceOverlay:`oklch(0.932695 0.003778 160.944)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.527266 0.012309 320.683)`,border:`oklch(0.864831 0.01312 167.255)`,input:`oklch(0.829746 0.016084 168.234)`,focus:`oklch(0.523295 0.112292 158.089)`,accent:`oklch(0.523295 0.112292 158.089)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.945455 0.012308 162.879)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.945455 0.012308 162.879)`,mutedForeground:`oklch(0.527266 0.012309 320.683)`,placeholder:`oklch(0.527266 0.012309 320.683)`,secondaryLabel:`oklch(0.527266 0.012309 320.683)`,iconMuted:`oklch(0.527266 0.012309 320.683)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.936968 0.014243 26.295)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.545036 0.155019 45.359)`,warningSurface:`oklch(0.953175 0.02009 93.379)`,update:`oklch(0.523295 0.112292 158.089)`,updateForeground:`oklch(0.523295 0.112292 158.089)`,updateSurface:`oklch(0.900411 0.02384 164.795)`,accentSurface:`oklch(0.949276 0.004496 159.002)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.949276 0.004496 159.002)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.523295 0.112292 158.089)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.488753 0.096536 77.829)`,codeBackground:`oklch(0.972369 0.005497 157.15)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.972369 0.005497 157.15)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.527266 0.012309 320.683)`,sidebarControlSurface:`oklch(0.945455 0.012308 162.879)`,sidebarRowHover:`oklch(0.949276 0.004496 159.002)`,sidebarRowActive:`oklch(0.949276 0.004496 159.002)`,sidebarRowSelected:`oklch(0.949276 0.004496 159.002)`,sidebarBorder:`oklch(0.864831 0.01312 167.255)`,terminalBackground:`oklch(0.972369 0.005497 157.15)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.523295 0.112292 158.089)`,terminalSelection:`oklch(0.891377 0.026164 164.929)`,terminalScrollbar:`oklch(0.824752 0.001392 294.641)`,terminalScrollbarHover:`oklch(0.755495 0.004415 318.776)`},variants:{dark:{canvas:`oklch(0.260865 0.02152 162.75)`,chrome:`oklch(0.260865 0.02152 162.75)`,toolbar:`oklch(0.260865 0.02152 162.75)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.457475 0.044046 160.971)`,toolbarControl:`oklch(0.411828 0.014378 166.627)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.363192 0.016572 165.32)`,surface:`oklch(0.260865 0.02152 162.75)`,surfaceRaised:`oklch(0.260865 0.02152 162.75)`,surfaceOverlay:`oklch(0.411828 0.014378 166.627)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.715427 0.010896 171.428)`,border:`oklch(0.457475 0.044046 160.971)`,input:`oklch(0.519849 0.049896 160.863)`,focus:`oklch(0.796228 0.133058 157.319)`,accent:`oklch(0.796228 0.133058 157.319)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.339728 0.039456 160.274)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.339728 0.039456 160.274)`,mutedForeground:`oklch(0.715427 0.010896 171.428)`,placeholder:`oklch(0.715427 0.010896 171.428)`,secondaryLabel:`oklch(0.715427 0.010896 171.428)`,iconMuted:`oklch(0.715427 0.010896 171.428)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.704237 0.187511 22.228)`,errorSurface:`oklch(0.312773 0.02923 32.121)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.345524 0.046882 99.736)`,update:`oklch(0.796228 0.133058 157.319)`,updateForeground:`oklch(0.796228 0.133058 157.319)`,updateSurface:`oklch(0.448116 0.062637 158.86)`,accentSurface:`oklch(0.363192 0.016572 165.32)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.363192 0.016572 165.32)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.796228 0.133058 157.319)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815227 0.117902 84.21)`,codeBackground:`oklch(0.260865 0.02152 162.75)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.260865 0.02152 162.75)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.715427 0.010896 171.428)`,sidebarControlSurface:`oklch(0.339728 0.039456 160.274)`,sidebarRowHover:`oklch(0.363192 0.016572 165.32)`,sidebarRowActive:`oklch(0.363192 0.016572 165.32)`,sidebarRowSelected:`oklch(0.363192 0.016572 165.32)`,sidebarBorder:`oklch(0.457475 0.044046 160.971)`,terminalBackground:`oklch(0.260865 0.02152 162.75)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.796228 0.133058 157.319)`,terminalSelection:`oklch(0.464636 0.066083 158.72)`,terminalScrollbar:`oklch(0.594692 0.006862 176.022)`,terminalScrollbarHover:`oklch(0.687968 0.00354 193.55)`}},sidebarArtwork:!0},rn={id:`ocean`,label:`Ocean`,appearance:`light`,colors:{canvas:`oklch(0.974199 0.002856 241.597)`,chrome:`oklch(0.974199 0.002856 241.597)`,toolbar:`oklch(0.974199 0.002856 241.597)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.867646 0.013482 252.362)`,toolbarControl:`oklch(0.934442 0.003181 269.1)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.951058 0.002962 258.339)`,surface:`oklch(0.974199 0.002856 241.597)`,surfaceRaised:`oklch(0.974199 0.002856 241.597)`,surfaceOverlay:`oklch(0.934442 0.003181 269.1)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.528741 0.01828 313.823)`,border:`oklch(0.867646 0.013482 252.362)`,input:`oklch(0.832939 0.017389 252.598)`,focus:`oklch(0.536684 0.120219 247.01)`,accent:`oklch(0.536684 0.120219 247.01)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.948004 0.009649 241.695)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.948004 0.009649 241.695)`,mutedForeground:`oklch(0.528741 0.01828 313.823)`,placeholder:`oklch(0.528741 0.01828 313.823)`,secondaryLabel:`oklch(0.528741 0.01828 313.823)`,iconMuted:`oklch(0.528741 0.01828 313.823)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.938747 0.016377 7.186)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.546927 0.155556 45.359)`,warningSurface:`oklch(0.954846 0.016009 81.731)`,update:`oklch(0.536684 0.120219 247.01)`,updateForeground:`oklch(0.536684 0.120219 247.01)`,updateSurface:`oklch(0.904165 0.021144 241.874)`,accentSurface:`oklch(0.951058 0.002962 258.339)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.951058 0.002962 258.339)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.536684 0.120219 247.01)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.45151 0.074407 201.516)`,codeBackground:`oklch(0.974199 0.002856 241.597)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.974199 0.002856 241.597)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.528741 0.01828 313.823)`,sidebarControlSurface:`oklch(0.948004 0.009649 241.695)`,sidebarRowHover:`oklch(0.951058 0.002962 258.339)`,sidebarRowActive:`oklch(0.951058 0.002962 258.339)`,sidebarRowSelected:`oklch(0.951058 0.002962 258.339)`,sidebarBorder:`oklch(0.867646 0.013482 252.362)`,terminalBackground:`oklch(0.974199 0.002856 241.597)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.536684 0.120219 247.01)`,terminalSelection:`oklch(0.895373 0.023469 241.913)`,terminalScrollbar:`oklch(0.826271 0.006191 305.456)`,terminalScrollbarHover:`oklch(0.756866 0.008685 313.721)`},variants:{dark:{canvas:`oklch(0.242641 0.024125 250.573)`,chrome:`oklch(0.242641 0.024125 250.573)`,toolbar:`oklch(0.242641 0.024125 250.573)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.438653 0.039496 245.44)`,toolbarControl:`oklch(0.398517 0.018232 255.72)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.348439 0.019942 253.696)`,surface:`oklch(0.242641 0.024125 250.573)`,surfaceRaised:`oklch(0.242641 0.024125 250.573)`,surfaceOverlay:`oklch(0.398517 0.018232 255.72)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.691936 0.016294 261.588)`,border:`oklch(0.438653 0.039496 245.44)`,input:`oklch(0.500905 0.043574 244.781)`,focus:`oklch(0.758933 0.105833 241.548)`,accent:`oklch(0.758933 0.105833 241.548)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.319287 0.036766 246.065)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.319287 0.036766 246.065)`,mutedForeground:`oklch(0.691936 0.016294 261.588)`,placeholder:`oklch(0.691936 0.016294 261.588)`,secondaryLabel:`oklch(0.691936 0.016294 261.588)`,iconMuted:`oklch(0.691936 0.016294 261.588)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.298933 0.036443 350.094)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.329449 0.028712 84.495)`,update:`oklch(0.758933 0.105833 241.548)`,updateForeground:`oklch(0.758933 0.105833 241.548)`,updateSurface:`oklch(0.424017 0.053575 243.695)`,accentSurface:`oklch(0.348439 0.019942 253.696)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.348439 0.019942 253.696)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.758933 0.105833 241.548)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815308 0.096174 199.862)`,codeBackground:`oklch(0.242641 0.024125 250.573)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.242641 0.024125 250.573)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.691936 0.016294 261.588)`,sidebarControlSurface:`oklch(0.319287 0.036766 246.065)`,sidebarRowHover:`oklch(0.348439 0.019942 253.696)`,sidebarRowActive:`oklch(0.348439 0.019942 253.696)`,sidebarRowSelected:`oklch(0.348439 0.019942 253.696)`,sidebarBorder:`oklch(0.438653 0.039496 245.44)`,terminalBackground:`oklch(0.242641 0.024125 250.573)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.758933 0.105833 241.548)`,terminalSelection:`oklch(0.439946 0.0561 243.479)`,terminalScrollbar:`oklch(0.58613 0.012959 267.22)`,terminalScrollbarHover:`oklch(0.681569 0.010909 276.465)`}},sidebarArtwork:!0},an={id:`ember`,label:`Ember`,appearance:`light`,colors:{canvas:`oklch(0.976527 0.002685 60.725)`,chrome:`oklch(0.976527 0.002685 60.725)`,toolbar:`oklch(0.976527 0.002685 60.725)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.870631 0.013204 39.431)`,toolbarControl:`oklch(0.936659 0.002879 29.96)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953321 0.002701 42.266)`,surface:`oklch(0.976527 0.002685 60.725)`,surfaceRaised:`oklch(0.976527 0.002685 60.725)`,surfaceOverlay:`oklch(0.936659 0.002879 29.96)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.530413 0.018453 341.181)`,border:`oklch(0.870631 0.013204 39.431)`,input:`oklch(0.836213 0.017153 38.661)`,focus:`oklch(0.552831 0.129438 44.656)`,accent:`oklch(0.552831 0.129438 44.656)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950842 0.009273 51.528)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950842 0.009273 51.528)`,mutedForeground:`oklch(0.530413 0.018453 341.181)`,placeholder:`oklch(0.530413 0.018453 341.181)`,secondaryLabel:`oklch(0.530413 0.018453 341.181)`,iconMuted:`oklch(0.530413 0.018453 341.181)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941094 0.019938 19.375)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957148 0.020843 76.702)`,update:`oklch(0.552831 0.129438 44.656)`,updateForeground:`oklch(0.552831 0.129438 44.656)`,updateSurface:`oklch(0.907902 0.020621 49.36)`,accentSurface:`oklch(0.953321 0.002701 42.266)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953321 0.002701 42.266)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.552831 0.129438 44.656)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471223 0.145843 24.688)`,codeBackground:`oklch(0.976527 0.002685 60.725)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976527 0.002685 60.725)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.530413 0.018453 341.181)`,sidebarControlSurface:`oklch(0.950842 0.009273 51.528)`,sidebarRowHover:`oklch(0.953321 0.002701 42.266)`,sidebarRowActive:`oklch(0.953321 0.002701 42.266)`,sidebarRowSelected:`oklch(0.953321 0.002701 42.266)`,sidebarBorder:`oklch(0.870631 0.013204 39.431)`,terminalBackground:`oklch(0.976527 0.002685 60.725)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.552831 0.129438 44.656)`,terminalSelection:`oklch(0.899296 0.022939 49.163)`,terminalScrollbar:`oklch(0.828185 0.005884 349.533)`,terminalScrollbarHover:`oklch(0.758584 0.008423 341.16)`},variants:{dark:{canvas:`oklch(0.245899 0.019144 42.044)`,chrome:`oklch(0.245899 0.019144 42.044)`,toolbar:`oklch(0.245899 0.019144 42.044)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.44099 0.040202 48.807)`,toolbarControl:`oklch(0.401111 0.014308 34.896)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.351262 0.01565 37.592)`,surface:`oklch(0.245899 0.019144 42.044)`,surfaceRaised:`oklch(0.245899 0.019144 42.044)`,surfaceOverlay:`oklch(0.401111 0.014308 34.896)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.692479 0.015227 30.963)`,border:`oklch(0.44099 0.040202 48.807)`,input:`oklch(0.503003 0.045721 49.44)`,focus:`oklch(0.762174 0.124117 52.082)`,accent:`oklch(0.762174 0.124117 52.082)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.322144 0.03574 48.309)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.322144 0.03574 48.309)`,mutedForeground:`oklch(0.692479 0.015227 30.963)`,placeholder:`oklch(0.692479 0.015227 30.963)`,secondaryLabel:`oklch(0.692479 0.015227 30.963)`,iconMuted:`oklch(0.692479 0.015227 30.963)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.310955 0.059624 24.334)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.339137 0.055638 66.911)`,update:`oklch(0.762174 0.124117 52.082)`,updateForeground:`oklch(0.762174 0.124117 52.082)`,updateSurface:`oklch(0.426749 0.057547 50.618)`,accentSurface:`oklch(0.351262 0.01565 37.592)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.351262 0.01565 37.592)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.762174 0.124117 52.082)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.775116 0.117953 29.014)`,codeBackground:`oklch(0.245899 0.019144 42.044)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.245899 0.019144 42.044)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.692479 0.015227 30.963)`,sidebarControlSurface:`oklch(0.322144 0.03574 48.309)`,sidebarRowHover:`oklch(0.351262 0.01565 37.592)`,sidebarRowActive:`oklch(0.351262 0.01565 37.592)`,sidebarRowSelected:`oklch(0.351262 0.01565 37.592)`,sidebarBorder:`oklch(0.44099 0.040202 48.807)`,terminalBackground:`oklch(0.245899 0.019144 42.044)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.762174 0.124117 52.082)`,terminalSelection:`oklch(0.442681 0.0608 50.795)`,terminalScrollbar:`oklch(0.587861 0.010463 20.444)`,terminalScrollbarHover:`oklch(0.682876 0.009156 9.796)`}},sidebarArtwork:!0},on={id:`iris`,label:`Iris`,appearance:`light`,colors:{canvas:`oklch(0.976531 0.003855 303.226)`,chrome:`oklch(0.976531 0.003855 303.226)`,toolbar:`oklch(0.976531 0.003855 303.226)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.869608 0.018226 303.859)`,toolbarControl:`oklch(0.936665 0.005041 310.132)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953326 0.004536 307.676)`,surface:`oklch(0.976531 0.003855 303.226)`,surfaceRaised:`oklch(0.976531 0.003855 303.226)`,surfaceOverlay:`oklch(0.936665 0.005041 310.132)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.529955 0.022319 321.556)`,border:`oklch(0.869608 0.018226 303.859)`,input:`oklch(0.834773 0.023405 303.676)`,focus:`oklch(0.525348 0.15373 294.176)`,accent:`oklch(0.525348 0.15373 294.176)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950194 0.011956 300.733)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950194 0.011956 300.733)`,mutedForeground:`oklch(0.529955 0.022319 321.556)`,placeholder:`oklch(0.529955 0.022319 321.556)`,secondaryLabel:`oklch(0.529955 0.022319 321.556)`,iconMuted:`oklch(0.529955 0.022319 321.556)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941043 0.019582 4.235)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957054 0.016197 69.932)`,update:`oklch(0.525348 0.15373 294.176)`,updateForeground:`oklch(0.525348 0.15373 294.176)`,updateSurface:`oklch(0.90602 0.025754 299.867)`,accentSurface:`oklch(0.953326 0.004536 307.676)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953326 0.004536 307.676)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.525348 0.15373 294.176)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471003 0.16748 340.687)`,codeBackground:`oklch(0.976531 0.003855 303.226)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976531 0.003855 303.226)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.529955 0.022319 321.556)`,sidebarControlSurface:`oklch(0.950194 0.011956 300.733)`,sidebarRowHover:`oklch(0.953326 0.004536 307.676)`,sidebarRowActive:`oklch(0.953326 0.004536 307.676)`,sidebarRowSelected:`oklch(0.953326 0.004536 307.676)`,sidebarBorder:`oklch(0.869608 0.018226 303.859)`,terminalBackground:`oklch(0.976531 0.003855 303.226)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.525348 0.15373 294.176)`,terminalSelection:`oklch(0.897143 0.028558 299.758)`,terminalScrollbar:`oklch(0.828195 0.008526 318.858)`,terminalScrollbarHover:`oklch(0.758596 0.010892 321.538)`},variants:{dark:{canvas:`oklch(0.225975 0.031062 293.741)`,chrome:`oklch(0.225975 0.031062 293.741)`,toolbar:`oklch(0.225975 0.031062 293.741)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.40874 0.058536 295.893)`,toolbarControl:`oklch(0.386739 0.024023 297.509)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.335291 0.026008 296.394)`,surface:`oklch(0.225975 0.031062 293.741)`,surfaceRaised:`oklch(0.225975 0.031062 293.741)`,surfaceOverlay:`oklch(0.386739 0.024023 297.509)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.663321 0.025932 301.862)`,border:`oklch(0.40874 0.058536 295.893)`,input:`oklch(0.46756 0.065775 296.265)`,focus:`oklch(0.671712 0.169136 293.929)`,accent:`oklch(0.671712 0.169136 293.929)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.291515 0.05276 294.209)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.291515 0.05276 294.209)`,mutedForeground:`oklch(0.663321 0.025932 301.862)`,placeholder:`oklch(0.663321 0.025932 301.862)`,secondaryLabel:`oklch(0.663321 0.025932 301.862)`,iconMuted:`oklch(0.663321 0.025932 301.862)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.291658 0.054707 352.238)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.318952 0.033845 51.646)`,update:`oklch(0.671712 0.169136 293.929)`,updateForeground:`oklch(0.671712 0.169136 293.929)`,updateSurface:`oklch(0.381668 0.081286 294.195)`,accentSurface:`oklch(0.335291 0.026008 296.394)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.335291 0.026008 296.394)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.671712 0.169136 293.929)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.813537 0.114101 337.23)`,codeBackground:`oklch(0.225975 0.031062 293.741)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.225975 0.031062 293.741)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.663321 0.025932 301.862)`,sidebarControlSurface:`oklch(0.291515 0.05276 294.209)`,sidebarRowHover:`oklch(0.335291 0.026008 296.394)`,sidebarRowActive:`oklch(0.335291 0.026008 296.394)`,sidebarRowSelected:`oklch(0.335291 0.026008 296.394)`,sidebarBorder:`oklch(0.40874 0.058536 295.893)`,terminalBackground:`oklch(0.225975 0.031062 293.741)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.671712 0.169136 293.929)`,terminalSelection:`oklch(0.395417 0.085554 294.182)`,terminalScrollbar:`oklch(0.578663 0.017888 302.229)`,terminalScrollbarHover:`oklch(0.676012 0.015271 305.433)`}},sidebarArtwork:!0},sn=[tn,nn,rn,an,on],L=`p4code:themes:v1`,cn=`p4code:theme-follow-system`,ln=`p4code:theme-appearance-mode`,un=`p4code:theme-halves:v1`,dn=n,fn=new Set(Qt),pn=[],mn=new Set,R=null,hn=new Set,gn=null;function _n(e){if(gn!==e){gn=e;for(let e of hn)e()}}function z(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vn(e){return e===`light`||e===`dark`}function yn(e){return typeof e==`string`&&H(e)!==null}function bn(e){return typeof e==`string`&&/^[a-z0-9](?:[a-z0-9-]{0,47})$/.test(e)}function xn(e){return typeof e==`string`&&e.trim().length>0&&e.trim().length<=48}function Sn(e){return z(e)&&typeof e.id==`string`&&/^[a-z0-9][a-z0-9.:-]{0,127}$/i.test(e.id)&&xn(e.label)?{id:e.id,label:e.label.trim()}:void 0}function Cn(e){let t={};for(let[n,r]of Object.entries(e)){let e=H(r);fn.has(n)&&e&&(t[n]=e)}return t}function wn(e,t){return z(e)?{...dr(t),...Cn(e)}:null}function Tn(e,t){if(e===void 0)return;if(!z(e))return null;let n={};for(let[r,i]of Object.entries(e)){if(!vn(r))return null;if(r===t)continue;let e=wn(i,r);if(!e)return null;n[r]=e}return Object.keys(n).length>0?n:void 0}function En(e){if(!z(e)||!bn(e.id)||I.has(e.id)||!xn(e.label)||!vn(e.appearance))return null;let t=wn(e.colors,e.appearance);if(!t)return null;let n=Tn(e.variants,e.appearance);if(e.variants!==void 0&&n===null)return null;let r=Sn(e.collection);return{id:e.id,label:e.label.trim(),appearance:e.appearance,colors:t,...n?{variants:n}:{},...r?{collection:r}:{},...e.managed===!0?{managed:!0}:{}}}function Dn(e){let t=[];for(let n of e){let e=En(n);e&&!t.some(t=>t.id===e.id)&&t.push(e)}return t}function On(){if(typeof window>`u`)return{status:`ready`,storedThemes:[],themes:[]};let e;try{e=window.localStorage.getItem(L)}catch(e){return{status:`unavailable`,reason:`storage-unavailable`,cause:e}}if(!e)return{status:`ready`,storedThemes:[],themes:[]};let t;try{t=JSON.parse(e)}catch{return{status:`unavailable`,reason:`malformed`}}return Array.isArray(t)?{status:`ready`,storedThemes:t,themes:Dn(t)}:{status:`unavailable`,reason:`malformed`}}function kn(){return R===null&&(R=On()),R}function An(){for(let e of mn)e()}function jn(){R=null,An()}var Mn=[];function Nn(){let e=kn();return e.status===`ready`?e.themes:Mn}function Pn(){return pn}function Fn(t){return!e(pn,t)&&(pn=t,An(),!0)}function In(e){return I.has(e)}function Ln(e){return Sr().themes.filter(t=>t.collection?.id===e)}function Rn(e){if(mn.add(e),typeof window>`u`)return()=>mn.delete(e);let t=e=>{(e.key===`p4code:themes:v1`||e.key===null)&&jn()};return window.addEventListener(`storage`,t),()=>{mn.delete(e),window.removeEventListener(`storage`,t)}}function zn(e){return e===`dark`?Vn??=Xn(en):Bn??=Xn($t)}var Bn,Vn,Hn={r:255,g:250,b:255},Un={r:36,g:21,b:35},Wn={r:255,g:255,b:255},Gn={r:0,g:0,b:0},Kn=ie(`oklch`);function B(e){if(typeof e!=`string`)return null;let t=e.trim(),n=ve(t);if(!n)return null;let r=Kn(n),i=r.l??0,a=r.c??0,o=r.h??0,s=/\/\s*none\s*\)$/i.test(t)?0:r.alpha??1;return[i,a,o,s].every(Number.isFinite)?{color:{L:Math.min(1,Math.max(0,i)),C:Math.max(0,a),h:o},alpha:Math.min(1,Math.max(0,s))}:null}function qn(e,t){return(Math.abs(e)<10**-t/2?0:e).toFixed(t).replace(/(?:\.0+|(?:(\.[0-9]*?)0+))$/,`$1`)}function V(e,t=1){let n=e.C<5e-7?0:(e.h%360+360)%360,r=`${qn(e.L,6)} ${qn(e.C,6)} ${qn(n,3)}`;return t<1?`oklch(${r} / ${qn(t,4)})`:`oklch(${r})`}function H(e){let t=B(e);return t?V(t.color,t.alpha):null}function Jn(e){let t=B(e),n=t?{rgb:J(t.color),alpha:t.alpha}:null;if(!n)return null;let r=Yn(n.rgb);return n.alpha>=1?r:`${r}${Math.round(n.alpha*255).toString(16).padStart(2,`0`)}`}function U(e,t){let n=B(e);return n?J(n.color):t}function Yn(e){return`#${[e.r,e.g,e.b].map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`}function W(e){return V(q(e))}function Xn(e){return Object.fromEntries(Qt.map(t=>{let n=H(e[t]);if(!n)throw Error(`The color for "${t}" must be a literal CSS color such as oklch(0.62 0.2 280).`);return[t,n]}))}function Zn(e){return{...e,colors:Xn(e.colors),...e.variants?{variants:Object.fromEntries(Object.entries(e.variants).map(([e,t])=>[e,Xn(t)]))}:{}}}function G(e,t,n){return{r:e.r+(t.r-e.r)*n,g:e.g+(t.g-e.g)*n,b:e.b+(t.b-e.b)*n}}function K(e){let t=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function Qn(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function $n(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(1,Math.max(0,t))*255)}function q(e){let t=Qn(e.r),n=Qn(e.g),r=Qn(e.b),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return{L:s,C:Math.hypot(c,l),h:Math.atan2(l,c)*180/Math.PI}}function er({L:e,C:t,h:n}){let r=n*Math.PI/180,i=t*Math.cos(r),a=t*Math.sin(r),o=(e+.3963377774*i+.2158037573*a)**3,s=(e-.1055613458*i-.0638541728*a)**3,c=(e-.0894841775*i-1.291485548*a)**3;return{r:4.0767416621*o-3.3077115913*s+.2309699292*c,g:-1.2684380046*o+2.6097574011*s-.3413193965*c,b:-.0041960863*o-.7034186147*s+1.707614701*c}}function tr(e){let t=t=>{let n=er({...e,C:t});return[n.r,n.g,n.b].every(e=>e>=-1e-4&&e<=1.0001)};if(t(e.C))return e;let n=0,r=e.C,i=1e-6,a=Math.max(1,Math.ceil(Math.log2(Math.max(e.C,i))-Math.log2(i)));for(let e=0;e<a;e+=1){let e=(n+r)/2;t(e)?n=e:r=e}return{...e,C:n}}function J(e){let t=er(tr(e));return{r:$n(t.r),g:$n(t.g),b:$n(t.b)}}function nr(e){return V(tr(e))}function Y(e,t,n,r){let i=r===`lighter`?e.L:0,a=r===`lighter`?1:e.L,o={...e};if(X(J(o),t)>=n)return o;for(let s=0;s<18;s+=1){let s=(i+a)/2;o={...e,L:s},X(J(o),t)>=n?r===`lighter`?a=s:i=s:r===`lighter`?i=s:a=s}return{...e,L:r===`lighter`?a:i}}function rr(e,t,n){let r=B(e),i=B(t);if(!r||!i)return e;let a=J(i.color);if(X(J(r.color),a)>=n)return e;let o=K(a)<.179?`lighter`:`darker`;return Yn(J(Y(r.color,a,n,o)))}var ir={light:{error:`#fb2c36`,errorForeground:`#c10007`,warning:`#fe9a00`,warningForeground:`#bb4d00`},dark:{error:`#fb414a`,errorForeground:`#ff6467`,warning:`#fe9a00`,warningForeground:`#ffb900`}};function ar(e){let t=K(e)<.179?`dark`:`light`,n=ir[t],r=t===`dark`?.16:.08,i=t=>G(e,U(t,e),r),a=(n,r)=>nr(Y(q(U(n,e)),r,4.6,t===`dark`?`lighter`:`darker`)),o=i(n.error),s=i(n.warning);return{error:H(n.error),errorForeground:a(n.errorForeground,o),errorSurface:W(o),warning:H(n.warning),warningForeground:a(n.warningForeground,s),warningSurface:W(s)}}function or(e,t,n){let r=dr(e),i=U(t,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),a=U(n,{r:168,g:67,b:112}),o=q(i),s=q(a),c=K(i)<.179,l=s.C<.02?o.h:s.h,u=Math.min(.045,Math.max(.008,s.C*.22)),d=c?1:-1,f=(e,t=u)=>({L:Math.min(.98,Math.max(.05,o.L+d*e)),C:t,h:l}),p=e=>nr(e),m={L:c?.95:.2,C:Math.min(.035,s.C*.25),h:l},h=J(Y(m,i,7,c?`lighter`:`darker`)),g=ur(i,h),ee={L:Math.min(.85,Math.max(.35,s.L+(c?.06:-.02))),C:Math.max(s.C*.9,.06),h:(l+50)%360},te=J(ee),ne=Z(te),re=Z(a),ie=f(.045,u*1.4),_=J(ie),ae=f(.015),v=f(.05),oe=J(v),se=f(.075),y=f(c?.16:.12,Math.min(.07,s.C*.35)),ce=f(c?.21:.16,Math.min(.08,s.C*.4)),le=f(c?.1:.06,Math.min(.09,s.C*.5)),ue=J(le),de=f(c?.06:.04,Math.min(.06,s.C*.35)),b=J(de),x=f(c?.13:.08,Math.min(.11,s.C*.55)),S=J(x),C=f(c?.16:.1,Math.min(.13,s.C*.6)),fe=J(C),w=f(.035,u*.8),T=f(c?.14:.09,Math.min(.12,s.C*.55)),E=e=>nr(Y(m,e,4.6,c?`lighter`:`darker`)),pe=W(sr(b,h,1,4.6)),me=W(sr(oe,h,1,4.6)),he=J(f(.22,Math.min(.12,s.C))),ge=J(f(.4,Math.min(.18,s.C))),_e={...ee,L:ee.L+(c?.06:-.06)};return{...r,...ar(i),canvas:W(i),chrome:W(i),toolbar:W(i),toolbarForeground:W(h),toolbarBorder:p(f(c?.14:.1,Math.min(.08,s.C*.4))),toolbarControl:p(f(c?.09:.05,u*1.3)),toolbarControlForeground:W(h),toolbarControlHover:p(f(c?.14:.09,u*1.6)),surface:p(ae),surfaceRaised:p(v),surfaceOverlay:p(se),text:W(h),textMuted:W(g),border:p(y),input:p(ce),focus:W(a),accent:W(a),accentForeground:W(re),secondary:p(le),secondaryForeground:E(ue),muted:p(de),mutedForeground:pe,placeholder:me,secondaryLabel:W(g),iconMuted:W(g),update:W(a),updateForeground:E(J(T)),updateSurface:p(T),accentSurface:p(x),accentSurfaceForeground:E(S),messageSurface:p(C),messageForeground:E(fe),messageAction:W(te),messageActionForeground:W(ne),messageActionHover:p(_e),codeBackground:p(w),codeForeground:W(h),searchMatchBackground:W(he),searchMatchForeground:W(Z(he)),searchMatchActiveBackground:W(ge),searchMatchActiveForeground:W(Z(ge)),sidebar:p(ie),sidebarForeground:E(_),sidebarMutedForeground:W(ur(_,h)),sidebarControlSurface:p(f(c?.1:.07,u*1.5)),sidebarRowHover:p(f(c?.08:.06,Math.min(.08,s.C*.45))),sidebarRowActive:p(f(c?.12:.09,Math.min(.1,s.C*.55))),sidebarRowSelected:p(f(c?.14:.1,Math.min(.11,s.C*.6))),sidebarBorder:p(f(c?.17:.12,Math.min(.08,s.C*.4))),terminalBackground:W(i),terminalForeground:W(h),terminalCursor:W(a),terminalSelection:p(f(c?.18:.12,Math.min(.12,s.C*.55))),terminalScrollbar:p(f(c?.22:.16,u)),terminalScrollbarHover:p(f(c?.3:.22,u))}}function X(e,t){let n=K(e),r=K(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function Z(e){let t=X(e,Hn),n=X(e,Un);return Math.max(t,n)>=4.5?t>=n?Hn:Un:X(e,Wn)>=X(e,Gn)?Wn:Gn}function sr(e,t,n,r){let i=G(t,e,n);if(X(i,e)>=r)return i;let a=t,o=0,s=n;for(let n=0;n<12;n+=1){let n=(o+s)/2,i=G(t,e,n);X(i,e)>=r?(a=i,o=n):s=n}return a}var cr=4.705,lr=5.082;function ur(e,t){return sr(e,t,1,K(e)<.179?lr:cr)}function dr(e){return e===`dark`?tn.variants.dark:tn.colors}function fr(e,t,n,r){let i=B(r);if(!i)return{...t,[n]:r};let a=V(i.color,i.alpha),o=U(t.canvas,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),s=J(i.color),c=e=>G(e,s,i.alpha),l=c(o),u=U(t.accent,{r:168,g:67,b:112}),d=K(o)<.179,f=K(l)<.179,p=e=>W(e),m=e=>p(Z(e)),h=e=>nr(Y(i.color,e,4.6,K(e)<.179?`lighter`:`darker`)),g=()=>{let e=G(o,l,d?.16:.08);return{foreground:h(e),surface:p(e)}};switch(n){case`canvas`:return{...t,canvas:a,chrome:a,toolbar:a};case`surface`:case`surfaceRaised`:case`surfaceOverlay`:case`input`:case`sidebarControlSurface`:return{...t,[n]:a};case`text`:return{...t,text:a,toolbarForeground:a,toolbarControlForeground:a};case`mutedForeground`:return{...t,textMuted:a,mutedForeground:a,placeholder:a,secondaryLabel:a,iconMuted:a,sidebarMutedForeground:a};case`border`:return{...t,border:a,toolbarBorder:a,sidebarBorder:a};case`secondary`:return{...t,secondary:a,secondaryForeground:m(l),muted:a,toolbarControl:a};case`accentSurface`:return{...t,accentSurface:a,accentSurfaceForeground:m(l),toolbarControlHover:a};case`accent`:{let e=G(o,l,d?.32:.16);return{...t,accent:a,accentForeground:m(l),focus:a,update:a,updateForeground:h(e),updateSurface:p(e),terminalCursor:a}}case`messageAction`:{let e=Z(l),n=G(s,e===Hn||e===Wn?Gn:Wn,.12);return{...t,messageAction:a,messageActionForeground:p(e),messageActionHover:V(q(n),i.alpha)}}case`messageSurface`:return{...t,messageSurface:a,messageForeground:m(l)};case`searchMatchBackground`:return{...t,searchMatchBackground:p(l),searchMatchForeground:m(l)};case`searchMatchActiveBackground`:return{...t,searchMatchActiveBackground:p(l),searchMatchActiveForeground:m(l)};case`codeBackground`:return{...t,codeBackground:a,codeForeground:m(l)};case`sidebar`:return{...t,sidebar:a,sidebarForeground:m(l)};case`sidebarRowSelected`:{let e=U(t.sidebar,o),n=c(e);return{...t,sidebarRowHover:p(G(e,n,.5)),sidebarRowActive:p(G(e,n,.8)),sidebarRowSelected:a}}case`terminalBackground`:{let e=Z(l);return{...t,terminalBackground:a,terminalForeground:p(e),terminalSelection:p(G(l,u,f?.35:.18)),terminalScrollbar:p(G(l,e,f?.42:.22)),terminalScrollbarHover:p(G(l,e,f?.55:.32))}}case`error`:{let e=g();return{...t,error:a,errorForeground:e.foreground,errorSurface:e.surface}}case`warning`:{let e=g();return{...t,warning:a,warningForeground:e.foreground,warningSurface:e.surface}}default:return{...t,[n]:a}}}var pr=sn;function Q(e){let t=e;return pr.find(e=>e.id===t)??Nn().find(e=>e.id===t)??pn.find(e=>e.id===t)??null}function mr(e){let t=hr(e);return t.length===1?t[0]:null}function $(e,t){return t===e.appearance?e.colors:e.variants?.[t]??null}function hr(e){return[`light`,`dark`].filter(t=>$(e,t)!==null)}function gr(e){return e===`system`?null:e===`light`||e===`dark`?e:Q(e)?.appearance??null}function _r(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,48)||`custom-theme`}var vr=class extends a()(`ThemeLibraryStorageError`,{storageKey:n,operation:i([`read`,`write`]),reason:i([`malformed`,`storage-unavailable`]),cause:t(r())}){get message(){let e=this.operation===`read`?`from`:`to`;return`Failed to ${this.operation} the theme library ${e} ${this.storageKey}.`}};function yr(e,t){if(typeof window<`u`){try{window.localStorage.setItem(L,JSON.stringify(e)),R={status:`ready`,storedThemes:e,themes:t}}catch(e){throw new vr({storageKey:L,operation:`write`,reason:`storage-unavailable`,cause:e})}An()}}function br(e){if(e.status===`unavailable`)throw new vr({storageKey:L,operation:`read`,reason:e.reason,...`cause`in e?{cause:e.cause}:{}});return e}function xr(){return br(kn())}function Sr(){return br(On())}function Cr(e,t){return z(e)&&e.id===t}function wr(e,t){return z(e)&&z(e.collection)&&e.collection.id===t}function Tr(e){if(I.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=xr();if(pr.some(t=>t.id===e.id)||t.storedThemes.some(t=>Cr(t,e.id)))throw Error(`A theme named "${e.label}" is already installed.`);let n=Zn(e),r=[...t.themes,n];return yr([...t.storedThemes,n],r),n}function Er(e){if(I.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=xr(),n=t.themes,r=n.findIndex(t=>t.id===e.id);if(r===-1)throw Error(`The theme "${e.label}" is not installed.`);let i=Zn(e),a=[...n];a[r]=i;let o=[],s=!1;for(let n of t.storedThemes)Cr(n,e.id)?s||=(o.push(i),!0):o.push(n);return yr(o,a),i}function Dr(e,t,n){if(t.length===0)throw Error(`A theme collection cannot be empty.`);let r=t.map(e=>En(e));if(r.some(t=>t===null||t.collection?.id!==e)||new Set(r.map(e=>e?.id)).size!==r.length)throw Error(`That theme collection is invalid.`);let i=r,a=Sr(),o=a.themes.filter(t=>t.collection?.id===e);if(n?.expectedCollection&&JSON.stringify(o)!==JSON.stringify(n.expectedCollection))throw Error(`Your installed themes changed while this package was downloading. Try again.`);let s=new Set(pr.map(e=>e.id));for(let t of a.storedThemes)!wr(t,e)&&z(t)&&typeof t.id==`string`&&s.add(t.id);let c=i.find(e=>I.has(e.id)||s.has(e.id));if(c)throw Error(`A theme named "${c.label}" is already installed.`);let l=[],u=!1;for(let t of a.storedThemes)wr(t,e)?u||=(l.push(...i),!0):l.push(t);return u||l.push(...i),yr(l,Dn(l)),i}function Or(e){kr([e])}function kr(e){let t=new Set(e);if(t.size===0)return;let n=xr(),r=n.themes.filter(e=>!t.has(e.id));r.length!==n.themes.length&&yr(n.storedThemes.filter(e=>!z(e)||typeof e.id!=`string`||!t.has(e.id)),r)}function Ar(e){if(!z(e))throw Error(`Theme colors must be objects.`);let t={};for(let[n,r]of Object.entries(e)){if(!fn.has(n))throw Error(`"${n}" is not a supported theme color role.`);let e=H(r);if(!e)throw Error(`The color for "${n}" must be a literal CSS color such as oklch(0.62 0.2 280).`);t[n]=e}if(Object.keys(t).length===0)throw Error(`Add at least one color role to the theme file.`);return t}function jr(e){if(!z(e))throw Error(`Theme files must contain a JSON object.`);if(e.version!==1)throw Error(`This theme file uses an unsupported version. Expected 1.`);let t=e.name,n=e.appearance,r=e.colors;if(!xn(t))throw Error(`Theme files need a name (48 characters or fewer).`);if(!vn(n))throw Error(`Theme files need an appearance of "light" or "dark".`);if(!z(r))throw Error(`Theme files need a colors object.`);let i=e.id===void 0?_r(t):e.id;if(!bn(i))throw Error(`Theme ids may only contain lowercase letters, numbers, and hyphens.`);if(I.has(i))throw Error(`The theme id "${i}" is reserved.`);let a=Ar(r),o=Sn(e.collection);if(e.collection!==void 0&&!o)throw Error(`Theme collections need a valid id and label.`);let s=dr(n),c={};if(e.variants!==void 0){if(!z(e.variants))throw Error(`Theme variants must be an object.`);for(let[t,r]of Object.entries(e.variants)){if(!vn(t))throw Error(`Theme variants may only be named "light" or "dark".`);if(t===n)throw Error(`Theme variants must not repeat the base appearance "${n}".`);c[t]={...dr(t),...Ar(r)}}}return{id:i,label:t.trim(),appearance:n,colors:{...s,...a},...Object.keys(c).length>0?{variants:c}:{},...o?{collection:o}:{},...e.managed===!0?{managed:!0}:{}}}function Mr(e){let t=Zn(e),n={version:1,id:t.id,name:t.label,appearance:t.appearance,colors:t.colors,...t.variants?{variants:t.variants}:{},...t.collection?{collection:t.collection}:{},...t.managed?{managed:!0}:{}};return`${JSON.stringify(n,null,2)}\n`}var Nr={canvas:`--app-theme-canvas`,chrome:`--app-theme-chrome`,toolbar:`--app-theme-toolbar`,toolbarForeground:`--app-theme-toolbar-foreground`,toolbarBorder:`--app-theme-toolbar-border`,toolbarControl:`--app-theme-toolbar-control`,toolbarControlForeground:`--app-theme-toolbar-control-foreground`,toolbarControlHover:`--app-theme-toolbar-control-hover`,surface:`--app-theme-surface`,surfaceRaised:`--app-theme-surface-raised`,surfaceOverlay:`--app-theme-surface-overlay`,text:`--app-theme-text`,textMuted:`--app-theme-text-muted`,border:`--app-theme-border`,input:`--app-theme-input`,focus:`--app-theme-focus`,accent:`--app-theme-accent`,accentForeground:`--app-theme-accent-foreground`,secondary:`--app-theme-secondary`,secondaryForeground:`--app-theme-secondary-foreground`,muted:`--app-theme-muted`,mutedForeground:`--app-theme-muted-foreground`,placeholder:`--app-theme-placeholder`,secondaryLabel:`--app-theme-secondary-label`,iconMuted:`--app-theme-icon-muted`,error:`--app-theme-error`,errorForeground:`--app-theme-error-foreground`,errorSurface:`--app-theme-error-surface`,warning:`--app-theme-warning`,warningForeground:`--app-theme-warning-foreground`,warningSurface:`--app-theme-warning-surface`,update:`--app-theme-update`,updateForeground:`--app-theme-update-foreground`,updateSurface:`--app-theme-update-surface`,accentSurface:`--app-theme-accent-surface`,accentSurfaceForeground:`--app-theme-accent-surface-foreground`,messageSurface:`--app-theme-message-surface`,messageForeground:`--app-theme-message-foreground`,messageAction:`--app-theme-message-action`,messageActionForeground:`--app-theme-message-action-foreground`,messageActionHover:`--app-theme-message-action-hover`,codeBackground:`--app-theme-code-background`,codeForeground:`--app-theme-code-foreground`,searchMatchBackground:`--app-theme-search-match-background`,searchMatchForeground:`--app-theme-search-match-foreground`,searchMatchActiveBackground:`--app-theme-search-match-active-background`,searchMatchActiveForeground:`--app-theme-search-match-active-foreground`,sidebar:`--app-theme-sidebar`,sidebarForeground:`--app-theme-sidebar-foreground`,sidebarMutedForeground:`--app-theme-sidebar-muted-foreground`,sidebarControlSurface:`--app-theme-sidebar-control-surface`,sidebarRowHover:`--app-theme-sidebar-row-hover`,sidebarRowActive:`--app-theme-sidebar-row-active`,sidebarRowSelected:`--app-theme-sidebar-row-selected`,sidebarBorder:`--app-theme-sidebar-border`,terminalBackground:`--app-theme-terminal-background`,terminalForeground:`--app-theme-terminal-foreground`,terminalCursor:`--app-theme-terminal-cursor`,terminalSelection:`--app-theme-terminal-selection-background`,terminalScrollbar:`--app-theme-terminal-scrollbar`,terminalScrollbarHover:`--app-theme-terminal-scrollbar-hover`};function Pr(e){return Nr[e]}var Fr=`__preview`;function Ir(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(n?.style){_n(!1),n.dataset.themeId=Fr,n.classList.toggle(`dark`,t===`dark`);for(let[t,r]of Object.entries(e))yn(r)&&n.style.setProperty(Nr[t],r)}}function Lr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(!n?.style)return;_n(null);let r=Q(e);if(r){n.dataset.themeId=r.id;let e=$(r,t??r.appearance)??r.colors;for(let[t,r]of Object.entries(e))n.style.setProperty(Nr[t],r)}else{delete n.dataset.themeId;for(let e of Object.values(Nr))n.style.removeProperty(e)}}function Rr(e,t,n,r,i){let a=t?`dark`:`light`,o=r??(n??e===`system`?`system`:null);if(o===`system`){if(i?.[a])return a;let t=Q(e);return t&&$(t,a)===null?t.appearance:a}if(o===`light`||o===`dark`){if(i?.[o])return o;let t=Q(e);return t&&$(t,o)===null?t.appearance:o}return gr(e)??`light`}function zr(e,t,n,r){let i=n??(t??e===`system`?`system`:null);if(i===`system`){let t=Q(e),n=r?.light!==void 0||t!==null&&$(t,`light`)!==null,i=r?.dark!==void 0||t!==null&&$(t,`dark`)!==null;return t&&(!n||!i)?t.appearance:`system`}if(i===`light`||i===`dark`){if(r?.[i])return i;let t=Q(e);return t&&$(t,i)===null?t.appearance:i}return gr(e)??`system`}function Br(e){return e===`light`||e===`dark`||e===`system`||Q(e)!==null}function Vr(e){if(!e)return null;try{let t=JSON.parse(e);if(!z(t))return null;let n={};for(let e of[`light`,`dark`]){let r=t[e];if(typeof r!=`string`)continue;let i=Q(r);i&&$(i,e)!==null&&(n[e]=i.id)}return n.light!==void 0||n.dark!==void 0?n:null}catch{return null}}function Hr(e,t,n){return t?.[n]??e}export{kr as A,_r as B,In as C,Vr as D,jr as E,Mr as F,nn as G,fr as H,Fn as I,tn as J,on as K,mr as L,zr as M,Rr as N,rr as O,Hr as P,Rn as R,Br as S,Cn as T,sn as U,Er as V,an as W,$t as X,en as Y,Qt as Z,Q as _,Fr as a,Tr as b,Lr as c,dr as d,Pn as f,$ as g,Pr as h,un as i,Dr as j,Or as k,or as l,Ln as m,ln as n,dn as o,zn as p,rn as q,cn as r,Ir as s,L as t,Nn as u,hr as v,yn as w,jn as x,gr as y,Jn as z};
|
|
5
|
-
//# sourceMappingURL=themePalette-BMlBfFUx.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,r as t,t as n}from"./react-BUfh6y28.js";import{n as r,t as i}from"./jsx-runtime-DJeoFXNw.js";import{$d as a,Ao as o,Ba as s,Ca as c,D as l,Fr as u,Ga as d,Gd as f,Ha as p,Ka as m,Ki as h,Lb as g,Mi as _,Mo as v,Mr as y,Na as b,No as x,Qp as S,Rr as C,Sl as w,Ta as T,Ti as E,To as D,Tu as O,Ua as ee,Ud as te,Ui as k,Wm as A,Xu as j,aa as M,ba as N,ca as P,da as ne,ep as F,fi as re,fr as I,ga as L,ha as R,hb as z,ka as ie,ko as B,ma as ae,mr as oe,nb as se,nc as V,oa as H,pa as U,qi as ce,qm as le,t as W,ua as ue,ud as de,uh as fe,wo as pe,xa as me,xt as he,yb as ge}from"./utils-C5GGWTfe.js";import{jn as _e}from"./runtime-BVmDVuJ-.js";import{S as ve,d as ye,f as be,l as G,m as xe,u as Se}from"./TooltipViewport-Be_gbUW1.js";import{t as Ce}from"./spinner-BZ5ohCyO.js";import{t as we}from"./useParams-rbhXoEw9.js";var Te=g(w),Ee=g(O);function De(e){return Ee(e)&&(e.reason===`thread_not_empty`||e.reason===`thread_not_side_chat`)}function Oe(e){return Te(e)&&e.bootstrapThreadDisposition===`deleted`}function ke(e){return Te(e)&&e.bootstrapThreadDisposition===`not-created`}var Ae=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the P4 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 je(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length!==0&&Ae.some(e=>e.test(t))}function Me(e){return je(e)?null:e??null}var K=e(n()),Ne=K.createContext(void 0);function Pe(){let e=K.useContext(Ne);if(!e)throw Error(x(73));return e}var Fe=0;function Ie(e){return Fe+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Fe}`}function Le(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 Re(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 ze=e=>e.toastMetadata,q={toasts:_(e=>e.toasts),isEmpty:_(e=>e.toasts.length===0),toast:_(ze,(e,t)=>e.get(t)?.value),toastIndex:_(ze,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:_(ze,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:_(ze,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:_(e=>e.hovering),focused:_(e=>e.focused),expanded:_(e=>e.hovering||e.focused),expandedOrOutOfFocus:_(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:_(e=>e.prevFocusElement)},Be=class extends E{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Re(e.toasts)},{},q)}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=q.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||Ie(`toast`);if(e.id){let t=q.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)),q.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=q.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);else 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)),q.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=q.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:Re(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=Le(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Le(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Le(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??=N.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);R(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!q.expandedOrOutOfFocus(this.state),a=i?N.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:Re(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=ae(P(this.state.viewport));if(!this.state.viewport||!R(this.state.viewport,t)||!U(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=q.toasts(this.state),r=q.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()}},J=e(i()),Ve=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=v(()=>new Be({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return ie(a.disposeEffect),K.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,J.jsx)(Ne.Provider,{value:a,children:t})},He=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),Ue=K.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=Pe(),c=me(),l=K.useRef(!1),u=K.useRef(!1),f=K.useRef(!1),p=s.useState(`isEmpty`),m=s.useState(`toasts`),h=s.useState(`focused`),g=s.useState(`expanded`),_=s.useState(`prevFocusElement`),v=m[0]?.height??0,y=K.useMemo(()=>m.some(e=>e.transitionStatus===`ending`),[m]),b=K.useMemo(()=>m.filter(e=>e.priority===`high`),[m]);K.useEffect(()=>{let e=s.state.viewport;if(!e)return;function t(t){p||t.key===`F6`&&L(t)!==e&&(t.preventDefault(),s.setPrevFocusElement(ae(P(e))),e?.focus({preventScroll:!0}),s.pauseTimers(),s.setFocused(!0))}let n=d(e);return ne(n,`keydown`,t)},[s,p]),K.useEffect(()=>{let e=s.state.viewport;if(!e||p)return;let t=d(e);function n(e){L(e)===t&&(s.setIsWindowFocused(!1),s.pauseTimers())}function r(n){if(n.relatedTarget)return;let r=L(n),i=ae(P(e));r!==t&&R(e,r)&&U(i)||s.resumeTimers(),c.start(0,()=>s.setIsWindowFocused(!0))}return ue(ne(t,`blur`,n,!0),ne(t,`focus`,r,!0))},[s,c,p]),K.useEffect(()=>{let e=s.state.viewport;if(!e||p)return;let t=P(e);return ne(t,`pointerdown`,s.handleDocumentPointerDown,!0)},[p,s]);function x(e){let t=s.state.viewport;t&&(l.current=!0,e.relatedTarget===t?m[0]?.ref?.current?.focus():s.restoreFocusToPrevElement())}function S(e){e.key===`Tab`&&e.shiftKey&&L(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement(),s.resumeTimers())}function C(){let e=s.state.toasts.some(e=>e.transitionStatus===`ending`);s.state.isWindowFocused&&!e&&!f.current&&u.current&&(s.resumeTimers(),s.setHovering(!1),u.current=!1)}K.useEffect(C,[y,s]);function w(){s.pauseTimers(),s.setHovering(!0),u.current=!1}function T(){y||f.current?u.current=!0:(s.resumeTimers(),s.setHovering(!1))}function E(e){e.pointerType===`touch`&&(f.current=!0)}function O(e){e.pointerType===`touch`&&(f.current=!1,C())}function ee(){l.current?l.current=!1:h||U(ae(P(s.state.viewport)))&&(s.setFocused(!0),s.pauseTimers())}function te(e){h&&!R(s.state.viewport,e.relatedTarget)&&(s.setFocused(!1),s.resumeTimers())}let k={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:w,onMouseMove:w,onMouseLeave:T,onFocus:ee,onBlur:te,onKeyDown:S,onClick:ee,onPointerDown:E,onPointerUp:O,onPointerCancel:O},A={expanded:g},j=D(`div`,e,{ref:[t,s.setViewport],state:A,props:[k,{style:{[He.frontmostHeight]:v?`${v}px`:void 0}},o,{children:(0,J.jsxs)(K.Fragment,{children:[!p&&_&&(0,J.jsx)(M,{onFocus:x}),a,!p&&_&&(0,J.jsx)(M,{onFocus:x})]})}]});return(0,J.jsxs)(K.Fragment,{children:[!p&&_&&(0,J.jsx)(M,{onFocus:x}),j,!h&&b.length>0&&(0,J.jsx)(`div`,{style:H,children:b.map(e=>(0,J.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,J.jsx)(`div`,{children:e.title}),(0,J.jsx)(`div`,{children:e.description})]},e.id))})]})}),We=e(T()),Ge=K.createContext(void 0);function Ke(){let e=K.useContext(Ge);if(!e)throw Error(x(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 qe(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 Je(e){let t=d(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 Ye={...pe,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Xe=40,Ze=10,X=.5,Qe=1,$e=`${k},${h}`,et=K.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,l=n.positionerProps?.anchor!==void 0,u=[];l||(u=Array.isArray(a)?a:[a]);let d=u.length>0,f=Pe(),[m,h]=K.useState(void 0),[g,_]=K.useState(!1),[v,y]=K.useState(!1),[b,x]=K.useState(!1),[S,w]=K.useState({x:0,y:0}),[T,E]=K.useState({x:0,y:0,scale:1}),[O,te]=K.useState(),[k,A]=K.useState(),[j,M]=K.useState(null),N=K.useRef(null),F=K.useRef({x:0,y:0}),re=K.useRef({x:0,y:0,scale:1}),I=K.useRef(void 0),z=K.useRef(0),ie=K.useRef(!1),B=K.useRef({x:0,y:0}),oe=K.useRef(!1),se=K.useRef({x:0,y:0}),V=K.useRef(null),H=K.useRef(null),U=f.useState(`toastIndex`,n.id),ce=f.useState(`toastVisibleIndex`,n.id),le=f.useState(`toastOffsetY`,n.id),W=f.useState(`focused`),ue=f.useState(`expanded`);c({open:n.transitionStatus!==`ending`,ref:N,onComplete(){n.transitionStatus===`ending`&&f.removeToast(n.id)}});let de=ee((e=!1)=>{let t=N.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){f.updateToastInternal(n.id,{ref:N,height:i,...n.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?We.flushSync(a):a()});p(de,[de]);function fe(e){se.current=e,w(e)}p(()=>()=>{H.current?.abort()},[]);function pe(e,t){let n=e,r=t;return!u.includes(`left`)&&!u.includes(`right`)?n=e>0?e**X:-(Math.abs(e)**X):(!u.includes(`right`)&&e>0&&(n=e**X),!u.includes(`left`)&&e<0&&(n=-(Math.abs(e)**X))),!u.includes(`up`)&&!u.includes(`down`)?r=t>0?t**X:-(Math.abs(t)**X):(!u.includes(`down`)&&t>0&&(r=t**X),!u.includes(`up`)&&t<0&&(r=-(Math.abs(t)**X))),{x:n,y:r}}let me=ee(e=>{if(e.pointerId!==V.current)return;V.current=null,H.current?.abort(),H.current=null,_(!1),y(!1),M(null);let t=re.current;if(e.type===`pointercancel`||ie.current){fe({x:t.x,y:t.y}),h(void 0);return}let r=!1,i=se.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of u){switch(e){case`right`:a>Xe&&(r=!0,s=`right`);break;case`left`:a<-40&&(r=!0,s=`left`);break;case`down`:o>Xe&&(r=!0,s=`down`);break;case`up`:o<-40&&(r=!0,s=`up`)}if(r)break}r?(h(s),x(!0),f.closeToast(n.id)):(fe({x:t.x,y:t.y}),h(void 0))});function he(e){if(e.button!==0)return;e.pointerType===`touch`&&f.pauseTimers();let t=L(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${$e}`))return;if(ie.current=!1,I.current=void 0,z.current=0,V.current=e.pointerId,F.current={x:e.clientX,y:e.clientY},B.current=F.current,N.current){let e=Je(N.current);re.current=e,E(e),fe({x:e.x,y:e.y})}f.setHovering(!0),_(!0),y(!1),M(null),oe.current=!0;let n=N.current;if(n){H.current?.abort();let t=new AbortController;H.current=t;let r=P(n);r.addEventListener(`pointerup`,me,{signal:t.signal}),r.addEventListener(`pointercancel`,me,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function ge(e){if(e.pointerId!==V.current)return;e.preventDefault(),oe.current&&=(F.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>B.current.y||i>0&&t<B.current.y)&&(B.current={x:B.current.x,y:t}),(r<0&&n>B.current.x||r>0&&n<B.current.x)&&(B.current={x:n,y:B.current.y});let a=n-F.current.x,o=t-F.current.y,s=t-B.current.y,c=n-B.current.x;if(!v&&Math.sqrt(a*a+o*o)>=Qe&&(y(!0),j===null)){let e=u.includes(`left`)||u.includes(`right`),t=u.includes(`up`)||u.includes(`down`);e&&t&&M(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let l;if(!I.current)j===`vertical`?o>0?l=`down`:o<0&&(l=`up`):j===`horizontal`?a>0?l=`right`:a<0&&(l=`left`):l=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,l&&u.includes(l)&&(I.current=l,z.current=qe(l,a,o),h(l));else{let e=I.current,t=qe(e,c,s);t>Xe?(ie.current=!1,h(e)):!(u.includes(`left`)&&u.includes(`right`))&&!(u.includes(`up`)&&u.includes(`down`))&&z.current-t>=Ze&&(ie.current=!0)}let d=pe(a,o),f=re.current.x,p=re.current.y;j===`horizontal`?(u.includes(`left`)||u.includes(`right`))&&(f+=d.x):(j===`vertical`||(u.includes(`left`)||u.includes(`right`))&&(f+=d.x),(u.includes(`up`)||u.includes(`down`))&&(p+=d.y)),fe({x:f,y:p})}function _e(e){if(e.key===`Escape`){if(!N.current||!R(N.current,ae(P(N.current))))return;f.closeToast(n.id)}}K.useEffect(()=>{if(!d)return;let e=N.current;if(!e)return;function t(t){R(e,L(t))&&t.preventDefault()}return ne(e,`touchmove`,t,{passive:!1})},[d]);function ve(){if(!g&&S.x===T.x&&S.y===T.y&&!b)return{[Y.swipeMovementX]:`0px`,[Y.swipeMovementY]:`0px`};let e=S.x-T.x,t=S.y-T.y;return{transition:g?`none`:void 0,transform:g?`translateX(${S.x}px) translateY(${S.y}px) scale(${T.scale})`:void 0,[Y.swipeMovementX]:`${e}px`,[Y.swipeMovementY]:`${t}px`}}let ye=n.priority===`high`,be={role:ye?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":O,"aria-describedby":k,"aria-hidden":ye&&!W?!0:void 0,onPointerDown:d?he:void 0,onPointerMove:d?ge:void 0,onPointerUp:d?me:void 0,onPointerCancel:d?me:void 0,onKeyDown:_e,inert:C(n.limited),style:{...ve(),[Y.index]:n.transitionStatus===`ending`?U:ce,[Y.offsetY]:`${le}px`,[Y.height]:n.height?`${n.height}px`:void 0}},G=K.useMemo(()=>({rootRef:N,toast:n,titleId:O,setTitleId:te,descriptionId:k,setDescriptionId:A,swiping:g,swipeDirection:m,recalculateHeight:de,index:U,visibleIndex:ce,expanded:ue}),[n,O,k,g,m,de,U,ce,ue]),xe={transitionStatus:n.transitionStatus,expanded:ue,limited:n.limited||!1,type:n.type,swiping:G.swiping,swipeDirection:G.swipeDirection},Se=D(`div`,e,{ref:[t,G.rootRef],state:xe,stateAttributesMapping:Ye,props:[be,s]});return(0,J.jsx)(Ge.Provider,{value:G,children:Se})}),tt=K.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=Ke(),l=K.useRef(null);return p(()=>{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]),D(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})}),nt=K.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setDescriptionId:l}=Ke(),u=o??c.description,d=!!u,f=b(a);p(()=>{if(d)return l(f),()=>{l(void 0)}},[d,f,l]);let m={type:c.type},h=D(`p`,e,{ref:t,state:m,props:{...s,id:f,children:u}});return d?h:null}),rt=K.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setTitleId:l}=Ke(),u=o??c.title,d=!!u,f=b(a);p(()=>{if(d)return l(f),()=>{l(void 0)}},[d,f,l]);let m={type:c.type},h=D(`h2`,e,{ref:t,state:m,props:{...s,id:f,children:u}});return d?h:null}),it=K.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...c}=e,l=Pe(),{toast:u}=Ke(),d=l.useState(`expanded`),[f,p]=K.useState(!1),{getButtonProps:m,buttonRef:h}=s({disabled:a,native:o}),g={type:u.type};return D(`button`,e,{ref:[t,h],state:g,props:[{"aria-hidden":!d&&!f,onClick(){l.closeToast(u.id)},onFocus(){p(!0)},onBlur(){p(!1)}},c,m]})}),at=K.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...c}=e,{toast:l}=Ke(),u=l.actionProps?.children??c.children,d=!!u,{getButtonProps:f,buttonRef:p}=s({disabled:a,native:o}),m={type:l.type},h=D(`button`,e,{ref:[t,p],state:m,props:[c,l.actionProps,f,{children:u}]});return d?h:null}),ot=Se,st=K.createContext(void 0);function ct(){let e=K.useContext(st);if(e===void 0)throw Error(x(84));return e}var lt=K.forwardRef(function(e,t){let{toast:n,...r}=e,i=Pe(),a=n.positionerProps??B,{render:s,className:c,anchor:l=a.anchor,positionMethod:d=a.positionMethod??`absolute`,side:f=a.side??`top`,align:p=a.align??`center`,sideOffset:h=a.sideOffset??0,alignOffset:g=a.alignOffset??0,collisionBoundary:_=a.collisionBoundary??`clipping-ancestors`,collisionPadding:v=a.collisionPadding??5,arrowPadding:b=a.arrowPadding??5,sticky:x=a.sticky??!1,disableAnchorTracking:S=a.disableAnchorTracking??!1,collisionAvoidance:C=a.collisionAvoidance??ce,style:w,...T}=r,[E,D]=K.useState(null),O=i.useState(`toastIndex`,n.id),ee=i.useState(`toastVisibleIndex`,n.id),te=m(l)?l:null,k=re({open:!0,onOpenChange:o,elements:{floating:E,reference:te}}),A=u({anchor:te,positionMethod:d,floatingRootContext:k,mounted:!0,side:f,sideOffset:h,align:p,alignOffset:g,collisionBoundary:_,collisionPadding:v,sticky:x,arrowPadding:b,disableAnchorTracking:S,keepMounted:!0,collisionAvoidance:C}),j=K.useMemo(()=>({side:A.side,align:A.align,anchorHidden:A.anchorHidden}),[A.side,A.align,A.anchorHidden]),M=y(e,j,{styles:{...A.positionerStyles,[Y.index]:n.transitionStatus===`ending`?O:ee},transitionStatus:n.transitionStatus,props:T,refs:[t,D]});return(0,J.jsx)(st.Provider,{value:A,children:M})}),ut=K.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=ct();return D(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function dt(){let e=K.useContext(Ne);if(!e)throw Error(x(73));let t=e.useState(`toasts`);return K.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function ft(){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||Ie(`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 pt=t({Action:()=>at,Arrow:()=>ut,Close:()=>it,Content:()=>tt,Description:()=>nt,Portal:()=>ot,Positioner:()=>lt,Provider:()=>Ve,Root:()=>et,Title:()=>rt,Viewport:()=>Ue,createToastManager:()=>ft,useToastManager:()=>dt});function mt(){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=mt(),Q=r(),ht={archive:de,clock:a,pin:S,trash:A};function gt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,K.useEffect)(_t,t),null}function _t(){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`?ht[r.icon]:null,i=r.actions??[],a=i.find(yt),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,J.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)}:{},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=vt;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 vt(){return Z.setPaused(`web-hidden`,document.hidden)}function yt(e){return e.primary}var bt=class extends ge()(`ClipboardApiUnavailableError`,{target:z}){get message(){return`Clipboard API is unavailable while copying ${this.target}.`}},xt=class extends ge()(`ClipboardWriteError`,{target:z,cause:se()}){get message(){return`Failed to copy ${this.target} to the clipboard.`}},St=class extends ge()(`ClipboardReadUnavailableError`,{target:z}){get message(){return`Clipboard API is unavailable while reading ${this.target}.`}},Ct=class extends ge()(`ClipboardReadError`,{target:z,cause:se()}){get message(){return`Failed to read ${this.target} from the clipboard.`}};function wt(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 Tt(e,t=`text`,n){if(typeof window>`u`)throw new bt({target:t});if(!e)return!1;n&&=Object.fromEntries(Object.entries(n).filter(([e])=>e!==`text/plain`));let r=n?.[j];if(r&&(n={...n,"text/html":he(e,r,n?.[`text/html`])}),typeof navigator>`u`||!navigator.clipboard?.writeText){if(wt(e,n))return!0;throw new bt({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 xt({target:t,cause:e})}}async function Et(e=`text`){if(typeof window>`u`||typeof navigator>`u`||!navigator.clipboard?.readText)throw new St({target:e});try{return await navigator.clipboard.readText()}catch(t){throw new Ct({target:e,cause:t})}}function Dt({timeout:e=2e3,target:t=`text`,onCopy:n,onError:r,extraFlavors:i}={}){let[a,o]=K.useState(!1),s=K.useRef(null),c=K.useRef(n),l=K.useRef(r),u=K.useRef(t),d=K.useRef(e);c.current=n,l.current=r;let f=K.useRef(i);u.current=t,d.current=e,f.current=i;let p=K.useCallback((e,t)=>{Tt(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 K.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),{copyToClipboard:p,isCopied:a}}function Ot(e){return e===`live`}function kt(e){return e.draftThreadExists||e.serverThreadExists&&!e.serverThreadDeleted?`ready`:e.bootstrapComplete?`missing`:`loading`}function At(e){return{environmentId:e.environmentId,threadId:e.threadId}}function jt(e){return{draftId:e}}function Mt(e){return!e.environmentId||!e.threadId?null:V(e.environmentId,e.threadId)}function Nt(e){return e.environmentId&&e.threadId?{kind:`server`,threadRef:V(e.environmentId,e.threadId)}:e.draftId?{kind:`draft`,draftId:e.draftId}:null}function Pt(e,t){return e?.kind===`server`?e.threadRef:e?.kind!==`draft`||!t?.promotedTo?null:t.promotedTo}function Ft(e){if(typeof e!=`object`||!e||!(`children`in e))return!1;let t=e.children;return t!=null&&t!==!1&&t!==``}function It(e,t){return t<=1?!1:e>0}function Lt(e){let t=0,n=0,r=0,i=0,a=e.map(e=>{let a=Rt(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:Rt(e.find(e=>e.transitionStatus!==`ending`)?.height),items:a}}function Rt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function zt(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 $=ft(),Bt=ft(),Vt=new Map,Ht={error:te,info:F,loading:Ce,success:f,warning:le},Ut=180;function Wt(e,t){if(e===`error`&&typeof t==`string`&&!(t.length<Ut))return`line-clamp-4`}function Gt(e,t,n){n?.(),e.close(t)}function Kt(e){let t=(0,Q.c)(3),{onClick:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,J.jsx)(fe,{}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,J.jsx)(I,{size:`icon-xs`,variant:`ghost`,"aria-label":`Dismiss notification`,"data-slot":`toast-close`,onClick:n,children:r}),t[1]=n,t[2]=i),i}function qt(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}=Dt(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=W(`size-3`,c),t[4]=c,t[5]=l);let u=a?ye:ve,d;t[6]!==l||t[7]!==u?(d=(0,J.jsx)(G,{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,J.jsx)(I,{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 Jt=`mt-2 max-h-40 min-h-0 overflow-y-auto overscroll-contain pr-0.5 select-text`;function Yt(e){let t=(0,Q.c)(13),{children:n,labels:r}=e,[i,a]=(0,K.useState)(!1),o=r.expand??`Show details`,s=r.collapse??`Hide details`,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>a(Xt),t[0]=c):c=t[0];let l=i?xe:be,u;t[1]===l?u=t[2]:(u=(0,J.jsx)(G,{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,J.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,J.jsx)(`div`,{className:Jt,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,J.jsxs)(`div`,{className:`min-w-0`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}function Xt(e){return!e}function Zt(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=W(`min-w-0 select-text wrap-break-word text-muted-foreground`,Wt(i,r)),t[2]=r,t[3]=i,t[4]=l):l=t[4];let u=l,[d,f]=(0,K.useState)(!1);if(!a){let e;return t[5]===u?e=t[6]:(e=(0,J.jsx)(nt,{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,J.jsx)(nt,{className:u,"data-slot":`toast-description`}),t[7]=u,t[8]=e);let n;t[9]!==a||t[10]!==s?(n=(0,J.jsx)(Yt,{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,J.jsxs)(J.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(Qt),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=W(`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=W(`min-w-0 select-none wrap-break-word text-muted-foreground`,Wt(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,J.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,J.jsx)(nt,{className:x,"data-slot":`toast-description`})}),t[21]=x,t[22]=S);let C=d?xe:be,w;t[23]===C?w=t[24]:(w=(0,J.jsx)(G,{"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,J.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,J.jsx)(`div`,{className:Jt,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,J.jsxs)(J.Fragment,{children:[T,E]}),t[33]=T,t[34]=E,t[35]=D):D=t[35],D}function Qt(e){return!e}function $t(e){let t=e.type?Ht[e.type]:null,n=e.type===`error`&&typeof e.description==`string`&&!e.data?.hideCopyButton?e.description:null,r=(e.data?.additionalActions?.length??0)>0,i=e.data?.secondaryActionProps!==void 0;return{Icon:t,copyErrorText:n,hasTrailingControls:n!==null||Ft(e.actionProps)||r||i}}function en(e){let t=(0,Q.c)(32),{Icon:n,copyErrorText:r,actionProps:i,hasTrailingControls:a,toastData:o,toastDescription:s,toastType:c}=e,l;t[0]===o?.additionalActions?l=t[1]:(l=o?.additionalActions??[],t[0]=o?.additionalActions,t[1]=l);let u=l,d=o?.secondaryActionProps,f=o?.leadingIcon,p;t[2]===d?p=t[3]:(p=d??{},t[2]=d,t[3]=p);let m,h;t[4]===p?(m=t[5],h=t[6]):({className:m,...h}=p,t[4]=p,t[5]=m,t[6]=h);let g;t[7]!==n||t[8]!==f?(g=f?(0,J.jsx)(`div`,{className:`flex h-lh w-4 shrink-0 items-center justify-center`,"data-slot":`toast-icon`,children:f}):n?(0,J.jsx)(`div`,{className:`[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`toast-icon`,children:(0,J.jsx)(n,{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[7]=n,t[8]=f,t[9]=g):g=t[9];let _;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,J.jsx)(rt,{className:`min-w-0 wrap-break-word font-medium`,"data-slot":`toast-title`}),t[10]=_):_=t[10];let v;t[11]===g?v=t[12]:(v=(0,J.jsxs)(`div`,{className:`flex min-w-0 gap-2`,children:[g,_]}),t[11]=g,t[12]=v);let y;t[13]!==o||t[14]!==s||t[15]!==c?(y=(0,J.jsx)(Zt,{toastData:o,toastDescription:s,toastType:c}),t[13]=o,t[14]=s,t[15]=c,t[16]=y):y=t[16];let b;t[17]!==v||t[18]!==y?(b=(0,J.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-0.5`,children:[v,y]}),t[17]=v,t[18]=y,t[19]=b):b=t[19];let x;t[20]!==i||t[21]!==u||t[22]!==r||t[23]!==a||t[24]!==m||t[25]!==d||t[26]!==h||t[27]!==o?.sharedToastId?(x=a?(0,J.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5`,children:[r===null?null:(0,J.jsx)(qt,{text:r}),u.map(tn),d?(0,J.jsx)(I,{...h,className:m,size:`xs`,type:`button`,variant:o?.sharedToastId?`solid-neutral`:`soft`}):null,Ft(i)?(0,J.jsx)(at,{className:W(oe({size:`xs`,variant:`solid-neutral`}),`shrink-0`),"data-slot":`toast-action`,children:i?.children}):null]}):null,t[20]=i,t[21]=u,t[22]=r,t[23]=a,t[24]=m,t[25]=d,t[26]=h,t[27]=o?.sharedToastId,t[28]=x):x=t[28];let S;return t[29]!==b||t[30]!==x?(S=(0,J.jsxs)(J.Fragment,{children:[b,x]}),t[29]=b,t[30]=x,t[31]=S):S=t[31],S}function tn(e){let{id:t,props:n}=e,{className:r,...i}=n;return(0,K.createElement)(I,{...i,className:r,key:t,size:`xs`,type:`button`,variant:`soft`})}function nn(){let e=(0,Q.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={strict:!1,select:rn},e[0]=t):t=e[0];let n=we(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=l(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 rn(e){return Nt(e)}function an(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=Vt.get(n)??r,t=null,i=null,a=!1,o=()=>{i!==null&&(window.clearTimeout(i),i=null)},s=()=>{a||(a=!0,Vt.delete(n),$.close(n))},c=()=>{t!==null&&(e=Math.max(0,e-(Date.now()-t)),t=null,o(),Vt.set(n,e))},l=()=>{a||t!==null||(e<=0?s():(t=Date.now(),o(),i=window.setTimeout(()=>{e=0,t=null,s()},e)))},u=()=>{document.visibilityState===`visible`&&document.hasFocus()?l():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,K.useEffect)(i,a),null}function on(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,J.jsx)(gt,{}),t[4]=o):o=t[4];let s;t[5]===a?s=t[6]:(s=(0,J.jsx)(sn,{position:a}),t[5]=a,t[6]=s);let c;return t[7]!==n||t[8]!==r||t[9]!==s?(c=(0,J.jsxs)(Ve,{toastManager:$,...r,children:[o,n,s]}),t[7]=n,t[8]=r,t[9]=s,t[10]=c):c=t[10],c}function sn(e){let t=(0,Q.c)(19),{position:n}=e,{toasts:r}=dt(),i=nn(),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=>zt(e.data,i),t[2]=i,t[3]=s);let c=Lt(r.filter(s)),l,u;t[4]===r?(l=t[5],u=t[6]):(l=()=>{let e=new Set(r.map(cn));for(let t of Vt.keys())e.has(t)||Vt.delete(t)},u=[r],t[4]=r,t[5]=l,t[6]=u),(0,K.useEffect)(l,u);let d=pt,f=pt,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=W(`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=It(r,c.items.length),s=$t(t);return(0,J.jsxs)(et,{className:W(`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,J.jsx)(an,{dismissAfterVisibleMs:t.data?.dismissAfterVisibleMs,toastId:t.id}),(0,J.jsxs)(tt,{className:W(`pointer-events-auto flex min-h-0 items-center justify-between gap-2 overflow-y-visible py-3 pr-2 pl-3.5 text-sm transition-opacity duration-250 [overflow-x:clip] data-expanded:opacity-100`,a&&`not-data-expanded:pointer-events-none not-data-expanded:opacity-0`),children:[(0,J.jsx)(en,{...s,actionProps:t.actionProps,toastData:t.data,toastDescription:t.description,toastType:t.type}),(0,J.jsx)(Kt,{onClick:()=>{let e=t.data?.sharedToastId;e?Z.dismiss(e):Gt($,t.id,t.data?.onClose)}})]})]},t.id)}),v;t[10]!==n||t[11]!==g||t[12]!==_||t[13]!==f.Viewport||t[14]!==p?(v=(0,J.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,J.jsx)(d.Portal,{"data-slot":`toast-portal`,children:v}),t[16]=v,t[17]=d.Portal,t[18]=y):y=t[18],y}function cn(e){return e.id}function ln(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,J.jsx)(un,{}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,J.jsxs)(Ve,{toastManager:Bt,...r,children:[n,i]}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function un(){let e=(0,Q.c)(7),{toasts:t}=dt(),n=nn(),r;if(e[0]!==n||e[1]!==t){let i;e[3]===n?i=e[4]:(i=e=>zt(e.data,n),e[3]=n,e[4]=i),r=t.filter(i).map(dn),e[0]=n,e[1]=t,e[2]=r}else r=e[2];let i;return e[5]===r?i=e[6]:(i=(0,J.jsx)(ot,{"data-slot":`toast-portal-anchored`,children:(0,J.jsx)(Ue,{className:`outline-none`,"data-slot":`toast-viewport-anchored`,children:r})}),e[5]=r,e[6]=i),i}function dn(e){let t=e.data?.tooltipStyle??!1,n=e.positionerProps,r=$t(e);return n?.anchor?(0,J.jsx)(lt,{className:`z-100 max-w-[min(--spacing(64),var(--available-width))]`,"data-slot":`toast-positioner`,sideOffset:n.sideOffset??4,toast:e,children:(0,J.jsx)(et,{className:W(`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,J.jsx)(tt,{className:`pointer-events-auto px-2 py-1`,children:(0,J.jsx)(rt,{"data-slot":`toast-title`})}):(0,J.jsxs)(tt,{className:`pointer-events-auto flex min-h-0 items-center justify-between gap-1.5 overflow-y-visible py-3 pr-2 pl-3.5 text-sm [overflow-x:clip]`,children:[(0,J.jsx)(en,{...r,actionProps:e.actionProps,toastData:e.data,toastDescription:e.description,toastType:e.type}),(0,J.jsx)(Kt,{onClick:()=>Gt(Bt,e.id,e.data?.onClose)})]})})},e.id):null}export{Oe as _,jt as a,Pt as c,Nt as d,Et as f,Me as g,Z as h,$ as i,Mt as l,Tt as m,on as n,At as o,Dt as p,Bt as r,Ot as s,ln as t,kt as u,ke as v,De as y};
|
|
2
|
-
//# sourceMappingURL=toast-BZ96uuab.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{r as i,t as a,zc as o}from"./utils-C5GGWTfe.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./TooltipViewport-Be_gbUW1.js";import{t as m}from"./env-wK1YYxA8.js";var h=n(),g=e(t(),1),_=`wco`,v=`electron`,y=`electron-windows`,b=52;function x(){return typeof navigator>`u`?null:navigator.windowControlsOverlay??null}function S(){if(typeof document>`u`)return()=>{};let e=x(),t=()=>{document.documentElement.classList.toggle(_,e!==null&&e.visible)};return t(),e?(e.addEventListener(`geometrychange`,t),()=>{e.removeEventListener(`geometrychange`,t)}):()=>{}}function C(e){let t=x();return t?.addEventListener(`geometrychange`,e),()=>t?.removeEventListener(`geometrychange`,e)}function w(){if(m&&o(navigator.platform))return b;let e=x();return e?.visible?e.getTitlebarAreaRect().bottom:0}function T(){return(0,g.useSyncExternalStore)(C,w,E)}function E(){return 0}function D(e){return i(e)?[v,y]:[v]}function O(e){if(typeof document>`u`)return()=>{};let t=D(e);return document.documentElement.classList.add(...t),()=>{document.documentElement.classList.remove(...t)}}var k=e(r(),1),A=5,j=l,M=(0,g.createContext)(null),N=(0,g.createContext)(null);function P(e){let t=(0,h.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,g.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,k.jsx)(N,{value:i,children:(0,k.jsx)(`div`,{...r,onScrollCapture:a})}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function F(e){let t=(0,g.use)(N),n=(0,g.useRef)(null),r=e.actionsRef??n;return(0,g.useEffect)(()=>()=>{t?.current?.actionsRef===r&&(t.current=null)},[r,t]),t?(0,k.jsx)(M,{value:r,children:(0,k.jsx)(f,{...e,actionsRef:r,onOpenChange:(n,i)=>{e.onOpenChange?.(n,i),!n&&!i.isCanceled&&t.current?.actionsRef===r&&(t.current=null)}})}):(0,k.jsx)(f,{...e})}function I(e){let t=(0,g.use)(N),n=(0,g.use)(M);return!t||!n?(0,k.jsx)(u,{"data-slot":`tooltip-trigger`,...e}):(0,k.jsx)(u,{"data-slot":`tooltip-trigger`,...e,onMouseEnter:r=>{e.onMouseEnter?.(r),t.current={trigger:r.currentTarget,actionsRef:n}}})}function L(e){let t=(0,h.c)(5),n=A+T(),r;t[0]===n?r=t[1]:(r={top:n,right:A,bottom:A,left:A},t[0]=n,t[1]=r);let i;return t[2]!==e||t[3]!==r?(i=(0,k.jsx)(c,{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 R(e){let t=(0,h.c)(25),n,r,i,o,c,l,u,f;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],c=t[5],l=t[6],u=t[7],f=t[8]):({className:i,align:c,sideOffset:l,side:u,variant:f,anchor:n,children:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=c,t[6]=l,t[7]=u,t[8]=f);let m=c===void 0?`center`:c,g=l===void 0?4:l,_=u===void 0?`top`:u,v=f===void 0?`default`:f,y=v===`glass`?`dropdown-glass shadow-xl shadow-black/25 before:hidden`:v===`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`,b=v===`code`?`max-w-120 wrap-anywhere text-left font-mono text-[11px] leading-relaxed`:`max-w-80 wrap-anywhere whitespace-normal leading-snug`,x;t[9]!==i||t[10]!==y||t[11]!==b?(x=a(`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%)]`,y,b,i),t[9]=i,t[10]=y,t[11]=b,t[12]=x):x=t[12];let S;t[13]===r?S=t[14]:(S=(0,k.jsx)(p,{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]=S);let C;t[15]!==o||t[16]!==x||t[17]!==S?(C=(0,k.jsx)(d,{className:x,"data-slot":`tooltip-popup`,...o,children:S}),t[15]=o,t[16]=x,t[17]=S,t[18]=C):C=t[18];let w;return t[19]!==m||t[20]!==n||t[21]!==_||t[22]!==g||t[23]!==C?(w=(0,k.jsx)(s,{children:(0,k.jsx)(L,{align:m,anchor:n,side:_,sideOffset:g,children:C})}),t[19]=m,t[20]=n,t[21]=_,t[22]=g,t[23]=C,t[24]=w):w=t[24],w}export{I as a,P as i,R as n,O as o,j as r,S as s,F as t};
|
|
2
|
-
//# sourceMappingURL=tooltip-BPiLl1TV.js.map
|