@p4code/cli 0.8.25 → 0.8.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +1 -1
- package/dist/{binCli-DxnOvHXE.mjs → binCli-DgjAnX7K.mjs} +2 -2
- package/dist/client/.vite/manifest.json +2242 -2242
- package/dist/client/assets/AlertDialogRoot-uMQTdBRo.js +2 -0
- package/dist/client/assets/{AnimatedHeight-wZzihILs.js → AnimatedHeight-xpLZZo3s.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-CDrUzEa3.js → AuthSurfaceShell-B0GeuqGG.js} +2 -2
- package/dist/client/assets/{CSPContext-BjqtxKhA.js → CSPContext-BOMhNaNg.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-DkUVOC7j.js → ChatGptUsageButton-BsRw7PIG.js} +2 -2
- package/dist/client/assets/ChatMarkdown-B_7CYt1t.js +65 -0
- package/dist/client/assets/{CheckboxIndicator-CuZi7Ixm.js → CheckboxIndicator-CtJqB7ns.js} +2 -2
- package/dist/client/assets/{ClippedText-DPgP0ObI.js → ClippedText-DoAq5p0h.js} +2 -2
- package/dist/client/assets/{CodexSetupSection.logic-BGYo_Oa-.js → CodexSetupSection.logic-CAeeNfjx.js} +2 -2
- package/dist/client/assets/{ComboboxClear-zheEdyAa.js → ComboboxClear-gWUoU_9i.js} +2 -2
- package/dist/client/assets/{ComboboxGroupLabel-BxCdL7I3.js → ComboboxGroupLabel-PqwekxYO.js} +2 -2
- package/dist/client/assets/{CommandBlock-C1v99dbA.js → CommandBlock-a6FR0Qjq.js} +2 -2
- package/dist/client/assets/ComposerPromptEditor-JiLuF8sa.js +204 -0
- package/dist/client/assets/{CompositeRoot-Bg5KGYGp.js → CompositeRoot-DXqEvNI3.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-Bx8Imvqc.js → ConnectionStatusDot-DsDhJub7.js} +2 -2
- package/dist/client/assets/{DesignPageTile-ClF5Va3g.js → DesignPageTile-6OCPIqLU.js} +2 -2
- package/dist/client/assets/DevicePanel-BCkjPnRB.js +2 -0
- package/dist/client/assets/{DeviceSetup-D1v4OInd.js → DeviceSetup-jQhLCRQB.js} +2 -2
- package/dist/client/assets/{DialogTitle-CVP748Gv.js → DialogTitle-B_iSZXaO.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-ByLSJGCC.js → DiffCommentAnnotation-Ce3fywCz.js} +3 -3
- package/dist/client/assets/{DiffFileTree-DmXODV6-.js → DiffFileTree-Ch8ghRNl.js} +2 -2
- package/dist/client/assets/DiffPanel-BYdDuPJL.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-31z0fGQ6.js → DiffWorkerPoolProvider-CCTRrTde.js} +3 -3
- package/dist/client/assets/{EmbeddedDesign-CJh4mXjr.js → EmbeddedDesign-BasGnrZc.js} +4 -4
- package/dist/client/assets/{EnvironmentMachineIcon-B2v_GWgB.js → EnvironmentMachineIcon-CmWYXtho.js} +2 -2
- package/dist/client/assets/{ExpandableText-fJVIbCvG.js → ExpandableText-BgfA9yOq.js} +2 -2
- package/dist/client/assets/{FieldControl-mq4xNgmP.js → FieldControl-D-HuGl-Y.js} +2 -2
- package/dist/client/assets/{FileDiff-Cb7Q8DoF.js → FileDiff-HO0wYuF-.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-CN68pCae.js → FilePreviewPanel-BWAkLnOF.js} +9 -9
- package/dist/client/assets/{FoldedSettingsSection-TSMWCMo5.js → FoldedSettingsSection-itwybIpg.js} +2 -2
- package/dist/client/assets/{FormContext-Vtmj_mkP.js → FormContext-D41axClw.js} +2 -2
- package/dist/client/assets/{Icons-C0Zjws-3.js → Icons-bbJxtd49.js} +2 -2
- package/dist/client/assets/Input-BcEftKLM.js +2 -0
- package/dist/client/assets/{KeybindingsSettings.logic-D-GClV-c.js → KeybindingsSettings.logic-DbRWYCku.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-B5wdlXLT.js → NoProjectsHero-1ktyCaCR.js} +2 -2
- package/dist/client/assets/{P4ConnectAccountPages-BNv1XOMs.js → P4ConnectAccountPages-C8kjCH2i.js} +2 -2
- package/dist/client/assets/{P4ConnectSidebarSignIn-BqW3vURC.js → P4ConnectSidebarSignIn-De0TqOBv.js} +2 -2
- package/dist/client/assets/PanelLayoutControls-CRn29ViL.js +216 -0
- package/dist/client/assets/{PierreEntryIcon-BS77_eRn.js → PierreEntryIcon-DZSPzXnW.js} +2 -2
- package/dist/client/assets/{PopoverHandle-BT83XTq9.js → PopoverHandle-BUkWn6lX.js} +2 -2
- package/dist/client/assets/PreviewPanel-CPU0sstq.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-Ibem_Z4L.js +2 -0
- package/dist/client/assets/{ProjectFavicon-Bhsql8UU.js → ProjectFavicon-CE_urBAW.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-D1bu7Uyx.js → ProjectIconPickerDialog-D0OZSLq9.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-BUy_N1of.js → ProjectMonogram-C1SBXbLc.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-BRbiaLWc.js → ProviderAuthTerminal-Ddl4fv02.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-BTTJn7iC.js +2 -0
- package/dist/client/assets/{ProviderSettingsForm-DLBbky90.js → ProviderSettingsForm-CGRf8WX5.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-CKppy0OY.js → PullRequestCodeTab-CWg3y2Hg.js} +3 -3
- package/dist/client/assets/{ReadOnlySourcePreview-BJ6Yf9Nm.js → ReadOnlySourcePreview-B2RUv5et.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-DQlXjNRV.js → RenderErrorBoundary-BE9pu802.js} +2 -2
- package/dist/client/assets/ScheduledTasksSettings-LlwIif-M.js +4 -0
- package/dist/client/assets/{ScopedSwitch-Ciu5HpYa.js → ScopedSwitch-DM7op4tT.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-3gSiyg8H.js → ScrollAreaCorner-CpFtD7m1.js} +2 -2
- package/dist/client/assets/{SecretInput-itt3KL-b.js → SecretInput-aXfqfjLk.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-D_o_f6Fh.js → SelectScrollUpArrow-CMpd0Jm1.js} +2 -2
- package/dist/client/assets/{SettingsPanels-D8LJq_2u.js → SettingsPanels-BJZmVkq6.js} +6 -6
- package/dist/client/assets/{SettingsPanels.logic-Dn4swS42.js → SettingsPanels.logic-DlcMmTBT.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-FZ1p4m0I.js → SettingsScopeNotice-DvcB28n8.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-CyGAzSmS.js → ThemeEditorPanel-Cv_FhYYJ.js} +3 -3
- package/dist/client/assets/{ThreadTerminalDrawer-COPVkKqd.js → ThreadTerminalDrawer-B4Hx5Gtc.js} +4 -4
- package/dist/client/assets/TooltipViewport-BkvH9Kzg.js +2 -0
- package/dist/client/assets/{Virtualizer-Cy8TBFLE.js → Virtualizer-Dka4WQhw.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-B5ZV6VNj.js → WorkspaceBreadcrumb-DnyZiGsn.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-BTN44jG6.js → WorkspacePageContainer-OhHg0688.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-BaCxaW-R.js → WorkspacePageHeader-BUVfTGMv.js} +2 -2
- package/dist/client/assets/_chat-71Bl4UTO.js +45 -0
- package/dist/client/assets/{_chat.design-CmJbkQbO.js → _chat.design-L-wLlTQh.js} +2 -2
- package/dist/client/assets/{_chat.index-6PXQMCFp.js → _chat.index-Cqzn3tFu.js} +2 -2
- package/dist/client/assets/{_chat.new-DlduiMxM.js → _chat.new-CmqMNN1q.js} +3 -3
- package/dist/client/assets/_chat.pull-requests-Cv4Q6L5c.js +2 -0
- package/dist/client/assets/{abnfDiagram-VCTEODGH-DoT8_FXH.js → abnfDiagram-VCTEODGH-DGwfULSN.js} +2 -2
- package/dist/client/assets/{alert-CdZT7d18.js → alert-D4hu_q2y.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-BVmWArUl.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-HFFuwzkK.js → architectureDiagram-5GKGNRK7-fZiBVATu.js} +2 -2
- package/dist/client/assets/{assets-v9gHTSJ2.js → assets-Zca4LKSx.js} +2 -2
- package/dist/client/assets/{blockDiagram-I7D4REHJ-Df3TzjDM.js → blockDiagram-I7D4REHJ-Cs_imlrU.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-DY3kofkL.js → browserHistoryStore-9YCQpJy9.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-BHJMZNAn.js → browserLinkTarget-BnxzanaN.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-Bx6hu1pT.js → c4Diagram-7LVT6UL2-jxRP5rAE.js} +2 -2
- package/dist/client/assets/channel-DyV-uKW8.js +2 -0
- package/dist/client/assets/{checkbox-Q0bv8RvC.js → checkbox-PYOAN-IL.js} +2 -2
- package/dist/client/assets/{chunk-4HAMMTFA-DztP-PZY.js → chunk-4HAMMTFA-CD4tA6cX.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-uoFI_96z.js → chunk-75Z2AOVW-B4sXgwEx.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-D_0nd_m5.js → chunk-DU6HZSFF-DMXcgXT_.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-CVo5wWUL.js → chunk-F27PBJKO-CGf21cwH.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-DVJraU0z.js → chunk-GMAD6QVW-mPVRZq9Z.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-D1KDAS1u.js → chunk-GVQU2GXP-ChBHtvjy.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-B4iQ5Hh8.js → chunk-IMKFNOWR-BtgRygmA.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-Cg0GbrIO.js → chunk-L3NEJ4N5-REmklvQl.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-B4_CzVzL.js → chunk-OSK3NFVY-m-QXUYaT.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-DZOYqNgv.js → chunk-P2QGCYS3-CeefF5cA.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-4nivFn8h.js → chunk-POPQ4Y6H-C-_RXsmg.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-HbLsvJ11.js → chunk-PWAF6VOD-DflyqEaS.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-DFCZ-Krf.js → chunk-SHT3W25Y-R_Fg17nt.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-BvQW-XJf.js → chunk-SVP7TREG-BTfev3Yx.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-BkfJ58tX.js → chunk-TICWLB2K-C7WGvYp1.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-B0NhU5d_.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-B0NhU5d_.js +2 -0
- package/dist/client/assets/{color-picker-BWZhsiZJ.js → color-picker-D4_JMCD4.js} +2 -2
- package/dist/client/assets/{combobox-BdGKdc6i.js → combobox-CJgXDxx7.js} +2 -2
- package/dist/client/assets/{command-CIj8Rufv.js → command-Bdd9mlwd.js} +2 -2
- package/dist/client/assets/{composer-logic-CwhwgR76.js → composer-logic-De298qJ8.js} +4 -4
- package/dist/client/assets/{composerDraftUploads-DmqvTkwP.js → composerDraftUploads-DojMN9dn.js} +2 -2
- package/dist/client/assets/{connect-DwVFJmN3.js → connect-DqGJc6Zq.js} +2 -2
- package/dist/client/assets/{connect-agent-DEQZN1JX.js → connect-agent-Dss1yfYI.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-4JOEXKIi.js → cynefin-OW5HDTMX-DnGTy7Az.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-Drs4oZCg.js → cynefinDiagram-5FMLGOSQ-va9nLZtf.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-DKMbY0zs.js → dagre-GXQ25YYZ-D0QXSOGs.js} +2 -2
- package/dist/client/assets/{design-CNu64Zbr.js → design-C9BU7qd7.js} +2 -2
- package/dist/client/assets/{device-BLFqXUPD.js → device-CtPu58XW.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-BadxuMFL.js → diagram-S7CK7UJ4-cEFyiWjL.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-PnCAv0MQ.js → diagram-UQ7AKVKN-CNgu8Xrb.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-Cny8HiZ9.js → diagram-VSXAHHWV-BPPJ-FGp.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-CRUGb_uz.js → diagram-VX7I27RA-DmmJR7mF.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-3me_mb7C.js → diagram-Z3DM3KII-B2E7hDLy.js} +2 -2
- package/dist/client/assets/{dialog-Cgb4jap2.js → dialog-Bdi4gsq5.js} +2 -2
- package/dist/client/assets/{diffRendering-D5-wCc8J.js → diffRendering-Dam20Pyq.js} +2 -2
- package/dist/client/assets/{discovery-list-DXkskf2A.js → discovery-list-CPLxz_C8.js} +2 -2
- package/dist/client/assets/{dist-DJO3gX7B.js → dist-BDrj9x6z.js} +3 -3
- package/dist/client/assets/{draft-input-DQxVE9YJ.js → draft-input-CmGR2Zc1.js} +2 -2
- package/dist/client/assets/{duoViewer-DLfl5Kz-.js → duoViewer-D-r4O9JA.js} +2 -2
- package/dist/client/assets/{dynamic-BtC962Ss.js → dynamic-Cog_ioOk.js} +3 -3
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-CihgSPXH.js → ebnfDiagram-PWID7BFC-CdqWonW-.js} +2 -2
- package/dist/client/assets/{embeddedScripts-BYDwhk1c.js → embeddedScripts-twbjTzvu.js} +2 -2
- package/dist/client/assets/{empty-DHl8_LXy.js → empty-DeLw5x6B.js} +2 -2
- package/dist/client/assets/{entities-BmcX1OB3.js → entities-BhpgabTo.js} +2 -2
- package/dist/client/assets/{erDiagram-RLTQ6QDP-F6qh1mx2.js → erDiagram-RLTQ6QDP-Cj9VHvs2.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-CkU6Du-F.js +1 -0
- package/dist/client/assets/{fileLinks-D6tZCcrX.js → fileLinks-CCxqMBvI.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-XMXwSF13.js → fileTreeExpansion-N_KS64dO.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-BvniDpHa.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-YGfup7SG.js → ganttDiagram-EL5Y4UJY--tZCMTKs.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-CaAoEF2q.js → getDiffFileInput-wQ-J_p6Q.js} +2 -2
- package/dist/client/assets/{gitGraph-4MIJSDKK-lmNva9e6.js → gitGraph-4MIJSDKK-Dw_fdYPs.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-doYkHAhC.js → gitGraphDiagram-WWUBYQGX-mCz7mnTd.js} +2 -2
- package/dist/client/assets/{guideRunStore-DgsITXCn.js → guideRunStore-Dk9f0e_S.js} +2 -2
- package/dist/client/assets/hat-glasses-D7AuONMv.js +2 -0
- package/dist/client/assets/{htmlRender-BUb_wWp9.js → htmlRender-CSsSEPs1.js} +2 -2
- package/dist/client/assets/{index-CfFLhAIJ.js → index-B0OiR0Ol.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-D_A6DQid.js → info-A6RAGUB7-Dm2Q2YW8.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-BRwXCKSf.js → infoDiagram-27XIBGKW-CRahhr54.js} +2 -2
- package/dist/client/assets/{input-D_jxqXLR.js → input-CDBTiBJx.js} +2 -2
- package/dist/client/assets/{input-group-BM_USnbh.js → input-group-CHJvPXpi.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-C7LnJqXH.js → ishikawaDiagram-5VMMS53U-B8BPPaoL.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-BzOGENTa.js → journeyDiagram-3NMN7TZE-CyL0jLPT.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-COHFjuBb.js → kanban-definition-UXKFOSKX-cbdied2B.js} +2 -2
- package/dist/client/assets/{kbd-B2uytHus.js → kbd-BGpxKPhX.js} +2 -2
- package/dist/client/assets/{keybindings-CqjUKNRx.js → keybindings-4i_VvPsX.js} +2 -2
- package/dist/client/assets/{lazyRouteComponent-CByGrW41.js → lazyRouteComponent-DehCr3JG.js} +2 -2
- package/dist/client/assets/{line-CrPHt5m8.js → line-qgzYahVp.js} +2 -2
- package/dist/client/assets/{link-BjP3qTK9.js → link-DQSgeAPg.js} +2 -2
- package/dist/client/assets/{linkedPrompt-DcngDDYL.js → linkedPrompt-BZnl7hrP.js} +2 -2
- package/dist/client/assets/{main-DTxzRLjF.js → main-BgKiw-9f.js} +19 -19
- package/dist/client/assets/main-Dk22djvP.css +2 -0
- package/dist/client/assets/{mediaReference-DZXLlXcJ.js → mediaReference-BhzLpYF9.js} +2 -2
- package/dist/client/assets/{mediaSource-gPZdDlVt.js → mediaSource-Bk_NKKP2.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-DWtiDQYU.js → mermaid-parser.core-Dbb1WTb8.js} +4 -4
- package/dist/client/assets/{mermaid.core-BFUbfTlG.js → mermaid.core-Dtz8UzUI.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-DBtRzghf.js → mindmap-definition-YA3MSWOX-D7G9MbUQ.js} +2 -2
- package/dist/client/assets/number-field-j3MeOhOk.js +2 -0
- package/dist/client/assets/{observeResize-jHx61cGA.js → observeResize-3DufCT68.js} +2 -2
- package/dist/client/assets/{onboarding-DrdqSiQH.js → onboarding-CXb4LvSr.js} +2 -2
- package/dist/client/assets/{openFileInPreview-weURIMTS.js → openFileInPreview-B8KdOFV6.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-B8OhdeMF.js → p4ProjectFile-BrXxii5J.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-DJZVK2K9.js → packet-AYTQ26CC-3JoyTbIn.js} +1 -1
- package/dist/client/assets/{pair-gR_rTadh.js → pair-B6bpqsN5.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-DDF_R7aG.js → pegDiagram-XKGWAZYB-7VJjFwNR.js} +2 -2
- package/dist/client/assets/{pendingSendStore-CaGsppQi.js → pendingSendStore-DWZwD8Qe.js} +2 -2
- package/dist/client/assets/{phoneViewer-DxQG2wwP.js → phoneViewer-DDX1p0cN.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-DdceO1sC.js → pie-WAS4IAKB-CXeLZCFV.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-BW2s3CyE.js → pieDiagram-E7YTZNPT-BY1P4Uer.js} +2 -2
- package/dist/client/assets/{pierre-icons-CFlecESq.js → pierre-icons-CL-szz98.js} +2 -2
- package/dist/client/assets/{popover-2XJd3KEJ.js → popover-N-pn4OqA.js} +2 -2
- package/dist/client/assets/{preview-8bBtJM5H.js → preview-DL8QWLgw.js} +2 -2
- package/dist/client/assets/{preview-Dz5JGjMV.js → preview-HJcGsd2o.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-DMd0mA7a.js → previewMiniPlayerStore--CyDShCc.js} +2 -2
- package/dist/client/assets/primary-rJDv25B2.js +2 -0
- package/dist/client/assets/{primaryCloudLinkState-C-mUT5JX.js → primaryCloudLinkState-CzF2gmHs.js} +2 -2
- package/dist/client/assets/{projectFilesQueryState-Au75qUTL.js → projectFilesQueryState-DM9_vSRA.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-4NhfCuq1.js → projectScriptEditor-Pml2NkVE.js} +2 -2
- package/dist/client/assets/{providerSkills-BmzuNl-9.js → providerSkills-waACvYAJ.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-yPUei2ak.js → pullRequestDetail.logic-C-5flOlM.js} +2 -2
- package/dist/client/assets/{pullRequestIcons-e8EZW8_y.js → pullRequestIcons-B9gjoHK4.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-DJx8EOVl.js → pullRequestReviewStore-DuoLLEGp.js} +2 -2
- package/dist/client/assets/{pullRequests-BBLgbQTu.js → pullRequests-Br_9L7m4.js} +2 -2
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-Bf2672qf.js → quadrantDiagram-AXDQQJYC-DyZq_mGc.js} +2 -2
- package/dist/client/assets/queries-CuZx4Gi3.js +2 -0
- package/dist/client/assets/query-DrtB5w10.js +2 -0
- package/dist/client/assets/{radar-RG4KPBEZ-BiG5ioV7.js → radar-RG4KPBEZ-B21YfCpU.js} +1 -1
- package/dist/client/assets/{radio-group-BNV16qlg.js → radio-group-D5b1YnNe.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-DiRzkVRF.js → railroad-74A4TZTK-CaiYAzxA.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-ZJmaNeUq.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-C27brj-I.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-CukzLv2P.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-BschbLXV.js → railroadDiagram-O6MQD6OU-BZ0HuIrV.js} +2 -2
- package/dist/client/assets/{renderScheduler-BgjQdysj.js → renderScheduler-xdSjl5z7.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-DIHx2XKp.js → requirementDiagram-BXWQKSXE-C4OJUf9q.js} +2 -2
- package/dist/client/assets/{rightPanelStore-XfAJpUIA.js → rightPanelStore-BLSD3K6s.js} +2 -2
- package/dist/client/assets/{runtime-SBjACoAG.js → runtime-V62Oyi1q.js} +2 -2
- package/dist/client/assets/{runtime-DPOrcghx.js → runtime-mg6KxRIi.js} +3 -3
- package/dist/client/assets/runtimeModeConfig-CSStNUjU.js +2 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-B37UMb9Z.js → sankeyDiagram-P5KCCOFB-CDOw9Kul.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-l7uZVAyW.js → scheduledTasksSettings.logic-CrYg_vYi.js} +2 -2
- package/dist/client/assets/{scroll-area-DORwTFtw.js → scroll-area-CT3H0nmo.js} +2 -2
- package/dist/client/assets/{select-Bsag72zE.js → select-CqPGedM1.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BWWC8joI.js → sequenceDiagram-WJ2MYXX4-C9BMDi3Q.js} +2 -2
- package/dist/client/assets/{server-BNs54wEo.js → server-C8OpoOTL.js} +2 -2
- package/dist/client/assets/{session-CFXzhAhI.js → session-BAH17FBJ.js} +2 -2
- package/dist/client/assets/{session-logic-Zk8ix8K9.js → session-logic-BKiIVDj0.js} +2 -2
- package/dist/client/assets/{settings-D8GZZ79P.js → settings-BiLwAn9B.js} +2 -2
- package/dist/client/assets/settings.appearance-DB8azH3Q.js +2 -0
- package/dist/client/assets/settings.archived-BgPgmE5p.js +2 -0
- package/dist/client/assets/{settings.computer-use-CeLystec.js → settings.computer-use-DpcKtt2q.js} +2 -2
- package/dist/client/assets/settings.connections-RKFcKfpz.js +2 -0
- package/dist/client/assets/{settings.data-controls-D607JRzk.js → settings.data-controls-NjUH57Fr.js} +2 -2
- package/dist/client/assets/{settings.decisions-C0aFb-Kn.js → settings.decisions-B-HjeKFr.js} +2 -2
- package/dist/client/assets/{settings.designs-DLcNkfmF.js → settings.designs-DWbfEcuK.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-Bk9ZlqSV.js → settings.diagnostics-DY7e0sc8.js} +2 -2
- package/dist/client/assets/settings.general-dsLXGi9j.js +2 -0
- package/dist/client/assets/settings.integrations-BLYy6l0O.js +2 -0
- package/dist/client/assets/{settings.keybindings-B6cKpR8G.js → settings.keybindings-Bcl4KxN4.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-Cdo94wbK.js → settings.open-source-licenses-ZP9ezdc4.js} +2 -2
- package/dist/client/assets/{settings.plugins-B1SQQuJ1.js → settings.plugins-JjZ7Ptzj.js} +4 -4
- package/dist/client/assets/settings.projects-DhhMAw0F.js +4 -0
- package/dist/client/assets/settings.providers-sowFjazx.js +3 -0
- package/dist/client/assets/settings.scheduled-tasks-BIfprPPD.js +2 -0
- package/dist/client/assets/{settings.snap-shot-Dvf_zwkG.js → settings.snap-shot-B1go--dA.js} +2 -2
- package/dist/client/assets/{settings.source-control-twI2L8vl.js → settings.source-control-BL1tH7qk.js} +2 -2
- package/dist/client/assets/{settings.storage-af4E8nEQ.js → settings.storage-Bt_7LmzS.js} +2 -2
- package/dist/client/assets/{settingsLayout-BloLque1.js → settingsLayout-DaLF8Hfm.js} +3 -3
- package/dist/client/assets/{sidebar-CV_a9dPF.js → sidebar-BopQa8qy.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-DwnHgZqz.js → sidebarProjectGrouping-DQInVNnY.js} +2 -2
- package/dist/client/assets/{skeleton-Bq50sEah.js → skeleton-CzpSBxtu.js} +2 -2
- package/dist/client/assets/{sourceControl-wI790oDs.js → sourceControl-B9T0IPlu.js} +2 -2
- package/dist/client/assets/{sourceControlClients-CKlG76Mu.js → sourceControlClients-BgBu2ayZ.js} +2 -2
- package/dist/client/assets/{spinner-Bzrp5oww.js → spinner-BkmZz-kc.js} +2 -2
- package/dist/client/assets/square-plus-B9j2jkOq.js +2 -0
- package/dist/client/assets/{standalone-page-BGqmgLmI.js → standalone-page-CpVawPkl.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-D8v7Nh9y.js → stateDiagram-D77RDMKH-B032MgyK.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-CEPamUoD.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-8aPT3vMS.js → swimlanes-42K2YHIH-Bn6WbS8G.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-D1eJox12.js +9 -0
- package/dist/client/assets/{terminal-links-DHw7nXFF.js → terminal-links-D1lZWzBL.js} +2 -2
- package/dist/client/assets/{terminalSessions-BVJWTQ-r.js → terminalSessions-BjIB3wg1.js} +2 -2
- package/dist/client/assets/{textarea-wDfYVvpo.js → textarea-UGuOTqiM.js} +2 -2
- package/dist/client/assets/{themePalette-CLR_iiPi.js → themePalette-DELPwUM7.js} +2 -2
- package/dist/client/assets/{timeline-definition-24CTP7MA-qKze8CmD.js → timeline-definition-24CTP7MA-RGCq2eyK.js} +2 -2
- package/dist/client/assets/toast-B2B2ECBW.js +2 -0
- package/dist/client/assets/{toggle-ExdxBJoI.js → toggle-DTjg9Rvs.js} +2 -2
- package/dist/client/assets/{toggle-group-Clz6KDtW.js → toggle-group--s5MIuQv.js} +2 -2
- package/dist/client/assets/{tooltip-D-SzZpgJ.js → tooltip-CuJiZzK7.js} +2 -2
- package/dist/client/assets/{treeView-Q6P3EWNA-DHv3H0LY.js → treeView-Q6P3EWNA-CkhQE3UU.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-B3OEzWME.js → treemap-WGGIJYW6-DjBfz9t-.js} +1 -1
- package/dist/client/assets/{uiStateStore-DBCETYy3.js → uiStateStore-TZf81BHB.js} +2 -2
- package/dist/client/assets/usage-Dp-M0_Do.js +2 -0
- package/dist/client/assets/{usageAccess-ZgmQIiWk.js → usageAccess-CkJJNWUS.js} +2 -2
- package/dist/client/assets/{usageFormat-C54RJiV9.js → usageFormat-CUKLjyKC.js} +2 -2
- package/dist/client/assets/{usageShortcuts-B3af64g0.js → usageShortcuts-DMVEjVe8.js} +2 -2
- package/dist/client/assets/{use-atom-command-BCNOgemk.js → use-atom-command-BWLbyoVN.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-BG5RCb1o.js → useAriaLabelledBy-B4zsIPk4.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-B116cHue.js → useHandleNewThread-DLupIP68.js} +2 -2
- package/dist/client/assets/{useLocation-7uJHNdPS.js → useLocation-XbiRdmmb.js} +2 -2
- package/dist/client/assets/useNavigate-CSxB1zLo.js +2 -0
- package/dist/client/assets/{useNavigateBack-DpCLZais.js → useNavigateBack-BDMTgSKu.js} +2 -2
- package/dist/client/assets/{useP4ConnectAuthPrompt-qVqxcT08.js → useP4ConnectAuthPrompt-C18iYCzm.js} +2 -2
- package/dist/client/assets/{useParams-Br7l7qPU.js → useParams-DNmNCHjx.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-SyBwmFSK.js → usePermissionStatus-DBybaxyT.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-CdOseawP.js → usePullRequestActions-CWCz_AQW.js} +3 -3
- package/dist/client/assets/{useRegisterFieldControl-qXOWsCr5.js → useRegisterFieldControl-Cuo8UAhZ.js} +2 -2
- package/dist/client/assets/useScopedModelAvailability-D1MGYLGR.js +2 -0
- package/dist/client/assets/useSettings-BEKkRzL1.js +3 -0
- package/dist/client/assets/utils-B0w8dSf5.js +37 -0
- package/dist/client/assets/{vcsRefInvalidation-BPBh7p3I.js → vcsRefInvalidation-Dx_cpFEA.js} +2 -2
- package/dist/client/assets/{vennDiagram-4TSXK5OY-Yh5vCDok.js → vennDiagram-4TSXK5OY-D0wsDnkf.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-BeDK7hdA.js → wardley-WFR3VGLG-BT7dOBGA.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-BXdOv1zU.js → wardleyDiagram-VM6X3IG4-CgbZOhZ-.js} +2 -2
- package/dist/client/assets/{welcome-wbx9XdLq.js → welcome-D3Kttsfe.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-mciO_D_V.js → xychartDiagram-S5SC5T6Z-D3RW49u7.js} +2 -2
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-Cc8kVCUa.js +0 -2
- package/dist/client/assets/ChatMarkdown-1bLgD-eb.js +0 -65
- package/dist/client/assets/ComposerPromptEditor-C462LHSn.js +0 -204
- package/dist/client/assets/DevicePanel-DoPmTqL7.js +0 -2
- package/dist/client/assets/DiffPanel-DKvM9n17.js +0 -2
- package/dist/client/assets/Input-B0ah2lnC.js +0 -2
- package/dist/client/assets/PanelLayoutControls-CJ69MZ4v.js +0 -216
- package/dist/client/assets/PreviewPanel-pImDpkWH.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-DY_6-1vn.js +0 -2
- package/dist/client/assets/ProviderModelPicker-DqLbhWdo.js +0 -2
- package/dist/client/assets/ScheduledTasksSettings-DY0ICix9.js +0 -4
- package/dist/client/assets/TooltipViewport-DJ2VRKCt.js +0 -2
- package/dist/client/assets/_chat-CWIHenSN.js +0 -45
- package/dist/client/assets/_chat.pull-requests-BVZO85Vs.js +0 -2
- package/dist/client/assets/architecture-7GRP2DOG-ZioZXeD8.js +0 -1
- package/dist/client/assets/channel-BY4Mhil-.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-VEcRygcq.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-VEcRygcq.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-CFX4D-ej.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-fTwgLjbL.js +0 -1
- package/dist/client/assets/hat-glasses-XqtwpGM5.js +0 -2
- package/dist/client/assets/main-Dwir4BoC.css +0 -2
- package/dist/client/assets/number-field-Dj0uYTJQ.js +0 -2
- package/dist/client/assets/primary-CREvWUGh.js +0 -2
- package/dist/client/assets/queries-BJzayyNh.js +0 -2
- package/dist/client/assets/query-BFP47tsD.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-CyBZRJjf.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-7jpgdtqn.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-Bhvv4cdb.js +0 -1
- package/dist/client/assets/runtimeModeConfig-sQBlbgY3.js +0 -2
- package/dist/client/assets/settings.appearance-BGApKe_v.js +0 -2
- package/dist/client/assets/settings.archived-QGKwBjUx.js +0 -2
- package/dist/client/assets/settings.connections-56mhuPd9.js +0 -2
- package/dist/client/assets/settings.general-D8pNduE9.js +0 -2
- package/dist/client/assets/settings.integrations-CyPCeqvd.js +0 -2
- package/dist/client/assets/settings.projects-HuCRzR1Z.js +0 -4
- package/dist/client/assets/settings.providers-BsfVxPA5.js +0 -3
- package/dist/client/assets/settings.scheduled-tasks-Chug6jlO.js +0 -2
- package/dist/client/assets/square-plus-CeFmBUPF.js +0 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DymT6Xtk.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-CjvsefHc.js +0 -9
- package/dist/client/assets/toast-CfeQA1vM.js +0 -2
- package/dist/client/assets/usage-C4KIRe38.js +0 -2
- package/dist/client/assets/useNavigate-DCj963r2.js +0 -2
- package/dist/client/assets/useScopedModelAvailability-DL2tq_KI.js +0 -2
- package/dist/client/assets/useSettings-DkjziVJm.js +0 -3
- package/dist/client/assets/utils-hgbJ2TVM.js +0 -37
package/dist/client/assets/{ebnfDiagram-PWID7BFC-CihgSPXH.js → ebnfDiagram-PWID7BFC-CdqWonW-.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as e,t}from"./mermaid-parser.core-
|
|
2
|
-
//# sourceMappingURL=ebnfDiagram-PWID7BFC-
|
|
1
|
+
import{f as e,t}from"./mermaid-parser.core-Dbb1WTb8.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-DMXcgXT_.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-BTfev3Yx.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-Dtz8UzUI.js";var c=e().RailroadEbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),u=n(e=>{let t=e.elements.map(p);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return l(e.element);case`EbnfOptional`:return{type:`optional`,element:l(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),f=n((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},d(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),p=n(e=>e.postfixes.reduce((e,t)=>f(e,t),d(e.base)),`transformTerm`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[EBNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[EBNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
|
|
2
|
+
//# sourceMappingURL=ebnfDiagram-PWID7BFC-CdqWonW-.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{va as e}from"./main-
|
|
1
|
+
import{va as e}from"./main-BgKiw-9f.js";function t(e){return e>=48&&e<=55}function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e,t){try{return String.fromCodePoint(e)}catch{return t}}function i(e,i,a){let o=i,s=``;for(;o<a&&e.charCodeAt(o)!==39;){if(e.charCodeAt(o)!==92||o+1>=a){let t=o;for(;o<a;){let t=e.charCodeAt(o);if(t===39||t===92&&o+1<a)break;o++}s+=e.slice(t,o);continue}let i=o++,c=e[o++];switch(c){case`a`:s+=`\x07`;break;case`b`:s+=`\b`;break;case`e`:case`E`:s+=`\x1B`;break;case`f`:s+=`\f`;break;case`n`:s+=`
|
|
2
2
|
`;break;case`r`:s+=`\r`;break;case`t`:s+=` `;break;case`v`:s+=`\v`;break;case`\\`:s+=`\\`;break;case`'`:s+=`'`;break;case`"`:s+=`"`;break;case`?`:s+=`?`;break;case`
|
|
3
3
|
`:break;case`c`:{let t=o<a?e.charCodeAt(o):39;if(t===39){s+=e.slice(i,o);break}if(o++,t===92){let t=o<a&&e.charCodeAt(o)===92;t&&o++,s+=``,!t&&o<a&&(s+=e[o],o++);break}s+=String.fromCharCode(t===63?127:t&31);break}case`x`:case`u`:case`U`:{let t=o,l=c===`x`?2:c===`u`?4:8;for(;o<a&&o-t<l&&n(e.charCodeAt(o));)o++;if(o===t){s+=`\\${c}`;break}let u=e.slice(i,o);s+=r(Number.parseInt(e.slice(t,o),16),u);break}default:if(!t(c.charCodeAt(0))){s+=`\\${c}`;break}for(;o<a&&o-i-1<3&&t(e.charCodeAt(o));)o++;s+=String.fromCharCode(Number.parseInt(e.slice(i+1,o),8)&255)}}let c=o<a;return c&&o++,{value:s,end:o,closed:c}}function a(e){switch(e){case`,`:return 1;case`=`:case`+=`:case`-=`:case`*=`:case`/=`:case`%=`:case`<<=`:case`>>=`:case`&=`:case`|=`:case`^=`:return 2;case`||`:return 4;case`&&`:return 5;case`|`:return 6;case`^`:return 7;case`&`:return 8;case`==`:case`!=`:return 9;case`<`:case`<=`:case`>`:case`>=`:return 10;case`<<`:case`>>`:return 11;case`+`:case`-`:return 12;case`*`:case`/`:case`%`:return 13;case`**`:return 14;default:return-1}}function o(e){switch(e){case`=`:case`+=`:case`-=`:case`*=`:case`/=`:case`%=`:case`<<=`:case`>>=`:case`&=`:case`|=`:case`^=`:case`**`:return!0;default:return!1}}function s(e,t=0,n){let r=0,i=e.length,s=n?.commandExpansions.length??0,c=n?.embeddedWords.length??0;function l(r,i,a=!1){let o={type:`ArithmeticWord`,pos:r+t,end:i+t,value:e.slice(r,i),parts:void 0};return a&&n?.embeddedWords.push(o),o}function u(){for(;r<i;){let t=e.charCodeAt(r);if(t===32||t===9||t===10)r++;else break}}function d(){if(r>=i)return null;let t=e.charCodeAt(r),n=r+1<i?e.charCodeAt(r+1):0,a=r+2<i?e.charCodeAt(r+2):0;switch(t){case 44:return r++,`,`;case 61:return n===61?(r+=2,`==`):(r++,`=`);case 33:return n===61?(r+=2,`!=`):null;case 60:return n===60?a===61?(r+=3,`<<=`):(r+=2,`<<`):n===61?(r+=2,`<=`):(r++,`<`);case 62:return n===62?a===61?(r+=3,`>>=`):(r+=2,`>>`):n===61?(r+=2,`>=`):(r++,`>`);case 43:return n===61?(r+=2,`+=`):n===43?null:(r++,`+`);case 45:return n===61?(r+=2,`-=`):n===45?null:(r++,`-`);case 42:return n===42?(r+=2,`**`):n===61?(r+=2,`*=`):(r++,`*`);case 47:return n===61?(r+=2,`/=`):(r++,`/`);case 37:return n===61?(r+=2,`%=`):(r++,`%`);case 124:return n===124?(r+=2,`||`):n===61?(r+=2,`|=`):(r++,`|`);case 38:return n===38?(r+=2,`&&`):n===61?(r+=2,`&=`):(r++,`&`);case 94:return n===61?(r+=2,`^=`):(r++,`^`);case 63:return r++,`?`;default:return null}}function f(t){let n=p();for(;u(),!(r>=i);){let s=r,c=d();if(!c)break;if(c===`?`){if(3<t){r=s;break}let a=f(1);u(),r<i&&e.charCodeAt(r)===58&&r++;let o=f(3);n={type:`ArithmeticTernary`,pos:n.pos,end:o.end,test:n,consequent:a,alternate:o};continue}let l=a(c);if(l<t){r=s;break}let p=f(o(c)?l:l+1);n={type:`ArithmeticBinary`,pos:n.pos,end:p.end,operator:c,left:n,right:p}}return n}function p(){if(u(),r>=i)return l(r,r);let n=r,a=e.charCodeAt(r),o=r+1<i?e.charCodeAt(r+1):0;if(a===43&&o===43){r+=2;let e=p();return{type:`ArithmeticUnary`,pos:n+t,end:e.end,operator:`++`,operand:e,prefix:!0}}if(a===45&&o===45){r+=2;let e=p();return{type:`ArithmeticUnary`,pos:n+t,end:e.end,operator:`--`,operand:e,prefix:!0}}if(a===33){r++;let e=p();return{type:`ArithmeticUnary`,pos:n+t,end:e.end,operator:`!`,operand:e,prefix:!0}}if(a===126){r++;let e=p();return{type:`ArithmeticUnary`,pos:n+t,end:e.end,operator:`~`,operand:e,prefix:!0}}if(a===43&&o!==43&&o!==61){r++;let e=p();return{type:`ArithmeticUnary`,pos:n+t,end:e.end,operator:`+`,operand:e,prefix:!0}}if(a===45&&o!==45&&o!==61){r++;let e=p();return{type:`ArithmeticUnary`,pos:n+t,end:e.end,operator:`-`,operand:e,prefix:!0}}return m()}function m(){let n=h();if(u(),r+1<i){let i=e.charCodeAt(r),a=e.charCodeAt(r+1);if(i===43&&a===43)return r+=2,{type:`ArithmeticUnary`,pos:n.pos,end:r+t,operator:`++`,operand:n,prefix:!1};if(i===45&&a===45)return r+=2,{type:`ArithmeticUnary`,pos:n.pos,end:r+t,operator:`--`,operand:n,prefix:!1}}return n}function h(){if(u(),r>=i)return l(r,r);let a=e.charCodeAt(r);if(a===40){let n=r;r++;let a=f(0);return u(),r<i&&e.charCodeAt(r)===41&&r++,{type:`ArithmeticGroup`,pos:n+t,end:r+t,expression:a}}if(a===36){let e=r,a=n?.commandExpansions.length??0,o=n?.embeddedWords.length??0,s=g(),c=n?.findArithmeticWordEnd?.(e+t,t+i)??r+t;return c>r+t?(n&&(n.commandExpansions.length=a,n.embeddedWords.length=o),r=c-t,l(e,r,!0)):s}if(a===96||a===34||a===39){let e=r;return r=(n?.findArithmeticWordEnd?.(e+t,t+i)??e+t+1)-t,l(e,r,!0)}let o=r,s=n?.embeddedWords.length??0,c=_(),d=n?.findArithmeticWordEnd?.(o+t,t+i)??r+t;return d>r+t?(n&&(n.embeddedWords.length=s),r=d-t,l(o,r,!0)):c}function g(){let a=r;if(r++,r>=i)return l(a,r);let o=e.charCodeAt(r);if(o===40){if(r+1<i&&e.charCodeAt(r+1)===40){let o=n?.findArithmeticExpansionEnd(a+t,t+i)??-1;if(o!==-1)r=o-t;else{r+=2;let t=1;for(;r<i&&t>0;)e.charCodeAt(r)===40&&e.charCodeAt(r+1)===40?(t++,r+=2):e.charCodeAt(r)===41&&e.charCodeAt(r+1)===41?(t--,r+=2):r++}}else{r++;let o=n?.findClosingParenthesis(r+t,t+i)??-1;if(o!==-1)r=o-t+1;else{let t=1;for(;r<i&&t>0;){let n=e.charCodeAt(r++);n===40?t++:n===41&&t--}}let s=e.slice(a,r),c={type:`ArithmeticCommandExpansion`,pos:a+t,end:r+t,text:s,script:void 0};return n?.commandExpansions.push(c),c}}else if(o===123){let a=n?.findClosingBrace(r+t+1,t+i)??-1;if(a!==-1)r=a-t+1;else{r++;let t=1;for(;r<i&&t>0;){let n=e.charCodeAt(r++);n===123?t++:n===125&&t--}}}else for(;r<i;){let t=e.charCodeAt(r);if(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95)r++;else break}return l(a,r,o===40||o===123)}function _(){let a=r;for(;r<i;){let t=e.charCodeAt(r);if(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95||t===35)r++;else break}if(r>a&&r<i&&e.charCodeAt(r)===91){let o=n?.findClosingBracket?.(r+t+1,t+i)??-1;if(o!==-1)r=o-t+1;else{r++;let t=1;for(;r<i&&t>0;){let n=e.charCodeAt(r);n===91?t++:n===93&&t--,r++}}return l(a,r,!0)}return r===a&&r++,l(a,r)}if(u(),r>=i)return null;let v=r,y=f(0);if(u(),r<i){n&&(n.commandExpansions.length=s,n.embeddedWords.length=c);let t=i;for(;t>v;){let n=e.charCodeAt(t-1);if(n!==32&&n!==9&&n!==10)break;t--}return l(v,t,n!==void 0)}return y}function c(e){let t=``;for(let n of e)t+=n.type===`Literal`?n.value:n.text;return t}function l(e){let t=e.indexOf(`\\`);if(t===-1)return e;let n=``,r=0;for(let i=t;i<e.length;i++)if(e.charCodeAt(i)===92){if(n+=e.slice(r,i),i++,i>=e.length){n+=`\\`,r=i;break}e.charCodeAt(i)!==10&&(n+=e[i]),r=i+1}return n+e.slice(r)}function u(e){let t=1;for(;e[t]===`\\`&&e[t+1]===`
|
|
4
4
|
`;)t+=2;return t===1||e[t]!==`(`?e:e[0]+e.slice(t)}var d=class e{static _resolveWord;type=`Word`;text;pos;end;#e;#t;#n;#r;#i=null;constructor(t,n,r,i,a,o=0){this.text=t,this.pos=n,this.end=r,this.#e=i,this.#t=a??e._resolveWord,this.#n=o,this.#r=i===void 0?void 0:null}get value(){if(this.#i===null){let e=this.parts;if(!e)this.#i=l(this.text);else{let t=``;for(let n of e)switch(n.type){case`Literal`:case`SingleQuoted`:case`AnsiCQuoted`:t+=n.value;break;case`DoubleQuoted`:case`LocaleString`:t+=c(n.parts);break;case`CommandExpansion`:t+=n.text[0]===`$`?u(n.text):n.text;break;case`ExtendedGlob`:t+=u(n.text);break;default:t+=n.text}this.#i=t}}return this.#i}get parts(){return this.#r===null&&(this.#r=this.#t(this.#e??``,this,this.#n)??void 0),this.#r}set parts(e){this.#r=e??void 0}toJSON(){return{type:this.type,text:this.text,pos:this.pos,end:this.end,parts:this.parts,value:this.value}}},f={Word:0,Assignment:1,Semi:2,Newline:3,Pipe:4,And:5,Or:6,Amp:7,LParen:8,RParen:9,LBrace:10,RBrace:11,Bang:12,If:13,Then:14,Else:15,Elif:16,Fi:17,Do:18,Done:19,For:20,While:21,Until:22,In:23,Case:24,Esac:25,Function:26,DoubleSemi:27,SemiAmp:28,DoubleSemiAmp:29,Select:30,DblLBracket:31,DblRBracket:32,EOF:33,ArithCmd:34,Coproc:35,Redirect:36},p=class{token=f.EOF;_value=``;_owner;pos=0;end=0;fileDescriptor=void 0;variableName=void 0;descriptorEnd=0;delimiterQuoted=!1;content=void 0;targetPos=0;targetEnd=0;assignmentOperatorPos=-1;raw=!1;keywordEligible=!1;constructor(e=null){this._owner=e}get value(){return this._value??=this._owner===null?``:this._owner._tokenValue(this.pos,this.end,this.raw)}set value(e){this._value=e}reset(){this.token=f.EOF,this._value=``,this.pos=0,this.end=0,this.fileDescriptor=void 0,this.variableName=void 0,this.descriptorEnd=0,this.delimiterQuoted=!1,this.content=void 0,this.targetPos=0,this.targetEnd=0,this.assignmentOperatorPos=-1,this.raw=!1,this.keywordEligible=!1}copyFrom(e){this.token=e.token,this._value=e._value,this.pos=e.pos,this.end=e.end,this.fileDescriptor=e.fileDescriptor,this.variableName=e.variableName,this.descriptorEnd=e.descriptorEnd,this.delimiterQuoted=e.delimiterQuoted,this.content=e.content,this.targetPos=e.targetPos,this.targetEnd=e.targetEnd,this.assignmentOperatorPos=e.assignmentOperatorPos,this.raw=e.raw,this.keywordEligible=e.keywordEligible}},m=new Map([[`if`,f.If],[`then`,f.Then],[`else`,f.Else],[`elif`,f.Elif],[`fi`,f.Fi],[`do`,f.Do],[`done`,f.Done],[`for`,f.For],[`while`,f.While],[`until`,f.Until],[`in`,f.In],[`case`,f.Case],[`esac`,f.Esac],[`function`,f.Function],[`select`,f.Select],[`coproc`,f.Coproc],[`!`,f.Bang],[`{`,f.LBrace],[`}`,f.RBrace]]),h=new Uint8Array(128);h[124]=1,h[38]=1,h[59]=1,h[40]=1,h[41]=1,h[60]=1,h[62]=1,h[32]=1,h[9]=1,h[10]=1,h[92]=2,h[39]=2,h[34]=2,h[36]=2,h[96]=2,h[123]=2;function g(e,t,n){for(;t+1<n&&e.charCodeAt(t)===92&&e.charCodeAt(t+1)===10;)t+=2;return t}var _=new Uint8Array(128);for(let e of[9,10,32,33,37,38,40,41,42,43,44,45,47,58,60,61,62,63,94,124])_[e]=1;function v(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(t===92||t===39||t===34||t===36||t===96||(t===60||t===62)&&r+1<n&&e.charCodeAt(r+1)===40)return!0}return!1}function y(e,t,n=!1,r){let i=0,a=0;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);if(s===92){o++;continue}if(s===123){i++;continue}if(s===125){i>0&&i--;continue}if(s===39){for(o++;o<e.length&&e.charCodeAt(o)!==39;)o++;continue}if(s===34){for(o++;o<e.length;){let t=e.charCodeAt(o);if(t===34)break;if(t===92){o+=2;continue}let n=r?.(o,!0)??o;if(n>o){o=n;continue}o++}continue}let c=r?.(o,!1)??o;if(c>o){o=c-1;continue}if(n&&i===0){if(s===63){a++;continue}if(s===58&&a>0){a--;continue}}if(s===t&&i===0)return o}return-1}var b=new Uint8Array(128);for(let e=97;e<=122;e++)b[e]=3;for(let e=65;e<=90;e++)b[e]=3;for(let e=48;e<=57;e++)b[e]=2;b[95]=3;var x=new Uint8Array(128);x[63]=1,x[64]=1,x[42]=1,x[43]=1,x[33]=1,x[61]=1;var ee={63:`?`,64:`@`,42:`*`,43:`+`,33:`!`};function S(e){let t=e.type;return t===`Literal`||t===`SimpleExpansion`||t===`ParameterExpansion`||t===`CommandExpansion`||t===`ArithmeticExpansion`}function te(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(t<48||t>57)return!1}return n>t}var C=-1,w=0,ne=1,T=2,E=3,D=4;function O(e){return e<C}function k(e){return-e-2}function A(e,t,n,r){let i=r;for(let r=t;r<n&&i>=0;r++){let t=e.charCodeAt(r);if(i>=D)t===91?i++:t===93&&--i===D&&(i=T);else if(i===w)i=t<128&&b[t]&1?ne:C;else if(i===ne){if(t<128&&b[t]&2)continue;i=t===91?5:t===43?E:t===61?-r-2:C}else i=i===T&&t===43?E:t===61?-r-2:C}return i}var re=[];function j(e,t,n,r=0,i=0){e.token=t,e._value=n,e.pos=r,e.end=i,e.fileDescriptor=void 0,e.variableName=void 0,e.descriptorEnd=0,e.delimiterQuoted=!1,e.content=void 0,e.assignmentOperatorPos=-1,e.raw=!1,e.keywordEligible=!1}function M(e,t,n,r,i){e.token=t,e._value=null,e.pos=n,e.end=r,e.fileDescriptor=void 0,e.variableName=void 0,e.descriptorEnd=0,e.delimiterQuoted=!1,e.content=void 0,e.assignmentOperatorPos=-1,e.raw=i,e.keywordEligible=!1}function ie(e,t,n){switch(e.charCodeAt(t)){case 33:return n===1?f.Bang:void 0;case 123:return n===1?f.LBrace:void 0;case 125:return n===1?f.RBrace:void 0;case 105:{if(n!==2)return;let r=e.charCodeAt(t+1);return r===102?f.If:r===110?f.In:void 0}case 102:return n===2?e.charCodeAt(t+1)===105?f.Fi:void 0:n===3?e.startsWith(`for`,t)?f.For:void 0:n===8&&e.startsWith(`function`,t)?f.Function:void 0;case 116:return n===4&&e.startsWith(`then`,t)?f.Then:void 0;case 101:return n===4?e.startsWith(`else`,t)?f.Else:e.startsWith(`elif`,t)?f.Elif:e.startsWith(`esac`,t)?f.Esac:void 0:void 0;case 100:return n===2?e.charCodeAt(t+1)===111?f.Do:void 0:n===4&&e.startsWith(`done`,t)?f.Done:void 0;case 99:return n===4?e.startsWith(`case`,t)?f.Case:void 0:n===6&&e.startsWith(`coproc`,t)?f.Coproc:void 0;case 119:return n===5&&e.startsWith(`while`,t)?f.While:void 0;case 117:return n===5&&e.startsWith(`until`,t)?f.Until:void 0;case 115:return n===6&&e.startsWith(`select`,t)?f.Select:void 0;default:return}}var N={Normal:0,CommandStart:1,TestMode:2,CommandPrefix:3,Declaration:4,ArrayElement:5};function ae(e,t,n){let r=t+1<n?e.charCodeAt(t+1):0;if(r<=32||r===125)return-1;let i=1,a=!1,o=t+1;for(;o<n&&i>0;){let t=e.charCodeAt(o);if(t===123)i++;else if(t===125){if(--i===0)break}else if(t<=32||t===59||t===124||t===38)return-1;else i===1&&(t===44||t===46&&o+1<n&&e.charCodeAt(o+1)===46)&&(a=!0);t===92&&o++,o++}return i===0&&a?o+1:-1}var P=class e{src;srcEnd;parenBoundary;pos;current;nextState;hasPeek;pendingHereDocs;collectedExpansions;_errors=null;_buildParts=!1;_buildValue=!1;_nestingDepth=0;constructor(e,t=0,n=e.length,r=!1){if(this.src=e,this.srcEnd=n,this.parenBoundary=r,this.pos=t,this.current=new p(this),this.nextState=new p(this),this.hasPeek=!1,this.pendingHereDocs=null,this.collectedExpansions=null,t===0&&e.charCodeAt(0)===35&&e.charCodeAt(1)===33){let t=e.indexOf(`
|
|
@@ -11,4 +11,4 @@ import{va as e}from"./main-DTxzRLjF.js";function t(e){return e>=48&&e<=55}functi
|
|
|
11
11
|
`);t=e===-1?this.source:this.source.slice(0,e)}let n=this.list();for(;;){let e=this.tok.peek(N.CommandStart);if(e.token===f.EOF||(this.error(`unexpected token '${e.value}'`,e.pos),!H[e.token]&&e.token!==f.In))break;this.tok.next(N.CommandStart);let t=this.tok.peek(N.CommandStart).token;if(t!==f.Semi&&t!==f.Newline&&t!==f.Amp)break;for(;t===f.Semi||t===f.Newline||t===f.Amp;)this.tok.next(N.CommandStart),t=this.tok.peek(N.CommandStart).token;let r=this.list();for(let e=0;e<r.length;e++)n.push(r[e])}let r=this.tok._errors;if(r!==null&&r.length>0){let e=this.errors??=[];for(let t=0;t<r.length;t++)e.push(r[t])}return this.errors!==null&&this.errors.length>1&&this.errors.sort((e,t)=>e.pos-t.pos),{type:`Script`,pos:e,end:this.end,shebang:t,commands:n,errors:this.errors??void 0}}error(e,t){(this.errors??=[]).push({message:e,pos:t})}skipSemi(){this.tok.peek(N.Normal).token===f.Semi&&this.tok.next(N.Normal)}accept(e,t=N.Normal){return this.tok.peek(t).token===e?this.tok.next(t):null}acceptEnd(e,t=N.Normal){return this.tok.peek(t).token===e?this.tok.next(t).end:-1}skipNewlines(e=N.Normal){for(;this.tok.peek(e).token===f.Newline;)this.tok.next(e)}makeStatement(e){return{type:`Statement`,pos:e.pos,end:e.end,command:e,background:void 0}}list(){let e=[];this.skipNewlines(N.CommandStart);let t=this.tok.peek(N.CommandStart).token;if(H[t]||!G[t])return e;let n=this.andOr();for(n&&e.push(this.makeStatement(n));t=this.tok.peekFollow(U).token,t===f.Semi||t===f.Newline||t===f.Amp;){let n=t===f.Amp,r=this.tok.next(N.Normal).end;if(n){let t=e[e.length-1];t.background=!0,t.end=r}if(this.skipNewlines(N.CommandStart),t=this.tok.peek(N.CommandStart).token,H[t]||!G[t])break;let i=this.andOr();i&&e.push(this.makeStatement(i))}return e}andOr(){let e=this.pipeline();if(!e)return null;let t=this.tok.peek(N.Normal).token;if(t!==f.And&&t!==f.Or)return e;let n=[e],r=[];do{let e=this.tok.next(N.Normal),i=e.token===f.And?`&&`:`||`;this.skipNewlines(N.CommandStart);let a=this.pipeline();if(!a){this.error(`expected command after '${i}'`,e.end);break}r.push(i),n.push(a),t=this.tok.peek(N.Normal).token}while(t===f.And||t===f.Or);return{type:`AndOr`,pos:e.pos,end:n[n.length-1].end,commands:n,operators:r}}withRedirects(e){let t=this.collectTrailingRedirects();return t.length===0?e:{type:`Redirected`,pos:e.pos,end:t[t.length-1].end,command:e,redirects:t}}pipeline(){let e,t=!1;for(;;){let n=this.tok.peek(N.CommandStart),r=n.token===f.Word&&n.keywordEligible&&n.value===`time`;if(n.token!==f.Bang&&!r)break;let i=this.tok.next(N.CommandStart),a=i.pos,o=i.end,s,c;if(r){let e=this.tok.peek(N.CommandStart);e.token===f.Word&&e.keywordEligible&&e.value===`-p`&&(this.tok.next(N.CommandStart),s={pos:e.pos,end:e.end},e=this.tok.peek(N.CommandStart)),e.token===f.Word&&e.keywordEligible&&e.value===`--`&&(this.tok.next(N.CommandStart),c={pos:e.pos,end:e.end})}if(e===void 0&&(e=[]),e.length+this.syntaxDepth===256){t||this.error(`maximum pipeline prefix nesting depth exceeded`,a),t=!0;continue}e.push(r?{type:`Time`,pos:a,end:c?.end??s?.end??o,keywordEnd:o,posix:s,endOfOptions:c,command:void 0}:{type:`Negation`,pos:a,end:o,keywordEnd:o,command:void 0})}if(!e)return this.pipelineCommands();this.syntaxDepth+=e.length;let n=this.pipelineCommands();this.syntaxDepth-=e.length;for(let t=e.length-1;t>=0;t--){let r=e[t];r.command=n??void 0,n&&(r.end=n.end),n=r}return n}pipelineCommands(){let e=this.command();if(!e)return null;if(this.tok.peek(N.Normal).token!==f.Pipe)return e;let t=[e],n=[];for(;this.tok.peek(N.Normal).token===f.Pipe;){let e=this.tok.next(N.Normal),r=e.value===`|&`?`|&`:`|`;this.skipNewlines(N.CommandStart);let i=this.command();if(!i){this.error(`expected command after '${r}'`,e.end);break}n.push(r),t.push(i)}return t.length===1?t[0]:{type:`Pipeline`,pos:e.pos,end:t[t.length-1].end,commands:t,operators:n}}command(){let e;switch(this.tok.peek(N.CommandStart).token){case f.LParen:e=this.subshell();break;case f.LBrace:e=this.braceGroup();break;case f.If:e=this.ifClause();break;case f.For:e=this.forClause();break;case f.While:e=this.whileClause();break;case f.Until:e=this.untilClause();break;case f.Case:e=this.caseClause();break;case f.Function:return this.functionDef();case f.Select:e=this.selectClause();break;case f.DblLBracket:e=this.testCommand();break;case f.ArithCmd:e=this.arithCommand();break;case f.Coproc:return this.coprocCommand();case f.Word:case f.Assignment:case f.Redirect:return this.simpleCommandOrFunction();default:return null}return this.withRedirects(e)}collectTrailingRedirects(){let e=_e;for(;this.tok.peekFollow(U).token===f.Redirect;)e===_e&&(e=[]),e.push(this.readRedirect(N.Normal));return e}arithCommand(){let e=this.tok.next(N.CommandStart);return new fe(e.pos,e.end,e.value,this.source,this.depth)}coprocCommand(){let e=this.tok.next(N.CommandStart),t=e.pos,n=this.tok.peek(N.CommandStart),r;if(n.token===f.Word){let e=new P(this.source,n.end,this.end);switch(e._nestingDepth=this.depth,e.peek(N.CommandStart).token){case f.LParen:e.next(N.CommandStart),e.peek(N.Normal).token!==f.RParen&&(r=this.readWord(N.CommandStart));break;case f.LBrace:case f.If:case f.For:case f.While:case f.Until:case f.Case:case f.Select:case f.DblLBracket:case f.ArithCmd:r=this.readWord(N.CommandStart)}}let i=this.command();if(i&&i.type!==`Function`&&i.type!==`Coproc`)return{type:`Coproc`,pos:t,end:i.end,name:r,body:i};this.error(`expected command after 'coproc'`,i?.pos??e.end);let a=i?this.makeCompoundList([this.makeStatement(i)]):{type:`CompoundList`,pos:e.end,end:e.end,commands:[]};return{type:`Coproc`,pos:t,end:a.end,name:r,body:a}}subshell(){return this.subshellBody(this.tok.next(N.CommandStart).pos)}subshellBody(e){if(this.syntaxDepth===256){this.error(`maximum subshell nesting depth exceeded`,e);let t=this.tok.skipSubshellBody();return t<0&&this.error(`expected ')' to close subshell`,this.tok.getPos()),{type:`Subshell`,pos:e,end:t>=0?t:e,body:this.makeCompoundList([])}}this.syntaxDepth++;let t=this.list();this.syntaxDepth--,t.length===0&&this.error(`expected command in subshell`,e);let n=this.acceptEnd(f.RParen,N.Normal);return n<0&&this.error(`expected ')' to close subshell`,this.tok.getPos()),{type:`Subshell`,pos:e,end:n>=0?n:e,body:this.makeCompoundList(t)}}braceGroup(){let e=this.tok.next(N.CommandStart).pos;if(this.syntaxDepth===256){this.error(`maximum brace group nesting depth exceeded`,e);let t=this.tok.skipCompoundBody(f.RBrace);return t<0&&this.error(`expected '}' to close brace group`,this.tok.getPos()),{type:`BraceGroup`,pos:e,end:t>=0?t:e,body:this.makeCompoundList([])}}this.syntaxDepth++;let t=this.list();this.syntaxDepth--,t.length===0&&this.error(`expected command in brace group`,e);let n=this.acceptEnd(f.RBrace,N.Normal);return n<0&&this.error(`expected '}' to close brace group`,this.tok.getPos()),{type:`BraceGroup`,pos:e,end:n>=0?n:e,body:this.makeCompoundList(t)}}ifClause(){let e=this.tok.next(N.CommandStart).pos;if(this.syntaxDepth===256){this.error(`maximum if nesting depth exceeded`,e);let t=this.tok.skipCompoundBody(f.Fi);return t<0&&this.error(`expected 'fi' to close 'if'`,this.tok.getPos()),{type:`If`,pos:e,end:t>=0?t:e,clause:this.makeCompoundList([]),then:this.makeCompoundList([]),else:void 0}}this.syntaxDepth++;let t,n,r=e,i,a;for(;;){i=this.makeCompoundList(this.list()),this.skipSemi();let e=this.accept(f.Then,N.CommandStart);e||this.error(`expected 'then'`,this.tok.getPos());let o=this.list();e&&o.length===0&&this.error(`expected command after 'then'`,this.tok.peek(N.CommandStart).pos),a=this.makeCompoundList(o),this.skipSemi();let s=this.accept(f.Elif,N.CommandStart);if(!s)break;let c={type:`If`,pos:r,end:r,clause:i,then:a,else:void 0};n?n.else=c:t=c,n=c,r=s.pos}let o,s;if(this.accept(f.Else,N.CommandStart)){o=this.makeCompoundList(this.list()),this.skipSemi();let e=this.acceptEnd(f.Fi,N.CommandStart);e<0&&this.error(`expected 'fi' to close 'if'`,this.tok.getPos()),s=e>=0?e:r}else{let e=this.acceptEnd(f.Fi,N.CommandStart);e<0&&this.error(`expected 'fi' to close 'if'`,this.tok.getPos()),s=e>=0?e:r}this.syntaxDepth--;let c={type:`If`,pos:r,end:s,clause:i,then:a,else:o};if(!t)return c;n.else=c;let l=t;for(;l?.type===`If`;)l.end=s,l=l.else;return t}forClause(){let e=this.tok.next(N.CommandStart).pos;if(this.tok.peek(N.Normal).token===f.LParen)return this.cStyleFor(e);let t=this.readWord(N.Normal),n;if(this.skipNewlines(N.CommandStart),this.tok.peek(N.CommandStart).token===f.In)for(this.tok.next(N.CommandStart),n=[];this.tok.peek(N.Normal).token===f.Word;)n.push(this.readWord(N.Normal));if(this.skipSemi(),this.skipNewlines(N.CommandStart),this.tok.peek(N.CommandStart).token===f.LBrace){let r=this.braceGroup();return{type:`For`,pos:e,end:r.end,name:t,wordlist:n,body:r.body}}if(this.accept(f.Do,N.CommandStart)||this.error(`expected 'do'`,this.tok.getPos()),this.syntaxDepth===256){this.error(`maximum for nesting depth exceeded`,e);let r=this.tok.skipCompoundBody(f.Done);return r<0&&this.error(`expected 'done' to close 'for'`,this.tok.getPos()),{type:`For`,pos:e,end:r>=0?r:e,name:t,wordlist:n,body:this.makeCompoundList([])}}this.syntaxDepth++;let r=this.list();this.syntaxDepth--,this.skipSemi();let i=this.acceptEnd(f.Done,N.CommandStart);return i<0&&this.error(`expected 'done' to close 'for'`,this.tok.getPos()),{type:`For`,pos:e,end:i>=0?i:e,name:t,wordlist:n,body:this.makeCompoundList(r)}}cStyleFor(e){let[t,n,r,i,a,o]=this.tok.readCStyleForExprs();if(this.tok.peek(N.CommandStart).token===f.Semi&&this.tok.next(N.CommandStart),this.skipNewlines(N.CommandStart),this.tok.peek(N.CommandStart).token===f.LBrace){let s=this.braceGroup();return new B(e,s.end,s.body,t,n,r,i,a,o,this.source,this.depth)}if(this.accept(f.Do,N.CommandStart)||this.error(`expected 'do'`,this.tok.getPos()),this.syntaxDepth===256){this.error(`maximum for nesting depth exceeded`,e);let s=this.tok.skipCompoundBody(f.Done);return s<0&&this.error(`expected 'done' to close 'for'`,this.tok.getPos()),new B(e,s>=0?s:e,this.makeCompoundList([]),t,n,r,i,a,o,this.source,this.depth)}this.syntaxDepth++;let s=this.list();this.syntaxDepth--;let c=this.acceptEnd(f.Done,N.CommandStart);return c<0&&this.error(`expected 'done' to close 'for'`,this.tok.getPos()),new B(e,c>=0?c:e,this.makeCompoundList(s),t,n,r,i,a,o,this.source,this.depth)}whileClause(){return this.whileOrUntil(`while`)}untilClause(){return this.whileOrUntil(`until`)}whileOrUntil(e){let t=this.tok.next(N.CommandStart).pos;if(this.syntaxDepth===256){this.error(`maximum ${e} nesting depth exceeded`,t);let n=this.tok.skipCompoundBody(f.Done);return n<0&&this.error(`expected 'done' to close '${e}'`,this.tok.getPos()),{type:`While`,pos:t,end:n>=0?n:t,kind:e,clause:this.makeCompoundList([]),body:this.makeCompoundList([])}}this.syntaxDepth++;let n=this.makeCompoundList(this.list());this.skipSemi(),this.accept(f.Do,N.CommandStart)||this.error(`expected 'do'`,this.tok.getPos());let r=this.list();this.skipSemi();let i=this.acceptEnd(f.Done,N.CommandStart);i<0&&this.error(`expected 'done' to close '${e}'`,this.tok.getPos());let a=i>=0?i:t;return this.syntaxDepth--,{type:`While`,pos:t,end:a,kind:e,clause:n,body:this.makeCompoundList(r)}}caseClause(){let e=this.tok.next(N.CommandStart).pos,t=this.readWord(N.Normal);if(this.skipNewlines(N.CommandStart),this.accept(f.In,N.CommandStart)||this.error(`expected 'in' after 'case' word`,this.tok.getPos()),this.skipNewlines(N.CommandStart),this.syntaxDepth===256){this.error(`maximum case nesting depth exceeded`,e);let n=this.tok.skipCompoundBody(f.Esac);return n<0&&this.error(`expected 'esac' to close 'case'`,this.tok.getPos()),{type:`Case`,pos:e,end:n>=0?n:e,word:t,items:[]}}this.syntaxDepth++;let n=[],r=this.tok.peek(N.CommandStart).token;for(;r!==f.Esac&&r!==f.EOF;){let e=this.tok.peek(N.Normal).pos;this.accept(f.LParen,N.Normal);let t=[];for(r=this.tok.peek(N.Normal).token;r!==f.RParen&&r!==f.EOF;)r===f.Pipe?this.tok.next(N.Normal):t.push(this.toWord(this.tok.next(N.Normal))),r=this.tok.peek(N.Normal).token;let i=this.acceptEnd(f.RParen,N.Normal),a=this.list(),o=i>=0?i:t.length>0?t[t.length-1].end:e,s={type:`CaseItem`,pos:e,end:a.length>0?a[a.length-1].end:o,pattern:t,body:a.length>0?this.makeCompoundList(a):{type:`CompoundList`,pos:o,end:o,commands:[]},terminator:void 0};if(r=this.tok.peek(N.CommandStart).token,r===f.DoubleSemi||r===f.SemiAmp||r===f.DoubleSemiAmp){let e=this.tok.next(N.CommandStart);s.terminator=pe[e.token],s.end=e.end}n.push(s),this.skipNewlines(N.CommandStart),r=this.tok.peek(N.CommandStart).token}let i=this.acceptEnd(f.Esac,N.CommandStart);i<0&&this.error(`expected 'esac' to close 'case'`,this.tok.getPos());let a=i>=0?i:e;return this.syntaxDepth--,{type:`Case`,pos:e,end:a,word:t,items:n}}selectClause(){let e=this.tok.next(N.CommandStart).pos,t=this.readWord(N.Normal),n;if(this.skipNewlines(N.CommandStart),this.tok.peek(N.CommandStart).token===f.In)for(this.tok.next(N.CommandStart),n=[];this.tok.peek(N.Normal).token===f.Word;)n.push(this.readWord(N.Normal));if(this.skipSemi(),this.skipNewlines(N.CommandStart),this.tok.peek(N.CommandStart).token===f.LBrace){let r=this.braceGroup();return{type:`Select`,pos:e,end:r.end,name:t,wordlist:n,body:r.body}}if(this.accept(f.Do,N.CommandStart)||this.error(`expected 'do'`,this.tok.getPos()),this.syntaxDepth===256){this.error(`maximum select nesting depth exceeded`,e);let r=this.tok.skipCompoundBody(f.Done);return r<0&&this.error(`expected 'done' to close 'select'`,this.tok.getPos()),{type:`Select`,pos:e,end:r>=0?r:e,name:t,wordlist:n,body:this.makeCompoundList([])}}this.syntaxDepth++;let r=this.list();this.syntaxDepth--,this.skipSemi();let i=this.acceptEnd(f.Done,N.CommandStart);return i<0&&this.error(`expected 'done' to close 'select'`,this.tok.getPos()),{type:`Select`,pos:e,end:i>=0?i:e,name:t,wordlist:n,body:this.makeCompoundList(r)}}testCommand(){let e=this.tok.next(N.CommandStart).pos,t=this.parseTestOr(),n=this.acceptEnd(f.DblRBracket,N.TestMode);return n<0&&this.error(`expected ']]' to close '[['`,this.tok.getPos()),{type:`TestCommand`,pos:e,end:n>=0?n:e,expression:t}}parseTestOr(){let e=this.parseTestAnd();for(;this.tok.peek(N.TestMode).token===f.Or;){this.tok.next(N.TestMode);let t=this.parseTestAnd();e={type:`TestLogical`,pos:e.pos,end:t.end,operator:`||`,left:e,right:t}}return e}parseTestAnd(){let e=this.parseTestNot();for(;this.tok.peek(N.TestMode).token===f.And;){this.tok.next(N.TestMode);let t=this.parseTestNot();e={type:`TestLogical`,pos:e.pos,end:t.end,operator:`&&`,left:e,right:t}}return e}parseTestNot(){let e=this.tok.peek(N.TestMode);if(!W(e))return this.parseTestPrimary();let t=this.tok.next(N.TestMode).pos;if(e=this.tok.peek(N.TestMode),!W(e)){let e=this.parseTestPrimary();return{type:`TestNot`,pos:t,end:e.end,operand:e}}let n=[t];for(;W(e);)n.push(this.tok.next(N.TestMode).pos),e=this.tok.peek(N.TestMode);let r=this.parseTestPrimary();for(let e=n.length-1;e>=0;e--)r={type:`TestNot`,pos:n[e],end:r.end,operand:r};return r}parseTestPrimary(){if(this.tok.peek(N.TestMode).token===f.LParen){let e=this.tok.next(N.TestMode).pos;if(this.syntaxDepth===256){this.error(`maximum test group nesting depth exceeded`,e);let t=this.tok.skipTestGroup();return t<0&&this.error(`expected ')' to close test group`,this.tok.getPos()),{type:`TestGroup`,pos:e,end:t>=0?t:e,expression:{type:`TestUnary`,pos:e,end:e,operator:`-n`,operand:new d(``,e,e,this.source,void 0,this.depth)}}}this.syntaxDepth++;let t=this.parseTestOr();this.syntaxDepth--;let n=this.acceptEnd(f.RParen,N.TestMode);return n<0&&this.error(`expected ')' to close test group`,this.tok.getPos()),{type:`TestGroup`,pos:e,end:n>=0?n:e,expression:t}}let e=this.tok.next(N.TestMode),t=e.value,n=e.pos,r=e.end;if(e.keywordEligible&&he[t]===1){if(this.tok.peek(N.TestMode).token===f.Word){let e=this.readWord(N.TestMode);return{type:`TestUnary`,pos:n,end:e.end,operator:t,operand:e}}return this.error(`expected operand after unary test operator`,r),{type:`TestUnary`,pos:n,end:r,operator:t,operand:new d(``,r,r,this.source,void 0,this.depth)}}let i=this.tok.peek(N.TestMode);if(i.token===f.Word&&i.keywordEligible&&ge[i.value]===1){let t=this.tok.next(N.TestMode).value,i;if(t===`=~`){let e=this.tok.readTestRegexWord();i=new d(this.source.slice(e.pos,e.end),e.pos,e.end,this.source,F,this.depth)}else i=this.readWord(N.TestMode);let a=this.toWordFromPosEnd(e,n,r);return{type:`TestBinary`,pos:n,end:i.end,operator:t,left:a,right:i}}let a=this.toWordFromPosEnd(e,n,r);return{type:`TestUnary`,pos:n,end:a.end,operator:`-n`,operand:a}}functionDef(){let e=this.tok.next(N.CommandStart).pos,t=this.readWord(N.Normal),n;if(this.tok.peek(N.CommandStart).token===f.LParen){let e=this.tok.next(N.CommandStart).pos;this.tok.peek(N.CommandStart).token===f.RParen?(this.tok.next(N.CommandStart),this.skipNewlines(N.CommandStart),n=this.commandAsBody()):n=this.withRedirects(this.subshellBody(e))}else this.skipNewlines(N.CommandStart),n=this.commandAsBody();return{type:`Function`,pos:e,end:n.end,name:t,body:n}}simpleCommandOrFunction(){let e=[],t=this.tok.peek(N.CommandStart).pos,n=t,r=N.CommandStart;for(;;){let t=this.tok.peek(r).token;if(t===f.Assignment){let t=this.tok.next(r);n=t.end,e.push(this.parseAssignment(t))}else if(t===f.Redirect){let t=this.readRedirect(r);e.push(t),n=t.end}else break;r=N.CommandPrefix}if(this.tok.peek(N.Normal).token!==f.Word)return new R(t,n,void 0,e,[]);let i=this.tok.next(N.Normal),a=i.keywordEligible&&de(i.value),o=this.toWord(i);if(r=a?N.Declaration:N.Normal,n=o.end,this.tok.peek(r).token===f.LParen&&(this.tok.next(N.Normal),this.tok.peek(N.Normal).token===f.RParen)){this.tok.next(N.Normal),this.skipNewlines(N.CommandStart);let e=this.commandAsBody();return{type:`Function`,pos:o.pos,end:e.end,name:o,body:e}}let s=[];for(;;){let e=this.tok.peek(r).token;if(e===f.Word||e===f.Assignment){let t=this.tok.next(r),i=e===f.Assignment?this.parseAssignment(t):this.toWord(t);s.push(i),n=i.end}else if(e===f.Redirect){let e=this.readRedirect(r);s.push(e),n=e.end}else break}return new R(t,n,o,e,s)}readRedirect(e){let t=this.tok.next(e),n=t.pos,r=t.end,i=t.fileDescriptor===void 0?t.variableName===void 0?void 0:{type:`FileDescriptorVariable`,pos:n,end:t.descriptorEnd,name:t.variableName}:{type:`FileDescriptor`,pos:n,end:t.descriptorEnd,value:t.fileDescriptor},a=t.targetEnd>t.targetPos;if(a||this.error(`expected redirect target`,t.targetPos),t.value===`<<`||t.value===`<<-`){let e={type:`HereDoc`,pos:n,end:r,operator:t.value,descriptor:i,delimiter:a?{type:`HereDocDelimiter`,pos:t.targetPos,end:t.targetEnd,text:this.source.slice(t.targetPos,t.targetEnd),value:t.content??``,quoted:t.delimiterQuoted}:void 0,body:new z(this.source,r,t.delimiterQuoted,this.depth),closing:void 0};return a&&this.tok.registerHereDocTarget(e),e}let o=a?new d(this.source.slice(t.targetPos,t.targetEnd),t.targetPos,t.targetEnd,this.source,void 0,this.depth):void 0;return t.value===`<<<`?{type:`HereString`,pos:n,end:r,operator:`<<<`,descriptor:i,target:o}:{type:`Redirect`,pos:n,end:r,operator:me[t.value]??`>`,descriptor:i,target:o}}commandAsBody(){let e=this.command();return e&&e.type!==`Command`&&e.type!==`Function`&&e.type!==`Coproc`?e:(this.error(`expected compound command as function body`,e?.pos??this.tok.getPos()),this.makeCompoundList(e?[this.makeStatement(e)]:[]))}readWord(e){return this.toWord(this.tok.next(e))}toWord(e){let t=e.raw?e.value:this.source.slice(e.pos,e.end),n=e.raw&&e.keywordEligible?void 0:this.source;return new d(t,e.pos,e.end,n,void 0,this.depth)}toWordFromPosEnd(e,t,n){return e.pos===t&&e.end===n?this.toWord(e):new d(this.source.slice(t,n),t,n,this.source,void 0,this.depth)}parseAssignment(e){return new ue(e.raw?e.value:this.source.slice(e.pos,e.end),e.pos,e.end,this.source,e.assignmentOperatorPos,this.depth)}makeCompoundList(e){let t=this.tok.getPos();return{type:`CompoundList`,pos:e.length>0?e[0].pos:t,end:e.length>0?e[e.length-1].end:t,commands:e}}},ye=4,J=(...e)=>t=>e.includes(t),Y={language:`shellscript`,inline:e=>/^-[a-z]*c[a-z]*$/u.test(e),valueOptions:new Set([`-o`,`-O`,`--rcfile`,`--init-file`]),stdin:`without-script-file`},be={language:`python`,inline:J(`-c`),valueOptions:new Set([`-W`,`-X`]),scriptFileOptions:new Set([`-m`]),stdin:`without-script-file`},X={language:`sql`,valueOptions:new Set([`-d`,`-h`,`-u`,`-U`,`--dbname`,`--host`,`--user`,`--username`,`-separator`,`-nullvalue`,`-init`]),stdin:`always`,repeatable:!0},Z={sh:Y,bash:Y,zsh:Y,dash:Y,ash:Y,ksh:Y,fish:{language:`fish`,inline:J(`-c`,`--command`),stdin:`without-script-file`},node:{language:`javascript`,inline:J(`-e`,`--eval`,`-p`,`--print`),valueOptions:new Set([`-r`,`--require`,`--import`,`--loader`,`-C`,`--conditions`]),stdin:`without-script-file`},bun:{language:`typescript`,inline:J(`-e`,`--eval`,`-p`,`--print`),stdin:`never`},deno:{language:`typescript`,inline:()=>!1,valueOptions:new Set([`-c`,`--config`,`--import-map`,`--ext`]),stdin:`never`,subcommand:`eval`},ruby:{language:`ruby`,inline:J(`-e`),valueOptions:new Set([`-r`,`-I`,`-C`]),stdin:`without-script-file`},perl:{language:`perl`,inline:J(`-e`,`-E`),stdin:`without-script-file`},osascript:{language:`applescript`,inline:J(`-e`),valueOptions:new Set([`-l`,`-s`]),stdin:`without-script-file`},pwsh:{language:`powershell`,inline:J(`-c`,`-command`),valueOptions:new Set([`-executionpolicy`,`-workingdirectory`,`-windowstyle`]),scriptFileOptions:new Set([`-f`,`-file`,`-encodedcommand`]),stdin:`never`,ignoreCase:!0},psql:{...X,inline:J(`-c`,`--command`),scriptFileOptions:new Set([`-f`,`--file`])},mysql:{...X,inline:J(`-e`,`--execute`)},sqlite3:{...X,inline:J(`-cmd`),positionalScript:1},duckdb:{...X,inline:J(`-c`,`-cmd`),scriptFileOptions:new Set([`-f`]),positionalScript:1}};Z.powershell=Z.pwsh,Z.mariadb=Z.mysql;var Q={env:new Set([`-u`,`--unset`,`-C`,`--chdir`]),sudo:new Set([`-u`,`--user`,`-g`,`--group`,`-C`,`-D`,`--chdir`]),nice:new Set([`-n`,`--adjustment`]),nohup:new Set,exec:new Set([`-a`]),command:new Set,builtin:new Set},xe={py:`python`,python:`python`,js:`javascript`,javascript:`javascript`,ts:`typescript`,typescript:`typescript`,sql:`sql`,json:`json`,yaml:`yaml`,yml:`yaml`,toml:`toml`,sh:`shellscript`,bash:`shellscript`,shell:`shellscript`,rb:`ruby`,ruby:`ruby`,html:`html`,css:`css`,md:`markdown`,markdown:`markdown`,xml:`xml`,diff:`diff`,patch:`diff`};function Se(e){let t=Array.from({length:e.length},(e,t)=>t);return Ce({text:e,starts:t,ends:t.map(e=>e+1)},0)}function Ce(e,t){let n=ve(e.text);if(n.errors?.length)return[];let r=[];return $(n.commands,n=>{for(let{language:i,mapped:a}of Oe(n,e.text)){if(a.text.trim()===``)continue;let n={language:i,text:a.text,starts:a.starts.map(t=>e.starts[t]),ends:a.ends.map(t=>e.ends[t-1])};r.push(n),i===`shellscript`&&t+1<ye&&r.push(...Ce(n,t+1))}}),r}function we(e){return typeof e==`object`&&!!e&&`type`in e}function $(e,t,n=new WeakSet){if(Array.isArray(e)){for(let r of e)$(r,t,n);return}if(we(e)&&!n.has(e)){switch(n.add(e),e.type){case`Command`:t(e);break;case`CommandExpansion`:case`ProcessSubstitution`:{let{script:r}=e;r&&!r.errors?.length&&r.source===void 0&&$(r.commands,t,n);return}}`parts`in e&&$(e.parts,t,n);for(let r of Object.values(e))typeof r==`object`&&$(r,t,n)}}function Te(e){return((/\\/u.test(e.text)?e.text.replace(/^["']|["']$/gu,``):e.value).split(/[\\/]/u).at(-1)??``).toLowerCase().replace(/\.exe$/u,``)}function Ee(e){return/^python(?:\d+(?:\.\d+)?)?$|^pypy3?$|^py$/u.test(e)?be:Object.hasOwn(Z,e)?Z[e]:void 0}function De(e){let t=0;for(;t<e.length;){let n=Te(e[t]);if(!Object.hasOwn(Q,n))return t;let r=Q[n];t+=1;let i=!1;for(;t<e.length;){let n=e[t].value,a=!i&&n.startsWith(`-`);if(a&&n===`--`&&(i=!0),a||/^[A-Za-z_]\w*=/u.test(n))t+=a&&r.has(n)?2:1;else break}}return t}function Oe(e,t){if(!e.name)return[];let n=[e.name,...e.args.filter(e=>e.type===`Word`)],r=De(n),i=n[r];if(!i)return[];let a=Te(i),o=Ee(a),s=n.slice(r+1),c=[],l=!1;if(o){let e=Ae(o,s);for(let n of e.scripts){let e=Fe(n.word,t);if(!e)continue;let r=n.inValue?e.text.indexOf(`=`)+1:0;c.push({language:o.language,mapped:je(e,r)})}l=o.stdin!==`never`&&e.scripts.length===0&&!e.scriptFromFile}let u=l?o?.language:void 0,d=Me(a,e,s);for(let n of e.redirects){let e=ke(n.descriptor,0);if(n.type===`HereString`&&e&&u&&n.target){let e=Fe(n.target,t);e&&c.push({language:u,mapped:e})}if(n.type===`HereDoc`){let r=(e?u??d:void 0)??Ne(n);r&&c.push({language:r,mapped:Pe(n,t)})}}return c}function ke(e,t){return e===void 0||e.type===`FileDescriptor`&&e.value===t}function Ae(e,t){let n=[],r=[],i=e=>({word:e,inValue:!1}),a=!1,o=!1;for(let s=0;s<t.length;s+=1){let c=t[s],l=e.ignoreCase?c.value.toLowerCase():c.value;if(!a&&l===`--`){a=!0;continue}if(!a&&l.startsWith(`-`)&&l!==`-`){let[n=l,a]=l.startsWith(`--`)?l.split(/=(.*)/su):[l];if(e.scriptFileOptions?.has(n)){if(!e.repeatable)return{scripts:r,scriptFromFile:!0};o=!0,a===void 0&&(s+=1);continue}if(e.inline(n)){let n=t[s+1];if(a===void 0?n&&r.push(i(n)):r.push({word:c,inValue:!0}),!e.repeatable)return{scripts:r,scriptFromFile:!1};a===void 0&&(s+=1);continue}a===void 0&&e.valueOptions?.has(l)&&(s+=1);continue}if(n.push(c),e.stdin===`without-script-file`&&!e.subcommand)break}if(e.subcommand)return n[0]?.value===e.subcommand?{scripts:n.slice(1,2).map(i),scriptFromFile:!1}:{scripts:r,scriptFromFile:!0};if(e.positionalScript!==void 0&&r.push(...n.slice(e.positionalScript).map(i)),e.stdin===`always`)return{scripts:r,scriptFromFile:o};let s=n[0];return{scripts:r,scriptFromFile:s!==void 0&&s.value!==`-`}}function je(e,t){return t===0?e:{text:e.text.slice(t),starts:e.starts.slice(t),ends:e.ends.slice(t)}}function Me(t,n,r){let i;if(t===`cat`)for(let e of n.redirects)e.type===`Redirect`&&[`>`,`>>`,`>|`,`&>`,`&>>`].includes(e.operator)&&ke(e.descriptor,1)&&(i=e.target?.value);else t===`tee`&&(i=r.find(e=>!e.value.startsWith(`-`))?.value);if(!i)return;let a=e(i);return a===`text`?void 0:a}function Ne(e){let t=e.delimiter?.value.toLowerCase();return t&&Object.hasOwn(xe,t)?xe[t]:void 0}function Pe(e,t){let{pos:n,end:r}=e.body,i=Array.from({length:r-n},(e,t)=>n+t);return{text:t.slice(n,r),starts:i,ends:i.map(e=>e+1)}}function Fe(e,t){let n=new Ie,r=e.parts??[{type:`Literal`,pos:e.pos,end:e.end,text:e.text,value:e.value}];for(let e of r)switch(e.type){case`Literal`:if(!n.addEscaped(e,!1))return;break;case`SingleQuoted`:n.addRaw(e.value,e.pos+1);break;case`DoubleQuoted`:case`LocaleString`:for(let t of e.parts)if(!n.addDoubleQuotedChild(t))return;break;case`AnsiCQuoted`:if(e.value!==e.text.slice(2,-1))return;n.addRaw(e.value,e.pos+2);break;default:n.addRaw(t.slice(e.pos,e.end),e.pos)}return n.build()}var Ie=class{text=``;starts=[];ends=[];addRaw(e,t){for(let n=0;n<e.length;n+=1)this.push(e[n],t+n,1)}addDoubleQuotedChild(e){return e.type===`Literal`?this.addEscaped(e,!0):(this.addRaw(e.text,e.pos),!0)}addEscaped(e,t){let n=this.text.length,{text:r,pos:i}=e;for(let e=0;e<r.length;e+=1){let n=r[e+1];r[e]===`\\`&&n!==void 0&&(!t||`$\`"\\
|
|
12
12
|
`.includes(n))?(n!==`
|
|
13
13
|
`&&this.push(n,i+e,2),e+=1):this.push(r[e],i+e,1)}return this.text.slice(n)===e.value}build(){return{text:this.text,starts:this.starts,ends:this.ends}}push(e,t,n){this.text+=e,this.starts.push(t),this.ends.push(t+n)}};export{Se as embeddedScripts};
|
|
14
|
-
//# sourceMappingURL=embeddedScripts-
|
|
14
|
+
//# sourceMappingURL=embeddedScripts-twbjTzvu.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{
|
|
2
|
-
//# sourceMappingURL=empty-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{BE as t,Hu as n,mE as r,t as i}from"./utils-B0w8dSf5.js";var a=t(),o=e(r(),1),s={compact:`min-h-64 gap-4 p-6 md:p-10 [&_[data-slot=empty-media]]:mb-0 [&_[data-slot=empty-title]]:text-[1.0625rem] [&_[data-slot=empty-title]]:leading-6 [&_[data-slot=empty-description]]:text-[0.8125rem] [&_[data-slot=empty-description]]:leading-[1.125rem]`,default:`gap-6 p-6 md:p-12`,hero:`gap-6 p-6 md:p-12 [&_[data-slot=empty-title]]:text-2xl sm:[&_[data-slot=empty-title]]:text-3xl`};function c(e){let t=(0,a.c)(10),n,r,c;t[0]===e?(n=t[1],r=t[2],c=t[3]):({className:n,size:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=c);let l=s[c===void 0?`default`:c],u;t[4]!==n||t[5]!==l?(u=i(`flex min-w-0 flex-1 flex-col items-center justify-center text-balance text-center`,l,n),t[4]=n,t[5]=l,t[6]=u):u=t[6];let d;return t[7]!==r||t[8]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-slot":`empty`,...r}),t[7]=r,t[8]=u,t[9]=d):d=t[9],d}function l(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`flex max-w-sm flex-col items-center text-center`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`empty-header`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}var u=n(`flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{variant:`default`},variants:{variant:{default:`bg-transparent`,icon:`relative flex size-9 shrink-0 items-center justify-center rounded-md border bg-card not-dark:bg-clip-padding text-foreground shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5`}}});function d(e){let t=(0,a.c)(21),n,r,s;t[0]===e?(n=t[1],r=t[2],s=t[3]):({className:n,variant:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=s);let c=s===void 0?`default`:s,l;t[4]===n?l=t[5]:(l=i(`relative mb-6`,n),t[4]=n,t[5]=l);let d;t[6]!==n||t[7]!==c?(d=c===`icon`&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`div`,{"aria-hidden":`true`,className:i(u({className:n,variant:c}),`-translate-x-0.5 -rotate-10 pointer-events-none absolute bottom-px origin-bottom-left scale-84 shadow-none`)}),(0,o.jsx)(`div`,{"aria-hidden":`true`,className:i(u({className:n,variant:c}),`pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none`)})]}),t[6]=n,t[7]=c,t[8]=d):d=t[8];let f;t[9]!==n||t[10]!==c?(f=i(u({className:n,variant:c})),t[9]=n,t[10]=c,t[11]=f):f=t[11];let p;t[12]!==r||t[13]!==f?(p=(0,o.jsx)(`div`,{className:f,...r}),t[12]=r,t[13]=f,t[14]=p):p=t[14];let m;return t[15]!==r||t[16]!==l||t[17]!==d||t[18]!==p||t[19]!==c?(m=(0,o.jsxs)(`div`,{className:l,"data-slot":`empty-media`,"data-variant":c,...r,children:[d,p]}),t[15]=r,t[16]=l,t[17]=d,t[18]=p,t[19]=c,t[20]=m):m=t[20],m}function f(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`font-semibold text-xl`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`empty-title`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function p(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`text-muted-foreground text-sm [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 [[data-slot=empty-title]+&]:mt-1 [[data-slot=empty-description]+&]:mt-1`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`empty-description`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}function m(e){let t=(0,a.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let s;t[3]===n?s=t[4]:(s=i(`flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm`,n),t[3]=n,t[4]=s);let c;return t[5]!==r||t[6]!==s?(c=(0,o.jsx)(`div`,{className:s,"data-slot":`empty-content`,...r}),t[5]=r,t[6]=s,t[7]=c):c=t[7],c}export{d as a,l as i,m as n,f as o,p as r,c as t};
|
|
2
|
+
//# sourceMappingURL=empty-DeLw5x6B.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$o as e,BT as t,B_ as n,Cs as r,Es as i,Ex as a,Gy as o,HT as s,JS as c,Kx as l,LT as u,Lx as d,Nx as f,OC as p,Ox as m,PT as h,QS as ee,RE as te,RT as ne,Rx as g,Ts as re,VT as _,Vc as v,WS as ie,WT as ae,Yo as y,_s as oe,al as se,as as ce,bS as le,ds as b,fC as ue,iS as de,jT as fe,mw as pe,ns as me,pC as he,pE as ge,qS as x,rE as _e,rs as S,ss as ve,sv as ye,ts as C,uE as be,wS as xe,wv as Se,yy as Ce}from"./utils-hgbJ2TVM.js";import{A as w,An as we,M as Te,N as T,Q as Ee,Sn as De,Z as E,j as Oe,k as ke,pt as D}from"./runtime-DPOrcghx.js";import{Cn as Ae,Dn as O,En as k,It as A,J as je,K as Me,Mt as Ne,Nt as Pe,Pt as j,Qt as Fe,Sn as Ie,T as Le,Tn as M,W as Re,Xt as ze,Zt as Be,_t as Ve,bn as He,ft as Ue,gt as We,jt as Ge,lt as Ke,pt as qe,t as N,xn as Je,zt as Ye}from"./runtime-SBjACoAG.js";import{f as Xe,h as P,n as F}from"./server-BNs54wEo.js";var I=te(),Ze={"~effect/RequestResolver":{_A:be,_R:be},pipe(){return ge(this,arguments)}},Qe=e=>{let t=Object.create(Ze);return t.batchKey=e.batchKey,t.preCheck=e.preCheck,t.delay=e.delay,t.collectWhile=e.collectWhile,t.runAll=e.runAll,t},L=6e4,$e=1024,et=class extends he{};function tt(e){let t=new WeakMap,r=new WeakMap,i=new WeakMap,o=new Map,s=e=>JSON.stringify([e.environmentId,e.threadId]),c=C(e=>S(t=>{let n=o.get(e);n||(n={readers:0,sessions:new WeakMap},o.set(e,n)),n.readers++,t.addFinalizer(()=>{--n.readers===0&&o.delete(e)})}).pipe(ve(0),b(`file-metadata-thread:${e}`))),u=C(e=>S(0).pipe(b(`file-metadata-revision:${e}`))),f=(e,t)=>u(JSON.stringify([e,M(t)])),m=(e,n,r)=>{let i=M(n),a=t.get(e)?.get(i);return a&&a.expires>r?a:void 0},h=(e,n,r,i,a=!1)=>{let s=t.get(e);s||(s=new Map,t.set(e,s));let c=M(n);s.delete(c);let l={value:r,expires:i+L};s.set(c,l);for(let t of o.values()){let n=t.sessions.get(e),i=n?.get(c);n&&i&&n.set(c,{...l,value:a&&r&&i.value?.kind===r.kind?{...i.value,...r}:r})}if(s.size>$e){let e=s.keys().next().value;e!==void 0&&s.delete(e)}},ee=Qe({batchKey:e=>e.request.session,delay:ue,collectWhile:e=>e.size<64,runAll:d(function*(e){let t=e[0].request.session,n=[...e];for(;n.length>0;){let r=[...new Set(n.map(e=>e.request.path))],o=i.get(t);o||(o=new Map,i.set(t,o));let s=new Map(r.map(e=>[e,{valid:!0}]));for(let[e,t]of s){let n=o.get(e);n||o.set(e,n=new Set),n.add(t)}let c=o;n=yield*l(function*(){let i=yield*E(v.filesystemGetMetadata,{paths:r}).pipe(le(D,e[0].request.supervisor)),a=yield*p,o=new Map(r.map((e,t)=>[e,i.entries[t]??null])),c=[];for(let e of n){if(!s.get(e.request.path).valid){c.push(e);continue}let n=o.get(e.request.path)??null;h(t,e.request.path,n,a),e.request.retained?.set(e.request.path,{value:n,expires:a+L}),e.completeUnsafe(pe(n))}return c}).pipe(a(x(()=>{for(let[e,t]of s){let n=c.get(e);n?.delete(t),n?.size===0&&c.delete(e)}})))}})}),te=Oe(e,{label:`environment-data:filesystem:metadata`,staleTimeMs:L,idleTtlMs:L,execute:d(function*(e){let t=yield*D,r=yield*n(t.session);if(r._tag===`None`)return null;let i=e.threadId?o.get(s({environmentId:t.target.environmentId,threadId:e.threadId})):void 0,a=i?.sessions.get(r.value);i&&!a&&(a=new Map,i.sessions.set(r.value,a));let c=a?.get(e.path);if(c)return c.value;let l=yield*p,u=m(r.value,e.path,l);return u?(a?.set(e.path,u),u.value):yield*xe(new et({path:e.path,session:r.value,supervisor:t,...a?{retained:a}:{}}),ee)}),refreshTrigger:({environmentId:e,input:t})=>f(e,t.path)}),ne=e=>te({...e,input:{...e.input,path:M(e.input.path)}}),g=d(function*(e,t,r){let i=yield*D,a=yield*n(i.session);if(a._tag===`None`)return;let o=yield*p;if(!r||r(a.value))for(let n of t){let t=O(n.path,e);m(a.value,t,o)?.value?.kind!==n.kind&&h(a.value,t,{kind:n.kind},o,!0)}}),re=d(function*(e){let a=yield*D,s=yield*n(a.session);if(s._tag===`Some`){r.set(s.value,(r.get(s.value)??0)+1);let n=M(e);for(let e of i.get(s.value)?.get(n)??[])e.valid=!1;t.get(s.value)?.delete(n);for(let t of o.values())t.sessions.get(s.value)?.delete(M(e))}});return{metadata:ne,retainThread:e=>c(s(e)),rememberEntries:g,rememberFile:d(function*(e,t,r){let i=yield*D,a=yield*n(i.session);if(a._tag===`None`)return;let o=O(t.relativePath,e),s=yield*p;if(r&&!r(a.value))return;let c=m(a.value,o,s)?.value;h(a.value,o,{...c,kind:`file`,byteLength:t.byteLength},s,!0)}),seedAfterRead:(e,t)=>l(function*(){let i=yield*D,a=yield*n(i.session),o=a._tag===`Some`?r.get(a.value)??0:0,s=yield*e;return yield*t(s,e=>a._tag===`Some`&&e===a.value&&(r.get(e)??0)===o),s}),invalidate:re,refreshPath:(e,t,n)=>{let r=f(e,t);n.set(r,n.get(r)+1)}}}function nt(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function R(e,t){return new Set([t.relativePath,e.relativePath].map(t=>O(t,e.cwd)))}var rt=class extends o()(`ScratchProjectNotLoadedError`,{projectId:Ce}){get message(){return`The folder for threads without a project has not reached this device yet. Try again.`}};function it(e,t){let n=tt(e),r=ke(),i=ke(),a=C(e=>S(null).pipe(b(`environment-data:projects:optimistic-file:${e}`))),o={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{fileMetadata:n.metadata,fileMetadataThread:n.retainThread,invalidateFileMetadata:w(e,{label:`environment-data:filesystem:invalidate-metadata`,execute:(e,t,r)=>g([...new Set(e.paths)],e=>n.invalidate(e).pipe(c(()=>x(()=>n.refreshPath(r,e,t)))))}),searchEntries:T(e,{label:`environment-data:projects:search-entries`,tag:v.projectsSearchEntries,staleTimeMs:15e3,execute:e=>n.seedAfterRead(E(v.projectsSearchEntries,e),(t,r)=>n.rememberEntries(e.cwd,t.entries,r))}),listEntries:T(e,{label:`environment-data:projects:list-entries`,tag:v.projectsListEntries,staleTimeMs:3e4,idleTtlMs:3e5,execute:e=>n.seedAfterRead(E(v.projectsListEntries,e),(t,r)=>n.rememberEntries(e.cwd,t.entries,r))}),readConfiguration:T(e,{label:`environment-data:projects:read-configuration`,tag:v.projectsReadFile,staleTimeMs:3e4,idleTtlMs:3e5,execute:e=>E(v.projectsReadFile,{...e,relativePath:se})}),readFile:T(e,{label:`environment-data:projects:read-file`,tag:v.projectsReadFile,staleTimeMs:3e4,idleTtlMs:3e5,execute:e=>n.seedAfterRead(E(v.projectsReadFile,e),(t,r)=>n.rememberFile(e.cwd,t,r))}),optimisticFile:e=>a(nt(e)),create:w(e,{label:`environment-data:commands:project:create`,execute:e=>ze(e),scheduler:r,concurrency:o}),update:w(e,{label:`environment-data:commands:project:update`,execute:e=>Fe(e),scheduler:r,concurrency:o}),delete:w(e,{label:`environment-data:commands:project:delete`,execute:e=>Be(e),scheduler:r,concurrency:o}),openScratch:w(e,{label:`environment-data:projects:open-scratch`,execute:(e,n,r)=>E(v.projectsEnsureScratch,e).pipe(f(({projectId:e})=>oe(n,t.projectAtom({environmentId:r,projectId:e})).pipe(ye(_e),Se,ee(`10 seconds`),de(h),f(ae({onSome:ie,onNone:()=>m(new rt({projectId:e}))}))))),scheduler:r,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),createNew:Te(e,{label:`environment-data:projects:create-new`,tag:v.projectsCreateNew,scheduler:r,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),writeFile:Te(e,{label:`environment-data:projects:write-file`,tag:v.projectsWriteFile,scheduler:i,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])},execute:e=>Ee(v.projectsWriteFile,e).pipe(c(t=>g(R(e,t),n.invalidate))),onSuccess:({environmentId:e,input:t},r,i)=>x(()=>{for(let a of R(t,i))n.refreshPath(e,a,r)})})}}var at=Object.freeze([]),ot=new Map;function st(e){let t=C(t=>S(n=>n(e.snapshotAtom(t))?.projects??at).pipe(b(`environment-projects:${t}`))),n=C(e=>S(n=>{let r=n(t(e));return r.length===0?ot:new Map(r.map(e=>[e.id,e]))}).pipe(b(`environment-project-index:${e}`))),r=C(e=>{let n=[];return S(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return j(n,i)?n:(n=i,i)}).pipe(b(`environment-project-refs:${e}`))}),i=C(t=>{let r=Ne(t),i=null,a=!1,o=null;return S(t=>{let s=t(n(r.environmentId)).get(r.projectId)??null,c=s!==null&&ft(s,e.serverConfigValueAtom?t(e.serverConfigValueAtom(r.environmentId))?.scratchWorkspaceRoot:null);return s===i&&c===a?o:(i=s,a=c,o=s===null?null:{...Ye(r.environmentId,s),...c?{isScratch:!0}:{}},o)}).pipe(b(`environment-project:${t}`))}),a=[],o=S(t=>{let n=[];for(let i of A(t(e.catalogValueAtom)))n.push(...t(r(i)));return j(a,n)?a:(a=n,n)}).pipe(b(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:S(e=>{let t=e(o).flatMap(t=>{let n=e(i(Pe(t)));return n===null?[]:[n]});return Ge(s,t)||(s=t),s}).pipe(b(`environment-project-list`)),projectConfigsReadyAtom:S(t=>{let n=t(e.catalogValueAtom);if(!n.isReady)return!1;for(let r of A(n))if(e.serverConfigValueAtom&&t(e.serverConfigValueAtom(r))===null)return!1;return!0}).pipe(b(`environment-project-configs-ready`)),projectAtom:e=>i(Pe(e))}}var z=e=>/^win(dows)?/i.test(e);function B(e){return Ae(e)||Je(e)?`windows`:e.startsWith(`/`)?`unix`:null}function V(e){let t=B(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function H(e){return(B(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function U(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function W(e){return B(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function G(e){if(Ae(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:U(e.slice(t.length),`\\`)}}if(Je(e)){let[t,n,...r]=U(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:U(e.slice(1),`/`)}:null}function ct(e,t=``){let n=z(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&Ie(e)}function lt(e,t){return Ie(e)&&!z(t)}function ut(e,t){let n=e.trim();if(!He(n)||!t)return k(n);let r=G(k(t));if(!r)return k(n);let i=[...r.segments];for(let e of n.split(/[\\/]+/))if(e.length!==0&&e!==`.`){if(e===`..`){i.pop();continue}i.push(e)}let a=i.join(r.separator);return k(a.length===0?r.root:`${r.root}${a}`)}function dt(e,t){let n=M(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?M(t)===n:!1})}function ft(e,t){return t!=null&&dt([e],t)!==void 0}function pt(e){let t=k(e),n=G(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function mt(e,t){let n=V(e);return`${gt(e)}${t}${n}`}function ht(e){let t=W(e);return e.slice(t+1)}function gt(e){if(H(e))return e;let t=W(e);return t<0?e:e.slice(0,t+1)}function _t(e){let t=e.trim();return t.length===0||H(t)?t:`${t}${V(t)}`}function vt(e){let t=k(e),n=G(t);if(n){if(n.segments.length===0)return null;if(n.segments.length===1)return n.root;let e=n.segments.slice(0,-1).join(n.separator);return`${n.root}${e}${n.separator}`}let r=V(e),i=W(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function yt(e){return H(e)&&vt(e)!==null}function bt(e){return C(t=>S(n=>ae(i(n(e(t))),{onNone:()=>null,onSome:e=>ne(e.snapshot)})).pipe(b(`environment-snapshot:${t}`)))}var xt=Ve(N),K=We(N),St=bt(K.stateAtom);function Ct(e){return S(t=>e.environmentIds.length>0&&e.environmentIds.every(n=>{let r=t(e.shellStateValueAtom(n));return r.status===`live`&&s(r.snapshot)}))}var wt=S(e=>{let t=i(e(P.catalogAtom));if(_(t))return!1;for(let n of A(t.value)){if(s(e(K.stateValueAtom(n)).snapshot))continue;let t=u(i(e(P.stateAtom(n))),()=>De);if(we(t)!==`disconnected`||t.phase===`backoff`&&t.desired&&t.attempt<=2)return!1}return!0}).pipe(b(`web-all-environment-shells-bootstrapped`));function Tt(e,t){return!e.isReady||e.entries.size===0?!1:!t||Array.from(e.entries.values()).some(e=>e.target._tag===`PrimaryConnectionTarget`)}function Et(e){return S(t=>{let n=t(e.catalogValueAtom);if(!Tt(n,e.requiresPrimaryEnvironment))return!1;for(let r of A(n)){let n=t(e.shellStateValueAtom(r));if(n.status!==`live`||_(n.snapshot))return!1}return!0}).pipe(b(`web-all-environment-project-snapshots-ready`))}Et({catalogValueAtom:P.catalogValueAtom,shellStateValueAtom:K.stateValueAtom,requiresPrimaryEnvironment:!Le()});var Dt=S(e=>{let t=e(P.catalogValueAtom);if(!Tt(t,!Le()))return!1;for(let n of A(t)){let t=e(K.stateValueAtom(n));if(t.status===`live`&&s(t.snapshot))continue;let r=i(e(P.stateAtom(n)));if(_(r))return!1;let a=r.value;if(!(a.phase===`offline`||a.phase===`blocked`||a.phase===`backoff`&&a.attempt>2))return!1}return!0}).pipe(b(`web-all-reachable-shells-live`)),q=st({catalogValueAtom:P.catalogValueAtom,snapshotAtom:St,serverConfigValueAtom:Xe.configValueAtom}),Ot=it(N,{projectAtom:q.projectAtom}),kt=T(N,{label:`environment-data:projects:search-contents`,tag:v.projectsSearchContents,staleTimeMs:5e3,idleTtlMs:6e4}),At=Ke(N,St),J=Re(N),Y=je(J.stateAtom),X=Me({catalogValueAtom:P.catalogValueAtom,snapshotAtom:At.snapshotAtom}),jt=S(re(Ue)).pipe(b(`web-environment-thread:empty`));function Mt(t,n){let r=(0,I.c)(5),a;r[0]!==t||r[1]!==n?(a=t!==null&&n!==null?J.stateAtom(t,n):jt,r[0]=t,r[1]=n,r[2]=a):a=r[2];let o=e(a),s;return r[3]===o?s=r[4]:(s=u(i(o),Nt),r[3]=o,r[4]=s),s}function Nt(){return Ue}var Pt=e=>e===`preparing`||e===`queued`||e===`starting`||e===`running`;function Ft(e){if(!r(e))return!0;let{status:t,data:n,error:i}=e.value;return t===`deleted`||s(i)?!0:t===`live`&&!fe(n,e=>e.runs.some(e=>Pt(e.status)))}function It(e){let n=C(t=>{let n=[];return S(r=>{let i=r(e.threadsAtom(t)).flatMap(e=>Pt(e.status)?[e.id]:[]);return Ge(n,i)?n:(n=i,i)}).pipe(b(`web-running-thread-ids:${t}`))});return S(r=>{let i=t(r.self()),a=new Map;for(let t of r(e.environmentIdsAtom)){let o=new Set(r(n(t)));for(let n of i?.get(t)??[]){if(o.has(n))continue;let i=e.stateAtom(t,n);Ft(r.once(i))||(o.add(n),r.subscribe(i,e=>{Ft(e)&&r.refreshSelf()}))}for(let n of o)r.mount(e.stateAtom(t,n));a.set(t,o)}return a}).pipe(b(`web-running-thread-keep-alive`))}var Lt=It({environmentIdsAtom:ce(P.catalogValueAtom,e=>[...A(e)]),threadsAtom:X.environmentThreadsAtom,stateAtom:J.stateAtom});async function Z(e){let t=()=>e.registry.get(e.atom);return e.predicate(t())?!0:await new Promise(n=>{let r=!1,i=null,a=null,o=!1,s=e=>{r||(r=!0,i!==null&&globalThis.clearTimeout(i),a===null?o=!0:a(),n(e))};if(a=e.registry.subscribe(e.atom,t=>{e.predicate(t)&&s(!0)}),o){a();return}if(e.predicate(t())){s(!0);return}i=globalThis.setTimeout(()=>{s(!1)},e.timeoutMs)})}var Rt=Object.freeze([]),zt=Object.freeze([]),Bt=S(null).pipe(b(`web-project:empty`)),Vt=S(Rt).pipe(b(`web-thread-refs:empty`)),Ht=S(Object.freeze([])).pipe(b(`web-thread-shells:empty`)),Ut=S(null).pipe(b(`web-thread-shell:empty`)),Wt=S(null).pipe(b(`web-thread-projection:empty`)),Gt=S(`empty`).pipe(b(`web-thread-status:empty`)),Kt=S(zt).pipe(b(`web-thread-visible-turn-items:empty`)),qt=S(qe).pipe(b(`web-thread-history:empty`)),Jt=S(null).pipe(me,b(`web-active-environment-id`));function Yt(){return e(Jt)}function Xt(e){y.set(Jt,e)}function Zt(){return e(X.threadRefsAtom)}function Qt(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Vt:X.environmentThreadRefsAtom(t),n[0]=t,n[1]=r),e(r)}function $t(){return e(q.projectsAtom)}function Q(){return e(F)}function en(t){return e(t===void 0||t?X.threadShellsAtom:Ht)}function tn(){return e(wt)}function nn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=X.threadShellsForProjectRefsAtom(t),n[0]=t,n[1]=r),e(r)}function rn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Bt:q.projectAtom(t),n[0]=t,n[1]=r),e(r)}function an(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Ut:X.threadShellAtom(t),n[0]=t,n[1]=r),e(r)}function on(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Ht:X.childThreadInputsAtom(t),n[0]=t,n[1]=r),e(r)}function sn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Wt:Y.threadAtom(t),n[0]=t,n[1]=r),e(r)}function cn(e){return Q().get(e)?.environment.capabilities.threadSideChats===!0}function ln(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Gt:Y.statusAtom(t),n[0]=t,n[1]=r),e(r)}function un(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?qt:Y.historyAtom(t),n[0]=t,n[1]=r),e(r)}function dn(e,t){return e!==null&&(!t.waitForShell||t.shellExists)?e:null}function fn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Kt:Y.visibleTurnItemsAtom(t),n[0]=t,n[1]=r),e(r)}function $(e){return y.get(q.projectAtom(e))}function pn(){return y.get(q.projectsAtom)}function mn(e,t=1e4){let n=$(e);return n===null?new Promise((n,r)=>{let i=null,a=setTimeout(()=>{i?.(),r(Error(`The project did not appear in the desktop app.`))},t),o=e=>{e!==null&&(clearTimeout(a),i?.(),n(e))};i=y.subscribe(q.projectAtom(e),o),o($(e))}):Promise.resolve(n)}function hn(e,t=5e3){return Z({registry:y,atom:q.projectAtom(e),predicate:e=>e===null,timeoutMs:t})}function gn(e){return y.get(X.threadShellAtom(e))}function _n(e,t=5e3){return Z({registry:y,atom:X.threadShellAtom(e),predicate:e=>e!==null,timeoutMs:t})}function vn(e){let t=(0,I.c)(3),n=Q(),r;return t[0]!==n||t[1]!==e?(r=e!==null&&n.get(e)?.environment.capabilities.serverBrowser===!0,t[0]=n,t[1]=e,t[2]=r):r=t[2],r}function yn(e){return y.get(F).get(e)?.environment.capabilities.serverBrowser===!0}function bn(e){return y.get(F).get(e)?.environment.capabilities.threadTitleRegeneration===!0}function xn(e){return y.get(F).get(e)?.environment.capabilities.threadPinning===!0}function Sn(e){return y.get(F).get(e)?.environment.capabilities.threadPinReorder===!0}function Cn(e){return y.get(F).get(e)?.environment.capabilities.threadAutoSettleOptOut===!0}function wn(e){return y.get(F).get(e)?.environment.capabilities.threadActiveReorder===!0}function Tn(e){return y.get(F).get(e)?.environment.capabilities.threadSettlement===!0}function En(e){return y.get(F).get(e)?.environment.capabilities.threadSnooze===!0}function Dn(e){return y.get(F).get(e)?.environment.capabilities.threadVisitedTracking===!0}function On(e){return y.get(X.environmentThreadRefsAtom(e))}function kn(){return y.get(X.threadShellsAtom)}export{dt as $,en as A,Lt as B,rn as C,sn as D,un as E,hn as F,Ot as G,Mt as H,_n as I,K as J,Dt as K,Z as L,ln as M,fn as N,Zt as O,mn as P,_t as Q,Y as R,Qt as S,Q as T,q as U,At as V,kt as W,mt as X,xt as Y,yt as Z,Yt as _,yn as a,ct as at,vn as b,bn as c,ut as ct,$ as d,gt as et,pn as f,Xt as g,dn as h,xn as i,pt as it,nn as j,an as k,Dn as l,kn as m,Cn as n,vt as nt,Tn as o,ft as ot,gn as p,Ct as q,Sn as r,H as rt,En as s,lt as st,wn as t,ht as tt,On as u,tn as v,$t as w,cn as x,on as y,X as z};
|
|
2
|
-
//# sourceMappingURL=entities-
|
|
1
|
+
import{$o as e,BE as t,BT as n,B_ as r,Cs as i,Es as a,Ex as o,Gy as s,HT as c,JS as l,Kx as u,LT as d,Lx as f,Nx as p,OC as m,Ox as h,PT as ee,QS as te,RT as ne,Rx as g,Ts as re,VT as _,Vc as v,WS as ie,WT as ae,Yo as y,_s as oe,al as se,as as ce,bS as le,ds as b,fC as ue,iS as de,jT as fe,mw as pe,ns as me,pC as he,pE as ge,qS as x,rE as _e,rs as S,ss as ve,sv as ye,ts as C,uE as be,wS as xe,wv as Se,yy as Ce}from"./utils-B0w8dSf5.js";import{A as w,An as we,M as Te,N as T,Q as Ee,Sn as De,Z as E,j as Oe,k as ke,pt as D}from"./runtime-mg6KxRIi.js";import{Cn as Ae,Dn as O,En as k,It as A,J as je,K as Me,Mt as Ne,Nt as Pe,Pt as j,Qt as Fe,Sn as Ie,T as Le,Tn as M,W as Re,Xt as ze,Zt as Be,_t as Ve,bn as He,ft as Ue,gt as We,jt as Ge,lt as Ke,pt as qe,t as N,xn as Je,zt as Ye}from"./runtime-V62Oyi1q.js";import{f as Xe,h as P,n as F}from"./server-C8OpoOTL.js";var I=t(),Ze={"~effect/RequestResolver":{_A:be,_R:be},pipe(){return ge(this,arguments)}},Qe=e=>{let t=Object.create(Ze);return t.batchKey=e.batchKey,t.preCheck=e.preCheck,t.delay=e.delay,t.collectWhile=e.collectWhile,t.runAll=e.runAll,t},L=6e4,$e=1024,et=class extends he{};function tt(e){let t=new WeakMap,n=new WeakMap,i=new WeakMap,a=new Map,s=e=>JSON.stringify([e.environmentId,e.threadId]),c=C(e=>S(t=>{let n=a.get(e);n||(n={readers:0,sessions:new WeakMap},a.set(e,n)),n.readers++,t.addFinalizer(()=>{--n.readers===0&&a.delete(e)})}).pipe(ve(0),b(`file-metadata-thread:${e}`))),l=C(e=>S(0).pipe(b(`file-metadata-revision:${e}`))),d=(e,t)=>l(JSON.stringify([e,M(t)])),p=(e,n,r)=>{let i=M(n),a=t.get(e)?.get(i);return a&&a.expires>r?a:void 0},h=(e,n,r,i,o=!1)=>{let s=t.get(e);s||(s=new Map,t.set(e,s));let c=M(n);s.delete(c);let l={value:r,expires:i+L};s.set(c,l);for(let t of a.values()){let n=t.sessions.get(e),i=n?.get(c);n&&i&&n.set(c,{...l,value:o&&r&&i.value?.kind===r.kind?{...i.value,...r}:r})}if(s.size>$e){let e=s.keys().next().value;e!==void 0&&s.delete(e)}},ee=Qe({batchKey:e=>e.request.session,delay:ue,collectWhile:e=>e.size<64,runAll:f(function*(e){let t=e[0].request.session,n=[...e];for(;n.length>0;){let r=[...new Set(n.map(e=>e.request.path))],a=i.get(t);a||(a=new Map,i.set(t,a));let s=new Map(r.map(e=>[e,{valid:!0}]));for(let[e,t]of s){let n=a.get(e);n||a.set(e,n=new Set),n.add(t)}let c=a;n=yield*u(function*(){let i=yield*E(v.filesystemGetMetadata,{paths:r}).pipe(le(D,e[0].request.supervisor)),a=yield*m,o=new Map(r.map((e,t)=>[e,i.entries[t]??null])),c=[];for(let e of n){if(!s.get(e.request.path).valid){c.push(e);continue}let n=o.get(e.request.path)??null;h(t,e.request.path,n,a),e.request.retained?.set(e.request.path,{value:n,expires:a+L}),e.completeUnsafe(pe(n))}return c}).pipe(o(x(()=>{for(let[e,t]of s){let n=c.get(e);n?.delete(t),n?.size===0&&c.delete(e)}})))}})}),te=Oe(e,{label:`environment-data:filesystem:metadata`,staleTimeMs:L,idleTtlMs:L,execute:f(function*(e){let t=yield*D,n=yield*r(t.session);if(n._tag===`None`)return null;let i=e.threadId?a.get(s({environmentId:t.target.environmentId,threadId:e.threadId})):void 0,o=i?.sessions.get(n.value);i&&!o&&(o=new Map,i.sessions.set(n.value,o));let c=o?.get(e.path);if(c)return c.value;let l=yield*m,u=p(n.value,e.path,l);return u?(o?.set(e.path,u),u.value):yield*xe(new et({path:e.path,session:n.value,supervisor:t,...o?{retained:o}:{}}),ee)}),refreshTrigger:({environmentId:e,input:t})=>d(e,t.path)}),ne=e=>te({...e,input:{...e.input,path:M(e.input.path)}}),g=f(function*(e,t,n){let i=yield*D,a=yield*r(i.session);if(a._tag===`None`)return;let o=yield*m;if(!n||n(a.value))for(let n of t){let t=O(n.path,e);p(a.value,t,o)?.value?.kind!==n.kind&&h(a.value,t,{kind:n.kind},o,!0)}}),re=f(function*(e){let o=yield*D,s=yield*r(o.session);if(s._tag===`Some`){n.set(s.value,(n.get(s.value)??0)+1);let r=M(e);for(let e of i.get(s.value)?.get(r)??[])e.valid=!1;t.get(s.value)?.delete(r);for(let t of a.values())t.sessions.get(s.value)?.delete(M(e))}});return{metadata:ne,retainThread:e=>c(s(e)),rememberEntries:g,rememberFile:f(function*(e,t,n){let i=yield*D,a=yield*r(i.session);if(a._tag===`None`)return;let o=O(t.relativePath,e),s=yield*m;if(n&&!n(a.value))return;let c=p(a.value,o,s)?.value;h(a.value,o,{...c,kind:`file`,byteLength:t.byteLength},s,!0)}),seedAfterRead:(e,t)=>u(function*(){let i=yield*D,a=yield*r(i.session),o=a._tag===`Some`?n.get(a.value)??0:0,s=yield*e;return yield*t(s,e=>a._tag===`Some`&&e===a.value&&(n.get(e)??0)===o),s}),invalidate:re,refreshPath:(e,t,n)=>{let r=d(e,t);n.set(r,n.get(r)+1)}}}function nt(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function R(e,t){return new Set([t.relativePath,e.relativePath].map(t=>O(t,e.cwd)))}var rt=class extends s()(`ScratchProjectNotLoadedError`,{projectId:Ce}){get message(){return`The folder for threads without a project has not reached this device yet. Try again.`}};function it(e,t){let n=tt(e),r=ke(),i=ke(),a=C(e=>S(null).pipe(b(`environment-data:projects:optimistic-file:${e}`))),o={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{fileMetadata:n.metadata,fileMetadataThread:n.retainThread,invalidateFileMetadata:w(e,{label:`environment-data:filesystem:invalidate-metadata`,execute:(e,t,r)=>g([...new Set(e.paths)],e=>n.invalidate(e).pipe(l(()=>x(()=>n.refreshPath(r,e,t)))))}),searchEntries:T(e,{label:`environment-data:projects:search-entries`,tag:v.projectsSearchEntries,staleTimeMs:15e3,execute:e=>n.seedAfterRead(E(v.projectsSearchEntries,e),(t,r)=>n.rememberEntries(e.cwd,t.entries,r))}),listEntries:T(e,{label:`environment-data:projects:list-entries`,tag:v.projectsListEntries,staleTimeMs:3e4,idleTtlMs:3e5,execute:e=>n.seedAfterRead(E(v.projectsListEntries,e),(t,r)=>n.rememberEntries(e.cwd,t.entries,r))}),readConfiguration:T(e,{label:`environment-data:projects:read-configuration`,tag:v.projectsReadFile,staleTimeMs:3e4,idleTtlMs:3e5,execute:e=>E(v.projectsReadFile,{...e,relativePath:se})}),readFile:T(e,{label:`environment-data:projects:read-file`,tag:v.projectsReadFile,staleTimeMs:3e4,idleTtlMs:3e5,execute:e=>n.seedAfterRead(E(v.projectsReadFile,e),(t,r)=>n.rememberFile(e.cwd,t,r))}),optimisticFile:e=>a(nt(e)),create:w(e,{label:`environment-data:commands:project:create`,execute:e=>ze(e),scheduler:r,concurrency:o}),update:w(e,{label:`environment-data:commands:project:update`,execute:e=>Fe(e),scheduler:r,concurrency:o}),delete:w(e,{label:`environment-data:commands:project:delete`,execute:e=>Be(e),scheduler:r,concurrency:o}),openScratch:w(e,{label:`environment-data:projects:open-scratch`,execute:(e,n,r)=>E(v.projectsEnsureScratch,e).pipe(p(({projectId:e})=>oe(n,t.projectAtom({environmentId:r,projectId:e})).pipe(ye(_e),Se,te(`10 seconds`),de(ee),p(ae({onSome:ie,onNone:()=>h(new rt({projectId:e}))}))))),scheduler:r,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),createNew:Te(e,{label:`environment-data:projects:create-new`,tag:v.projectsCreateNew,scheduler:r,concurrency:{mode:`serial`,key:({environmentId:e})=>e}}),writeFile:Te(e,{label:`environment-data:projects:write-file`,tag:v.projectsWriteFile,scheduler:i,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])},execute:e=>Ee(v.projectsWriteFile,e).pipe(l(t=>g(R(e,t),n.invalidate))),onSuccess:({environmentId:e,input:t},r,i)=>x(()=>{for(let a of R(t,i))n.refreshPath(e,a,r)})})}}var at=Object.freeze([]),ot=new Map;function st(e){let t=C(t=>S(n=>n(e.snapshotAtom(t))?.projects??at).pipe(b(`environment-projects:${t}`))),n=C(e=>S(n=>{let r=n(t(e));return r.length===0?ot:new Map(r.map(e=>[e.id,e]))}).pipe(b(`environment-project-index:${e}`))),r=C(e=>{let n=[];return S(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return j(n,i)?n:(n=i,i)}).pipe(b(`environment-project-refs:${e}`))}),i=C(t=>{let r=Ne(t),i=null,a=!1,o=null;return S(t=>{let s=t(n(r.environmentId)).get(r.projectId)??null,c=s!==null&&ft(s,e.serverConfigValueAtom?t(e.serverConfigValueAtom(r.environmentId))?.scratchWorkspaceRoot:null);return s===i&&c===a?o:(i=s,a=c,o=s===null?null:{...Ye(r.environmentId,s),...c?{isScratch:!0}:{}},o)}).pipe(b(`environment-project:${t}`))}),a=[],o=S(t=>{let n=[];for(let i of A(t(e.catalogValueAtom)))n.push(...t(r(i)));return j(a,n)?a:(a=n,n)}).pipe(b(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:S(e=>{let t=e(o).flatMap(t=>{let n=e(i(Pe(t)));return n===null?[]:[n]});return Ge(s,t)||(s=t),s}).pipe(b(`environment-project-list`)),projectConfigsReadyAtom:S(t=>{let n=t(e.catalogValueAtom);if(!n.isReady)return!1;for(let r of A(n))if(e.serverConfigValueAtom&&t(e.serverConfigValueAtom(r))===null)return!1;return!0}).pipe(b(`environment-project-configs-ready`)),projectAtom:e=>i(Pe(e))}}var z=e=>/^win(dows)?/i.test(e);function B(e){return Ae(e)||Je(e)?`windows`:e.startsWith(`/`)?`unix`:null}function V(e){let t=B(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function H(e){return(B(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function U(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function W(e){return B(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function G(e){if(Ae(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:U(e.slice(t.length),`\\`)}}if(Je(e)){let[t,n,...r]=U(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:U(e.slice(1),`/`)}:null}function ct(e,t=``){let n=z(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&Ie(e)}function lt(e,t){return Ie(e)&&!z(t)}function ut(e,t){let n=e.trim();if(!He(n)||!t)return k(n);let r=G(k(t));if(!r)return k(n);let i=[...r.segments];for(let e of n.split(/[\\/]+/))if(e.length!==0&&e!==`.`){if(e===`..`){i.pop();continue}i.push(e)}let a=i.join(r.separator);return k(a.length===0?r.root:`${r.root}${a}`)}function dt(e,t){let n=M(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?M(t)===n:!1})}function ft(e,t){return t!=null&&dt([e],t)!==void 0}function pt(e){let t=k(e),n=G(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function mt(e,t){let n=V(e);return`${gt(e)}${t}${n}`}function ht(e){let t=W(e);return e.slice(t+1)}function gt(e){if(H(e))return e;let t=W(e);return t<0?e:e.slice(0,t+1)}function _t(e){let t=e.trim();return t.length===0||H(t)?t:`${t}${V(t)}`}function vt(e){let t=k(e),n=G(t);if(n){if(n.segments.length===0)return null;if(n.segments.length===1)return n.root;let e=n.segments.slice(0,-1).join(n.separator);return`${n.root}${e}${n.separator}`}let r=V(e),i=W(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function yt(e){return H(e)&&vt(e)!==null}function bt(e){return C(t=>S(n=>ae(a(n(e(t))),{onNone:()=>null,onSome:e=>ne(e.snapshot)})).pipe(b(`environment-snapshot:${t}`)))}var xt=Ve(N),K=We(N),St=bt(K.stateAtom);function Ct(e){return S(t=>e.environmentIds.length>0&&e.environmentIds.every(n=>{let r=t(e.shellStateValueAtom(n));return r.status===`live`&&c(r.snapshot)}))}var wt=S(e=>{let t=a(e(P.catalogAtom));if(_(t))return!1;for(let n of A(t.value)){if(c(e(K.stateValueAtom(n)).snapshot))continue;let t=d(a(e(P.stateAtom(n))),()=>De);if(we(t)!==`disconnected`||t.phase===`backoff`&&t.desired&&t.attempt<=2)return!1}return!0}).pipe(b(`web-all-environment-shells-bootstrapped`));function Tt(e,t){return!e.isReady||e.entries.size===0?!1:!t||Array.from(e.entries.values()).some(e=>e.target._tag===`PrimaryConnectionTarget`)}function Et(e){return S(t=>{let n=t(e.catalogValueAtom);if(!Tt(n,e.requiresPrimaryEnvironment))return!1;for(let r of A(n)){let n=t(e.shellStateValueAtom(r));if(n.status!==`live`||_(n.snapshot))return!1}return!0}).pipe(b(`web-all-environment-project-snapshots-ready`))}Et({catalogValueAtom:P.catalogValueAtom,shellStateValueAtom:K.stateValueAtom,requiresPrimaryEnvironment:!Le()});var Dt=S(e=>{let t=e(P.catalogValueAtom);if(!Tt(t,!Le()))return!1;for(let n of A(t)){let t=e(K.stateValueAtom(n));if(t.status===`live`&&c(t.snapshot))continue;let r=a(e(P.stateAtom(n)));if(_(r))return!1;let i=r.value;if(!(i.phase===`offline`||i.phase===`blocked`||i.phase===`backoff`&&i.attempt>2))return!1}return!0}).pipe(b(`web-all-reachable-shells-live`)),q=st({catalogValueAtom:P.catalogValueAtom,snapshotAtom:St,serverConfigValueAtom:Xe.configValueAtom}),Ot=it(N,{projectAtom:q.projectAtom}),kt=T(N,{label:`environment-data:projects:search-contents`,tag:v.projectsSearchContents,staleTimeMs:5e3,idleTtlMs:6e4}),At=Ke(N,St),J=Re(N),Y=je(J.stateAtom),X=Me({catalogValueAtom:P.catalogValueAtom,snapshotAtom:At.snapshotAtom}),jt=S(re(Ue)).pipe(b(`web-environment-thread:empty`));function Mt(t,n){let r=(0,I.c)(5),i;r[0]!==t||r[1]!==n?(i=t!==null&&n!==null?J.stateAtom(t,n):jt,r[0]=t,r[1]=n,r[2]=i):i=r[2];let o=e(i),s;return r[3]===o?s=r[4]:(s=d(a(o),Nt),r[3]=o,r[4]=s),s}function Nt(){return Ue}var Pt=e=>e===`preparing`||e===`queued`||e===`starting`||e===`running`;function Ft(e){if(!i(e))return!0;let{status:t,data:n,error:r}=e.value;return t===`deleted`||c(r)?!0:t===`live`&&!fe(n,e=>e.runs.some(e=>Pt(e.status)))}function It(e){let t=C(t=>{let n=[];return S(r=>{let i=r(e.threadsAtom(t)).flatMap(e=>Pt(e.status)?[e.id]:[]);return Ge(n,i)?n:(n=i,i)}).pipe(b(`web-running-thread-ids:${t}`))});return S(r=>{let i=n(r.self()),a=new Map;for(let n of r(e.environmentIdsAtom)){let o=new Set(r(t(n)));for(let t of i?.get(n)??[]){if(o.has(t))continue;let i=e.stateAtom(n,t);Ft(r.once(i))||(o.add(t),r.subscribe(i,e=>{Ft(e)&&r.refreshSelf()}))}for(let t of o)r.mount(e.stateAtom(n,t));a.set(n,o)}return a}).pipe(b(`web-running-thread-keep-alive`))}var Lt=It({environmentIdsAtom:ce(P.catalogValueAtom,e=>[...A(e)]),threadsAtom:X.environmentThreadsAtom,stateAtom:J.stateAtom});async function Z(e){let t=()=>e.registry.get(e.atom);return e.predicate(t())?!0:await new Promise(n=>{let r=!1,i=null,a=null,o=!1,s=e=>{r||(r=!0,i!==null&&globalThis.clearTimeout(i),a===null?o=!0:a(),n(e))};if(a=e.registry.subscribe(e.atom,t=>{e.predicate(t)&&s(!0)}),o){a();return}if(e.predicate(t())){s(!0);return}i=globalThis.setTimeout(()=>{s(!1)},e.timeoutMs)})}var Rt=Object.freeze([]),zt=Object.freeze([]),Bt=S(null).pipe(b(`web-project:empty`)),Vt=S(Rt).pipe(b(`web-thread-refs:empty`)),Ht=S(Object.freeze([])).pipe(b(`web-thread-shells:empty`)),Ut=S(null).pipe(b(`web-thread-shell:empty`)),Wt=S(null).pipe(b(`web-thread-projection:empty`)),Gt=S(`empty`).pipe(b(`web-thread-status:empty`)),Kt=S(zt).pipe(b(`web-thread-visible-turn-items:empty`)),qt=S(qe).pipe(b(`web-thread-history:empty`)),Jt=S(null).pipe(me,b(`web-active-environment-id`));function Yt(){return e(Jt)}function Xt(e){y.set(Jt,e)}function Zt(){return e(X.threadRefsAtom)}function Qt(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Vt:X.environmentThreadRefsAtom(t),n[0]=t,n[1]=r),e(r)}function $t(){return e(q.projectsAtom)}function Q(){return e(F)}function en(t){return e(t===void 0||t?X.threadShellsAtom:Ht)}function tn(){return e(wt)}function nn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=X.threadShellsForProjectRefsAtom(t),n[0]=t,n[1]=r),e(r)}function rn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Bt:q.projectAtom(t),n[0]=t,n[1]=r),e(r)}function an(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Ut:X.threadShellAtom(t),n[0]=t,n[1]=r),e(r)}function on(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Ht:X.childThreadInputsAtom(t),n[0]=t,n[1]=r),e(r)}function sn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Wt:Y.threadAtom(t),n[0]=t,n[1]=r),e(r)}function cn(e){return Q().get(e)?.environment.capabilities.threadSideChats===!0}function ln(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Gt:Y.statusAtom(t),n[0]=t,n[1]=r),e(r)}function un(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?qt:Y.historyAtom(t),n[0]=t,n[1]=r),e(r)}function dn(e,t){return e!==null&&(!t.waitForShell||t.shellExists)?e:null}function fn(t){let n=(0,I.c)(2),r;return n[0]===t?r=n[1]:(r=t===null?Kt:Y.visibleTurnItemsAtom(t),n[0]=t,n[1]=r),e(r)}function $(e){return y.get(q.projectAtom(e))}function pn(){return y.get(q.projectsAtom)}function mn(e,t=1e4){let n=$(e);return n===null?new Promise((n,r)=>{let i=null,a=setTimeout(()=>{i?.(),r(Error(`The project did not appear in the desktop app.`))},t),o=e=>{e!==null&&(clearTimeout(a),i?.(),n(e))};i=y.subscribe(q.projectAtom(e),o),o($(e))}):Promise.resolve(n)}function hn(e,t=5e3){return Z({registry:y,atom:q.projectAtom(e),predicate:e=>e===null,timeoutMs:t})}function gn(e){return y.get(X.threadShellAtom(e))}function _n(e,t=5e3){return Z({registry:y,atom:X.threadShellAtom(e),predicate:e=>e!==null,timeoutMs:t})}function vn(e){let t=(0,I.c)(3),n=Q(),r;return t[0]!==n||t[1]!==e?(r=e!==null&&n.get(e)?.environment.capabilities.serverBrowser===!0,t[0]=n,t[1]=e,t[2]=r):r=t[2],r}function yn(e){return y.get(F).get(e)?.environment.capabilities.serverBrowser===!0}function bn(e){return y.get(F).get(e)?.environment.capabilities.threadTitleRegeneration===!0}function xn(e){return y.get(F).get(e)?.environment.capabilities.threadPinning===!0}function Sn(e){return y.get(F).get(e)?.environment.capabilities.threadPinReorder===!0}function Cn(e){return y.get(F).get(e)?.environment.capabilities.threadAutoSettleOptOut===!0}function wn(e){return y.get(F).get(e)?.environment.capabilities.threadActiveReorder===!0}function Tn(e){return y.get(F).get(e)?.environment.capabilities.threadSettlement===!0}function En(e){return y.get(F).get(e)?.environment.capabilities.threadSnooze===!0}function Dn(e){return y.get(F).get(e)?.environment.capabilities.threadVisitedTracking===!0}function On(e){return y.get(X.environmentThreadRefsAtom(e))}function kn(){return y.get(X.threadShellsAtom)}export{dt as $,en as A,Lt as B,rn as C,sn as D,un as E,hn as F,Ot as G,Mt as H,_n as I,K as J,Dt as K,Z as L,ln as M,fn as N,Zt as O,mn as P,_t as Q,Y as R,Qt as S,Q as T,q as U,At as V,kt as W,mt as X,xt as Y,yt as Z,Yt as _,yn as a,ct as at,vn as b,bn as c,ut as ct,$ as d,gt as et,pn as f,Xt as g,dn as h,xn as i,pt as it,nn as j,an as k,Dn as l,kn as m,Cn as n,vt as nt,Tn as o,ft as ot,gn as p,Ct as q,Sn as r,H as rt,En as s,lt as st,wn as t,ht as tt,On as u,tn as v,$t as w,cn as x,on as y,X as z};
|
|
2
|
+
//# sourceMappingURL=entities-BhpgabTo.js.map
|
package/dist/client/assets/{erDiagram-RLTQ6QDP-F6qh1mx2.js → erDiagram-RLTQ6QDP-Cj9VHvs2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n,p as r}from"./src-oBChb5qS.js";import{H as i,K as a,U as o,a as s,rt as c,s as l,v as u,w as d,x as f,y as p}from"./chunk-DU6HZSFF-D_0nd_m5.js";import{t as m}from"./channel-BY4Mhil-.js";import{c as h,g}from"./chunk-75Z2AOVW-uoFI_96z.js";import"./chunk-PWAF6VOD-HbLsvJ11.js";import"./chunk-GMAD6QVW-DVJraU0z.js";import"./chunk-P2QGCYS3-DZOYqNgv.js";import"./chunk-4HAMMTFA-DztP-PZY.js";import"./chunk-GVQU2GXP-D1KDAS1u.js";import"./chunk-OSK3NFVY-B4_CzVzL.js";import{t as _}from"./chunk-XXDRQBXY-BvKO0v-W.js";import{t as v}from"./chunk-POPQ4Y6H-4nivFn8h.js";import"./chunk-L3NEJ4N5-Cg0GbrIO.js";import{d as y,u as b}from"./mermaid.core-BFUbfTlG.js";var x=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],r=[2,2],i=[1,7],a=[1,9],o=[1,10],s=[1,11],c=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],R=[1,71],z=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],B=[1,78],V=[1,77],H=[1,76],U=[69,70,71,72,73],W=[1,91],G=[6,9,45,50],K=[6,9,12,44,45,50,51,52],q=[1,101],J=[1,100],Y=[1,99],X=[18,61],ee=[1,110],te=[1,109],ne=[20,43,51,53,54,55],Z=[18,61,64,66],Q={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,r,{5:3}),{6:[1,4],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},t(n,S,{1:[2,1]}),t(C,[2,3]),t(C,[2,4]),t(C,[2,5]),t(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},t(C,[2,26]),t(C,[2,27]),t(C,[2,28]),t(C,[2,29]),t(C,[2,30]),t(C,r,{5:44}),t(k,[2,58]),t(k,[2,59]),t(k,[2,60]),t(k,[2,61]),t(k,[2,62]),t(C,[2,36]),t(C,[2,37]),t(C,[2,38]),t(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},t(N,[2,77]),t(N,[2,78]),t(N,[2,79]),t(N,[2,80]),t(N,[2,81]),t(C,[2,23]),t(C,[2,24]),t(C,[2,25]),{6:[1,63],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:R},t(z,[2,41]),t(z,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:R},{6:B,9:V,19:[1,75],35:74,50:H},{12:[1,79],14:[1,80]},t(C,[2,16],{67:35,11:81,16:[1,82],45:I,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},t(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},t(U,[2,82]),t(U,[2,83]),t(C,[2,31]),t(C,S),{6:B,9:V,35:90,45:W,50:H},{43:[1,92],44:[1,93]},t(G,[2,47],{49:94,12:P,44:F,51:L,52:R}),t(K,[2,49]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(C,[2,45],{45:I}),{6:B,9:V,35:95,45:W,50:H},t(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},t(C,[2,51]),t(C,[2,52]),t(C,[2,53]),{13:98,43:q,53:J,76:Y},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},t(C,[2,11]),{18:[2,64]},t(X,[2,65],{59:106,60:107,63:108,65:ee,66:te}),t([18,61,65,66],[2,71]),{61:[2,70]},t(C,[2,21],{14:[1,112],16:[1,111]}),t([43,51,53,54,55],[2,76]),t(C,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:R},t(z,[2,43]),t(z,[2,44]),t(K,[2,50]),t(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},t(ne,[2,34]),t(C,[2,7]),t(C,[2,84]),t(C,[2,85]),t(C,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},t(C,[2,14]),t(X,[2,66],{60:120,64:[1,121],66:te}),t(X,[2,67]),t(Z,[2,72]),t(X,[2,75]),t(Z,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},t(G,[2,48],{49:94,12:P,44:F,51:L,52:R}),{6:B,9:V,35:125,50:H},t(ne,[2,35]),{13:126,43:q,53:J,76:Y},{15:127,43:A,44:j},{13:128,43:q,53:J,76:Y},t(C,[2,12]),t(X,[2,68]),{63:129,65:ee},{18:[1,130]},t(C,[2,19]),t(C,[2,22],{16:[1,131],45:I}),t(C,[2,33]),t(C,[2,10]),{12:[1,132],45:I},t(C,[2,9]),t(Z,[2,73]),t(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:q,53:J,76:Y},{18:[1,136]},t(C,[2,20]),t(C,[2,8]),t(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n,p as r}from"./src-oBChb5qS.js";import{H as i,K as a,U as o,a as s,rt as c,s as l,v as u,w as d,x as f,y as p}from"./chunk-DU6HZSFF-DMXcgXT_.js";import{t as m}from"./channel-DyV-uKW8.js";import{c as h,g}from"./chunk-75Z2AOVW-B4sXgwEx.js";import"./chunk-PWAF6VOD-DflyqEaS.js";import"./chunk-GMAD6QVW-mPVRZq9Z.js";import"./chunk-P2QGCYS3-CeefF5cA.js";import"./chunk-4HAMMTFA-CD4tA6cX.js";import"./chunk-GVQU2GXP-ChBHtvjy.js";import"./chunk-OSK3NFVY-m-QXUYaT.js";import{t as _}from"./chunk-XXDRQBXY-BvKO0v-W.js";import{t as v}from"./chunk-POPQ4Y6H-C-_RXsmg.js";import"./chunk-L3NEJ4N5-REmklvQl.js";import{d as y,u as b}from"./mermaid.core-Dtz8UzUI.js";var x=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],r=[2,2],i=[1,7],a=[1,9],o=[1,10],s=[1,11],c=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],R=[1,71],z=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],B=[1,78],V=[1,77],H=[1,76],U=[69,70,71,72,73],W=[1,91],G=[6,9,45,50],K=[6,9,12,44,45,50,51,52],q=[1,101],J=[1,100],Y=[1,99],X=[18,61],ee=[1,110],te=[1,109],ne=[20,43,51,53,54,55],Z=[18,61,64,66],Q={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,r,{5:3}),{6:[1,4],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},t(n,S,{1:[2,1]}),t(C,[2,3]),t(C,[2,4]),t(C,[2,5]),t(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},t(C,[2,26]),t(C,[2,27]),t(C,[2,28]),t(C,[2,29]),t(C,[2,30]),t(C,r,{5:44}),t(k,[2,58]),t(k,[2,59]),t(k,[2,60]),t(k,[2,61]),t(k,[2,62]),t(C,[2,36]),t(C,[2,37]),t(C,[2,38]),t(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},t(N,[2,77]),t(N,[2,78]),t(N,[2,79]),t(N,[2,80]),t(N,[2,81]),t(C,[2,23]),t(C,[2,24]),t(C,[2,25]),{6:[1,63],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:R},t(z,[2,41]),t(z,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:R},{6:B,9:V,19:[1,75],35:74,50:H},{12:[1,79],14:[1,80]},t(C,[2,16],{67:35,11:81,16:[1,82],45:I,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},t(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},t(U,[2,82]),t(U,[2,83]),t(C,[2,31]),t(C,S),{6:B,9:V,35:90,45:W,50:H},{43:[1,92],44:[1,93]},t(G,[2,47],{49:94,12:P,44:F,51:L,52:R}),t(K,[2,49]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(C,[2,45],{45:I}),{6:B,9:V,35:95,45:W,50:H},t(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},t(C,[2,51]),t(C,[2,52]),t(C,[2,53]),{13:98,43:q,53:J,76:Y},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},t(C,[2,11]),{18:[2,64]},t(X,[2,65],{59:106,60:107,63:108,65:ee,66:te}),t([18,61,65,66],[2,71]),{61:[2,70]},t(C,[2,21],{14:[1,112],16:[1,111]}),t([43,51,53,54,55],[2,76]),t(C,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:R},t(z,[2,43]),t(z,[2,44]),t(K,[2,50]),t(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},t(ne,[2,34]),t(C,[2,7]),t(C,[2,84]),t(C,[2,85]),t(C,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},t(C,[2,14]),t(X,[2,66],{60:120,64:[1,121],66:te}),t(X,[2,67]),t(Z,[2,72]),t(X,[2,75]),t(Z,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},t(G,[2,48],{49:94,12:P,44:F,51:L,52:R}),{6:B,9:V,35:125,50:H},t(ne,[2,35]),{13:126,43:q,53:J,76:Y},{15:127,43:A,44:j},{13:128,43:q,53:J,76:Y},t(C,[2,12]),t(X,[2,68]),{63:129,65:ee},{18:[1,130]},t(C,[2,19]),t(C,[2,22],{16:[1,131],45:I}),t(C,[2,33]),t(C,[2,10]),{12:[1,132],45:I},t(C,[2,9]),t(Z,[2,73]),t(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:q,53:J,76:Y},{18:[1,136]},t(C,[2,20]),t(C,[2,8]),t(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Q.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -97,4 +97,4 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
|
|
|
97
97
|
fill: ${e.titleColor??e.textColor};
|
|
98
98
|
}
|
|
99
99
|
`},`getStyles`)};export{k as diagram};
|
|
100
|
-
//# sourceMappingURL=erDiagram-RLTQ6QDP-
|
|
100
|
+
//# sourceMappingURL=erDiagram-RLTQ6QDP-Cj9VHvs2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{O as e}from"./mermaid-parser.core-Dbb1WTb8.js";export{e as createEventModelingServices};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{On as e,Sn as t,vn as n,yn as r}from"./runtime-
|
|
2
|
-
//# sourceMappingURL=fileLinks-
|
|
1
|
+
import{On as e,Sn as t,vn as n,yn as r}from"./runtime-V62Oyi1q.js";var i=/:(\d+)(?::(\d+))?$/,a=/^#L(\d+)(?:C(\d+))?$/i;function o(t){try{let n=new URL(t);if(n.protocol.toLowerCase()!==`file:`)return null;let r=n.hostname.toLowerCase()===`localhost`?``:n.hostname,i=r?`\\\\${r}${n.pathname.replaceAll(`/`,`\\`)}`:n.pathname;return i.length===0?null:{path:e(i),hash:n.hash}}catch{return null}}function s(e,t=``){let n=e.match(i),r=n??t.match(a);if(!r?.[1])return{path:e};let o=Number.parseInt(r[1],10),s=r[2]===void 0?void 0:Number.parseInt(r[2],10);return{path:n?e.slice(0,-n[0].length):e,...o>0?{line:o}:{},...s!==void 0&&s>0?{column:s}:{}}}function c(e){return e.line?`${e.path}:${e.line}${e.column?`:${e.column}`:``}`:e.path}function l(e){return t(e)||/[A-Za-z]:\\/.test(e)}function u(e,t,n){let r=e.replace(/[\\/]+$/,``);return n===`\\`?`${r}\\${t.replaceAll(`/`,`\\`)}`:`${r}/${t.replace(/^\/+/,``)}`}function d(e){let t=e.match(/^\/Users\/([^/]+)/);if(t?.[1])return`/Users/${t[1]}`;let n=e.match(/^\/home\/([^/]+)/);if(n?.[1])return`/home/${n[1]}`;let r=e.match(/^([A-Za-z]:[\\/]Users[\\/][^\\/]+)/);if(r?.[1])return r[1]}function f(e,t){let n=s(e),{path:i}=n,a=i;if(i.startsWith(`~/`)){let e=d(t);if(e){let t=l(e)?`\\`:`/`;a=u(e,i.slice(2),t)}}else r(i)||(a=u(t,i,l(t)?`\\`:`/`));return c({...n,path:a})}function p(e){return e.replaceAll(`\\`,`/`).split(`/`).filter(e=>e.length>0).slice(0,-1)}function m(e){let t=new Map;for(let n of e){let e=n.replaceAll(`\\`,`/`),r=e.split(`/`).filter(e=>e.length>0),i=r[r.length-1];if(!i)continue;let a=t.get(i)??new Set;a.add(e),t.set(i,a)}let n=new Map;for(let e of t.values()){let t=[...e];if(t.length<2)continue;let r=new Map(t.map(e=>[e,p(e)])),i=new Map;for(let e of t){let n=r.get(e)??[],a=n.length;for(let i=1;i<=n.length;i+=1){let o=n.slice(-i).join(`/`);if(!t.some(t=>t!==e&&(r.get(t)??[]).slice(-i).join(`/`)===o)){a=i;break}}i.set(e,a)}for(let e of t){let t=r.get(e)??[];if(t.length===0)continue;let a=i.get(e)??1,o=Math.min(t.length,Math.max(a,2));n.set(e,t.slice(-o).join(`/`))}}return n}function h(e,t){let r=t.get(e.path.replaceAll(`\\`,`/`));return[n(e.path),r,e.line?`L${e.line}${e.column?`:C${e.column}`:``}`:void 0].filter(Boolean).join(` · `)}export{f as a,o as i,h as n,s as o,c as r,m as t};
|
|
2
|
+
//# sourceMappingURL=fileLinks-CCxqMBvI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{mE as n}from"./utils-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{mE as n}from"./utils-B0w8dSf5.js";import{c as r,l as i,s as a,u as o}from"./pierre-icons-CL-szz98.js";var s=`file-tree-container`,c=`data-file-tree-style`,l=`data-file-tree-unsafe-css`,u=`data-file-tree-scrollbar-measure`,d=`data-file-tree-scrollbar-gutter-measured`,f=`--trees-scrollbar-gutter-measured`,p=`header`,m=`context-menu`,h=`context-menu-trigger`,g=e(t(),1),_=e(n(),1),v=typeof window>`u`?g.useEffect:g.useLayoutEffect;function y(e,t,n){let r=e==null?null:(0,_.jsx)(`div`,{slot:p,children:e}),i=t!=null&&n!=null?(0,_.jsx)(`div`,{slot:m,children:t(n.item,n.context)}):null;return r==null&&i==null?null:(0,_.jsxs)(_.Fragment,{children:[r,i]})}function b(e,t){return typeof window>`u`&&t!=null?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):(0,_.jsx)(_.Fragment,{children:e})}function x(e){let t=e.shadowRoot;return t?.querySelector(`[data-file-tree-id]`)instanceof HTMLElement||t?.querySelector(`[data-file-tree-id]`)instanceof SVGElement||e.querySelector(`template[shadowrootmode="open"]`)instanceof HTMLTemplateElement}function S(e,t,n,r,i){let a={...e??{}};if(t!=null&&delete a.header,n){let t=e?.contextMenu,n=t?.onClose,o=t?.onOpen;a.contextMenu={...t??{},enabled:!0,onClose:()=>{n?.(),r()},onOpen:(e,t)=>{i(e,t),o?.(e,t)}},delete a.contextMenu.render}return a.header!=null||a.contextMenu!=null?a:void 0}function C({header:e,id:t,model:n,preloadedData:r,renderContextMenu:i,...a}){let[o,c]=(0,g.useState)(null),[l,u]=(0,g.useState)(null),d=(0,g.useRef)(n.getComposition()),f=(0,g.useRef)(n);f.current!==n&&(f.current=n,d.current=n.getComposition());let p=i!=null,m=(0,g.useCallback)(()=>{c(null)},[]),h=(0,g.useCallback)((e,t)=>{c({context:t,item:e})},[]),C=d.current,ee=(0,g.useMemo)(()=>S(C,e,p,m,h),[C,m,h,p,e]),te=(0,g.useCallback)(e=>{u(e)},[]);(0,g.useEffect)(()=>{p||c(null)},[p]),v(()=>{n.setComposition(ee)},[ee,n]),v(()=>{if(l!=null)return r!=null&&x(l)?n.hydrate({fileTreeContainer:l}):n.render({fileTreeContainer:l}),()=>{n.unmount(),n.setComposition(C)}},[C,l,n,r]);let ne=b(y(e,i,o),r),w=t??r?.id,T={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...a.style};return(0,_.jsx)(s,{...a,id:w,ref:te,style:T,suppressHydrationWarning:r!=null,children:ne})}var ee={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function te(e,t){if(typeof e==`number`)return{itemHeight:t??ee.default.itemHeight,factor:e};let n=ee[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var ne=ee.default.itemHeight,w=`@layer base {
|
|
2
2
|
:host {
|
|
3
3
|
--trees-accent: var(--trees-accent-override, #009fff);
|
|
4
4
|
--trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));
|
|
@@ -1112,4 +1112,4 @@ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19
|
|
|
1112
1112
|
}
|
|
1113
1113
|
@keyframes p4-tree-spin { to { transform: rotate(360deg); } }
|
|
1114
1114
|
`;function Hs(e){return{colorScheme:e,"--trees-fg-override":`var(--contrast-foreground)`}}function Us(e){return typeof e!=`object`||!e||!(`isDirectory`in e)||typeof e.isDirectory!=`function`||!e.isDirectory()||!(`isExpanded`in e)||typeof e.isExpanded!=`function`||!(`expand`in e)||typeof e.expand!=`function`||!(`collapse`in e)||typeof e.collapse!=`function`?null:e}function Ws(e,t){return t.length>0&&t.every(t=>{let n=Us(e.getItem(t));return n!==null&&n.isExpanded()})}function Gs(e,t,n){for(let r of t){let t=Us(e.getItem(r));t!==null&&t.isExpanded()!==n&&(n?t.expand():t.collapse())}}export{Rs as a,C as c,Hs as i,Gs as n,Bs as o,Vs as r,Ls as s,Ws as t};
|
|
1115
|
-
//# sourceMappingURL=fileTreeExpansion-
|
|
1115
|
+
//# sourceMappingURL=fileTreeExpansion-N_KS64dO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-DMXcgXT_.js";import"./chunk-75Z2AOVW-B4sXgwEx.js";import"./chunk-PWAF6VOD-DflyqEaS.js";import"./chunk-GMAD6QVW-mPVRZq9Z.js";import"./chunk-P2QGCYS3-CeefF5cA.js";import"./chunk-4HAMMTFA-CD4tA6cX.js";import"./chunk-GVQU2GXP-ChBHtvjy.js";import"./chunk-OSK3NFVY-m-QXUYaT.js";import"./chunk-F27PBJKO-CGf21cwH.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-C-_RXsmg.js";import"./chunk-L3NEJ4N5-REmklvQl.js";import{n as e}from"./chunk-SHT3W25Y-R_Fg17nt.js";import"./mermaid.core-Dtz8UzUI.js";export{e as diagram};
|
package/dist/client/assets/{ganttDiagram-EL5Y4UJY-YGfup7SG.js → ganttDiagram-EL5Y4UJY--tZCMTKs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{a as r,c as i,d as a,f as o,g as s,i as c,m as l,p as u,s as d,u as f}from"./src-oBChb5qS.js";import{H as p,K as m,U as h,a as g,c as _,s as v,v as y,w as b,x,y as S}from"./chunk-DU6HZSFF-D_0nd_m5.js";import{a as C,i as w,n as T,r as E,t as D}from"./linear-BUnzfXgk.js";import{t as O}from"./init-C-OQMol4.js";import{t as k}from"./dist-B_J_HbC0.js";import{g as ee}from"./chunk-75Z2AOVW-uoFI_96z.js";function A(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function te(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ne(e){return e}var j=1,re=2,ie=3,ae=4,oe=1e-6;function se(e){return`translate(`+e+`,0)`}function ce(e){return`translate(0,`+e+`)`}function le(e){return t=>+e(t)}function ue(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function de(){return!this.__axis}function fe(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===j||e===ae?-1:1,u=e===ae||e===re?`x`:`y`,d=e===j||e===ie?se:ce;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):ne),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?ue:le)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===j?`0em`:e===ie?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,oe).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,oe).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===ae||e===re?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(de).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===re?`start`:e===ae?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function pe(e){return fe(j,e)}function me(e){return fe(ie,e)}var he=Math.PI/180,ge=180/Math.PI,_e=18,ve=.96422,ye=1,be=.82521,xe=4/29,Se=6/29,Ce=3*Se*Se,we=Se*Se*Se;function Te(e){if(e instanceof M)return new M(e.l,e.a,e.b,e.opacity);if(e instanceof N)return Ne(e);e instanceof i||(e=f(e));var t=Ae(e.r),n=Ae(e.g),r=Ae(e.b),a=De((.2225045*t+.7168786*n+.0606169*r)/ye),o,s;return t===n&&n===r?o=s=a:(o=De((.4360747*t+.3850649*n+.1430804*r)/ve),s=De((.0139322*t+.0971045*n+.7141733*r)/be)),new M(116*a-16,500*(o-a),200*(a-s),e.opacity)}function Ee(e,t,n,r){return arguments.length===1?Te(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}a(M,Ee,o(d,{brighter(e){return new M(this.l+_e*(e??1),this.a,this.b,this.opacity)},darker(e){return new M(this.l-_e*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=ve*Oe(t),e=ye*Oe(e),n=be*Oe(n),new i(ke(3.1338561*t-1.6168667*e-.4906146*n),ke(-.9787684*t+1.9161415*e+.033454*n),ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function De(e){return e>we?e**(1/3):e/Ce+xe}function Oe(e){return e>Se?e*e*e:Ce*(e-xe)}function ke(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function Ae(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function je(e){if(e instanceof N)return new N(e.h,e.c,e.l,e.opacity);if(e instanceof M||(e=Te(e)),e.a===0&&e.b===0)return new N(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ge;return new N(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Me(e,t,n,r){return arguments.length===1?je(e):new N(e,t,n,r??1)}function N(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ne(e){if(isNaN(e.h))return new M(e.l,0,0,e.opacity);var t=e.h*he;return new M(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}a(N,Me,o(d,{brighter(e){return new N(this.h,this.c,this.l+_e*(e??1),this.opacity)},darker(e){return new N(this.h,this.c,this.l-_e*(e??1),this.opacity)},rgb(){return Ne(this).rgb()}}));function Pe(e){return function(t,n){var i=e((t=Me(t)).h,(n=Me(n)).h),a=r(t.c,n.c),o=r(t.l,n.l),s=r(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=a(e),t.l=o(e),t.opacity=s(e),t+``}}}var Fe=Pe(c);function Ie(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var Le=new Date,Re=new Date;function P(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>P(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(Le.setTime(+t),Re.setTime(+r),e(Le),e(Re),Math.floor(n(Le,Re))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var ze=P(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ze.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?P(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ze),ze.range;var F=1e3,I=F*60,L=I*60,R=L*24,Be=R*7,Ve=R*30,He=R*365,z=P(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*F)},(e,t)=>(t-e)/F,e=>e.getUTCSeconds());z.range;var Ue=P(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*F)},(e,t)=>{e.setTime(+e+t*I)},(e,t)=>(t-e)/I,e=>e.getMinutes());Ue.range;var We=P(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*I)},(e,t)=>(t-e)/I,e=>e.getUTCMinutes());We.range;var Ge=P(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*F-e.getMinutes()*I)},(e,t)=>{e.setTime(+e+t*L)},(e,t)=>(t-e)/L,e=>e.getHours());Ge.range;var Ke=P(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*L)},(e,t)=>(t-e)/L,e=>e.getUTCHours());Ke.range;var B=P(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*I)/R,e=>e.getDate()-1);B.range;var qe=P(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/R,e=>e.getUTCDate()-1);qe.range;var Je=P(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/R,e=>Math.floor(e/R));Je.range;function V(e){return P(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*I)/Be)}var Ye=V(0),Xe=V(1),Ze=V(2),Qe=V(3),H=V(4),$e=V(5),et=V(6);Ye.range,Xe.range,Ze.range,Qe.range,H.range,$e.range,et.range;function U(e){return P(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Be)}var tt=U(0),nt=U(1),rt=U(2),it=U(3),at=U(4),ot=U(5),st=U(6);tt.range,nt.range,rt.range,it.range,at.range,ot.range,st.range;var ct=P(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ct.range;var lt=P(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());lt.range;var W=P(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());W.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:P(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),W.range;var G=P(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());G.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:P(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),G.range;function ut(e,t,n,r,i,a){let o=[[z,1,F],[z,5,5*F],[z,15,15*F],[z,30,30*F],[a,1,I],[a,5,5*I],[a,15,15*I],[a,30,30*I],[i,1,L],[i,3,3*L],[i,6,6*L],[i,12,12*L],[r,1,R],[r,2,2*R],[n,1,Be],[t,1,Ve],[t,3,3*Ve],[e,1,He]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=C(([,,e])=>e).right(o,i);if(a===o.length)return e.every(w(t/He,n/He,r));if(a===0)return ze.every(Math.max(w(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[dt,ft]=ut(G,lt,tt,Je,Ke,We),[pt,mt]=ut(W,ct,Ye,B,Ge,Ue);function ht(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function gt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function _t(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function vt(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Ct(i),u=wt(i),d=Ct(a),f=wt(a),p=Ct(o),m=wt(o),h=Ct(s),g=wt(s),_=Ct(c),v=wt(c),y={a:ne,A:j,b:re,B:ie,c:null,d:Gt,e:Gt,f:Xt,g:cn,G:un,H:Kt,I:qt,j:Jt,L:Yt,m:Zt,M:Qt,p:ae,q:oe,Q:Nn,s:Pn,S:$t,u:en,U:tn,V:rn,w:an,W:on,x:null,X:null,y:sn,Y:ln,Z:dn,"%":Mn},b={a:se,A:ce,b:le,B:ue,c:null,d:fn,e:fn,f:_n,g:On,G:An,H:pn,I:mn,j:hn,L:gn,m:vn,M:yn,p:de,q:fe,Q:Nn,s:Pn,S:bn,u:xn,U:Sn,V:wn,w:Tn,W:En,x:null,X:null,y:Dn,Y:kn,Z:jn,"%":Mn},x={a:E,A:D,b:O,B:k,c:ee,d:Ft,e:Ft,f:Vt,g:jt,G:At,H:Lt,I:Lt,j:It,L:Bt,m:Pt,M:Rt,p:T,q:Nt,Q:Ut,s:Wt,S:zt,u:Et,U:Dt,V:Ot,w:Tt,W:kt,x:A,X:te,y:jt,Y:At,Z:Mt,"%":Ht};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=yt[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=_t(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=gt(_t(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?nt.ceil(a):nt(a),a=qe.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=ht(_t(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Xe.ceil(a):Xe(a),a=B.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?gt(_t(r.y,0,1)).getUTCDay():ht(_t(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,gt(r)):ht(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in yt?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function A(e,t,r){return w(e,n,t,r)}function te(e,t,n){return w(e,r,t,n)}function ne(e){return o[e.getDay()]}function j(e){return a[e.getDay()]}function re(e){return c[e.getMonth()]}function ie(e){return s[e.getMonth()]}function ae(e){return i[+(e.getHours()>=12)]}function oe(e){return 1+~~(e.getMonth()/3)}function se(e){return o[e.getUTCDay()]}function ce(e){return a[e.getUTCDay()]}function le(e){return c[e.getUTCMonth()]}function ue(e){return s[e.getUTCMonth()]}function de(e){return i[+(e.getUTCHours()>=12)]}function fe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var yt={"-":``,_:` `,0:`0`},K=/^\s*\d+/,bt=/^%/,xt=/[\\^$*+?|[\]().{}]/g;function q(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function St(e){return e.replace(xt,`\\$&`)}function Ct(e){return RegExp(`^(?:`+e.map(St).join(`|`)+`)`,`i`)}function wt(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Tt(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Et(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Dt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ot(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function At(e,t,n){var r=K.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Mt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Nt(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Pt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ft(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function It(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Lt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Rt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Bt(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vt(e,t,n){var r=K.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ht(e,t,n){var r=bt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ut(e,t,n){var r=K.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Wt(e,t,n){var r=K.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Gt(e,t){return q(e.getDate(),t,2)}function Kt(e,t){return q(e.getHours(),t,2)}function qt(e,t){return q(e.getHours()%12||12,t,2)}function Jt(e,t){return q(1+B.count(W(e),e),t,3)}function Yt(e,t){return q(e.getMilliseconds(),t,3)}function Xt(e,t){return Yt(e,t)+`000`}function Zt(e,t){return q(e.getMonth()+1,t,2)}function Qt(e,t){return q(e.getMinutes(),t,2)}function $t(e,t){return q(e.getSeconds(),t,2)}function en(e){var t=e.getDay();return t===0?7:t}function tn(e,t){return q(Ye.count(W(e)-1,e),t,2)}function nn(e){var t=e.getDay();return t>=4||t===0?H(e):H.ceil(e)}function rn(e,t){return e=nn(e),q(H.count(W(e),e)+(W(e).getDay()===4),t,2)}function an(e){return e.getDay()}function on(e,t){return q(Xe.count(W(e)-1,e),t,2)}function sn(e,t){return q(e.getFullYear()%100,t,2)}function cn(e,t){return e=nn(e),q(e.getFullYear()%100,t,2)}function ln(e,t){return q(e.getFullYear()%1e4,t,4)}function un(e,t){var n=e.getDay();return e=n>=4||n===0?H(e):H.ceil(e),q(e.getFullYear()%1e4,t,4)}function dn(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+q(t/60|0,`0`,2)+q(t%60,`0`,2)}function fn(e,t){return q(e.getUTCDate(),t,2)}function pn(e,t){return q(e.getUTCHours(),t,2)}function mn(e,t){return q(e.getUTCHours()%12||12,t,2)}function hn(e,t){return q(1+qe.count(G(e),e),t,3)}function gn(e,t){return q(e.getUTCMilliseconds(),t,3)}function _n(e,t){return gn(e,t)+`000`}function vn(e,t){return q(e.getUTCMonth()+1,t,2)}function yn(e,t){return q(e.getUTCMinutes(),t,2)}function bn(e,t){return q(e.getUTCSeconds(),t,2)}function xn(e){var t=e.getUTCDay();return t===0?7:t}function Sn(e,t){return q(tt.count(G(e)-1,e),t,2)}function Cn(e){var t=e.getUTCDay();return t>=4||t===0?at(e):at.ceil(e)}function wn(e,t){return e=Cn(e),q(at.count(G(e),e)+(G(e).getUTCDay()===4),t,2)}function Tn(e){return e.getUTCDay()}function En(e,t){return q(nt.count(G(e)-1,e),t,2)}function Dn(e,t){return q(e.getUTCFullYear()%100,t,2)}function On(e,t){return e=Cn(e),q(e.getUTCFullYear()%100,t,2)}function kn(e,t){return q(e.getUTCFullYear()%1e4,t,4)}function An(e,t){var n=e.getUTCDay();return e=n>=4||n===0?at(e):at.ceil(e),q(e.getUTCFullYear()%1e4,t,4)}function jn(){return`+0000`}function Mn(){return`%`}function Nn(e){return+e}function Pn(e){return Math.floor(e/1e3)}var Fn,In;Ln({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function Ln(e){return Fn=vt(e),In=Fn.format,Fn.parse,Fn.utcFormat,Fn.utcParse,Fn}function Rn(e){return new Date(e)}function zn(e){return e instanceof Date?+e:+new Date(+e)}function Bn(e,t,n,r,i,a,o,s,c,l){var u=T(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,zn)):f().map(Rn)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(Ie(n,e)):u},u.copy=function(){return E(u,Bn(e,t,n,r,i,a,o,s,c,l))},u}function Vn(){return O.apply(Bn(pt,mt,W,ct,Ye,B,Ge,Ue,z,In).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Hn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),Un=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Wn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Gn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),Kn=k(),J=e(s(),1),qn=e(Hn(),1),Jn=e(Un(),1),Yn=e(Wn(),1),Xn=e(Gn(),1),Zn=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],i=[1,27],a=[1,28],o=[1,29],s=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n(function(e){var t=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{a as r,c as i,d as a,f as o,g as s,i as c,m as l,p as u,s as d,u as f}from"./src-oBChb5qS.js";import{H as p,K as m,U as h,a as g,c as _,s as v,v as y,w as b,x,y as S}from"./chunk-DU6HZSFF-DMXcgXT_.js";import{a as C,i as w,n as T,r as E,t as D}from"./linear-BUnzfXgk.js";import{t as O}from"./init-C-OQMol4.js";import{t as k}from"./dist-B_J_HbC0.js";import{g as ee}from"./chunk-75Z2AOVW-B4sXgwEx.js";function A(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function te(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ne(e){return e}var j=1,re=2,ie=3,ae=4,oe=1e-6;function se(e){return`translate(`+e+`,0)`}function ce(e){return`translate(0,`+e+`)`}function le(e){return t=>+e(t)}function ue(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function de(){return!this.__axis}function fe(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===j||e===ae?-1:1,u=e===ae||e===re?`x`:`y`,d=e===j||e===ie?se:ce;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):ne),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?ue:le)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===j?`0em`:e===ie?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,oe).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,oe).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===ae||e===re?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(de).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===re?`start`:e===ae?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function pe(e){return fe(j,e)}function me(e){return fe(ie,e)}var he=Math.PI/180,ge=180/Math.PI,_e=18,ve=.96422,ye=1,be=.82521,xe=4/29,Se=6/29,Ce=3*Se*Se,we=Se*Se*Se;function Te(e){if(e instanceof M)return new M(e.l,e.a,e.b,e.opacity);if(e instanceof N)return Ne(e);e instanceof i||(e=f(e));var t=Ae(e.r),n=Ae(e.g),r=Ae(e.b),a=De((.2225045*t+.7168786*n+.0606169*r)/ye),o,s;return t===n&&n===r?o=s=a:(o=De((.4360747*t+.3850649*n+.1430804*r)/ve),s=De((.0139322*t+.0971045*n+.7141733*r)/be)),new M(116*a-16,500*(o-a),200*(a-s),e.opacity)}function Ee(e,t,n,r){return arguments.length===1?Te(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}a(M,Ee,o(d,{brighter(e){return new M(this.l+_e*(e??1),this.a,this.b,this.opacity)},darker(e){return new M(this.l-_e*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=ve*Oe(t),e=ye*Oe(e),n=be*Oe(n),new i(ke(3.1338561*t-1.6168667*e-.4906146*n),ke(-.9787684*t+1.9161415*e+.033454*n),ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function De(e){return e>we?e**(1/3):e/Ce+xe}function Oe(e){return e>Se?e*e*e:Ce*(e-xe)}function ke(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function Ae(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function je(e){if(e instanceof N)return new N(e.h,e.c,e.l,e.opacity);if(e instanceof M||(e=Te(e)),e.a===0&&e.b===0)return new N(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ge;return new N(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Me(e,t,n,r){return arguments.length===1?je(e):new N(e,t,n,r??1)}function N(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ne(e){if(isNaN(e.h))return new M(e.l,0,0,e.opacity);var t=e.h*he;return new M(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}a(N,Me,o(d,{brighter(e){return new N(this.h,this.c,this.l+_e*(e??1),this.opacity)},darker(e){return new N(this.h,this.c,this.l-_e*(e??1),this.opacity)},rgb(){return Ne(this).rgb()}}));function Pe(e){return function(t,n){var i=e((t=Me(t)).h,(n=Me(n)).h),a=r(t.c,n.c),o=r(t.l,n.l),s=r(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=a(e),t.l=o(e),t.opacity=s(e),t+``}}}var Fe=Pe(c);function Ie(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var Le=new Date,Re=new Date;function P(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>P(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(Le.setTime(+t),Re.setTime(+r),e(Le),e(Re),Math.floor(n(Le,Re))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var ze=P(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ze.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?P(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ze),ze.range;var F=1e3,I=F*60,L=I*60,R=L*24,Be=R*7,Ve=R*30,He=R*365,z=P(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*F)},(e,t)=>(t-e)/F,e=>e.getUTCSeconds());z.range;var Ue=P(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*F)},(e,t)=>{e.setTime(+e+t*I)},(e,t)=>(t-e)/I,e=>e.getMinutes());Ue.range;var We=P(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*I)},(e,t)=>(t-e)/I,e=>e.getUTCMinutes());We.range;var Ge=P(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*F-e.getMinutes()*I)},(e,t)=>{e.setTime(+e+t*L)},(e,t)=>(t-e)/L,e=>e.getHours());Ge.range;var Ke=P(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*L)},(e,t)=>(t-e)/L,e=>e.getUTCHours());Ke.range;var B=P(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*I)/R,e=>e.getDate()-1);B.range;var qe=P(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/R,e=>e.getUTCDate()-1);qe.range;var Je=P(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/R,e=>Math.floor(e/R));Je.range;function V(e){return P(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*I)/Be)}var Ye=V(0),Xe=V(1),Ze=V(2),Qe=V(3),H=V(4),$e=V(5),et=V(6);Ye.range,Xe.range,Ze.range,Qe.range,H.range,$e.range,et.range;function U(e){return P(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Be)}var tt=U(0),nt=U(1),rt=U(2),it=U(3),at=U(4),ot=U(5),st=U(6);tt.range,nt.range,rt.range,it.range,at.range,ot.range,st.range;var ct=P(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ct.range;var lt=P(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());lt.range;var W=P(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());W.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:P(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),W.range;var G=P(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());G.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:P(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),G.range;function ut(e,t,n,r,i,a){let o=[[z,1,F],[z,5,5*F],[z,15,15*F],[z,30,30*F],[a,1,I],[a,5,5*I],[a,15,15*I],[a,30,30*I],[i,1,L],[i,3,3*L],[i,6,6*L],[i,12,12*L],[r,1,R],[r,2,2*R],[n,1,Be],[t,1,Ve],[t,3,3*Ve],[e,1,He]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=C(([,,e])=>e).right(o,i);if(a===o.length)return e.every(w(t/He,n/He,r));if(a===0)return ze.every(Math.max(w(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[dt,ft]=ut(G,lt,tt,Je,Ke,We),[pt,mt]=ut(W,ct,Ye,B,Ge,Ue);function ht(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function gt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function _t(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function vt(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Ct(i),u=wt(i),d=Ct(a),f=wt(a),p=Ct(o),m=wt(o),h=Ct(s),g=wt(s),_=Ct(c),v=wt(c),y={a:ne,A:j,b:re,B:ie,c:null,d:Gt,e:Gt,f:Xt,g:cn,G:un,H:Kt,I:qt,j:Jt,L:Yt,m:Zt,M:Qt,p:ae,q:oe,Q:Nn,s:Pn,S:$t,u:en,U:tn,V:rn,w:an,W:on,x:null,X:null,y:sn,Y:ln,Z:dn,"%":Mn},b={a:se,A:ce,b:le,B:ue,c:null,d:fn,e:fn,f:_n,g:On,G:An,H:pn,I:mn,j:hn,L:gn,m:vn,M:yn,p:de,q:fe,Q:Nn,s:Pn,S:bn,u:xn,U:Sn,V:wn,w:Tn,W:En,x:null,X:null,y:Dn,Y:kn,Z:jn,"%":Mn},x={a:E,A:D,b:O,B:k,c:ee,d:Ft,e:Ft,f:Vt,g:jt,G:At,H:Lt,I:Lt,j:It,L:Bt,m:Pt,M:Rt,p:T,q:Nt,Q:Ut,s:Wt,S:zt,u:Et,U:Dt,V:Ot,w:Tt,W:kt,x:A,X:te,y:jt,Y:At,Z:Mt,"%":Ht};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=yt[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=_t(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=gt(_t(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?nt.ceil(a):nt(a),a=qe.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=ht(_t(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Xe.ceil(a):Xe(a),a=B.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?gt(_t(r.y,0,1)).getUTCDay():ht(_t(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,gt(r)):ht(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in yt?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function A(e,t,r){return w(e,n,t,r)}function te(e,t,n){return w(e,r,t,n)}function ne(e){return o[e.getDay()]}function j(e){return a[e.getDay()]}function re(e){return c[e.getMonth()]}function ie(e){return s[e.getMonth()]}function ae(e){return i[+(e.getHours()>=12)]}function oe(e){return 1+~~(e.getMonth()/3)}function se(e){return o[e.getUTCDay()]}function ce(e){return a[e.getUTCDay()]}function le(e){return c[e.getUTCMonth()]}function ue(e){return s[e.getUTCMonth()]}function de(e){return i[+(e.getUTCHours()>=12)]}function fe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var yt={"-":``,_:` `,0:`0`},K=/^\s*\d+/,bt=/^%/,xt=/[\\^$*+?|[\]().{}]/g;function q(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function St(e){return e.replace(xt,`\\$&`)}function Ct(e){return RegExp(`^(?:`+e.map(St).join(`|`)+`)`,`i`)}function wt(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Tt(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Et(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Dt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ot(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function At(e,t,n){var r=K.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Mt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Nt(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Pt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ft(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function It(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Lt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Rt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zt(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Bt(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vt(e,t,n){var r=K.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ht(e,t,n){var r=bt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ut(e,t,n){var r=K.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Wt(e,t,n){var r=K.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Gt(e,t){return q(e.getDate(),t,2)}function Kt(e,t){return q(e.getHours(),t,2)}function qt(e,t){return q(e.getHours()%12||12,t,2)}function Jt(e,t){return q(1+B.count(W(e),e),t,3)}function Yt(e,t){return q(e.getMilliseconds(),t,3)}function Xt(e,t){return Yt(e,t)+`000`}function Zt(e,t){return q(e.getMonth()+1,t,2)}function Qt(e,t){return q(e.getMinutes(),t,2)}function $t(e,t){return q(e.getSeconds(),t,2)}function en(e){var t=e.getDay();return t===0?7:t}function tn(e,t){return q(Ye.count(W(e)-1,e),t,2)}function nn(e){var t=e.getDay();return t>=4||t===0?H(e):H.ceil(e)}function rn(e,t){return e=nn(e),q(H.count(W(e),e)+(W(e).getDay()===4),t,2)}function an(e){return e.getDay()}function on(e,t){return q(Xe.count(W(e)-1,e),t,2)}function sn(e,t){return q(e.getFullYear()%100,t,2)}function cn(e,t){return e=nn(e),q(e.getFullYear()%100,t,2)}function ln(e,t){return q(e.getFullYear()%1e4,t,4)}function un(e,t){var n=e.getDay();return e=n>=4||n===0?H(e):H.ceil(e),q(e.getFullYear()%1e4,t,4)}function dn(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+q(t/60|0,`0`,2)+q(t%60,`0`,2)}function fn(e,t){return q(e.getUTCDate(),t,2)}function pn(e,t){return q(e.getUTCHours(),t,2)}function mn(e,t){return q(e.getUTCHours()%12||12,t,2)}function hn(e,t){return q(1+qe.count(G(e),e),t,3)}function gn(e,t){return q(e.getUTCMilliseconds(),t,3)}function _n(e,t){return gn(e,t)+`000`}function vn(e,t){return q(e.getUTCMonth()+1,t,2)}function yn(e,t){return q(e.getUTCMinutes(),t,2)}function bn(e,t){return q(e.getUTCSeconds(),t,2)}function xn(e){var t=e.getUTCDay();return t===0?7:t}function Sn(e,t){return q(tt.count(G(e)-1,e),t,2)}function Cn(e){var t=e.getUTCDay();return t>=4||t===0?at(e):at.ceil(e)}function wn(e,t){return e=Cn(e),q(at.count(G(e),e)+(G(e).getUTCDay()===4),t,2)}function Tn(e){return e.getUTCDay()}function En(e,t){return q(nt.count(G(e)-1,e),t,2)}function Dn(e,t){return q(e.getUTCFullYear()%100,t,2)}function On(e,t){return e=Cn(e),q(e.getUTCFullYear()%100,t,2)}function kn(e,t){return q(e.getUTCFullYear()%1e4,t,4)}function An(e,t){var n=e.getUTCDay();return e=n>=4||n===0?at(e):at.ceil(e),q(e.getUTCFullYear()%1e4,t,4)}function jn(){return`+0000`}function Mn(){return`%`}function Nn(e){return+e}function Pn(e){return Math.floor(e/1e3)}var Fn,In;Ln({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function Ln(e){return Fn=vt(e),In=Fn.format,Fn.parse,Fn.utcFormat,Fn.utcParse,Fn}function Rn(e){return new Date(e)}function zn(e){return e instanceof Date?+e:+new Date(+e)}function Bn(e,t,n,r,i,a,o,s,c,l){var u=T(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,zn)):f().map(Rn)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(Ie(n,e)):u},u.copy=function(){return E(u,Bn(e,t,n,r,i,a,o,s,c,l))},u}function Vn(){return O.apply(Bn(pt,mt,W,ct,Ye,B,Ge,Ue,z,In).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Hn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),Un=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Wn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Gn=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),Kn=k(),J=e(s(),1),qn=e(Hn(),1),Jn=e(Un(),1),Yn=e(Wn(),1),Xn=e(Gn(),1),Zn=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],i=[1,27],a=[1,28],o=[1,29],s=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n(function(e){var t=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(te,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:A})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),ee=s[r[r.length-2]][r[r.length-1]],r.push(ee);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:n(function(){return this._more=!0,this},`more`),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -290,4 +290,4 @@ Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
|
|
|
290
290
|
font-family: ${e.fontFamily};
|
|
291
291
|
}
|
|
292
292
|
`,`getStyles`)};export{_i as diagram};
|
|
293
|
-
//# sourceMappingURL=ganttDiagram-EL5Y4UJY
|
|
293
|
+
//# sourceMappingURL=ganttDiagram-EL5Y4UJY--tZCMTKs.js.map
|