@inkeep/open-knowledge 0.30.0-beta.1 → 0.30.0-beta.2
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/{_baseFor-m0TxKeb9.mjs → _baseFor-DZZBdGCl.mjs} +1 -1
- package/dist/alias-JE7RI5QX-DCQQF1DX.mjs +1 -0
- package/dist/{arc-Doj9VrmJ.mjs → arc-ZIh9aOme.mjs} +2 -2
- package/dist/architecture-YZFGNWBL-BjBc8yjs.mjs +1 -0
- package/dist/{architectureDiagram-Q4EWVU46-Dwlx8W7J.mjs → architectureDiagram-Q4EWVU46-B9_FLf6A.mjs} +2 -2
- package/dist/{array-1jkOhClC.mjs → array-DzQVq_wL.mjs} +1 -1
- package/dist/assets/skills/discovery/SKILL.md +3 -8
- package/dist/assets/skills/project/SKILL.md +2 -2
- package/dist/assets/skills/project/references/anti-patterns.md +2 -2
- package/dist/assets/skills/project/references/preview.md +6 -7
- package/dist/{awk2-BBAGSFUB-Clvg_OoV.mjs → awk2-BBAGSFUB-J2xHCDg9.mjs} +1 -1
- package/dist/{banner-BxCFCyu8.mjs → banner-BLebOalA.mjs} +1 -1
- package/dist/{base64-4YMZCVJ5-bqN_UBX0.mjs → base64-4YMZCVJ5-7sdZaIym.mjs} +1 -1
- package/dist/{basename-AA2KJYZQ-GWPOMupJ.mjs → basename-AA2KJYZQ-2wWbuvGo.mjs} +1 -1
- package/dist/bash-IJWYRKFO-DZw47AKL.mjs +1 -0
- package/dist/{blockDiagram-DXYQGD6D-D_l7RLVS.mjs → blockDiagram-DXYQGD6D-CDF9Ye8Y.mjs} +2 -2
- package/dist/{c4Diagram-AHTNJAMY-QadWjRVL.mjs → c4Diagram-AHTNJAMY-Bckbt7OJ.mjs} +2 -2
- package/dist/{cat-RDUMLXKC-Cqi4_PjZ.mjs → cat-RDUMLXKC-CokinDWR.mjs} +1 -1
- package/dist/channel-DR5xnYq9.mjs +2 -0
- package/dist/{chmod-SYMGL4JA-C_dD-tNl.mjs → chmod-SYMGL4JA-BgW31dpi.mjs} +1 -1
- package/dist/{chokidar-D1eNAlbX.mjs → chokidar-987bEGiR.mjs} +1 -1
- package/dist/{chunk-2KRD3SAO-BXl7sX-7.mjs → chunk-2KRD3SAO-CS4H0Mr8.mjs} +2 -2
- package/dist/{chunk-2TRDZQLB-C2G-sahM.mjs → chunk-2TRDZQLB-FBZrMh7I.mjs} +1 -1
- package/dist/{chunk-336JU56O-5giJrfiv.mjs → chunk-336JU56O-41A5UOXQ.mjs} +2 -2
- package/dist/{chunk-3BS5SKQH-HZ1-1bfb.mjs → chunk-3BS5SKQH-BgobawvM.mjs} +3 -3
- package/dist/{chunk-3H6UQG3A-DdNaIxPm.mjs → chunk-3H6UQG3A-81boVLpx.mjs} +2 -2
- package/dist/{chunk-3ZUFRYJ4-Bv1jGN68.mjs → chunk-3ZUFRYJ4-BvA54ZND.mjs} +1 -1
- package/dist/chunk-426QAEUC-BMDn-Km8.mjs +2 -0
- package/dist/{chunk-4BX2VUAB-DM-mXRDw.mjs → chunk-4BX2VUAB-qQBUBIK0.mjs} +2 -2
- package/dist/{chunk-4GTNDTRF-DLnFbNSw.mjs → chunk-4GTNDTRF-l-JvU_6a.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-Ct4ue15f.mjs → chunk-4HHKTUW3-B-MXADMt.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-CAvCnPq5.mjs → chunk-4Q4SM6WR-Dgi6n3oq.mjs} +2 -2
- package/dist/{chunk-4TB4RGXK-DWREoP49.mjs → chunk-4TB4RGXK-EuzZYGK6.mjs} +2 -2
- package/dist/{chunk-55IACEB6-Cmyc0XwJ.mjs → chunk-55IACEB6-BWXxTtYm.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-RFvY6zq0.mjs → chunk-55VFSPNA-Bi0b3AwI.mjs} +2 -2
- package/dist/{chunk-5FUZZQ4R-DFR5eSi-.mjs → chunk-5FUZZQ4R-BQ_uOgdA.mjs} +2 -2
- package/dist/{chunk-5PVQY5BW-C5V4E1lO.mjs → chunk-5PVQY5BW-Bv35hkyA.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-BV0xuiYW.mjs → chunk-5QVNJEHU-HZCmTBXX.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-ByuVaPWr.mjs → chunk-5V6VZH6T-DtvstltO.mjs} +2 -2
- package/dist/{chunk-62RKD26F-K5NW6_Si.mjs → chunk-62RKD26F-BCWvPKD3.mjs} +2 -2
- package/dist/{chunk-64BAICW3-BlirlXmE.mjs → chunk-64BAICW3-ldBoH9M8.mjs} +2 -2
- package/dist/{chunk-67CJDMHE-C58W8DAL.mjs → chunk-67CJDMHE-DDQINw-J.mjs} +2 -2
- package/dist/{chunk-6Z5SFZXK-C3WlMqq-.mjs → chunk-6Z5SFZXK-DHOjsS81.mjs} +2 -2
- package/dist/{chunk-74CEPOFO-V0JXh91S.mjs → chunk-74CEPOFO-BnsihHv5.mjs} +1 -1
- package/dist/{chunk-7L36YK2X-B3QRwLbB.mjs → chunk-7L36YK2X-B6FqeSqt.mjs} +1 -1
- package/dist/{chunk-7N4EOEYR-DzEIb3Sc.mjs → chunk-7N4EOEYR-BzlThL0w.mjs} +2 -2
- package/dist/{chunk-7TSDKFEO-CMVuiOdP.mjs → chunk-7TSDKFEO-toaIg90F.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-Bjuqsbev.mjs → chunk-A4HU7SVR-hpfRmc5Q.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-BA544Kdp.mjs → chunk-A4JSPFCI-DiA7Hz_1.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-GGt9898w.mjs → chunk-A65PWWJC-BZ0ifC4p.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-BqvlRSRw.mjs → chunk-A7A2DBEE-CTyGeCV-.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-D5TsVU6v.mjs → chunk-A7ICOL4V-Mvr5jw7a.mjs} +2 -2
- package/dist/{chunk-AA7GKIK3-DKgpQZxa.mjs → chunk-AA7GKIK3-CIHY93mN.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-4H3OLfNN.mjs → chunk-ALLTKNUZ-_L2HGfkh.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-DnIeUlVe.mjs → chunk-APT7OOP2-Dtyp8EZq.mjs} +2 -2
- package/dist/{chunk-BSJP7CBP-BG3yJGkJ.mjs → chunk-BSJP7CBP-DLDhpSB6.mjs} +2 -2
- package/dist/{chunk-CIAEETIT-CH33zQ9L.mjs → chunk-CIAEETIT-CFi4NG_D.mjs} +2 -2
- package/dist/{chunk-D4J545R4-KlK3EOFl.mjs → chunk-D4J545R4-BtxtW2-r.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-CaV8X9is.mjs → chunk-D6CWQ5DW-Cv88ySaX.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-BM_kIbvf.mjs → chunk-D7MEQ3VN-s3ii1vV3.mjs} +2 -2
- package/dist/{chunk-DBKNVD4L-BVx-WyDG.mjs → chunk-DBKNVD4L-CXGQWbr1.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-BUMlCZ4-.mjs → chunk-DCAAORBQ-Cwpta7jB.mjs} +2 -2
- package/dist/{chunk-EDXVE4YY-B_wA-KGy.mjs → chunk-EDXVE4YY-CypRnEuH.mjs} +2 -2
- package/dist/{chunk-EEXR5ZDP-CvpAxUxM.mjs → chunk-EEXR5ZDP-Cg_MqHXw.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-C8wRSfCC.mjs → chunk-EIZGF4BS-BcAccPFl.mjs} +2 -2
- package/dist/{chunk-ENJZ2VHE-DwiyImt2.mjs → chunk-ENJZ2VHE-dY0aiIZS.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-DLeNVzzD.mjs → chunk-F23WWYKW-hlCDVuyH.mjs} +2 -2
- package/dist/{chunk-FMBD7UC4-CAloFUY3.mjs → chunk-FMBD7UC4-DWi7gSvW.mjs} +2 -2
- package/dist/{chunk-FOC6F5B3-Cv5O0Fxp.mjs → chunk-FOC6F5B3-DWNL6Y45.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-D3J1Ev9z.mjs → chunk-GCTKCWKD-Ca87JXBd.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-x0jEbztj.mjs → chunk-GOV5EKKI-B5v6YeVX.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-D0BDCtkE.mjs → chunk-GXVXFKBA-CtGvxFMt.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-DZc2LbWr.mjs → chunk-HDQ56CKY-Dw8W-PIc.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-BS_JF11O.mjs → chunk-HJQJAYMS-QHp_mUpd.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-DknkBuxy.mjs → chunk-HJWBQKYG-pJ7ff6Os.mjs} +2 -2
- package/dist/{chunk-HKLCLINH-DwmCAW4U.mjs → chunk-HKLCLINH-FUIlJZ9Y.mjs} +3 -3
- package/dist/{chunk-HL6NGDO2-978327U5.mjs → chunk-HL6NGDO2-CONVsScQ.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-BJxdK4fT.mjs → chunk-HWKDQ44K-1iwkoMQO.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-DpiJySG6.mjs → chunk-I57KEIP3-ok19Mtn9.mjs} +1 -1
- package/dist/{chunk-ICPOFSXX-D0MVsm4H.mjs → chunk-ICPOFSXX-d7VyKeM8.mjs} +2 -2
- package/dist/{chunk-JVPRLUMK-D6CRdXSO.mjs → chunk-JVPRLUMK-cjhtQJTo.mjs} +2 -2
- package/dist/{chunk-K5T4RW27-BPgPjo39.mjs → chunk-K5T4RW27-CkUFJKhh.mjs} +2 -2
- package/dist/{chunk-K6LIBGJA-DpjaSGfc.mjs → chunk-K6LIBGJA-RtZC97IJ.mjs} +2 -2
- package/dist/{chunk-KGLVRYIC-CmkADDeV.mjs → chunk-KGLVRYIC-CBBBeMsl.mjs} +2 -2
- package/dist/{chunk-KMEYNNUA-Qk0eg7gN.mjs → chunk-KMEYNNUA-DG96DsNs.mjs} +2 -2
- package/dist/{chunk-KRBPSX3W-nYEMVABW.mjs → chunk-KRBPSX3W-plcpns8G.mjs} +2 -2
- package/dist/{chunk-LIHQZDEY-Fy8O-IVI.mjs → chunk-LIHQZDEY-clY2P5Xu.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-CH16p_-s.mjs → chunk-LL3S3NLB-YW2mgOlX.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-BfgCUlp9.mjs → chunk-LTZRCH7N-CyLjQtsr.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-DhbhFY11.mjs → chunk-LWEGUNWT-CXnfCeY3.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-CuQlmIio.mjs → chunk-MDDMCKUK-xLFNbrrZ.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-UsHGHHoh.mjs → chunk-MDLLFABN-Dp0zh05T.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-Dk5ocjFo.mjs → chunk-MHTUABJP-hQBYMJwY.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-Bo1j-3C3.mjs → chunk-MIZPJHVH-CxUaLYah.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-DRuy-_4a.mjs → chunk-MLXIYONF-Bt-276H_.mjs} +1 -1
- package/dist/{chunk-MYE6AGBJ-DwzjGrc0.mjs → chunk-MYE6AGBJ-DmBUXN6H.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-0UrOIQ6q.mjs → chunk-NAERJDUW-Cav--2Fy.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-Ct0_l0YT.mjs → chunk-NCNPKYJZ-LS-Ky-i5.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-BvwS54ju.mjs → chunk-NUYSJFDK-D6pqIPwG.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-CCPg8vjW.mjs → chunk-OCLXQMOG-Dd0G6A5F.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-DkbaohJu.mjs → chunk-OCS6LSEM-CALXGrIt.mjs} +2 -2
- package/dist/{chunk-ORNJ4GCN-R_gUIosC.mjs → chunk-ORNJ4GCN-CqFReEiX.mjs} +2 -2
- package/dist/{chunk-OYMX7WX6-BrOfVMt8.mjs → chunk-OYMX7WX6-CQi5rS4T.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-C7MEQojr.mjs → chunk-PBXLG62G-BaQR-Pos.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-DQ3LPONR.mjs → chunk-PP6PSHAB-DAEjIF1x.mjs} +1 -1
- package/dist/{chunk-PXTK5WE2-B17f9YTq.mjs → chunk-PXTK5WE2-DtNgPWAM.mjs} +1 -1
- package/dist/{chunk-PYSFUGCK-B_Gv8rUn.mjs → chunk-PYSFUGCK-Dy_8qlqA.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-Bays5mAr.mjs → chunk-QCDB2VPH-XUYEp26q.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-BCF2wp2J.mjs → chunk-QJ7O6ZN3-jw3_Ap-D.mjs} +2 -2
- package/dist/{chunk-QZHKN3VN-D0OJ2eQ1.mjs → chunk-QZHKN3VN-drjmYlbU.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-RaNW7MSS.mjs → chunk-R6QSAL5T-ChOEHgTM.mjs} +1 -1
- package/dist/{chunk-RPNGRAAP-yHFoBjjv.mjs → chunk-RPNGRAAP-CihnEKHU.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-BsAYzqU5.mjs → chunk-SDNKECQQ-CD_0Ct0o.mjs} +2 -2
- package/dist/{chunk-SNN4IESC-C-P75V1I.mjs → chunk-SNN4IESC-Io5Uw9il.mjs} +1 -1
- package/dist/{chunk-T56QNPHK-B6DfVzfs.mjs → chunk-T56QNPHK-CBaNulWg.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-SuIGgADo.mjs → chunk-TLSUDHID-B89Qk3Em.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-Dw9Enq1O.mjs → chunk-TOMNU26N-C1sG6Msz.mjs} +2 -2
- package/dist/{chunk-TP4BZANS-eJW0TOjs.mjs → chunk-TP4BZANS-CTpZAzJp.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-BxbbtyNr.mjs → chunk-TXBZCHCQ-DVmekj_k.mjs} +2 -2
- package/dist/{chunk-U2HBQHQK-DB1SzWgs.mjs → chunk-U2HBQHQK-C6hC2wN2.mjs} +2 -2
- package/dist/{chunk-V5MWI2OL-CDEVEp7K.mjs → chunk-V5MWI2OL-DHeEw-Bw.mjs} +1 -1
- package/dist/{chunk-V7TAPXDL-CKif4_mH.mjs → chunk-V7TAPXDL-C2zCZaaT.mjs} +2 -2
- package/dist/{chunk-VJFXDYWH-CWlZv59U.mjs → chunk-VJFXDYWH-CMil6w7F.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-D6fSjWnx.mjs → chunk-VOBGTVA6-DUmK2uFM.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-DN1CSkP5.mjs → chunk-VYOJP4TV-NY3mkQfC.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-CoPg2OGf.mjs → chunk-WKFATFPP-CCzbk9l_.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-ClcErtij.mjs → chunk-X2AJGDEF-B2IEuWMO.mjs} +1 -1
- package/dist/{chunk-X2U36JSP-CqOGcGN3.mjs → chunk-X2U36JSP-DUT3KN7v.mjs} +2 -2
- package/dist/{chunk-XKQRETAK-BC2HZ_y9.mjs → chunk-XKQRETAK-DBH8-r13.mjs} +2 -2
- package/dist/{chunk-XKWWSDBF-XuPgN5BP.mjs → chunk-XKWWSDBF-CkT22GKu.mjs} +2 -2
- package/dist/{chunk-XPW4576I-BkucPPwf.mjs → chunk-XPW4576I-BUNNk3WJ.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-CkzIJQaO.mjs → chunk-XVDPCNWR-Dpmdq7tW.mjs} +2 -2
- package/dist/{chunk-YMMW5UAP-uYgeXT56.mjs → chunk-YMMW5UAP-x2y4_E_a.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-DcovOiF_.mjs → chunk-YTNYSM6T-B7Pxr8mf.mjs} +2 -2
- package/dist/{chunk-YULBWSET-BYBVdNmi.mjs → chunk-YULBWSET-DXl2KqKD.mjs} +2 -2
- package/dist/{chunk-YZCP3GAM-CkC6DoBJ.mjs → chunk-YZCP3GAM-DyF0VN0o.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-BLaYoFnT.mjs → chunk-Z6LRHWXI-cYQeZ0uN.mjs} +1 -1
- package/dist/{chunk-Z7JVV2SM-BtFBVQEW.mjs → chunk-Z7JVV2SM-Bx_fzdEl.mjs} +2 -2
- package/dist/{chunk-ZZ45TVLE-CXznFlWR.mjs → chunk-ZZ45TVLE-CHtfsZGo.mjs} +2 -2
- package/dist/{chunk-ZZO3UDB3-CdVtmXn4.mjs → chunk-ZZO3UDB3-CLOJXZMQ.mjs} +2 -2
- package/dist/classDiagram-6PBFFD2Q-B7c1vwT5.mjs +2 -0
- package/dist/classDiagram-v2-HSJHXN6E-B6n2AR2x.mjs +2 -0
- package/dist/{clear-5CZ5X4YR-C4DTv-gF.mjs → clear-5CZ5X4YR-CvTPqJ5U.mjs} +1 -1
- package/dist/cli.mjs +66 -65
- package/dist/clone-BftAxCKp.mjs +2 -0
- package/dist/{column-WLPMMSTS-Bg1ZsVDm.mjs → column-WLPMMSTS-D4CsWORw.mjs} +1 -1
- package/dist/{comm-5SLSESQG-CTh1BUfn.mjs → comm-5SLSESQG-CHmFSxue.mjs} +1 -1
- package/dist/constants-BGBZW_Qv.mjs +2 -0
- package/dist/{cose-bilkent-S5V4N54A-E5vxHQ63.mjs → cose-bilkent-S5V4N54A-C3h1ARwX.mjs} +2 -2
- package/dist/{du-WO2ENHXQ-Cq3dzRFU.mjs → cp-XOYR4ABJ-DiV6v-rq.mjs} +1 -1
- package/dist/{curl-47BFPSFW-ClMENMWY.mjs → curl-47BFPSFW-C96qO4u5.mjs} +2 -2
- package/dist/{cut-OPC3VAGB-BDAM8WY8.mjs → cut-OPC3VAGB-Dh_rqL_i.mjs} +1 -1
- package/dist/{cytoscape.esm-BNCKY88j.mjs → cytoscape.esm-oBubee51.mjs} +1 -1
- package/dist/{dagre-LJG-5J7U.mjs → dagre-DxZjUi2H.mjs} +2 -2
- package/dist/{dagre-KV5264BT-C5SrnhX7.mjs → dagre-KV5264BT-JumxHSx7.mjs} +2 -2
- package/dist/{head-HT2B6D2J-DSAed845.mjs → date-DD7FVA2V-BUi7854q.mjs} +1 -1
- package/dist/{defaultLocale-BljHASC9.mjs → defaultLocale-BoxjDp6q.mjs} +1 -1
- package/dist/{diagram-5BDNPKRD-biBuhEzo.mjs → diagram-5BDNPKRD-BKDmayAE.mjs} +2 -2
- package/dist/{diagram-G4DWMVQ6-CHhS5h96.mjs → diagram-G4DWMVQ6-BBJ-sDt9.mjs} +2 -2
- package/dist/{diagram-MMDJMWI5-BgulNwvp.mjs → diagram-MMDJMWI5-i6W6mBce.mjs} +2 -2
- package/dist/{diagram-TYMM5635-DpmgERPD.mjs → diagram-TYMM5635-DkpztQam.mjs} +2 -2
- package/dist/diff-HJF2MPDN-Be83Imv3.mjs +1 -0
- package/dist/{dirname-LEMTZZFS-VsUIxZwx.mjs → dirname-LEMTZZFS-COuSzSN5.mjs} +1 -1
- package/dist/{dist-BbS1zQiy.mjs → dist-DAVo_TRx.mjs} +20 -20
- package/dist/dist-DJ0wJimx.mjs +1 -0
- package/dist/{dist-DZb_HoiN.mjs → dist-DpbxhJFx.mjs} +1 -1
- package/dist/{cp-XOYR4ABJ-VqiK1WcH.mjs → du-WO2ENHXQ-BrzeR0-x.mjs} +1 -1
- package/dist/echo-O45JWWI2-WsFSMrjp.mjs +1 -0
- package/dist/env-5EPCWSXR-BJC9qdBG.mjs +1 -0
- package/dist/{erDiagram-SMLLAGMA-BNISHenz.mjs → erDiagram-SMLLAGMA-B3ODWJAo.mjs} +2 -2
- package/dist/{execAsync-B4xEJACY.mjs → execAsync-03jh9_uL.mjs} +1 -1
- package/dist/{execAsync-Chx_LJuI.mjs → execAsync-BCYkb_Yo.mjs} +1 -1
- package/dist/{execAsync-DunQtInX.mjs → execAsync-bfdilfbQ.mjs} +1 -1
- package/dist/{expand-DTNXU4LQ-Bp3M0RnL.mjs → expand-DTNXU4LQ-BSxRnNK8.mjs} +1 -1
- package/dist/expr-YYCVMXE3-DEtS2Bb0.mjs +1 -0
- package/dist/{date-DD7FVA2V-nDqDn5ZQ.mjs → file-IGDTDPLG-DlvUkVAa.mjs} +1 -1
- package/dist/find-DH2ALKQS-DSbKkobO.mjs +1 -0
- package/dist/flag-coverage-6JEX67RU-BpprwupD.mjs +2 -0
- package/dist/{flatten-CX5MwHL4.mjs → flatten-DN9kjoEG.mjs} +2 -2
- package/dist/{flowDiagram-DWJPFMVM-CFu645eN.mjs → flowDiagram-DWJPFMVM-IgVXZy1K.mjs} +2 -2
- package/dist/{fold-LDSORVYE-Bx5XDGgK.mjs → fold-LDSORVYE-Cgx6V7hj.mjs} +1 -1
- package/dist/{ganttDiagram-T4ZO3ILL-DhKUbpmR.mjs → ganttDiagram-T4ZO3ILL-2GQbgjw4.mjs} +2 -2
- package/dist/{getMachineId-bsd-Bt-frlcx.mjs → getMachineId-bsd-CZV52euR.mjs} +2 -2
- package/dist/{getMachineId-bsd-DC8LkcdK.mjs → getMachineId-bsd-CiJGYKVm.mjs} +2 -2
- package/dist/{getMachineId-bsd-DFsE-K5i.mjs → getMachineId-bsd-rBzlEMXn.mjs} +2 -2
- package/dist/{getMachineId-darwin-B9GQUU0e.mjs → getMachineId-darwin-CBVWH2ev.mjs} +2 -2
- package/dist/{getMachineId-darwin-DMNBrKWp.mjs → getMachineId-darwin-DZ2QXoUt.mjs} +2 -2
- package/dist/{getMachineId-darwin-DRxpszyZ.mjs → getMachineId-darwin-ZfRSQhwf.mjs} +2 -2
- package/dist/{getMachineId-linux-D9dNX75P.mjs → getMachineId-linux-CRpWR2Xf.mjs} +1 -1
- package/dist/{getMachineId-linux-DOv7iOg-.mjs → getMachineId-linux-DwNbOq4U.mjs} +1 -1
- package/dist/{getMachineId-linux-B5vQV4C7.mjs → getMachineId-linux-myvu2F75.mjs} +1 -1
- package/dist/{getMachineId-unsupported-D6sWFm_K.mjs → getMachineId-unsupported-BUNmL05z.mjs} +1 -1
- package/dist/{getMachineId-unsupported-DdAD6gRb.mjs → getMachineId-unsupported-BoA-zzsf.mjs} +1 -1
- package/dist/{getMachineId-unsupported-BQ6KY9w-.mjs → getMachineId-unsupported-DnLw1pHF.mjs} +1 -1
- package/dist/{getMachineId-win-BZsHRo32.mjs → getMachineId-win-BykI_KPM.mjs} +2 -2
- package/dist/{getMachineId-win-CpDtoa22.mjs → getMachineId-win-C_OepWkK.mjs} +2 -2
- package/dist/{getMachineId-win-BMQSc3Xj.mjs → getMachineId-win-DdqXbGCa.mjs} +2 -2
- package/dist/{gh-detect-Co-jRtcQ.mjs → gh-detect-BxDh8M_E.mjs} +2 -2
- package/dist/gitGraph-7Q5UKJZL-BHgBQaev.mjs +1 -0
- package/dist/{gitGraphDiagram-UUTBAWPF-Cwemn6Ch.mjs → gitGraphDiagram-UUTBAWPF-WoVzHmmn.mjs} +2 -2
- package/dist/{graphlib-5CpUx0Yq.mjs → graphlib-CnQJqmVu.mjs} +2 -2
- package/dist/grep-2HUTXO5U-C40o2gtS.mjs +1 -0
- package/dist/gzip-AQXSGOVS-D7nHvr3D.mjs +1 -0
- package/dist/{file-IGDTDPLG-DQaFkvTu.mjs → head-HT2B6D2J-CQ8o4Vkb.mjs} +1 -1
- package/dist/help-VVWX7SA5-CiA7qg3p.mjs +1 -0
- package/dist/history-J4QRNGRO-CW1hmcPP.mjs +1 -0
- package/dist/{hostname-BK6HG2DE-_qJ9gN13.mjs → hostname-BK6HG2DE-BeHMNLVT.mjs} +1 -1
- package/dist/html-to-markdown-TFCECAGV-DxAcnDx-.mjs +1 -0
- package/dist/index.d.mts +1 -58
- package/dist/index.mjs +1 -1
- package/dist/info-OMHHGYJF-DFOa7qkq.mjs +1 -0
- package/dist/{infoDiagram-42DDH7IO-D0XeM9Mm.mjs → infoDiagram-42DDH7IO-DMFBf33Y.mjs} +2 -2
- package/dist/init-B02GcqsQ.mjs +1 -0
- package/dist/{init-L1KCVOHH.mjs → init-BL40T-Vz.mjs} +1 -1
- package/dist/init-E8FDYW-D.mjs +653 -0
- package/dist/{isEmpty-CaTO-fHo.mjs → isEmpty-CNxsONwW.mjs} +2 -2
- package/dist/{ishikawaDiagram-UXIWVN3A-vTBTHzHj.mjs → ishikawaDiagram-UXIWVN3A-CJ8lY0Nl.mjs} +2 -2
- package/dist/{join-GG2LDHE5-BMnXfCXQ.mjs → join-GG2LDHE5-DWqB9tv7.mjs} +1 -1
- package/dist/{journeyDiagram-VCZTEJTY-Dq1fLo6N.mjs → journeyDiagram-VCZTEJTY-IdyKUh_g.mjs} +2 -2
- package/dist/jq-LYZFFBZB-Bq_F0mxX.mjs +1 -0
- package/dist/{js-exec-VXN6TZ7U-fCXuAS2-.mjs → js-exec-VXN6TZ7U-DRTFMoYG.mjs} +2 -2
- package/dist/{kanban-definition-6JOO6SKY-B03_bODj.mjs → kanban-definition-6JOO6SKY-C1sB4ii4.mjs} +2 -2
- package/dist/launch-json-removal-ByWYRF7W.mjs +2 -0
- package/dist/{lib-CCQO9uWA.mjs → lib-BLR9KuxL.mjs} +1 -1
- package/dist/{lib-BbNAtG4h.mjs → lib-De0kNlJU.mjs} +1 -1
- package/dist/{line-C62ka-l9.mjs → line-T8d2uu7j.mjs} +2 -2
- package/dist/{linear-gA98NGf7.mjs → linear-BVIeiSZs.mjs} +2 -2
- package/dist/{ln-4TRFBYAT-Byit-TLI.mjs → ln-4TRFBYAT-CpScyeFk.mjs} +1 -1
- package/dist/{loader-B0Twaq2k.mjs → loader-Bi7zAoyk.mjs} +2 -2
- package/dist/loader-CT3CzsPt.mjs +1 -0
- package/dist/ls-KSXFZCWH-BMq2C6AP.mjs +1 -0
- package/dist/{lzma-BSEvzrCT.mjs → lzma-6vaD4w9R.mjs} +1 -1
- package/dist/{mcp-migrate-event-D0NrGjvc.mjs → mcp-migrate-event-CyH1VVyy.mjs} +1 -1
- package/dist/md5sum-INMIK4DX-BbHBkH1A.mjs +1 -0
- package/dist/{mermaid-parser.core-Cx4njenA.mjs → mermaid-parser.core-DjFy6YnS.mjs} +2 -2
- package/dist/{mermaid.core-LrO0u_wA.mjs → mermaid.core-DyEIpJO9.mjs} +3 -3
- package/dist/{mindmap-definition-QFDTVHPH-b0aFdJAS.mjs → mindmap-definition-QFDTVHPH-BdMSEWgq.mjs} +2 -2
- package/dist/mkdir-TDEMSB6C-9ppkyu1-.mjs +1 -0
- package/dist/mv-Z6MORUFL-CZIq395W.mjs +1 -0
- package/dist/{nl-U5YJDM32-Bs_nMrMg.mjs → nl-U5YJDM32-DdxB9n-y.mjs} +1 -1
- package/dist/{od-VJEF2UR5-DwpkPMHp.mjs → od-VJEF2UR5-DIQMQQUN.mjs} +1 -1
- package/dist/{open-browser-DMRT-DpW.mjs → open-browser-6ztGUs93.mjs} +2 -2
- package/dist/{ordinal-BCuCMCHk.mjs → ordinal-DNNCjWTJ.mjs} +2 -2
- package/dist/packet-4T2RLAQJ-CdySh7r7.mjs +1 -0
- package/dist/paste-7N6AFSDS-D89jcQ7Z.mjs +1 -0
- package/dist/{path-C9DYqGo_.mjs → path-oDLMmjI_.mjs} +1 -1
- package/dist/pie-ZZUOXDRM-BSuHluiX.mjs +1 -0
- package/dist/{pieDiagram-DEJITSTG-C77h8TOO.mjs → pieDiagram-DEJITSTG-2VW9qBbL.mjs} +2 -2
- package/dist/preview-DtuXRRGi.mjs +1 -0
- package/dist/{preview-CNYn-min.mjs → preview-hq0cdoZw.mjs} +2 -2
- package/dist/printf-CX64KX2P-m6K8MBPi.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-mVRGV66w.js → ActivityModeContent-D1snXuNs.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-D5H6xSL_.js → CodeMirrorPropInput-C3FZ7AWB.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-DpW_fWHO.js → ConsentDialogBody-BuKqWdML.js} +2 -2
- package/dist/public/assets/{DocumentContext-CKEIVeX1.js → DocumentContext-CPgyt-fa.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-BLuCj6gn.js → EnableSyncConfirmDialog-a1BAa003.js} +1 -1
- package/dist/public/assets/{GraphPanel-B4d24Bm9.js → GraphPanel-Dqn1R3FA.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-D-LbzNYB.js → ManagedArtifactProperties-D9gtQzwY.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-IQQRiBVd.js → McpConsentDialogBody-B3eYpOil.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-CdV2PRKa.js → MermaidDocEditor-CZKy1wMI.js} +1 -1
- package/dist/public/assets/{PropertyPanel-B7eV5Tcu.js → PropertyPanel-k3LSAy4u.js} +1 -1
- package/dist/public/assets/{SettingsDialogBody-DACGgbgK.js → SettingsDialogBody-do88Fri6.js} +1 -1
- package/dist/public/assets/{ShareBranchSwitchDialog-BJmWeDPf.js → ShareBranchSwitchDialog-OJA4wjqQ.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-BVOJDKXk.js → ShareReceiveDialog-7EizE4VA.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-CH6uraGh.js → ShareReceiveMissDialog-D8Up16fz.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-1SA0Sfoq.js → SkillEditorActions-B25PfvD1.js} +1 -1
- package/dist/public/assets/{SourceEditor-BA4ZZSKZ.js → SourceEditor-D_fZ07fz.js} +1 -1
- package/dist/public/assets/{TerminalPanel-Cvai8HvA.js → TerminalPanel-Dw3H1oil.js} +1 -1
- package/dist/public/assets/{agent-presence-CWtl35ms.js → agent-presence-c_qxeP7e.js} +1 -1
- package/dist/public/assets/{auth-state-cache-ROXaeSig.js → auth-state-cache-D4z3eiMF.js} +1 -1
- package/dist/public/assets/{config-provider-C7vWo2tJ.js → config-provider-BONo47Qc.js} +1 -1
- package/dist/public/assets/{dist-C-f1kbPA.js → dist-BDGd7UYM.js} +1 -1
- package/dist/public/assets/{dist-DN4vicwQ.js → dist-CJfVM-iJ.js} +1 -1
- package/dist/public/assets/{doc-hash-BRcc1l8V.js → doc-hash-BLS3MEoj.js} +1 -1
- package/dist/public/assets/{documents-events-Z18kbrmq.js → documents-events-H4-z8Qjp.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-DJIk8Mtr.js → file-tree-adapter-B8tTfm_Y.js} +1 -1
- package/dist/public/assets/{index-DrjcjzLS.js → index-Ci4eWUi8.js} +7 -7
- package/dist/public/assets/{keyboard-shortcuts-DVv_UWZp.js → keyboard-shortcuts-DnJWzgZ1.js} +1 -1
- package/dist/public/assets/{navigation-targets-2KIKb2N7.js → navigation-targets-DM3L8UZy.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-BYHLuUIG.js → open-managed-artifact-tab-NBmHUyDy.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-DynS4M_y.js → pending-receive-nav-store-D7JjzV1n.js} +1 -1
- package/dist/public/assets/{project-paths-Cv9JzTbQ.js → project-paths-Bdm7wr4i.js} +1 -1
- package/dist/public/assets/{prop-types-CdM6RVrV.js → prop-types-Cl1SYZho.js} +1 -1
- package/dist/public/assets/{radio-group-CXUz67M8.js → radio-group-B0RG5um-.js} +1 -1
- package/dist/public/assets/{receive-store-BBXikFBW.js → receive-store-DWC9dc5j.js} +1 -1
- package/dist/public/assets/{selection-context-DM7dh9w8.js → selection-context-DALYXIVY.js} +1 -1
- package/dist/public/assets/{skill-actions-BGFjwgz8.js → skill-actions-BV30AE89.js} +1 -1
- package/dist/public/assets/{skills-api-BOT-8Fw4.js → skills-api-B0z9Mw2W.js} +1 -1
- package/dist/public/assets/{src-D2FMxg7w.js → src-DZ97WDxX.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-OcEXysbL.js → target-navigation-intent-CpKCAQDV.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-BFnDTZhU.js → typing-burst-detector-ko_Nb-fG.js} +1 -1
- package/dist/public/assets/{workspace-paths-DAj8e6IA.js → workspace-paths-CMbeqczX.js} +1 -1
- package/dist/public/index.html +27 -27
- package/dist/pwd-D4OZ7N27-DTcVtxaf.mjs +1 -0
- package/dist/{python3-DNGS4G3E-bGzU9nm-.mjs → python3-DNGS4G3E-7DCL_jPA.mjs} +2 -2
- package/dist/{quadrantDiagram-34T5L4WZ-CLL-GTlz.mjs → quadrantDiagram-34T5L4WZ-CZz9f0uY.mjs} +2 -2
- package/dist/radar-PYXPWWZC-F8ZyHWJj.mjs +1 -0
- package/dist/readlink-MI4GCHJF-BaR3b_s7.mjs +1 -0
- package/dist/{reduce-V0ODtSr4.mjs → reduce-Liz4w9mV.mjs} +2 -2
- package/dist/repair-launch-json-BdfDMobg.mjs +2 -0
- package/dist/{repair-mcp-configs-CHisR-P4.mjs → repair-mcp-configs-DZMxi-7M.mjs} +2 -2
- package/dist/repair-skills-B0TdudPZ.mjs +1 -0
- package/dist/{repair-skills-B_uZNXYU.mjs → repair-skills-zutt1is6.mjs} +2 -2
- package/dist/{requirementDiagram-MS252O5E-JIzm76n0.mjs → requirementDiagram-MS252O5E-BKR-IjfU.mjs} +2 -2
- package/dist/{rev-XOSYPP45-4azlKYu4.mjs → rev-XOSYPP45-CiowreCc.mjs} +1 -1
- package/dist/rg-XNF3R3II-BK6WaEMK.mjs +1 -0
- package/dist/rm-RTZG23RL-kkSjZLZ9.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-BcuPRlwS.mjs +1 -0
- package/dist/{rough.cjs-C-63phNL.mjs → rough.cjs-C4mRMCLz.mjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-Bpk8eTPe.mjs → sankeyDiagram-XADWPNL6-BQFoQHCj.mjs} +2 -2
- package/dist/{sed-JAPPVBEU-BvDbOHs0.mjs → sed-JAPPVBEU-BGk7n3so.mjs} +1 -1
- package/dist/seq-RN5ZUASB-HvlCfepP.mjs +1 -0
- package/dist/{sequenceDiagram-FGHM5R23-CHCigzvZ.mjs → sequenceDiagram-FGHM5R23-D2GOGb_q.mjs} +2 -2
- package/dist/server-lock-GuuouVft-CCnjEa8y.mjs +1 -0
- package/dist/{server-lock-iLcBw_q0-i_GNVPAP.mjs → server-lock-iLcBw_q0-RDMfTH6b.mjs} +2 -2
- package/dist/sha1sum-VJPNLNU6-DIj6JJG_.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-DDy3JdOM.mjs +1 -0
- package/dist/{sleep-VZFPZFWA-BgSOeH2N.mjs → sleep-VZFPZFWA-CrstvTLq.mjs} +1 -1
- package/dist/sort-DCNRDA7U-g5MLXkqb.mjs +1 -0
- package/dist/{split-SITCSYCZ-DqhMcIGL.mjs → split-SITCSYCZ-DgZtYh2-.mjs} +1 -1
- package/dist/{sqlite3-TE5AIOTF-DW7pT7NE.mjs → sqlite3-TE5AIOTF-Dj7QrkUm.mjs} +1 -1
- package/dist/src-Bi9Si6vM.mjs +11 -0
- package/dist/{src-BkCVz_TJ.mjs → src-DBL0Mxlv.mjs} +1 -1
- package/dist/start-CDJKwObu.mjs +1 -0
- package/dist/{start-DIaR6Cov.mjs → start-DqcZAaBv.mjs} +2 -2
- package/dist/stat-BT5A227F-CN4E-TuS.mjs +1 -0
- package/dist/{stateDiagram-FHFEXIEX-CiIJxbDV.mjs → stateDiagram-FHFEXIEX-BXMAtbov.mjs} +2 -2
- package/dist/stateDiagram-v2-QKLJ7IA2-BtFX1akc.mjs +2 -0
- package/dist/strings-7PLOGTPD-CbCHpRt7.mjs +1 -0
- package/dist/{tac-SJGXQ4T2-DMDGVNTy.mjs → tac-SJGXQ4T2-BGgbS4Fn.mjs} +1 -1
- package/dist/tail-S5ULNTJU-mZjo68yb.mjs +1 -0
- package/dist/{tar-MZQD7NO4-46pC0DHj.mjs → tar-MZQD7NO4-CsVdP0sN.mjs} +1 -1
- package/dist/tee-O7VXZDCO-BKm8apzS.mjs +1 -0
- package/dist/time-DEUO3QV2-BOZv1JPT.mjs +1 -0
- package/dist/{timeline-definition-GMOUNBTQ-BBhlpYO9.mjs → timeline-definition-GMOUNBTQ-qIdeCiEK.mjs} +2 -2
- package/dist/{timeout-VRKMCG72-aaC7r4sX.mjs → timeout-VRKMCG72-CEWGEjty.mjs} +1 -1
- package/dist/touch-DX2IJOQ4-CjAZX3M6.mjs +1 -0
- package/dist/tr-2HXZRDSW-CehGhb2g.mjs +1 -0
- package/dist/tree-LYXBS7DC-CwBffKRV.mjs +1 -0
- package/dist/treeView-SZITEDCU-DkCY1vEP.mjs +1 -0
- package/dist/treemap-W4RFUUIX-CqZE2-qw.mjs +1 -0
- package/dist/true-WHJNXCHG-Uj-a5-Dz.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-DfngOCy5.mjs +1 -0
- package/dist/uniq-SUNANL47-CEP8kP6J.mjs +1 -0
- package/dist/{vennDiagram-DHZGUBPP-CATweP9B.mjs → vennDiagram-DHZGUBPP-B0wW_yMZ.mjs} +2 -2
- package/dist/wardley-RL74JXVD-Lx0wZS2z.mjs +1 -0
- package/dist/{wardleyDiagram-NUSXRM2D-3qxY3I6a.mjs → wardleyDiagram-NUSXRM2D-C9FhrgKS.mjs} +2 -2
- package/dist/wc-TQB3VNOX-bJMe7ljH.mjs +1 -0
- package/dist/which-XZHEH76L-sa5veBMg.mjs +1 -0
- package/dist/whoami-DGKU3D2X-BbTFjdCR.mjs +1 -0
- package/dist/write-project-skill-BzVHToYO.mjs +36 -0
- package/dist/xan-UD7JYIL2-2nWetB-o.mjs +1 -0
- package/dist/xan-view-OW2TB7Z3-Oo5v6Y-1.mjs +1 -0
- package/dist/xargs-I6EZUCYF-Bp4XAy4N.mjs +1 -0
- package/dist/{xychartDiagram-5P7HB3ND-BAWpa2N2.mjs → xychartDiagram-5P7HB3ND-DNlCf9Gt.mjs} +2 -2
- package/dist/yq-OAKYHSXH-tZjjvK0i.mjs +1 -0
- package/package.json +1 -1
- package/dist/alias-JE7RI5QX-DxvTrQH3.mjs +0 -1
- package/dist/architecture-YZFGNWBL-YPACCZ88.mjs +0 -1
- package/dist/bash-IJWYRKFO-C7Yi9aK0.mjs +0 -1
- package/dist/channel-Dq8ADXfq.mjs +0 -2
- package/dist/chunk-426QAEUC-BGn1TCpd.mjs +0 -2
- package/dist/classDiagram-6PBFFD2Q-cIblqhKe.mjs +0 -2
- package/dist/classDiagram-v2-HSJHXN6E-CnZ_g-6O.mjs +0 -2
- package/dist/clone-s6xjJkoz.mjs +0 -2
- package/dist/constants-ruS6yqIq.mjs +0 -2
- package/dist/diff-HJF2MPDN-DSY9AfjL.mjs +0 -1
- package/dist/dist-ClIxicL4.mjs +0 -1
- package/dist/echo-O45JWWI2-B99ElfBo.mjs +0 -1
- package/dist/env-5EPCWSXR-CsaomJHQ.mjs +0 -1
- package/dist/expr-YYCVMXE3-CHnBeIXW.mjs +0 -1
- package/dist/find-DH2ALKQS-6y8KktlA.mjs +0 -1
- package/dist/flag-coverage-6JEX67RU-BqC6mFKB.mjs +0 -2
- package/dist/gitGraph-7Q5UKJZL-ClGjTWw6.mjs +0 -1
- package/dist/grep-2HUTXO5U-Dbnjl3Iq.mjs +0 -1
- package/dist/gzip-AQXSGOVS-BtiMTiZG.mjs +0 -1
- package/dist/help-VVWX7SA5-DCBusWam.mjs +0 -1
- package/dist/history-J4QRNGRO-BwBOMO5i.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-D7XdAo13.mjs +0 -1
- package/dist/info-OMHHGYJF-11Qh6VJr.mjs +0 -1
- package/dist/init-CZ1SNbzi.mjs +0 -695
- package/dist/init-YPWG3akm.mjs +0 -1
- package/dist/jq-LYZFFBZB-CSF_TJhe.mjs +0 -1
- package/dist/loader-_YxuPUFp.mjs +0 -1
- package/dist/ls-KSXFZCWH-CNZ_hN8P.mjs +0 -1
- package/dist/md5sum-INMIK4DX-pTX2tfQd.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-Bl16kSBR.mjs +0 -1
- package/dist/mv-Z6MORUFL-D9pw6nb9.mjs +0 -1
- package/dist/packet-4T2RLAQJ-jzF54bgp.mjs +0 -1
- package/dist/paste-7N6AFSDS-C8EyimeA.mjs +0 -1
- package/dist/pie-ZZUOXDRM-x8WFG16Q.mjs +0 -1
- package/dist/preview-Nr0DWwkh.mjs +0 -1
- package/dist/printf-CX64KX2P-2Mks7IIT.mjs +0 -1
- package/dist/pwd-D4OZ7N27-m5fzqroZ.mjs +0 -1
- package/dist/radar-PYXPWWZC-C-wbHKao.mjs +0 -1
- package/dist/readlink-MI4GCHJF-BMheCA1U.mjs +0 -1
- package/dist/repair-launch-json-CERDu05c.mjs +0 -2
- package/dist/repair-skills-DzXDE27i.mjs +0 -1
- package/dist/rg-XNF3R3II-ivb6d3Sm.mjs +0 -1
- package/dist/rm-RTZG23RL-F9g7gQHU.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-CFMuhNvO.mjs +0 -1
- package/dist/seq-RN5ZUASB-BaUQfYSh.mjs +0 -1
- package/dist/server-lock-GuuouVft-DP6WTOjI.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-NRAU83Yg.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-Cfe-w5CY.mjs +0 -1
- package/dist/sort-DCNRDA7U-DqMg1dll.mjs +0 -1
- package/dist/src-DZiSWqgp.mjs +0 -11
- package/dist/start-PB9hDssp.mjs +0 -1
- package/dist/stat-BT5A227F-DOG39Ce5.mjs +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-CTdt2FVd.mjs +0 -2
- package/dist/strings-7PLOGTPD-l9kho9ff.mjs +0 -1
- package/dist/tail-S5ULNTJU-knoYRbXD.mjs +0 -1
- package/dist/tee-O7VXZDCO-BgHEibOy.mjs +0 -1
- package/dist/time-DEUO3QV2-CXWA3kJ0.mjs +0 -1
- package/dist/touch-DX2IJOQ4-DGiKr2c0.mjs +0 -1
- package/dist/tr-2HXZRDSW-BDNDgux2.mjs +0 -1
- package/dist/tree-LYXBS7DC-BK2c44-E.mjs +0 -1
- package/dist/treeView-SZITEDCU-DXyZ3zQc.mjs +0 -1
- package/dist/treemap-W4RFUUIX-CZRYHpYU.mjs +0 -1
- package/dist/true-WHJNXCHG-B6CZ-ZF1.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-BWFllY1p.mjs +0 -1
- package/dist/uniq-SUNANL47-CiXMC2Qh.mjs +0 -1
- package/dist/wardley-RL74JXVD-UKzwcBOa.mjs +0 -1
- package/dist/wc-TQB3VNOX-Bof613yN.mjs +0 -1
- package/dist/which-XZHEH76L-DfnqWxtA.mjs +0 -1
- package/dist/whoami-DGKU3D2X-DhtD1OhF.mjs +0 -1
- package/dist/write-project-skill-DXeyiTpq.mjs +0 -36
- package/dist/xan-UD7JYIL2-DnWVVFeC.mjs +0 -1
- package/dist/xan-view-OW2TB7Z3-DBl8NjSB.mjs +0 -1
- package/dist/xargs-I6EZUCYF-CdKFilDT.mjs +0 -1
- package/dist/yq-OAKYHSXH-CpYttz-E.mjs +0 -1
- /package/dist/{expansion-VBDYWVZR-k3W3Rc7R.mjs → expansion-VBDYWVZR-1XLTRUEG.mjs} +0 -0
- /package/dist/{git-handle-BMLM1Bxa-Dc3Lq9P5.mjs → git-handle-BMLM1Bxa-C8CZ9W34.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Array.prototype.slice;function e(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}export{e as t};
|
|
2
|
-
//# sourceMappingURL=array-
|
|
2
|
+
//# sourceMappingURL=array-DzQVq_wL.mjs.map
|
|
@@ -3,7 +3,7 @@ name: open-knowledge-discovery
|
|
|
3
3
|
description: "Read when the user asks what OpenKnowledge is, wants to install it on a repository, wants to share an OpenKnowledge project with collaborators, or asks how `ok init` / `ok cowork` / OK Desktop set up a project. Do NOT load to perform OpenKnowledge reads/writes — the runtime guidance for editing markdown inside an initialized OK project ships as a separate project-local skill at `.claude/skills/open-knowledge/` whenever `ok init` runs. If the user appears to be editing markdown inside a `.ok/` project and this is the only OK skill loaded, advise them to re-run `ok init` to install the project-local skill."
|
|
4
4
|
compatibility: "Any agent host — no MCP server required. Pure discovery + install guidance."
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.30.0-beta.
|
|
6
|
+
version: "0.30.0-beta.2"
|
|
7
7
|
author: "Inkeep"
|
|
8
8
|
repository: "https://github.com/inkeep/open-knowledge"
|
|
9
9
|
---
|
|
@@ -92,7 +92,7 @@ When asked to open or preview such a file, **decide by the viewing surface you
|
|
|
92
92
|
actually have** — check the tool, not the host name. Only open a browser when
|
|
93
93
|
you genuinely have one; never pop a browser tab on a host that has none.
|
|
94
94
|
|
|
95
|
-
- **You have an in-app / built-in browser** (Cursor, Codex, and similar) — this
|
|
95
|
+
- **You have an in-app / built-in browser** (Claude Code Desktop's Browser pane, Cursor, Codex, and similar) — this
|
|
96
96
|
is the default: call the **`preview_url` MCP tool** with `file` set to the
|
|
97
97
|
absolute path (it finds, or boots on demand, the session and returns a full
|
|
98
98
|
`url`), then **immediately open that `url` in your in-app browser**. "Open it"
|
|
@@ -101,12 +101,7 @@ you genuinely have one; never pop a browser tab on a host that has none.
|
|
|
101
101
|
(`ok open` prefers the Desktop app). Get the URL from `preview_url` only —
|
|
102
102
|
never hunt for it via `ok ps` / `ok status` / `ok ui` / `ok start` or a guessed
|
|
103
103
|
port.
|
|
104
|
-
- **
|
|
105
|
-
pane is project-only: it shows in-project docs via `preview_start`, but it
|
|
106
|
-
**cannot host a file from outside the project**. For such a file run
|
|
107
|
-
`ok open /abs/path/to/file.md` (the Desktop app) instead; don't try to force
|
|
108
|
-
the file into the pane.
|
|
109
|
-
- **No in-app browser and no pane** (a pure-stdio CLI) — run
|
|
104
|
+
- **No in-app browser** (a pure-stdio CLI) — run
|
|
110
105
|
`ok open /abs/path/to/file.md`: it opens the Desktop app when installed, else a
|
|
111
106
|
browser, and boots the session itself. Don't force a browser tab the user
|
|
112
107
|
didn't ask for; `ok open` is the right default here. If `ok` isn't on PATH,
|
|
@@ -3,7 +3,7 @@ name: open-knowledge
|
|
|
3
3
|
description: "Authoritative agent-runtime contract for working inside an OpenKnowledge project — a markdown-CRDT knowledge base exposed over MCP. Use whenever reading, listing, searching, or editing any `.md` or `.mdx` file in the project, and before any `mcp__open-knowledge__*` tool call (`exec`, `search`, `write`, `edit`, and the rest). Installed by `ok init`, so its presence means this is an OpenKnowledge project and it governs every markdown file here. Covers the read/write tool surface, grounding and linking rules, folder/template conventions, the live browser preview, and the rule that OK's MCP tools — never native file tools — handle in-scope markdown."
|
|
4
4
|
compatibility: "Claude Code, Claude Desktop, Claude Cowork, Claude.ai web. Requires OpenKnowledge MCP server + code execution."
|
|
5
5
|
metadata:
|
|
6
|
-
version: "0.30.0-beta.
|
|
6
|
+
version: "0.30.0-beta.2"
|
|
7
7
|
author: "Inkeep"
|
|
8
8
|
repository: "https://github.com/inkeep/open-knowledge"
|
|
9
9
|
---
|
|
@@ -19,7 +19,7 @@ OpenKnowledge (OK) is a markdown-CRDT collaboration platform exposed via MCP. Th
|
|
|
19
19
|
|
|
20
20
|
1. **Reads:** `exec("cat …")` for one doc, `exec("ls -A …")` for a directory (folder defaults + template menu), `exec("grep …")` for literal, `search` for ranked retrieval. Native `Read` / `Grep` only on source code (`.ts` / `.py` / …), never on in-scope `.md` / `.mdx`.
|
|
21
21
|
2. **Writes:** `write({ document: { path, content } })` for a new or full-replace doc; `edit({ document: { path, find, replace } })` for a body find/replace; `edit({ document: { path, frontmatter } })` for a frontmatter merge-patch (`null` deletes a key). `delete({ document })` removes, `move({ from, to })` moves/renames. Body find/replace is body-only. Pass a one-line `summary` (≤80 chars, user-facing outcome) on every content write.
|
|
22
|
-
3. **Preview / open a doc — determine your ONE surface FIRST (once per session).** Before opening anything, pick where to focus, stop at first match: **`OK_DESKTOP_TERMINAL` set** (check your env — `echo "$OK_DESKTOP_TERMINAL"`) → OK Desktop's own terminal → `ok open <name>` (switches this window) · have
|
|
22
|
+
3. **Preview / open a doc — determine your ONE surface FIRST (once per session).** Before opening anything, pick where to focus, stop at first match: **`OK_DESKTOP_TERMINAL` set** (check your env — `echo "$OK_DESKTOP_TERMINAL"`) → OK Desktop's own terminal → `ok open <name>` (switches this window) · have an in-app browser (Claude Code Desktop's Browser pane, Cursor, Codex) → `preview_url` then open/navigate it to the doc (Claude Desktop: `preview_start({url})` to open, `navigate({url})` to move) · else plain CLI → `ok open <name>`. `ok open <name>` opens a **doc or folder** (auto-detected — no `--folder`); add `--skill <name>` for a skill. The `previewUrl` field is a route id, **not** your open mechanism — don't hand it to a browser just because you saw it. Don't `preview_screenshot` to confirm edits. Full Step-0 procedure + per-surface how-to: `references/preview.md`.
|
|
23
23
|
4. **Workflow guides:** `workflow({ kind: 'ingest' | 'research' | 'consolidate' | 'discover' })` returns a procedural guide, not data. Use it when the work fits the layer.
|
|
24
24
|
5. **Direct questions:** a plain business question ("which customers…", "what did we decide about…") routes to `search` / `exec` + a cited chat answer — no "research" keyword needed. Persist only when durable + multi-doc + not already covered, and *offer* first. See `references/corpus-qa.md`.
|
|
25
25
|
6. **Authoring or improving a skill** ("write/make a skill", "improve this skill", "turn this into a skill"): STOP and invoke the **`open-knowledge-write-skill`** skill — it owns scope choice (project vs global), the SKILL.md contract, evaluation, and install; don't improvise from this skill. Author through the `skill` target (`write({ skill })`), never a raw `.ok/skills/…` document. **Never read, diff, or edit the installed projections under `.claude/skills/` · `.cursor/skills/` · `.codex/skills/` · `.opencode/skills/` · `.pi/skills/` · `.agents/skills/`** — `install` generates them and overwrites them on the next sync; they are NOT source of truth.
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
| Explore a markdown-heavy dir | `Agent(Explore): "..."` | Do `exec`-based exploration yourself |
|
|
13
13
|
| Answer a direct business question from the corpus | answer in chat and move on (it evaporates), OR save every answer as a new doc | answer with citations; *offer* to persist only when durable + multi-doc + not already covered (`references/corpus-qa.md`) |
|
|
14
14
|
| Wait for the server to tell you to open preview | Skip the session-start preview open and wait for the `attach-preview-once` hint | Open the preview browser at session start; the hint is a fallback when you didn't |
|
|
15
|
-
| Ignore the attach hint | Skip the `warning: { action: "attach-preview-once" }` hint in write-tool responses | Open the preview when the hint fires (`
|
|
16
|
-
| Make the Claude Code Desktop preview work | Read / diagnose / edit `.claude/launch.json` (host-managed config) |
|
|
15
|
+
| Ignore the attach hint | Skip the `warning: { action: "attach-preview-once" }` hint in write-tool responses | Open the preview when the hint fires (`preview_url` → navigate your in-app browser); otherwise do nothing |
|
|
16
|
+
| Make the Claude Code Desktop preview work | Read / diagnose / edit `.claude/launch.json` (host-managed config) | Open the Browser pane with `preview_start({url})` (from `preview_url`; auto-starts the UI), then `navigate({url})` to move between docs; don't hand-edit host preview config — the OK lock-collision proxy bridges any port mismatch transparently |
|
|
17
17
|
| Open a doc/folder/skill in the app from a CLI | Print the `previewUrl` / `openknowledge://` string for the user to click | Run `ok open <name>` (doc or folder, auto-detected; `--skill <name>` for a skill) — deep-links into OK Desktop, browser fallback |
|
|
18
18
|
| Reference another doc | `` `[text](./page.md)` `` (backticked) or HTML `<a>` | `[text](./page.md)` (raw markdown) |
|
|
19
19
|
| Embed an image | `<img src="...">` (HTML), a `localhost:<port>` / `preview_url` server URL, or hot-linked external URL | Fetch + save locally + doc-relative `` |
|
|
@@ -22,15 +22,14 @@ The user watches your edits land in a live browser preview. Open it once at sess
|
|
|
22
22
|
Your host doesn't change mid-session, so determine this **once**, the first time you're asked to open/show/preview a doc, and use that one surface for the rest of the session. Run the checks **top-to-bottom and stop at the first match** — earlier rungs win:
|
|
23
23
|
|
|
24
24
|
1. **Is `OK_DESKTOP_TERMINAL` set in your environment?** You're a shell agent — actually check it (`echo "$OK_DESKTOP_TERMINAL"`, or read your env), don't assume. **Set → you're inside the OK Desktop app's own terminal.** Open a doc or folder with `ok open <name>` (auto-detected; `--skill <name>` for a skill) — it switches THIS window to the target. **Never resolve a preview URL here.** (This rung is the one agents miss most — check the env first, before anything else.)
|
|
25
|
-
2. **Do you have
|
|
26
|
-
3. **
|
|
27
|
-
4. **None of the above** → you're a **plain CLI** (Claude Code CLI, Codex CLI, Cursor CLI, OpenCode, Pi, any shell agent) → `ok open <name>` for a doc or folder (auto-detected; `--skill <name>` for a skill); deep-links a separate OK Desktop window, system browser only if no desktop.
|
|
25
|
+
2. **Do you have any URL-navigation / in-app browser tool** (Claude Code Desktop's **Browser pane**, Cursor's `Navigate`, Codex's `@Browser`, or `browser` / `open_url` / `view_url` / …)? → **Claude Code Desktop / Cursor / Codex desktop** → `preview_url` once, then open/navigate that browser to the `url` (per-surface how-to below — Claude Desktop opens the pane with `preview_start({ url })` then `navigate({ url })` to move; Cursor/Codex navigate directly).
|
|
26
|
+
3. **None of the above** → you're a **plain CLI** (Claude Code CLI, Codex CLI, Cursor CLI, OpenCode, Pi, any shell agent) → `ok open <name>` for a doc or folder (auto-detected; `--skill <name>` for a skill); deep-links a separate OK Desktop window, system browser only if no desktop.
|
|
28
27
|
|
|
29
28
|
Decide once; then every "open / show / preview this doc" this session uses that surface's mechanism. **The `previewUrl` field in tool responses is a route id, not your open mechanism** — seeing it is not a reason to hand it to a browser. The rest of this section is the per-surface "how" for whichever rung you landed on.
|
|
30
29
|
|
|
31
30
|
**OK ships first-class preview support for three apps — Claude Code Desktop, Cursor, and the Codex desktop app — plus any CLI (Claude Code CLI, Codex CLI, Cursor CLI, OpenCode, Pi, …) on a separate `ok open` track (below). Make the preview seamless in each.** Match on the tool you actually have (capability, not host name): if a tool can navigate to a URL, it counts as an in-app browser; if nothing can, you're a CLI → `ok open`. The three apps map to:
|
|
32
31
|
|
|
33
|
-
- **Claude Code Desktop — you have `
|
|
32
|
+
- **Claude Code Desktop — you have the in-app `Browser` pane** (Cmd+Shift+B; driven by the `Claude_Browser` tool set — `preview_start`, `navigate`, `read_page`, `computer`, …). Two steps, both fed by `preview_url`: **(1) open the pane** with `preview_start({ url })` passing the `preview_url` result — `preview_start` opens a browser tab directly at that URL (`preview_start({ url })`), and the deep `url` already carries the doc's hash route so it lands on the doc, no arming. **(2) move to another doc** once the pane is open with `navigate({ url })` passing the new target's `preview_url`. A cold `navigate` fails (`No preview is open`) — `preview_start` must open the pane first; and `navigate` (not `preview_eval` hash-poking) is the move verb. `preview_url` auto-starts the OK UI so the `url` resolves before you open. Don't hand-edit host preview config.
|
|
34
33
|
- **Cursor / Codex desktop — no `preview_*` tool, but you have an in-app / built-in browser tool** → call `preview_url` once for the **exact** target (`document` for a doc, `folder` for a folder) and navigate your **in-app browser** straight to the returned `url`. Open that deep URL directly — never the root then navigate; omit both args only for the root. Drive the tool your host gives you:
|
|
35
34
|
- **Cursor** → its built-in **Browser** tool, the **`Navigate`** action (`browser_navigate`, via Cursor's own `cursor-ide-browser`). Navigate it to the `url` yourself — don't print the URL or shell out to the system browser. (A *surfaced* link in Cursor follows its "Browser Tab" vs "Google Chrome" picker and may open the system browser; you calling `Navigate` avoids that. A third-party MCP like OK cannot push a URL into the pane — only the agent's own `Navigate` can.)
|
|
36
35
|
- **Codex desktop app** → its in-app **Browser** plugin (`@Browser`); drive it to the `url` (Codex navigates via `tab.goto`).
|
|
@@ -51,12 +50,12 @@ Decide once; then every "open / show / preview this doc" this session uses that
|
|
|
51
50
|
|
|
52
51
|
1. You opened/navigated earlier this session → don't reopen.
|
|
53
52
|
2. Write response has `previewUrl` (non-null route) and NO `warning` → a browser is attached somewhere; do nothing.
|
|
54
|
-
3. `warning: { action: "attach-preview-once", previewUrl, message }` → UI reachable, no browser attached;
|
|
53
|
+
3. `warning: { action: "attach-preview-once", previewUrl, message }` → UI reachable, no browser attached; open one-shot (`preview_url` → your host's open verb: `preview_start({ url })` on Claude Desktop; `navigate` / `Navigate` / `@Browser` on Cursor/Codex).
|
|
55
54
|
4. `warning: { action: "start-ui", previewUrl: null, message }` → no UI running anywhere. Surface the message verbatim — recovery options are in the in-band copy. Don't loop on retries.
|
|
56
55
|
|
|
57
56
|
Warnings fire at most once per session in the fresh-start case.
|
|
58
57
|
|
|
59
|
-
**Re-point at the end of a multi-doc workflow; don't claim a doc is on screen unless you put it there.** The one-shot attach (signal 3) opens the preview *once* — later writes do NOT move the pane; it stays on the doc you last navigated to. When a turn touches several docs, finish by navigating the preview to the doc the user should land on, using your host's move mechanism (`
|
|
58
|
+
**Re-point at the end of a multi-doc workflow; don't claim a doc is on screen unless you put it there.** The one-shot attach (signal 3) opens the preview *once* — later writes do NOT move the pane; it stays on the doc you last navigated to. When a turn touches several docs, finish by navigating the preview to the doc the user should land on, using your host's move mechanism (`preview_url` → navigate your in-app browser; honor `autoOpen`). Until you have navigated there *this* turn, don't tell the user a doc is "open" / "on screen" — at most, say the preview may still be on the doc you opened earlier.
|
|
60
59
|
|
|
61
60
|
**`previewUrl: null` only means "no UI reachable" on the two attach-warning tools: `write` / `edit`.** Workflow tools return prose and don't carry `previewUrl`. `delete` / `move` emit `previousPreviewUrl` (different field, for closing stale tabs) and don't fire attach warnings. `preview_url` auto-starts the backend on demand (same `OK_MCP_AUTOSTART` gate as writes; a cold first call can take seconds) and reports `running: false` + `url: null` only when no UI could be reached — its hint names the right command.
|
|
62
61
|
|
|
@@ -66,4 +65,4 @@ OK Electron and `ok ui` share `ui.lock`; when a second UI binds a different port
|
|
|
66
65
|
|
|
67
66
|
**The preview is read-only for the agent — it is the user's view, not a surface you read back.** You cannot click or type to drive edits — the CRDT flow is one-way (agent → MCP → CRDT → preview).
|
|
68
67
|
|
|
69
|
-
**No screenshots to confirm edits, no generic verification loop.** Do NOT take `preview_screenshot` (host tool, not OK MCP) after a write, and do not run a generic snapshot/eval/screenshot verification loop — OK's preview is a read-only, one-way mirror, so the CRDT tool response *is* the confirmation that an edit landed. Screenshot only when debugging a visual rendering issue or when the user explicitly asks to see the preview — never to confirm an edit landed. (Navigating
|
|
68
|
+
**No screenshots to confirm edits, no generic verification loop.** Do NOT take `preview_screenshot` (host tool, not OK MCP) after a write, and do not run a generic snapshot/eval/screenshot verification loop — OK's preview is a read-only, one-way mirror, so the CRDT tool response *is* the confirmation that an edit landed. Screenshot only when debugging a visual rendering issue or when the user explicitly asks to see the preview — never to confirm an edit landed. (Navigating your in-app browser to a `preview_url` route is fine — that drives the view, it is not a read-back verification loop.)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-B74TABJS-DlbqoTuk.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import"./chunk-5QMZ5MUS-_0tQyQsf.mjs";import"./chunk-24IMIIXA-BoP5OA93.mjs";import{n as e}from"./chunk-TP4BZANS-
|
|
1
|
+
import"./chunk-B74TABJS-DlbqoTuk.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import"./chunk-5QMZ5MUS-_0tQyQsf.mjs";import"./chunk-24IMIIXA-BoP5OA93.mjs";import{n as e}from"./chunk-TP4BZANS-CTpZAzJp.mjs";export{e as awkCommand2};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{a as e,i as t,n,t as r}from"./colors-8SzMRIVy.mjs";const i={single:{topLeft:`┌`,top:`─`,topRight:`┐`,right:`│`,bottomRight:`┘`,bottom:`─`,bottomLeft:`└`,left:`│`},double:{topLeft:`╔`,top:`═`,topRight:`╗`,right:`║`,bottomRight:`╝`,bottom:`═`,bottomLeft:`╚`,left:`║`},round:{topLeft:`╭`,top:`─`,topRight:`╮`,right:`│`,bottomRight:`╯`,bottom:`─`,bottomLeft:`╰`,left:`│`},bold:{topLeft:`┏`,top:`━`,topRight:`┓`,right:`┃`,bottomRight:`┛`,bottom:`━`,bottomLeft:`┗`,left:`┃`},singleDouble:{topLeft:`╓`,top:`─`,topRight:`╖`,right:`║`,bottomRight:`╜`,bottom:`─`,bottomLeft:`╙`,left:`║`},doubleSingle:{topLeft:`╒`,top:`═`,topRight:`╕`,right:`│`,bottomRight:`╛`,bottom:`═`,bottomLeft:`╘`,left:`│`},classic:{topLeft:`+`,top:`-`,topRight:`+`,right:`|`,bottomRight:`+`,bottom:`-`,bottomLeft:`+`,left:`|`},arrow:{topLeft:`↘`,top:`↓`,topRight:`↙`,right:`←`,bottomRight:`↖`,bottom:`↑`,bottomLeft:`↗`,left:`→`}}.round;function a(a){let o=[],s=`${a.name} v${a.version}`;o.push({plain:s,colored:r(s)}),o.push({plain:``,colored:``});let c=a.apiUrl?`Editor: `:`Local: `;if(o.push({plain:`${c}${a.localUrl}`,colored:`${c}${e(t(a.localUrl),a.localUrl)}`}),a.apiUrl){let t=`API: `;o.push({plain:`${t}${a.apiUrl}`,colored:`${t}${n(e(a.apiUrl,a.apiUrl))}`})}if(a.networkUrl){let n=`Network: `;o.push({plain:`${n}${a.networkUrl}`,colored:`${n}${e(t(a.networkUrl),a.networkUrl)}`})}if(a.nextSteps&&a.nextSteps.length>0){o.push({plain:``,colored:``});for(let e of a.nextSteps)o.push({plain:e,colored:n(e)})}o.push({plain:``,colored:``});let l=`Press Ctrl+C to stop`;o.push({plain:l,colored:n(l)});let u=Math.max(...o.map(e=>e.plain.length)),d=u+4,f=` ${i.topLeft}${i.top.repeat(d)}${i.topRight}`,p=` ${i.bottomLeft}${i.bottom.repeat(d)}${i.bottomRight}`;return[``,f,...o.map(e=>{let t=u-e.plain.length;return` ${i.left}${` `.repeat(2)}${e.colored}${` `.repeat(t+2)}${i.right}`}),p,``].join(`
|
|
2
2
|
`)}export{a as renderBanner};
|
|
3
|
-
//# sourceMappingURL=banner-
|
|
3
|
+
//# sourceMappingURL=banner-BLebOalA.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-QJ7O6ZN3-
|
|
1
|
+
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-QJ7O6ZN3-jw3_Ap-D.mjs";export{e as base64Command};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-ALLTKNUZ-
|
|
1
|
+
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-ALLTKNUZ-_L2HGfkh.mjs";export{e as basenameCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{i as e,t}from"./chunk-D6CWQ5DW-Cv88ySaX.mjs";export{e as bashCommand,t as shCommand};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as e,p as t,w as n}from"./src-
|
|
1
|
+
import{T as e,p as t,w as n}from"./src-DBL0Mxlv.mjs";import{D as r,L as i,a,b as o,c as s,nt as c,s as l,w as u,y as d}from"./chunk-ICPOFSXX-d7VyKeM8.mjs";import{t as f}from"./channel-DR5xnYq9.mjs";import{H as p,c as m,h,i as g}from"./chunk-5PVQY5BW-Bv35hkyA.mjs";import{t as _}from"./line-T8d2uu7j.mjs";import{n as v}from"./chunk-U2HBQHQK-C6hC2wN2.mjs";import{t as y}from"./chunk-FMBD7UC4-DWi7gSvW.mjs";import{n as b,t as x}from"./chunk-BSJP7CBP-DLDhpSB6.mjs";import{n as S,t as C}from"./chunk-ZZ45TVLE-CHtfsZGo.mjs";import{t as w}from"./graphlib-CnQJqmVu.mjs";import{t as T}from"./clone-BftAxCKp.mjs";var E=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],r=[1,7],i=[1,13],a=[1,14],o=[1,19],s=[1,16],c=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),typeof a[s].length==`number`?this.$=a[s]:this.$=[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]);this.$={id:r.generateId(),type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let n=r.edgeStrToEdgeData(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,directions:a[s].directions,arrowTypeEnd:n,arrowTypeStart:`arrow_open`},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]),this.$={id:r.generateId(),type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()};break}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:i,29:a,31:o,39:s,43:c,46:l}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:o},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},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;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.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,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`)};_.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()+`
|
|
@@ -130,4 +130,4 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
|
|
|
130
130
|
outsidePoint: ${JSON.stringify(n)}
|
|
131
131
|
insidePoint : ${JSON.stringify(r)}
|
|
132
132
|
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let i=t.x,a=t.y,o=Math.abs(i-r.x),s=t.width/2,c=r.x<n.x?s-o:s+o,l=t.height/2,u=Math.abs(n.y-r.y),d=Math.abs(n.x-r.x);if(Math.abs(a-n.y)*s>Math.abs(i-n.x)*l){let t=r.y<n.y?n.y-l-a:a-l-n.y;c=d*t/u;let i={x:r.x<n.x?r.x+c:r.x-d+c,y:r.y<n.y?r.y+u-t:r.y-u+t};return c===0&&(i.x=n.x,i.y=n.y),d===0&&(i.x=n.x),u===0&&(i.y=n.y),e.debug(`abc89 topp/bott calc, Q ${u}, q ${t}, R ${d}, r ${c}`,i),i}else{c=r.x<n.x?n.x-s-i:i-s-n.x;let t=u*c/d,a=r.x<n.x?r.x+d-c:r.x-d+c,o=r.y<n.y?r.y+t:r.y-t;return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=n.x,o=n.y),d===0&&(a=n.x),u===0&&(o=n.y),{x:a,y:o}}},`intersection`),ke=n((t,n)=>{e.debug(`abc88 cutPathAtIntersect`,t,n);let r=[],i=t[0],a=!1;return t.forEach(e=>{if(!De(n,e)&&!a){let t=Oe(n,i,e),o=!1;r.forEach(e=>{o||=e.x===t.x&&e.y===t.y}),r.some(e=>e.x===t.x&&e.y===t.y)||r.push(t),a=!0}else i=e,a||r.push(e)}),r},`cutPathAtIntersect`),Ae=n(function(t,n,i,a,s,c,l){let u=i.points;e.debug(`abc88 InsertEdge: edge=`,i,`e=`,n);let d=!1,f=c.node(n.v);var m=c.node(n.w);m?.intersect&&f?.intersect&&(u=u.slice(1,i.points.length-1),u.unshift(f.intersect(u[0])),u.push(m.intersect(u[u.length-1]))),i.toCluster&&(e.debug(`to cluster abc88`,a[i.toCluster]),u=ke(i.points,a[i.toCluster].node),d=!0),i.fromCluster&&(e.debug(`from cluster abc88`,a[i.fromCluster]),u=ke(u.reverse(),a[i.fromCluster].node).reverse(),d=!0);let h=u.filter(e=>!Number.isNaN(e.y)),g=p;i.curve&&(s===`graph`||s===`flowchart`)&&(g=i.curve);let{x:v,y}=b(i),x=_().x(v).y(y).curve(g),S;switch(i.thickness){case`normal`:S=`edge-thickness-normal`;break;case`thick`:S=`edge-thickness-thick`;break;case`invisible`:S=`edge-thickness-thick`;break;default:S=``}switch(i.pattern){case`solid`:S+=` edge-pattern-solid`;break;case`dotted`:S+=` edge-pattern-dotted`;break;case`dashed`:S+=` edge-pattern-dashed`;break}let C=t.append(`path`).attr(`d`,x(h)).attr(`id`,i.id).attr(`class`,` `+S+(i.classes?` `+i.classes:``)).attr(`style`,i.style),w=``;(o().flowchart.arrowMarkerAbsolute||o().state.arrowMarkerAbsolute)&&(w=r(!0)),Se(C,i,w,l,s);let T={};return d&&(T.updatedPath=u),T.originalPath=i.points,T},`insertEdge`),je=n(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n);break}return t},`expandAndDeduplicateDirections`),Me=n((e,t,n)=>{let r=je(e),i=t.height+2*n.padding,a=i/2,o=t.width+2*a+n.padding,s=n.padding/2;return r.has(`right`)&&r.has(`left`)&&r.has(`up`)&&r.has(`down`)?[{x:0,y:0},{x:a,y:0},{x:o/2,y:2*s},{x:o-a,y:0},{x:o,y:0},{x:o,y:-i/3},{x:o+2*s,y:-i/2},{x:o,y:-2*i/3},{x:o,y:-i},{x:o-a,y:-i},{x:o/2,y:-i-2*s},{x:a,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*s,y:-i/2},{x:0,y:-i/3}]:r.has(`right`)&&r.has(`left`)&&r.has(`up`)?[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`right`)&&r.has(`left`)&&r.has(`down`)?[{x:0,y:0},{x:a,y:-i},{x:o-a,y:-i},{x:o,y:0}]:r.has(`right`)&&r.has(`up`)&&r.has(`down`)?[{x:0,y:0},{x:o,y:-a},{x:o,y:-i+a},{x:0,y:-i}]:r.has(`left`)&&r.has(`up`)&&r.has(`down`)?[{x:o,y:0},{x:0,y:-a},{x:0,y:-i+a},{x:o,y:-i}]:r.has(`right`)&&r.has(`left`)?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`up`)&&r.has(`down`)?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-i+s},{x:0,y:-i+s},{x:o/2,y:-i},{x:o,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s},{x:o,y:-s}]:r.has(`right`)&&r.has(`up`)?[{x:0,y:0},{x:o,y:-a},{x:0,y:-i}]:r.has(`right`)&&r.has(`down`)?[{x:0,y:0},{x:o,y:0},{x:0,y:-i}]:r.has(`left`)&&r.has(`up`)?[{x:o,y:0},{x:0,y:-a},{x:o,y:-i}]:r.has(`left`)&&r.has(`down`)?[{x:o,y:0},{x:0,y:0},{x:o,y:-i}]:r.has(`right`)?[{x:a,y:-s},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i+s}]:r.has(`left`)?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`up`)?[{x:a,y:-s},{x:a,y:-i+s},{x:0,y:-i+s},{x:o/2,y:-i},{x:o,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s}]:r.has(`down`)?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s},{x:o,y:-s}]:[{x:0,y:0}]},`getArrowPoints`);function Ne(e,t){return e.intersect(t)}n(Ne,`intersectNode`);var Pe=Ne;function Fe(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}n(Fe,`intersectEllipse`);var Ie=Fe;function Le(e,t,n){return Ie(e,t,t,n)}n(Le,`intersectCircle`);var Re=Le;function ze(e,t,n,r){var i=t.y-e.y,a,o=e.x-t.x,s,c=t.x*e.y-e.x*t.y,l,u,d,f=i*n.x+o*n.y+c,p=i*r.x+o*r.y+c,m,h,g,_,v;if(!(f!==0&&p!==0&&G(f,p))&&(a=r.y-n.y,s=n.x-r.x,l=r.x*n.y-n.x*r.y,u=a*e.x+s*e.y+l,d=a*t.x+s*t.y+l,!(u!==0&&d!==0&&G(u,d))&&(m=i*s-a*o,m!==0)))return h=Math.abs(m/2),g=o*l-s*c,_=g<0?(g-h)/m:(g+h)/m,g=a*c-i*l,v=g<0?(g-h)/m:(g+h)/m,{x:_,y:v}}n(ze,`intersectLine`);function G(e,t){return e*t>0}n(G,`sameSign`);var Be=ze,Ve=He;function He(e,t,n){var r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));for(var c=r-e.width/2-o,l=i-e.height/2-s,u=0;u<t.length;u++){var d=t[u],f=t[u<t.length-1?u+1:0],p=Be(e,n,{x:c+d.x,y:l+d.y},{x:c+f.x,y:l+f.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(e,t){var r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}n(He,`intersectPolygon`);var K={node:Pe,circle:Re,ellipse:Ie,polygon:Ve,rect:n((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`)},q=n(async(e,n,r,a)=>{let s=o(),c,l=n.useHtmlLabels||u(s);c=r||`node default`;let d=e.insert(`g`).attr(`class`,c).attr(`id`,n.domId||n.id),f=d.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle),p;p=n.labelText===void 0?``:typeof n.labelText==`string`?n.labelText:n.labelText[0];let m;m=n.labelType===`markdown`?v(f,i(g(p),s),{useHtmlLabels:l,width:n.width||s.flowchart.wrappingWidth,classes:`markdown-node-label`},s):await V(f,i(g(p),s),n.labelStyle,!1,a);let h=m.getBBox(),_=n.padding/2;if(u(s)){let e=m.children[0],n=t(m);await C(e,p),h=e.getBoundingClientRect(),n.attr(`width`,h.width),n.attr(`height`,h.height)}return l?f.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`):f.attr(`transform`,`translate(0, `+-h.height/2+`)`),n.centerLabel&&f.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`),f.insert(`rect`,`:first-child`),{shapeSvg:d,bbox:h,halfPadding:_,label:f}},`labelHelper`),J=n((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`);function Y(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}n(Y,`insertPolygonShape`);var Ue=n(async(t,n)=>{n.useHtmlLabels||u(o())||(n.centerLabel=!0);let{shapeSvg:r,bbox:i,halfPadding:a}=await q(t,n,`node `+n.classes,!0);e.info(`Classes = `,n.classes);let s=r.insert(`rect`,`:first-child`);return s.attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,-i.width/2-a).attr(`y`,-i.height/2-a).attr(`width`,i.width+n.padding).attr(`height`,i.height+n.padding),J(n,s),n.intersect=function(e){return K.rect(n,e)},r},`note`),We=n(e=>e?` `+e:``,`formatClass`),X=n((e,t)=>`${t||`node default`}${We(e.classes)} ${We(e.class)}`,`getClassesFromNode`),Ge=n(async(t,n)=>{let{shapeSvg:r,bbox:i}=await q(t,n,X(n,void 0),!0),a=i.width+n.padding+(i.height+n.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];e.info(`Question main (Circle)`);let s=Y(r,a,a,o);return s.attr(`style`,n.style),J(n,s),n.intersect=function(t){return e.warn(`Intersect called`),K.polygon(n,o,t)},r},`question`),Ke=n((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id);return n.insert(`polygon`,`:first-child`).attr(`points`,[{x:0,y:28/2},{x:28/2,y:0},{x:0,y:-28/2},{x:-28/2,y:0}].map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`state-start`).attr(`r`,7).attr(`width`,28).attr(`height`,28),t.width=28,t.height=28,t.intersect=function(e){return K.circle(t,14,e)},n},`choice`),qe=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.height+t.padding,a=i/4,o=r.width+2*a+t.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}],c=Y(n,o,i,s);return c.attr(`style`,t.style),J(t,c),t.intersect=function(e){return K.polygon(t,s,e)},n},`hexagon`),Je=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,void 0,!0),i=r.height+2*t.padding,a=i/2,o=r.width+2*a+t.padding,s=Me(t.directions,r,t),c=Y(n,o,i,s);return c.attr(`style`,t.style),J(t,c),t.intersect=function(e){return K.polygon(t,s,e)},n},`block_arrow`),Ye=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Y(n,i,a,o).attr(`style`,t.style),t.width=i+a,t.height=a,t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_left_inv_arrow`),Xe=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_right`),Ze=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_left`),Qe=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`trapezoid`),$e=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`inv_trapezoid`),et=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_right_inv_arrow`),tt=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=i/2,o=a/(2.5+i/50),s=r.height+o+t.padding,c=`M 0,`+o+` a `+a+`,`+o+` 0,0,0 `+i+` 0 a `+a+`,`+o+` 0,0,0 `+-i+` 0 l 0,`+s+` a `+a+`,`+o+` 0,0,0 `+i+` 0 l 0,`+-s;return J(t,n.attr(`label-offset-y`,o).insert(`path`,`:first-child`).attr(`style`,t.style).attr(`d`,c).attr(`transform`,`translate(`+-i/2+`,`+-(s/2+o)+`)`)),t.intersect=function(e){let n=K.rect(t,e),r=n.x-t.x;if(a!=0&&(Math.abs(r)<t.width/2||Math.abs(r)==t.width/2&&Math.abs(n.y-t.y)>t.height/2-o)){let i=o*o*(1-r*r/(a*a));i!=0&&(i=Math.sqrt(i)),i=o-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},n},`cylinder`),nt=n(async(t,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(t,n,`node `+n.classes+` `+n.class,!0),o=r.insert(`rect`,`:first-child`),s=n.positioned?n.width:i.width+n.padding,c=n.positioned?n.height:i.height+n.padding,l=n.positioned?-s/2:-i.width/2-a,u=n.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic label-container`).attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),n.props){let t=new Set(Object.keys(n.props));n.props.borders&&(Z(o,n.props.borders,s,c),t.delete(`borders`)),t.forEach(t=>{e.warn(`Unknown node property ${t}`)})}return J(n,o),n.intersect=function(e){return K.rect(n,e)},r},`rect`),rt=n(async(t,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(t,n,`node `+n.classes,!0),o=r.insert(`rect`,`:first-child`),s=n.positioned?n.width:i.width+n.padding,c=n.positioned?n.height:i.height+n.padding,l=n.positioned?-s/2:-i.width/2-a,u=n.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),n.props){let t=new Set(Object.keys(n.props));n.props.borders&&(Z(o,n.props.borders,s,c),t.delete(`borders`)),t.forEach(t=>{e.warn(`Unknown node property ${t}`)})}return J(n,o),n.intersect=function(e){return K.rect(n,e)},r},`composite`),it=n(async(t,n)=>{let{shapeSvg:r}=await q(t,n,`label`,!0);e.trace(`Classes = `,n.class);let i=r.insert(`rect`,`:first-child`);if(i.attr(`width`,0).attr(`height`,0),r.attr(`class`,`label edgeLabel`),n.props){let t=new Set(Object.keys(n.props));n.props.borders&&(Z(i,n.props.borders,0,0),t.delete(`borders`)),t.forEach(t=>{e.warn(`Unknown node property ${t}`)})}return J(n,i),n.intersect=function(e){return K.rect(n,e)},r},`labelRect`);function Z(t,r,i,a){let o=[],s=n(e=>{o.push(e,0)},`addBorder`),c=n(e=>{o.push(0,e)},`skipBorder`);r.includes(`t`)?(e.debug(`add top border`),s(i)):c(i),r.includes(`r`)?(e.debug(`add right border`),s(a)):c(a),r.includes(`b`)?(e.debug(`add bottom border`),s(i)):c(i),r.includes(`l`)?(e.debug(`add left border`),s(a)):c(a),t.attr(`stroke-dasharray`,o.join(` `))}n(Z,`applyNodePropertyBorders`);var at=n(async(n,r)=>{let i;i=r.classes?`node `+r.classes:`node default`;let a=n.insert(`g`).attr(`class`,i).attr(`id`,r.domId||r.id),s=a.insert(`rect`,`:first-child`),c=a.insert(`line`),l=a.insert(`g`).attr(`class`,`label`),d=r.labelText.flat?r.labelText.flat():r.labelText,f=``;f=typeof d==`object`?d[0]:d,e.info(`Label text abc79`,f,d,typeof d==`object`);let p=await V(l,f,r.labelStyle,!0,!0),m={width:0,height:0};if(u(o())){let e=p.children[0],n=t(p);m=e.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}e.info(`Text 2`,d);let h=d.slice(1,d.length),g=p.getBBox(),_=await V(l,h.join?h.join(`<br/>`):h,r.labelStyle,!0,!0);if(u(o())){let e=_.children[0],n=t(_);m=e.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}let v=r.padding/2;return t(_).attr(`transform`,`translate( `+(m.width>g.width?0:(g.width-m.width)/2)+`, `+(g.height+v+5)+`)`),t(p).attr(`transform`,`translate( `+(m.width<g.width?0:-(g.width-m.width)/2)+`, 0)`),m=l.node().getBBox(),l.attr(`transform`,`translate(`+-m.width/2+`, `+(-m.height/2-v+3)+`)`),s.attr(`class`,`outer title-state`).attr(`x`,-m.width/2-v).attr(`y`,-m.height/2-v).attr(`width`,m.width+r.padding).attr(`height`,m.height+r.padding),c.attr(`class`,`divider`).attr(`x1`,-m.width/2-v).attr(`x2`,m.width/2+v).attr(`y1`,-m.height/2-v+g.height+v).attr(`y2`,-m.height/2-v+g.height+v),J(r,s),r.intersect=function(e){return K.rect(r,e)},a},`rectWithTitle`),ot=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.height+t.padding,a=r.width+i/4+t.padding;return J(t,n.insert(`rect`,`:first-child`).attr(`style`,t.style).attr(`rx`,i/2).attr(`ry`,i/2).attr(`x`,-a/2).attr(`y`,-i/2).attr(`width`,a).attr(`height`,i)),t.intersect=function(e){return K.rect(t,e)},n},`stadium`),st=n(async(t,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(t,n,X(n,void 0),!0),o=r.insert(`circle`,`:first-child`);return o.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+n.padding).attr(`height`,i.height+n.padding),e.info(`Circle main`),J(n,o),n.intersect=function(t){return e.info(`Circle intersect`,n,i.width/2+a,t),K.circle(n,i.width/2+a,t)},r},`circle`),ct=n(async(t,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(t,n,X(n,void 0),!0),o=r.insert(`g`,`:first-child`),s=o.insert(`circle`),c=o.insert(`circle`);return o.attr(`class`,n.class),s.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a+5).attr(`width`,i.width+n.padding+10).attr(`height`,i.height+n.padding+10),c.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+n.padding).attr(`height`,i.height+n.padding),e.info(`DoubleCircle main`),J(n,s),n.intersect=function(t){return e.info(`DoubleCircle intersect`,n,i.width/2+a+5,t),K.circle(n,i.width/2+a+5,t)},r},`doublecircle`),lt=n(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`subroutine`),ut=n((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`);return r.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),J(t,r),t.intersect=function(e){return K.circle(t,7,e)},n},`start`),dt=n((e,t,n)=>{let r=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),i=70,a=10;return n===`LR`&&(i=10,a=70),J(t,r.append(`rect`).attr(`x`,-1*i/2).attr(`y`,-1*a/2).attr(`width`,i).attr(`height`,a).attr(`class`,`fork-join`)),t.height+=t.padding/2,t.width+=t.padding/2,t.intersect=function(e){return K.rect(t,e)},r},`forkJoin`),ft={rhombus:Ge,composite:rt,question:Ge,rect:nt,labelRect:it,rectWithTitle:at,choice:Ke,circle:st,doublecircle:ct,stadium:ot,hexagon:qe,block_arrow:Je,rect_left_inv_arrow:Ye,lean_right:Xe,lean_left:Ze,trapezoid:Qe,inv_trapezoid:$e,rect_right_inv_arrow:et,cylinder:tt,start:ut,end:n((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`),i=n.insert(`circle`,`:first-child`);return i.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),r.attr(`class`,`state-end`).attr(`r`,5).attr(`width`,10).attr(`height`,10),J(t,i),t.intersect=function(e){return K.circle(t,7,e)},n},`end`),note:Ue,subroutine:lt,fork:dt,join:dt,class_box:n(async(e,n)=>{let r=n.padding/2,i;i=n.classes?`node `+n.classes:`node default`;let a=e.insert(`g`).attr(`class`,i).attr(`id`,n.domId||n.id),s=a.insert(`rect`,`:first-child`),c=a.insert(`line`),l=a.insert(`line`),d=0,f=4,p=a.insert(`g`).attr(`class`,`label`),m=0,h=n.classData.annotations?.[0],g=await V(p,n.classData.annotations[0]?`«`+n.classData.annotations[0]+`»`:``,n.labelStyle,!0,!0),_=g.getBBox();if(u(o())){let e=g.children[0],n=t(g);_=e.getBoundingClientRect(),n.attr(`width`,_.width),n.attr(`height`,_.height)}n.classData.annotations[0]&&(f+=_.height+4,d+=_.width);let v=n.classData.label;n.classData.type!==void 0&&n.classData.type!==``&&(u(o())?v+=`<`+n.classData.type+`>`:v+=`<`+n.classData.type+`>`);let y=await V(p,v,n.labelStyle,!0,!0);t(y).attr(`class`,`classTitle`);let b=y.getBBox();if(u(o())){let e=y.children[0],n=t(y);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}f+=b.height+4,b.width>d&&(d=b.width);let x=[];n.classData.members.forEach(async e=>{let r=e.getDisplayDetails(),i=r.displayText;u(o())&&(i=i.replace(/</g,`<`).replace(/>/g,`>`));let a=await V(p,i,r.cssStyle?r.cssStyle:n.labelStyle,!0,!0),s=a.getBBox();if(u(o())){let e=a.children[0],n=t(a);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}s.width>d&&(d=s.width),f+=s.height+4,x.push(a)}),f+=8;let S=[];if(n.classData.methods.forEach(async e=>{let r=e.getDisplayDetails(),i=r.displayText;u(o())&&(i=i.replace(/</g,`<`).replace(/>/g,`>`));let a=await V(p,i,r.cssStyle?r.cssStyle:n.labelStyle,!0,!0),s=a.getBBox();if(u(o())){let e=a.children[0],n=t(a);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}s.width>d&&(d=s.width),f+=s.height+4,S.push(a)}),f+=8,h){let e=(d-_.width)/2;t(g).attr(`transform`,`translate( `+(-1*d/2+e)+`, `+-1*f/2+`)`),m=_.height+4}let C=(d-b.width)/2;return t(y).attr(`transform`,`translate( `+(-1*d/2+C)+`, `+(-1*f/2+m)+`)`),m+=b.height+4,c.attr(`class`,`divider`).attr(`x1`,-d/2-r).attr(`x2`,d/2+r).attr(`y1`,-f/2-r+8+m).attr(`y2`,-f/2-r+8+m),m+=8,x.forEach(e=>{t(e).attr(`transform`,`translate( `+-d/2+`, `+(-1*f/2+m+8/2)+`)`);let n=e?.getBBox();m+=(n?.height??0)+4}),m+=8,l.attr(`class`,`divider`).attr(`x1`,-d/2-r).attr(`x2`,d/2+r).attr(`y1`,-f/2-r+8+m).attr(`y2`,-f/2-r+8+m),m+=8,S.forEach(e=>{t(e).attr(`transform`,`translate( `+-d/2+`, `+(-1*f/2+m)+`)`);let n=e?.getBBox();m+=(n?.height??0)+4}),s.attr(`style`,n.style).attr(`class`,`outer title-state`).attr(`x`,-d/2-r).attr(`y`,-(f/2)-r).attr(`width`,d+n.padding).attr(`height`,f+n.padding),J(n,s),n.intersect=function(e){return K.rect(n,e)},a},`class_box`)},Q={},pt=n(async(e,t,n)=>{let r,i;if(t.link){let a;o().securityLevel===`sandbox`?a=`_top`:t.linkTarget&&(a=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,a),i=await ft[t.shape](r,t,n)}else i=await ft[t.shape](e,t,n),r=i;return t.tooltip&&i.attr(`title`,t.tooltip),t.class&&i.attr(`class`,`node default `+t.class),Q[t.id]=r,t.haveCallback&&Q[t.id].attr(`class`,Q[t.id].attr(`class`)+` clickable`),r},`insertNode`),mt=n(t=>{let n=Q[t.id];e.trace(`Transforming node`,t.diff,t,`translate(`+(t.x-t.width/2-5)+`, `+t.width/2+`)`);let r=t.diff||0;return t.clusterNode?n.attr(`transform`,`translate(`+(t.x+r-t.width/2)+`, `+(t.y-t.height/2-8)+`)`):n.attr(`transform`,`translate(`+t.x+`, `+t.y+`)`),r},`positionNode`);function ht(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=0,o=``,s;switch(r.type){case`round`:a=5,o=`rect`;break;case`composite`:a=0,o=`composite`,s=0;break;case`square`:o=`rect`;break;case`diamond`:o=`question`;break;case`hexagon`:o=`hexagon`;break;case`block_arrow`:o=`block_arrow`;break;case`odd`:o=`rect_left_inv_arrow`;break;case`lean_right`:o=`lean_right`;break;case`lean_left`:o=`lean_left`;break;case`trapezoid`:o=`trapezoid`;break;case`inv_trapezoid`:o=`inv_trapezoid`;break;case`rect_left_inv_arrow`:o=`rect_left_inv_arrow`;break;case`circle`:o=`circle`;break;case`ellipse`:o=`ellipse`;break;case`stadium`:o=`stadium`;break;case`subroutine`:o=`subroutine`;break;case`cylinder`:o=`cylinder`;break;case`group`:o=`rect`;break;case`doublecircle`:o=`doublecircle`;break;default:o=`rect`}let c=m(r?.styles??[]),l=r.label,u=r.size??{width:0,height:0,x:0,y:0},f=t.getDiagramId();return{labelStyle:c.labelStyle,shape:o,labelText:l,rx:a,ry:a,class:i,style:c.style,id:r.id,domId:f?`${f}-${r.id}`:r.id,directions:r.directions,width:u.width,height:u.height,x:u.x,y:u.y,positioned:n,intersect:void 0,type:r.type,padding:s??d()?.block?.padding??0}}n(ht,`getNodeFromBlock`);async function gt(e,t,n){let r=ht(t,n,!1);if(r.type===`group`)return;let i=await pt(e,r,{config:d()}),a=i.node().getBBox(),o=n.getBlock(r.id);o.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(o),i.remove()}n(gt,`calculateBlockSize`);async function _t(e,t,n){let r=ht(t,n,!0);n.getBlock(r.id).type!==`space`&&(await pt(e,r,{config:d()}),t.intersect=r?.intersect,mt(r))}n(_t,`insertBlockPositioned`);async function $(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await $(e,i.children,n,r)}n($,`performOperations`);async function vt(e,t,n){await $(e,t,n,gt)}n(vt,`calculateBlockSizes`);async function yt(e,t,n){await $(e,t,n,_t)}n(yt,`insertBlocks`);async function bt(e,t,n,r,i){let a=new w({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,c=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],l=i?`${i}-${n.id}`:n.id;Ae(e,{v:n.start,w:n.end,name:l},{...n,id:l,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:`edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1`},void 0,`block`,a,i),n.label&&(await Te(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:`edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1`}),Ee({...n,x:c[1].x,y:c[1].y},{originalPath:c}))}}}n(bt,`insertEdges`);var xt={parser:D,db:me,renderer:{draw:n(async function(n,r,i,a){let{securityLevel:o,block:c}=d(),l=a.db;l.setDiagramId(r);let u;o===`sandbox`&&(u=t(`#i`+r));let f=t(o===`sandbox`?u.nodes()[0].contentDocument.body:`body`),p=o===`sandbox`?f.select(`[id="${r}"]`):t(`[id="${r}"]`);ye(p,[`point`,`circle`,`cross`],a.type,r);let m=l.getBlocks(),h=l.getBlocksFlat(),g=l.getEdges(),_=p.insert(`g`).attr(`class`,`block`);await vt(_,m,l);let v=xe(l);if(await yt(_,m,l),await bt(_,g,h,l,r),v){let t=v,n=Math.max(1,Math.round(.125*(t.width/t.height))),r=t.height+n+10,i=t.width+10,{useMaxWidth:a}=c;s(p,r,i,!!a),e.debug(`Here Bounds`,v,t),p.attr(`viewBox`,`${t.x-5} ${t.y-5} ${t.width+10} ${t.height+10}`)}},`draw`),getClasses:n(function(e,t){return t.db.getClasses()},`getClasses`)},styles:ge};export{xt as diagram};
|
|
133
|
-
//# sourceMappingURL=blockDiagram-DXYQGD6D-
|
|
133
|
+
//# sourceMappingURL=blockDiagram-DXYQGD6D-CDF9Ye8Y.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as e,p as t,w as n}from"./src-BkCVz_TJ.mjs";import{B as r,L as i,V as a,_ as o,b as s,c as l,r as u,s as d,v as f}from"./chunk-ICPOFSXX-D0MVsm4H.mjs";import{t as p}from"./dist-DZb_HoiN.mjs";import{g as m,n as h,t as g}from"./chunk-5PVQY5BW-C5V4E1lO.mjs";import{a as _,s as v}from"./chunk-YZCP3GAM-CkC6DoBJ.mjs";var y=p(),b=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,24],r=[1,25],i=[1,26],a=[1,27],o=[1,28],s=[1,63],l=[1,64],u=[1,65],d=[1,66],f=[1,67],p=[1,68],m=[1,69],h=[1,29],g=[1,30],_=[1,31],v=[1,32],y=[1,33],b=[1,34],x=[1,35],S=[1,36],C=[1,37],w=[1,38],T=[1,39],E=[1,40],D=[1,41],O=[1,42],k=[1,43],A=[1,44],j=[1,45],M=[1,46],N=[1,47],P=[1,48],F=[1,50],I=[1,51],L=[1,52],R=[1,53],ee=[1,54],te=[1,55],ne=[1,56],z=[1,57],B=[1,58],V=[1,59],H=[1,60],re=[14,42],ie=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ae=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],U=[1,82],W=[1,83],G=[1,84],K=[1,85],q=[12,14,42],oe=[12,14,33,42],se=[12,14,33,42,76,77,79,80],ce=[12,33],le=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:`error`,6:`direction_tb`,7:`direction_bt`,8:`direction_rl`,9:`direction_lr`,11:`C4_CONTEXT`,12:`NEWLINE`,14:`EOF`,15:`C4_CONTAINER`,16:`C4_COMPONENT`,17:`C4_DYNAMIC`,18:`C4_DEPLOYMENT`,22:`title`,23:`accDescription`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`LBRACE`,34:`ENTERPRISE_BOUNDARY`,36:`SYSTEM_BOUNDARY`,37:`BOUNDARY`,38:`CONTAINER_BOUNDARY`,39:`NODE`,40:`NODE_L`,41:`NODE_R`,42:`RBRACE`,44:`PERSON`,45:`PERSON_EXT`,46:`SYSTEM`,47:`SYSTEM_DB`,48:`SYSTEM_QUEUE`,49:`SYSTEM_EXT`,50:`SYSTEM_EXT_DB`,51:`SYSTEM_EXT_QUEUE`,52:`CONTAINER`,53:`CONTAINER_DB`,54:`CONTAINER_QUEUE`,55:`CONTAINER_EXT`,56:`CONTAINER_EXT_DB`,57:`CONTAINER_EXT_QUEUE`,58:`COMPONENT`,59:`COMPONENT_DB`,60:`COMPONENT_QUEUE`,61:`COMPONENT_EXT`,62:`COMPONENT_EXT_DB`,63:`COMPONENT_EXT_QUEUE`,64:`REL`,65:`BIREL`,66:`REL_U`,67:`REL_D`,68:`REL_L`,69:`REL_R`,70:`REL_B`,71:`REL_INDEX`,72:`UPDATE_EL_STYLE`,73:`UPDATE_REL_STYLE`,74:`UPDATE_LAYOUT_CONFIG`,76:`STR`,77:`STR_KEY`,78:`STR_VALUE`,79:`ATTRIBUTE`,80:`ATTRIBUTE_EMPTY`},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``;break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:70,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:71,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:72,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:73,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{14:[1,74]},e(re,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H}),e(re,[2,14]),e(ie,[2,16],{12:[1,76]}),e(re,[2,36],{12:[1,77]}),e(ae,[2,19]),e(ae,[2,20]),{25:[1,78]},{27:[1,79]},e(ae,[2,23]),{35:80,75:81,76:U,77:W,79:G,80:K},{35:86,75:81,76:U,77:W,79:G,80:K},{35:87,75:81,76:U,77:W,79:G,80:K},{35:88,75:81,76:U,77:W,79:G,80:K},{35:89,75:81,76:U,77:W,79:G,80:K},{35:90,75:81,76:U,77:W,79:G,80:K},{35:91,75:81,76:U,77:W,79:G,80:K},{35:92,75:81,76:U,77:W,79:G,80:K},{35:93,75:81,76:U,77:W,79:G,80:K},{35:94,75:81,76:U,77:W,79:G,80:K},{35:95,75:81,76:U,77:W,79:G,80:K},{35:96,75:81,76:U,77:W,79:G,80:K},{35:97,75:81,76:U,77:W,79:G,80:K},{35:98,75:81,76:U,77:W,79:G,80:K},{35:99,75:81,76:U,77:W,79:G,80:K},{35:100,75:81,76:U,77:W,79:G,80:K},{35:101,75:81,76:U,77:W,79:G,80:K},{35:102,75:81,76:U,77:W,79:G,80:K},{35:103,75:81,76:U,77:W,79:G,80:K},{35:104,75:81,76:U,77:W,79:G,80:K},e(q,[2,59]),{35:105,75:81,76:U,77:W,79:G,80:K},{35:106,75:81,76:U,77:W,79:G,80:K},{35:107,75:81,76:U,77:W,79:G,80:K},{35:108,75:81,76:U,77:W,79:G,80:K},{35:109,75:81,76:U,77:W,79:G,80:K},{35:110,75:81,76:U,77:W,79:G,80:K},{35:111,75:81,76:U,77:W,79:G,80:K},{35:112,75:81,76:U,77:W,79:G,80:K},{35:113,75:81,76:U,77:W,79:G,80:K},{35:114,75:81,76:U,77:W,79:G,80:K},{35:115,75:81,76:U,77:W,79:G,80:K},{20:116,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{12:[1,118],33:[1,117]},{35:119,75:81,76:U,77:W,79:G,80:K},{35:120,75:81,76:U,77:W,79:G,80:K},{35:121,75:81,76:U,77:W,79:G,80:K},{35:122,75:81,76:U,77:W,79:G,80:K},{35:123,75:81,76:U,77:W,79:G,80:K},{35:124,75:81,76:U,77:W,79:G,80:K},{35:125,75:81,76:U,77:W,79:G,80:K},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(re,[2,15]),e(ie,[2,17],{21:22,19:130,22:t,23:r,24:i,26:a,28:o}),e(re,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:i,26:a,28:o,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H}),e(ae,[2,21]),e(ae,[2,22]),e(q,[2,39]),e(oe,[2,71],{75:81,35:132,76:U,77:W,79:G,80:K}),e(se,[2,73]),{78:[1,133]},e(se,[2,75]),e(se,[2,76]),e(q,[2,40]),e(q,[2,41]),e(q,[2,42]),e(q,[2,43]),e(q,[2,44]),e(q,[2,45]),e(q,[2,46]),e(q,[2,47]),e(q,[2,48]),e(q,[2,49]),e(q,[2,50]),e(q,[2,51]),e(q,[2,52]),e(q,[2,53]),e(q,[2,54]),e(q,[2,55]),e(q,[2,56]),e(q,[2,57]),e(q,[2,58]),e(q,[2,60]),e(q,[2,61]),e(q,[2,62]),e(q,[2,63]),e(q,[2,64]),e(q,[2,65]),e(q,[2,66]),e(q,[2,67]),e(q,[2,68]),e(q,[2,69]),e(q,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(ce,[2,28]),e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ie,[2,18]),e(re,[2,38]),e(oe,[2,72]),e(se,[2,74]),e(q,[2,24]),e(q,[2,35]),e(le,[2,25]),e(le,[2,26],{12:[1,138]}),e(le,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},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,l=``,u=0,d=0,f=0,p=2,m=1,h=o.slice.call(arguments,1),g=Object.create(this.lexer),_={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(_.yy[v]=this.yy[v]);g.setInput(e,_.yy),_.yy.lexer=g,_.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var y=g.yylloc;o.push(y);var b=g.options&&g.options.ranges;typeof _.yy.parseError==`function`?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function x(e){r.length-=2*e,a.length-=e,o.length-=e}n(x,`popStack`);function S(){var e=i.pop()||g.lex()||m;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(S,`lex`);for(var C,w,T,E,D,O={},k,A,j,M;;){if(T=r[r.length-1],this.defaultActions[T]?E=this.defaultActions[T]:(C??=S(),E=s[T]&&s[T][C]),E===void 0||!E.length||!E[0]){var N=``;for(k in M=[],s[T])this.terminals_[k]&&k>p&&M.push(`'`+this.terminals_[k]+`'`);N=g.showPosition?`Parse error on line `+(u+1)+`:
|
|
1
|
+
import{T as e,p as t,w as n}from"./src-DBL0Mxlv.mjs";import{B as r,L as i,V as a,_ as o,b as s,c as l,r as u,s as d,v as f}from"./chunk-ICPOFSXX-d7VyKeM8.mjs";import{t as p}from"./dist-DpbxhJFx.mjs";import{g as m,n as h,t as g}from"./chunk-5PVQY5BW-Bv35hkyA.mjs";import{a as _,s as v}from"./chunk-YZCP3GAM-DyF0VN0o.mjs";var y=p(),b=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,24],r=[1,25],i=[1,26],a=[1,27],o=[1,28],s=[1,63],l=[1,64],u=[1,65],d=[1,66],f=[1,67],p=[1,68],m=[1,69],h=[1,29],g=[1,30],_=[1,31],v=[1,32],y=[1,33],b=[1,34],x=[1,35],S=[1,36],C=[1,37],w=[1,38],T=[1,39],E=[1,40],D=[1,41],O=[1,42],k=[1,43],A=[1,44],j=[1,45],M=[1,46],N=[1,47],P=[1,48],F=[1,50],I=[1,51],L=[1,52],R=[1,53],ee=[1,54],te=[1,55],ne=[1,56],z=[1,57],B=[1,58],V=[1,59],H=[1,60],re=[14,42],ie=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ae=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],U=[1,82],W=[1,83],G=[1,84],K=[1,85],q=[12,14,42],oe=[12,14,33,42],se=[12,14,33,42,76,77,79,80],ce=[12,33],le=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:`error`,6:`direction_tb`,7:`direction_bt`,8:`direction_rl`,9:`direction_lr`,11:`C4_CONTEXT`,12:`NEWLINE`,14:`EOF`,15:`C4_CONTAINER`,16:`C4_COMPONENT`,17:`C4_DYNAMIC`,18:`C4_DEPLOYMENT`,22:`title`,23:`accDescription`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`LBRACE`,34:`ENTERPRISE_BOUNDARY`,36:`SYSTEM_BOUNDARY`,37:`BOUNDARY`,38:`CONTAINER_BOUNDARY`,39:`NODE`,40:`NODE_L`,41:`NODE_R`,42:`RBRACE`,44:`PERSON`,45:`PERSON_EXT`,46:`SYSTEM`,47:`SYSTEM_DB`,48:`SYSTEM_QUEUE`,49:`SYSTEM_EXT`,50:`SYSTEM_EXT_DB`,51:`SYSTEM_EXT_QUEUE`,52:`CONTAINER`,53:`CONTAINER_DB`,54:`CONTAINER_QUEUE`,55:`CONTAINER_EXT`,56:`CONTAINER_EXT_DB`,57:`CONTAINER_EXT_QUEUE`,58:`COMPONENT`,59:`COMPONENT_DB`,60:`COMPONENT_QUEUE`,61:`COMPONENT_EXT`,62:`COMPONENT_EXT_DB`,63:`COMPONENT_EXT_QUEUE`,64:`REL`,65:`BIREL`,66:`REL_U`,67:`REL_D`,68:`REL_L`,69:`REL_R`,70:`REL_B`,71:`REL_INDEX`,72:`UPDATE_EL_STYLE`,73:`UPDATE_REL_STYLE`,74:`UPDATE_LAYOUT_CONFIG`,76:`STR`,77:`STR_KEY`,78:`STR_VALUE`,79:`ATTRIBUTE`,80:`ATTRIBUTE_EMPTY`},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``;break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:70,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:71,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:72,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:73,19:20,20:21,21:22,22:t,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{14:[1,74]},e(re,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H}),e(re,[2,14]),e(ie,[2,16],{12:[1,76]}),e(re,[2,36],{12:[1,77]}),e(ae,[2,19]),e(ae,[2,20]),{25:[1,78]},{27:[1,79]},e(ae,[2,23]),{35:80,75:81,76:U,77:W,79:G,80:K},{35:86,75:81,76:U,77:W,79:G,80:K},{35:87,75:81,76:U,77:W,79:G,80:K},{35:88,75:81,76:U,77:W,79:G,80:K},{35:89,75:81,76:U,77:W,79:G,80:K},{35:90,75:81,76:U,77:W,79:G,80:K},{35:91,75:81,76:U,77:W,79:G,80:K},{35:92,75:81,76:U,77:W,79:G,80:K},{35:93,75:81,76:U,77:W,79:G,80:K},{35:94,75:81,76:U,77:W,79:G,80:K},{35:95,75:81,76:U,77:W,79:G,80:K},{35:96,75:81,76:U,77:W,79:G,80:K},{35:97,75:81,76:U,77:W,79:G,80:K},{35:98,75:81,76:U,77:W,79:G,80:K},{35:99,75:81,76:U,77:W,79:G,80:K},{35:100,75:81,76:U,77:W,79:G,80:K},{35:101,75:81,76:U,77:W,79:G,80:K},{35:102,75:81,76:U,77:W,79:G,80:K},{35:103,75:81,76:U,77:W,79:G,80:K},{35:104,75:81,76:U,77:W,79:G,80:K},e(q,[2,59]),{35:105,75:81,76:U,77:W,79:G,80:K},{35:106,75:81,76:U,77:W,79:G,80:K},{35:107,75:81,76:U,77:W,79:G,80:K},{35:108,75:81,76:U,77:W,79:G,80:K},{35:109,75:81,76:U,77:W,79:G,80:K},{35:110,75:81,76:U,77:W,79:G,80:K},{35:111,75:81,76:U,77:W,79:G,80:K},{35:112,75:81,76:U,77:W,79:G,80:K},{35:113,75:81,76:U,77:W,79:G,80:K},{35:114,75:81,76:U,77:W,79:G,80:K},{35:115,75:81,76:U,77:W,79:G,80:K},{20:116,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{12:[1,118],33:[1,117]},{35:119,75:81,76:U,77:W,79:G,80:K},{35:120,75:81,76:U,77:W,79:G,80:K},{35:121,75:81,76:U,77:W,79:G,80:K},{35:122,75:81,76:U,77:W,79:G,80:K},{35:123,75:81,76:U,77:W,79:G,80:K},{35:124,75:81,76:U,77:W,79:G,80:K},{35:125,75:81,76:U,77:W,79:G,80:K},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(re,[2,15]),e(ie,[2,17],{21:22,19:130,22:t,23:r,24:i,26:a,28:o}),e(re,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:i,26:a,28:o,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H}),e(ae,[2,21]),e(ae,[2,22]),e(q,[2,39]),e(oe,[2,71],{75:81,35:132,76:U,77:W,79:G,80:K}),e(se,[2,73]),{78:[1,133]},e(se,[2,75]),e(se,[2,76]),e(q,[2,40]),e(q,[2,41]),e(q,[2,42]),e(q,[2,43]),e(q,[2,44]),e(q,[2,45]),e(q,[2,46]),e(q,[2,47]),e(q,[2,48]),e(q,[2,49]),e(q,[2,50]),e(q,[2,51]),e(q,[2,52]),e(q,[2,53]),e(q,[2,54]),e(q,[2,55]),e(q,[2,56]),e(q,[2,57]),e(q,[2,58]),e(q,[2,60]),e(q,[2,61]),e(q,[2,62]),e(q,[2,63]),e(q,[2,64]),e(q,[2,65]),e(q,[2,66]),e(q,[2,67]),e(q,[2,68]),e(q,[2,69]),e(q,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(ce,[2,28]),e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ie,[2,18]),e(re,[2,38]),e(oe,[2,72]),e(se,[2,74]),e(q,[2,24]),e(q,[2,35]),e(le,[2,25]),e(le,[2,26],{12:[1,138]}),e(le,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},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,l=``,u=0,d=0,f=0,p=2,m=1,h=o.slice.call(arguments,1),g=Object.create(this.lexer),_={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(_.yy[v]=this.yy[v]);g.setInput(e,_.yy),_.yy.lexer=g,_.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var y=g.yylloc;o.push(y);var b=g.options&&g.options.ranges;typeof _.yy.parseError==`function`?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function x(e){r.length-=2*e,a.length-=e,o.length-=e}n(x,`popStack`);function S(){var e=i.pop()||g.lex()||m;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(S,`lex`);for(var C,w,T,E,D,O={},k,A,j,M;;){if(T=r[r.length-1],this.defaultActions[T]?E=this.defaultActions[T]:(C??=S(),E=s[T]&&s[T][C]),E===void 0||!E.length||!E[0]){var N=``;for(k in M=[],s[T])this.terminals_[k]&&k>p&&M.push(`'`+this.terminals_[k]+`'`);N=g.showPosition?`Parse error on line `+(u+1)+`:
|
|
2
2
|
`+g.showPosition()+`
|
|
3
3
|
Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on line `+(u+1)+`: Unexpected `+(C==m?`end of input`:`'`+(this.terminals_[C]||C)+`'`),this.parseError(N,{text:g.match,token:this.terminals_[C]||C,line:g.yylineno,loc:y,expected:M})}if(E[0]instanceof Array&&E.length>1)throw Error(`Parse Error: multiple actions possible at state: `+T+`, token: `+C);switch(E[0]){case 1:r.push(C),a.push(g.yytext),o.push(g.yylloc),r.push(E[1]),C=null,w?(C=w,w=null):(d=g.yyleng,l=g.yytext,u=g.yylineno,y=g.yylloc,f>0&&f--);break;case 2:if(A=this.productions_[E[1]][1],O.$=a[a.length-A],O._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(O._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),D=this.performAction.apply(O,[l,d,u,_.yy,E[1],a,o].concat(h)),D!==void 0)return D;A&&(r=r.slice(0,-1*A*2),a=a.slice(0,-1*A),o=o.slice(0,-1*A)),r.push(this.productions_[E[1]][0]),a.push(O.$),o.push(O._$),j=s[r[r.length-2]][r[r.length-1]],r.push(j);break;case 3:return!0}}return!0},`parse`)};J.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()+`
|
|
@@ -8,4 +8,4 @@ Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on l
|
|
|
8
8
|
fill: ${e.personBkg};
|
|
9
9
|
}
|
|
10
10
|
`,`getStyles`),init:n(({c4:e,wrap:t})=>{ze.setConf(e),ue.setWrap(t)},`init`)};export{Be as diagram};
|
|
11
|
-
//# sourceMappingURL=c4Diagram-AHTNJAMY-
|
|
11
|
+
//# sourceMappingURL=c4Diagram-AHTNJAMY-Bckbt7OJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-TXBZCHCQ-
|
|
1
|
+
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-TXBZCHCQ-DVmekj_k.mjs";export{e as catCommand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-4GTNDTRF-
|
|
1
|
+
import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{t as e}from"./chunk-4GTNDTRF-l-JvU_6a.mjs";export{e as chmodCommand};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import*as e from"node:path";import{join as t,relative as n,resolve as r,sep as i}from"node:path";import{type as a}from"node:os";import{stat as o,unwatchFile as s,watch as c,watchFile as l}from"node:fs";import{EventEmitter as u}from"node:events";import{Readable as d}from"node:stream";import{lstat as f,open as ee,readdir as p,realpath as m,stat as h}from"node:fs/promises";const g={FILE_TYPE:`files`,DIR_TYPE:`directories`,FILE_DIR_TYPE:`files_directories`,EVERYTHING_TYPE:`all`},_={root:`.`,fileFilter:e=>!0,directoryFilter:e=>!0,type:g.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);const v=`READDIRP_RECURSIVE_ERROR`,y=new Set([`ENOENT`,`EPERM`,`EACCES`,`ELOOP`,v]),b=[g.DIR_TYPE,g.EVERYTHING_TYPE,g.FILE_DIR_TYPE,g.FILE_TYPE],te=new Set([g.DIR_TYPE,g.EVERYTHING_TYPE,g.FILE_DIR_TYPE]),ne=new Set([g.EVERYTHING_TYPE,g.FILE_DIR_TYPE,g.FILE_TYPE]),re=e=>y.has(e.code),ie=process.platform===`win32`,x=e=>!0,S=e=>{if(e===void 0)return x;if(typeof e==`function`)return e;if(typeof e==`string`){let t=e.trim();return e=>e.basename===t}if(Array.isArray(e)){let t=e.map(e=>e.trim());return e=>t.some(t=>e.basename===t)}return x};var C=class extends d{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark});let t={..._,...e},{root:n,type:i}=t;this._fileFilter=S(t.fileFilter),this._directoryFilter=S(t.directoryFilter);let a=t.lstat?f:h;ie?this._stat=e=>a(e,{bigint:!0}):this._stat=a,this._maxDepth=t.depth!=null&&Number.isSafeInteger(t.depth)?t.depth:_.depth,this._wantsDir=i?te.has(i):!1,this._wantsFile=i?ne.has(i):!1,this._wantsEverything=i===g.EVERYTHING_TYPE,this._root=r(n),this._isDirent=!t.alwaysStat,this._statsProp=this._isDirent?`dirent`:`stats`,this._rdOptions={encoding:`utf8`,withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let t=this.parent,n=t&&t.files;if(n&&n.length>0){let{path:r,depth:i}=t,a=n.splice(0,e).map(e=>this._formatEntry(e,r)),o=await Promise.all(a);for(let t of o){if(!t)continue;if(this.destroyed)return;let n=await this._getEntryType(t);n===`directory`&&this._directoryFilter(t)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(t.fullPath,i+1)),this._wantsDir&&(this.push(t),e--)):(n===`file`||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{let e=this.parents.pop();if(!e){this.push(null);break}if(this.parent=await e,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let n;try{n=await p(e,this._rdOptions)}catch(e){this._onError(e)}return{files:n,depth:t,path:e}}async _formatEntry(e,i){let a,o=this._isDirent?e.name:e;try{let s=r(t(i,o));a={path:n(this._root,s),fullPath:s,basename:o},a[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(e){this._onError(e);return}return a}_onError(e){re(e)&&!this.destroyed?this.emit(`warn`,e):this.destroy(e)}async _getEntryType(e){if(!e&&this._statsProp in e)return``;let t=e[this._statsProp];if(t.isFile())return`file`;if(t.isDirectory())return`directory`;if(t&&t.isSymbolicLink()){let t=e.fullPath;try{let e=await m(t),n=await f(e);if(n.isFile())return`file`;if(n.isDirectory()){let n=e.length;if(t.startsWith(e)&&t.substr(n,1)===i){let n=Error(`Circular symlink detected: "${t}" points to "${e}"`);return n.code=v,this._onError(n)}return`directory`}}catch(e){return this._onError(e),``}}}_includeAsFile(e){let t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}};function ae(e,t={}){let n=t.entryType||t.type;if(n===`both`&&(n=g.FILE_DIR_TYPE),n&&(t.type=n),!e)throw Error(`readdirp: root argument is required. Usage: readdirp(root, options)`);if(typeof e!=`string`)throw TypeError(`readdirp: root argument must be a string. Usage: readdirp(root, options)`);if(n&&!b.includes(n))throw Error(`readdirp: Invalid type passed. Use one of ${b.join(`, `)}`);return t.root=e,new C(t)}const w=()=>{},T=process.platform,E=T===`win32`,D=T===`darwin`,O=T===`linux`,k=T===`freebsd`,A=a()===`OS400`,j={ALL:`all`,READY:`ready`,ADD:`add`,CHANGE:`change`,ADD_DIR:`addDir`,UNLINK:`unlink`,UNLINK_DIR:`unlinkDir`,RAW:`raw`,ERROR:`error`},M=j,N={lstat:f,stat:h},P=`listeners`,F=`errHandlers`,I=`rawEmitters`,oe=[P,F,I],se=new Set(`3dm.3ds.3g2.3gp.7z.a.aac.adp.afdesign.afphoto.afpub.ai.aif.aiff.alz.ape.apk.appimage.ar.arj.asf.au.avi.bak.baml.bh.bin.bk.bmp.btif.bz2.bzip2.cab.caf.cgm.class.cmx.cpio.cr2.cur.dat.dcm.deb.dex.djvu.dll.dmg.dng.doc.docm.docx.dot.dotm.dra.DS_Store.dsk.dts.dtshd.dvb.dwg.dxf.ecelp4800.ecelp7470.ecelp9600.egg.eol.eot.epub.exe.f4v.fbs.fh.fla.flac.flatpak.fli.flv.fpx.fst.fvt.g3.gh.gif.graffle.gz.gzip.h261.h263.h264.icns.ico.ief.img.ipa.iso.jar.jpeg.jpg.jpgv.jpm.jxr.key.ktx.lha.lib.lvp.lz.lzh.lzma.lzo.m3u.m4a.m4v.mar.mdi.mht.mid.midi.mj2.mka.mkv.mmr.mng.mobi.mov.movie.mp3.mp4.mp4a.mpeg.mpg.mpga.mxu.nef.npx.numbers.nupkg.o.odp.ods.odt.oga.ogg.ogv.otf.ott.pages.pbm.pcx.pdb.pdf.pea.pgm.pic.png.pnm.pot.potm.potx.ppa.ppam.ppm.pps.ppsm.ppsx.ppt.pptm.pptx.psd.pya.pyc.pyo.pyv.qt.rar.ras.raw.resources.rgb.rip.rlc.rmf.rmvb.rpm.rtf.rz.s3m.s7z.scpt.sgi.shar.snap.sil.sketch.slk.smv.snk.so.stl.suo.sub.swf.tar.tbz.tbz2.tga.tgz.thmx.tif.tiff.tlz.ttc.ttf.txz.udf.uvh.uvi.uvm.uvp.uvs.uvu.viv.vob.war.wav.wax.wbmp.wdp.weba.webm.webp.whl.wim.wm.wma.wmv.wmx.woff.woff2.wrm.wvx.xbm.xif.xla.xlam.xls.xlsb.xlsm.xlsx.xlt.xltm.xltx.xm.xmind.xpi.xpm.xwd.xz.z.zip.zipx`.split(`.`)),ce=t=>se.has(e.extname(t).slice(1).toLowerCase()),L=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},R=(e,t,n)=>{let r=e[t];r instanceof Set||(e[t]=r=new Set([r])),r.add(n)},z=e=>t=>{let n=e[t];n instanceof Set?n.clear():delete e[t]},B=(e,t,n)=>{let r=e[t];r instanceof Set?r.delete(n):r===n&&delete e[t]},V=e=>e instanceof Set?e.size===0:!e,H=new Map;function U(t,n,r,i,a){let o=(n,i)=>{r(t),a(n,i,{watchedPath:t}),i&&t!==i&&W(e.resolve(t,i),P,e.join(t,i))};try{return c(t,{persistent:n.persistent},o)}catch(e){i(e);return}}const W=(e,t,n,r,i)=>{let a=H.get(e);a&&L(a[t],e=>{e(n,r,i)})},le=(e,t,n,r)=>{let{listener:i,errHandler:a,rawEmitter:o}=r,s=H.get(t),c;if(!n.persistent)return c=U(e,n,i,a,o),c?c.close.bind(c):void 0;if(s)R(s,P,i),R(s,F,a),R(s,I,o);else{if(c=U(e,n,W.bind(null,t,P),a,W.bind(null,t,I)),!c)return;c.on(M.ERROR,async n=>{let r=W.bind(null,t,F);if(s&&(s.watcherUnusable=!0),E&&n.code===`EPERM`)try{await(await ee(e,`r`)).close(),r(n)}catch{}else r(n)}),s={listeners:i,errHandlers:a,rawEmitters:o,watcher:c},H.set(t,s)}return()=>{B(s,P,i),B(s,F,a),B(s,I,o),V(s.listeners)&&(s.watcher.close(),H.delete(t),oe.forEach(z(s)),s.watcher=void 0,Object.freeze(s))}},G=new Map,ue=(e,t,n,r)=>{let{listener:i,rawEmitter:a}=r,o=G.get(t),c=o&&o.options;return c&&(c.persistent<n.persistent||c.interval>n.interval)&&(s(t),o=void 0),o?(R(o,P,i),R(o,I,a)):(o={listeners:i,rawEmitters:a,options:n,watcher:l(t,n,(n,r)=>{L(o.rawEmitters,e=>{e(M.CHANGE,t,{curr:n,prev:r})});let i=n.mtimeMs;(n.size!==r.size||i>r.mtimeMs||i===0)&&L(o.listeners,t=>t(e,n))})},G.set(t,o)),()=>{B(o,P,i),B(o,I,a),V(o.listeners)&&(G.delete(t),s(t),o.options=o.watcher=void 0,Object.freeze(o))}};var de=class{fsw;_boundHandleError;constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(t,n){let r=this.fsw.options,i=e.dirname(t),a=e.basename(t);this.fsw._getWatchedDir(i).add(a);let o=e.resolve(t),s={persistent:r.persistent};n||=w;let c;return r.usePolling?(s.interval=r.interval!==r.binaryInterval&&ce(a)?r.binaryInterval:r.interval,c=ue(t,o,s,{listener:n,rawEmitter:this.fsw._emitRaw})):c=le(t,o,s,{listener:n,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),c}_handleFile(t,n,r){if(this.fsw.closed)return;let i=e.dirname(t),a=e.basename(t),o=this.fsw._getWatchedDir(i),s=n;if(o.has(a))return;let c=async(e,n)=>{if(this.fsw._throttle(`watch`,t,5)){if(!n||n.mtimeMs===0)try{let n=await h(t);if(this.fsw.closed)return;let r=n.atimeMs,i=n.mtimeMs;if((!r||r<=i||i!==s.mtimeMs)&&this.fsw._emit(M.CHANGE,t,n),(D||O||k)&&s.ino!==n.ino){this.fsw._closeFile(e),s=n;let r=this._watchWithNodeFs(t,c);r&&this.fsw._addPathCloser(e,r)}else s=n}catch{this.fsw._remove(i,a)}else if(o.has(a)){let e=n.atimeMs,r=n.mtimeMs;(!e||e<=r||r!==s.mtimeMs)&&this.fsw._emit(M.CHANGE,t,n),s=n}}},l=this._watchWithNodeFs(t,c);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(M.ADD,t,0))return;this.fsw._emit(M.ADD,t,n)}return l}async _handleSymlink(e,t,n,r){if(this.fsw.closed)return;let i=e.fullPath,a=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let t;try{t=await m(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(a.has(r)?this.fsw._symlinkPaths.get(i)!==t&&(this.fsw._symlinkPaths.set(i,t),this.fsw._emit(M.CHANGE,n,e.stats)):(a.add(r),this.fsw._symlinkPaths.set(i,t),this.fsw._emit(M.ADD,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(i))return!0;this.fsw._symlinkPaths.set(i,!0)}_handleRead(t,n,r,i,a,o,s){t=e.join(t,``);let c=i?`${t}:${i}`:t;if(s=this.fsw._throttle(`readdir`,c,1e3),!s)return;let l=this.fsw._getWatchedDir(r.path),u=new Set,d=this.fsw._readdirp(t,{fileFilter:e=>r.filterPath(e),directoryFilter:e=>r.filterDir(e)});if(d)return d.on(`data`,async s=>{if(this.fsw.closed){d=void 0;return}let c=s.path,f=e.join(t,c);if(u.add(c),!(s.stats.isSymbolicLink()&&await this._handleSymlink(s,t,f,c))){if(this.fsw.closed){d=void 0;return}(c===i||!i&&!l.has(c))&&(this.fsw._incrReadyCount(),f=e.join(a,e.relative(a,f)),this._addToNodeFs(f,n,r,o+1))}}).on(M.ERROR,this._boundHandleError),new Promise((e,n)=>{if(!d)return n();d.once(`end`,()=>{if(this.fsw.closed){d=void 0;return}let n=s?s.clear():!1;e(void 0),l.getChildren().filter(e=>e!==t&&!u.has(e)).forEach(e=>{this.fsw._remove(t,e)}),d=void 0,n&&this._handleRead(t,!1,r,i,a,o,s)})})}async _handleDir(t,n,r,i,a,o,s){let c=this.fsw._getWatchedDir(e.dirname(t)),l=c.has(e.basename(t));!(r&&this.fsw.options.ignoreInitial)&&!a&&!l&&this.fsw._emit(M.ADD_DIR,t,n),c.add(e.basename(t)),this.fsw._getWatchedDir(t);let u,d=this.fsw.options.depth;if((d==null||i<=d)&&!this.fsw._symlinkPaths.has(s)){if(!a&&(await this._handleRead(t,r,o,a,t,i,void 0),this.fsw.closed))return;u=this._watchWithNodeFs(t,(e,n)=>{n&&n.mtimeMs===0||this._handleRead(e,!1,o,a,t,i,void 0)})}return u}async _addToNodeFs(t,n,r,i,a){let o=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return o(),!1;let s=this.fsw._getWatchHelpers(t);r&&(s.filterPath=e=>r.filterPath(e),s.filterDir=e=>r.filterDir(e));try{let r=await N[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,r))return o(),!1;let c=this.fsw.options.followSymlinks,l;if(r.isDirectory()){let o=e.resolve(t),u=c?await m(t):t;if(this.fsw.closed||(l=await this._handleDir(s.watchPath,r,n,i,a,s,u),this.fsw.closed))return;o!==u&&u!==void 0&&this.fsw._symlinkPaths.set(o,u)}else if(r.isSymbolicLink()){let a=c?await m(t):t;if(this.fsw.closed)return;let o=e.dirname(s.watchPath);if(this.fsw._getWatchedDir(o).add(s.watchPath),this.fsw._emit(M.ADD,s.watchPath,r),l=await this._handleDir(o,r,n,i,t,s,a),this.fsw.closed)return;a!==void 0&&this.fsw._symlinkPaths.set(e.resolve(t),a)}else l=this._handleFile(s.watchPath,r,n);return o(),l&&this.fsw._addPathCloser(t,l),!1}catch(e){if(this.fsw._handleError(e))return o(),t}}};
|
|
2
2
|
/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */
|
|
3
3
|
const fe=/\\/g,K=/\/\//g,pe=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,me=/^\.[/\\]/;function q(e){return Array.isArray(e)?e:[e]}const J=e=>typeof e==`object`&&!!e&&!(e instanceof RegExp);function he(t){return typeof t==`function`?t:typeof t==`string`?e=>t===e:t instanceof RegExp?e=>t.test(e):typeof t==`object`&&t?n=>{if(t.path===n)return!0;if(t.recursive){let r=e.relative(t.path,n);return r?!r.startsWith(`..`)&&!e.isAbsolute(r):!1}return!1}:()=>!1}function ge(t){if(typeof t!=`string`)throw Error(`string expected`);t=e.normalize(t),t=t.replace(/\\/g,`/`);let n=!1;return t.startsWith(`//`)&&(n=!0),t=t.replace(K,`/`),n&&(t=`/`+t),t}function Y(e,t,n){let r=ge(t);for(let t=0;t<e.length;t++){let i=e[t];if(i(r,n))return!0}return!1}function _e(e,t){if(e==null)throw TypeError(`anymatch: specify first argument`);let n=q(e).map(e=>he(e));return t==null?(e,t)=>Y(n,e,t):Y(n,t)}const X=e=>{let t=q(e).flat();if(!t.every(e=>typeof e==`string`))throw TypeError(`Non-string provided as watch path: ${t}`);return t.map(Q)},Z=e=>{let t=e.replace(fe,`/`),n=!1;return t.startsWith(`//`)&&(n=!0),t=t.replace(K,`/`),n&&(t=`/`+t),t},Q=t=>Z(e.normalize(Z(t))),$=(t=``)=>n=>typeof n==`string`?Q(e.isAbsolute(n)?n:e.join(t,n)):n,ve=(t,n)=>e.isAbsolute(t)?t:e.join(n,t),ye=Object.freeze(new Set);var be=class{path;_removeWatcher;items;constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){let{items:t}=this;t&&e!==`.`&&e!==`..`&&t.add(e)}async remove(t){let{items:n}=this;if(!n||(n.delete(t),n.size>0))return;let r=this.path;try{await p(r)}catch{this._removeWatcher&&this._removeWatcher(e.dirname(r),e.basename(r))}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;return e?[...e.values()]:[]}dispose(){this.items.clear(),this.path=``,this._removeWatcher=w,this.items=ye,Object.freeze(this)}},xe=class{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(t,n,r){this.fsw=r;let i=t;this.path=t=t.replace(me,``),this.watchPath=i,this.fullWatchPath=e.resolve(i),this.dirParts=[],this.dirParts.forEach(e=>{e.length>1&&e.pop()}),this.followSymlinks=n,this.statMethod=n?`stat`:`lstat`}entryPath(t){return e.join(this.watchPath,e.relative(this.watchPath,t.fullPath))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let n=this.entryPath(e);return this.fsw._isntIgnored(n,t)&&this.fsw._hasReadPermissions(t)}filterDir(e){return this.fsw._isntIgnored(this.entryPath(e),e.stats)}},Se=class extends u{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(e={}){super(),this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let t=e.awaitWriteFinish,n={stabilityThreshold:2e3,pollInterval:100},r={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...e,ignored:e.ignored?q(e.ignored):q([]),awaitWriteFinish:t===!0?n:typeof t==`object`?{...n,...t}:!1};A&&(r.usePolling=!0),r.atomic===void 0&&(r.atomic=!r.usePolling);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let e=i.toLowerCase();e===`false`||e===`0`?r.usePolling=!1:e===`true`||e===`1`?r.usePolling=!0:r.usePolling=!!e}let a=process.env.CHOKIDAR_INTERVAL;a&&(r.interval=Number.parseInt(a,10));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=w,this._readyEmitted=!0,process.nextTick(()=>this.emit(j.READY)))},this._emitRaw=(...e)=>this.emit(j.RAW,...e),this._boundRemove=this._remove.bind(this),this.options=r,this._nodeFsHandler=new de(this),Object.freeze(r)}_addIgnoredPath(e){if(J(e)){for(let t of this._ignoredPaths)if(J(t)&&t.path===e.path&&t.recursive===e.recursive)return}this._ignoredPaths.add(e)}_removeIgnoredPath(e){if(this._ignoredPaths.delete(e),typeof e==`string`)for(let t of this._ignoredPaths)J(t)&&t.path===e&&this._ignoredPaths.delete(t)}add(t,n,r){let{cwd:i}=this.options;this.closed=!1,this._closePromise=void 0;let a=X(t);return i&&(a=a.map(e=>ve(e,i))),a.forEach(e=>{this._removeIgnoredPath(e)}),this._userIgnored=void 0,this._readyCount||=0,this._readyCount+=a.length,Promise.all(a.map(async e=>{let t=await this._nodeFsHandler._addToNodeFs(e,!r,void 0,0,n);return t&&this._emitReady(),t})).then(t=>{this.closed||t.forEach(t=>{t&&this.add(e.dirname(t),e.basename(n||t))})}),this}unwatch(t){if(this.closed)return this;let n=X(t),{cwd:r}=this.options;return n.forEach(t=>{!e.isAbsolute(t)&&!this._closers.has(t)&&(r&&(t=e.join(r,t)),t=e.resolve(t)),this._closePath(t),this._addIgnoredPath(t),this._watched.has(t)&&this._addIgnoredPath({path:t,recursive:!0}),this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(t=>{let n=t();n instanceof Promise&&e.push(n)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=e.length?Promise.all(e).then(()=>void 0):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((n,r)=>{let i=(this.options.cwd?e.relative(this.options.cwd,r):r)||`.`;t[i]=n.getChildren().sort()}),t}emitWithAll(e,t){this.emit(e,...t),e!==j.ERROR&&this.emit(j.ALL,e,...t)}async _emit(t,n,r){if(this.closed)return;let i=this.options;E&&(n=e.normalize(n)),i.cwd&&(n=e.relative(i.cwd,n));let a=[n];r!=null&&a.push(r);let o=i.awaitWriteFinish,s;if(o&&(s=this._pendingWrites.get(n)))return s.lastChange=new Date,this;if(i.atomic){if(t===j.UNLINK)return this._pendingUnlinks.set(n,[t,...a]),setTimeout(()=>{this._pendingUnlinks.forEach((e,t)=>{this.emit(...e),this.emit(j.ALL,...e),this._pendingUnlinks.delete(t)})},typeof i.atomic==`number`?i.atomic:100),this;t===j.ADD&&this._pendingUnlinks.has(n)&&(t=j.CHANGE,this._pendingUnlinks.delete(n))}if(o&&(t===j.ADD||t===j.CHANGE)&&this._readyEmitted)return this._awaitWriteFinish(n,o.stabilityThreshold,t,(e,n)=>{e?(t=j.ERROR,a[0]=e,this.emitWithAll(t,a)):n&&(a.length>1?a[1]=n:a.push(n),this.emitWithAll(t,a))}),this;if(t===j.CHANGE&&!this._throttle(j.CHANGE,n,50))return this;if(i.alwaysStat&&r===void 0&&(t===j.ADD||t===j.ADD_DIR||t===j.CHANGE)){let t=i.cwd?e.join(i.cwd,n):n,r;try{r=await h(t)}catch{}if(!r||this.closed)return;a.push(r)}return this.emitWithAll(t,a),this}_handleError(e){let t=e&&e.code;return e&&t!==`ENOENT`&&t!==`ENOTDIR`&&(!this.options.ignorePermissionErrors||t!==`EPERM`&&t!==`EACCES`)&&this.emit(j.ERROR,e),e||this.closed}_throttle(e,t,n){this._throttled.has(e)||this._throttled.set(e,new Map);let r=this._throttled.get(e);if(!r)throw Error(`invalid throttle`);let i=r.get(t);if(i)return i.count++,!1;let a,o=()=>{let e=r.get(t),n=e?e.count:0;return r.delete(t),clearTimeout(a),e&&clearTimeout(e.timeoutObject),n};a=setTimeout(o,n);let s={timeoutObject:a,clear:o,count:0};return r.set(t,s),s}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,n,r,i){let a=this.options.awaitWriteFinish;if(typeof a!=`object`)return;let s=a.pollInterval,c,l=t;this.options.cwd&&!e.isAbsolute(t)&&(l=e.join(this.options.cwd,t));let u=new Date,d=this._pendingWrites;function f(e){o(l,(r,a)=>{if(r||!d.has(t)){r&&r.code!==`ENOENT`&&i(r);return}let o=Number(new Date);e&&a.size!==e.size&&(d.get(t).lastChange=o),o-d.get(t).lastChange>=n?(d.delete(t),i(void 0,a)):c=setTimeout(f,s,a)})}d.has(t)||(d.set(t,{lastChange:u,cancelWait:()=>(d.delete(t),clearTimeout(c),r)}),c=setTimeout(f,s))}_isIgnored(e,t){if(this.options.atomic&&pe.test(e))return!0;if(!this._userIgnored){let{cwd:e}=this.options,t=(this.options.ignored||[]).map($(e));this._userIgnored=_e([...[...this._ignoredPaths].map($(e)),...t],void 0)}return this._userIgnored(e,t)}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e){return new xe(e,this.options.followSymlinks,this)}_getWatchedDir(t){let n=e.resolve(t);return this._watched.has(n)||this._watched.set(n,new be(n,this._boundRemove)),this._watched.get(n)}_hasReadPermissions(e){return this.options.ignorePermissionErrors?!0:!!(Number(e.mode)&256)}_remove(t,n,r){let i=e.join(t,n),a=e.resolve(i);if(r??=this._watched.has(i)||this._watched.has(a),!this._throttle(`remove`,i,100))return;!r&&this._watched.size===1&&this.add(t,n,!0),this._getWatchedDir(i).getChildren().forEach(e=>this._remove(i,e));let o=this._getWatchedDir(t),s=o.has(n);o.remove(n),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let c=i;if(this.options.cwd&&(c=e.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===j.ADD)return;this._watched.delete(i),this._watched.delete(a);let l=r?j.UNLINK_DIR:j.UNLINK;s&&!this._isIgnored(i)&&this._emit(l,i),this._closePath(i)}_closePath(t){this._closeFile(t);let n=e.dirname(t);this._getWatchedDir(n).remove(e.basename(t))}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(e=>e()),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(t)}_readdirp(e,t){if(this.closed)return;let n=ae(e,{type:j.ALL,alwaysStat:!0,lstat:!0,...t,depth:0});return this._streams.add(n),n.once(`close`,()=>{n=void 0}),n.once(`end`,()=>{n&&=(this._streams.delete(n),void 0)}),n}};function Ce(e,t={}){let n=new Se(t);return n.add(e),n}export{Ce as watch};
|
|
4
|
-
//# sourceMappingURL=chokidar-
|
|
4
|
+
//# sourceMappingURL=chokidar-987bEGiR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,g as t,h as n,i as r,m as i,s as a,t as o,u as s,v as c}from"./chunk-K5T4RW27-
|
|
2
|
-
//# sourceMappingURL=chunk-2KRD3SAO-
|
|
1
|
+
import{_ as e,g as t,h as n,i as r,m as i,s as a,t as o,u as s,v as c}from"./chunk-K5T4RW27-CkUFJKhh.mjs";var l=class extends o{static{i(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},u={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new r,`ValueConverter`)}};function d(r=n){let i=t(c(r),a),o=t(e({shared:i}),s,u);return i.ServiceRegistry.register(o),{shared:i,Radar:o}}i(d,`createRadarServices`);export{d as n,u as t};
|
|
2
|
+
//# sourceMappingURL=chunk-2KRD3SAO-CS4H0Mr8.mjs.map
|
|
@@ -15,4 +15,4 @@ import{t as e}from"./chunk-B74TABJS-DlbqoTuk.mjs";function t(e,t){let n=e.ignore
|
|
|
15
15
|
`)}
|
|
16
16
|
`:``,matched:!0,matchCount:C.length}}var a=new Map([[`alpha`,`a-zA-Z`],[`digit`,`0-9`],[`alnum`,`a-zA-Z0-9`],[`lower`,`a-z`],[`upper`,`A-Z`],[`xdigit`,`0-9A-Fa-f`],[`space`,` \\t\\n\\r\\f\\v`],[`blank`,` \\t`],[`punct`,"!-/:-@\\[-`{-~"],[`graph`,`!-~`],[`print`,` -~`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`ascii`,`\\x00-\\x7F`],[`word`,`a-zA-Z0-9_`]]);function o(e){let t=``,n=0;for(;n<e.length;){if(e.slice(n,n+7)===`[[:<:]]`){t+=`\\b`,n+=7;continue}if(e.slice(n,n+7)===`[[:>:]]`){t+=`\\b`,n+=7;continue}if(e[n]===`[`){let r=`[`;for(n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(r+=`^`,n++),n<e.length&&e[n]===`]`&&(r+=`\\]`,n++);n<e.length&&e[n]!==`]`;){if(e[n]===`[`&&n+1<e.length&&e[n+1]===`:`){let t=e.indexOf(`:]`,n+2);if(t!==-1){let i=e.slice(n+2,t),o=a.get(i);if(o){r+=o,n=t+2;continue}}}if(e[n]===`\\`&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}r+=e[n],n++}n<e.length&&e[n]===`]`&&(r+=`]`,n++),t+=r;continue}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++}return t}function s(t,n){let r,i;switch(n.mode){case`fixed`:r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);break;case`extended`:case`perl`:if(r=o(t),r=r.replace(/\(\?P<([^>]+)>/g,`(?<$1>`),n.mode===`perl`){r=d(r),r=f(r),r=p(r);let e=_(r);r=e.pattern,i=e.kResetGroup}break;default:r=o(t),r=x(r);break}n.wholeWord&&(r=`\\b(?:${r})\\b`),n.lineRegexp&&(r=`^${r}$`);let a=/\\u\{[0-9A-Fa-f]+\}/.test(r),s=`g`+(n.ignoreCase?`i`:``)+(n.multiline?`m`:``)+(n.multilineDotall?`s`:``)+(a?`u`:``),l=c(r,n.ignoreCase??!1);return{regex:e(r,s),kResetGroup:i,preFilter:l??void 0}}function c(e,t){let n=e;if(n.startsWith(`\\b(?:`)&&n.endsWith(`)\\b`)?n=n.slice(5,n.length-3):n.startsWith(`\\b`)&&n.endsWith(`\\b`)&&n.length>=4&&(n=n.slice(2,n.length-2)),n.length===0)return null;let r=l(n);if(r===null)return null;let i=[];for(let e of r){let t=u(e);if(t===null||t.length===0)return null;i.push(t)}return i.length===0?null:{needles:t?i.map(e=>e.toLowerCase()):i,ignoreCase:t}}function l(e){let t=[],n=0,r=!1,i=0;for(let a=0;a<e.length;a++){let o=e[a];if(o===`\\`){a++;continue}if(r){o===`]`&&(r=!1);continue}if(o===`[`)r=!0;else if(o===`(`)n++;else if(o===`)`){if(n--,n<0)return null}else o===`|`&&n===0&&(t.push(e.slice(i,a)),i=a+1)}return n!==0||r?null:(t.push(e.slice(i)),t)}function u(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(r===`\\`){let r=e[n+1];if(r===void 0||/[dDwWsSbBAZzGQE0-9ckpPNXRxuU]/.test(r))return null;r===`n`?t+=`
|
|
17
17
|
`:r===`t`?t+=` `:r===`r`?t+=`\r`:r===`f`?t+=`\f`:r===`v`?t+=`\v`:t+=r,n++;continue}if(/[.*+?^${}()|[\]]/.test(r))return null;t+=r}return t}function d(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`Q`){n+=2;let r=``;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`E`){n+=2;break}r+=e[n],n++}t+=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}else t+=e[n],n++;return t}function f(e){return e.replace(/\\x\{([0-9A-Fa-f]+)\}/g,`\\u{$1}`)}function p(e){let t=``,n=0;for(;n<e.length;){if(e[n]===`(`&&n+1<e.length&&e[n+1]===`?`){let r=e.slice(n).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(r){let i=r[1]||``,a=r[2]||``,o=r[3];if(o===`:`){let o=n+r[0].length-1,s=m(e,n);if(s!==-1){let r=h(e.slice(o+1,s),i,a);t+=`(?:${r})`,n=s+1;continue}}else if(o===`)`||o===``){n+=r[0].length;continue}}}t+=e[n],n++}return t}function m(e,t){let n=0,r=t;for(;r<e.length;){if(e[r]===`\\`){r+=2;continue}if(e[r]===`[`){for(r++;r<e.length&&e[r]!==`]`;)e[r]===`\\`&&r++,r++;r++;continue}if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;r++}return-1}function h(e,t,n){let r=e;return t.includes(`i`)&&(r=g(r)),r}function g(e){let t=``,n=0;for(;n<e.length;){let r=e[n];if(r===`\\`){n+1<e.length?(t+=r+e[n+1],n+=2):(t+=r,n++);continue}if(r===`[`){t+=r,n++,n<e.length&&e[n]===`^`&&(t+=e[n],n++);let i=[];for(;n<e.length&&e[n]!==`]`;)if(e[n]===`\\`)i.push(e[n]),n++,n<e.length&&(i.push(e[n]),n++);else if(e[n]===`-`&&i.length>0&&n+1<e.length&&e[n+1]!==`]`){let t=i[i.length-1],r=e[n+1];i.push(`-`),i.push(r),/[a-z]/.test(t)&&/[a-z]/.test(r)?(i.push(t.toUpperCase()),i.push(`-`),i.push(r.toUpperCase())):/[A-Z]/.test(t)&&/[A-Z]/.test(r)&&(i.push(t.toLowerCase()),i.push(`-`),i.push(r.toLowerCase())),n+=2}else{let t=e[n];if(i.push(t),/[a-zA-Z]/.test(t)){let e=t===t.toLowerCase()?t.toUpperCase():t.toLowerCase();i.includes(e)||i.push(e)}n++}t+=i.join(``),n<e.length&&(t+=e[n],n++);continue}if(/[a-zA-Z]/.test(r)){let e=r.toLowerCase(),n=r.toUpperCase();t+=`[${n}${e}]`}else t+=r;n++}return t}function _(e){let t=v(e);if(t===-1)return{pattern:e};let n=e.slice(0,t),r=e.slice(t+2),i=y(n);return{pattern:`(?:${n})(${r})`,kResetGroup:i+1}}function v(e){let t=0;for(;t<e.length-1;)if(e[t]===`\\`){if(e[t+1]===`K`){let n=0,r=t-1;for(;r>=0&&e[r]===`\\`;)n++,r--;if(n%2==0)return t}t+=2}else t++;return-1}function y(e){let t=0,n=0;for(;n<e.length;){if(e[n]===`\\`){n+=2;continue}if(e[n]===`[`){for(n++;n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n++,n++;n++;continue}if(e[n]===`(`)if(n+1<e.length&&e[n+1]===`?`){if(n+2<e.length){let r=e[n+2];if(r===`:`||r===`=`||r===`!`){n++;continue}if(r===`<`&&n+3<e.length){let r=e[n+3];if(r===`=`||r===`!`){n++;continue}t++,n++;continue}}}else t++;n++}return t}function b(e){let t=e.replace(/\$\{0\}|\$0(?![0-9])/g,`$$&`);return t=t.replace(/\$\{([^0-9}][^}]*)\}/g,`$$<$1>`),t=t.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,`$$<$1>`),t}function x(e){let t=``,n=0,r=!0,i=0;for(;n<e.length;){let a=e[n];if(a===`[`){for(t+=a,n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(t+=e[n],n++),n<e.length&&e[n]===`]`&&(t+=e[n],n++);n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n+1<e.length?(t+=e[n]+e[n+1],n+=2):(t+=e[n],n++);n<e.length&&e[n]===`]`&&(t+=e[n],n++),r=!1;continue}if(a===`\\`&&n+1<e.length){let o=e[n+1];if(o===`|`){t+=`|`,n+=2,r=!0;continue}if(o===`(`){t+=`(`,n+=2,i++,r=!0;continue}if(o===`)`){t+=`)`,n+=2,i=Math.max(0,i-1),r=!1;continue}if(o===`{`){let i=e.slice(n).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(i){let e=i[1],a=i[2]!==void 0,o=i[3]||``;a?t+=`{${e},${o}}`:t+=`{${e}}`,n+=i[0].length,r=!1;continue}t+=`\\{`,n+=2,r=!1;continue}if(o===`}`){t+=`\\}`,n+=2,r=!1;continue}t+=a+o,n+=2,r=!1;continue}if(a===`*`&&r){t+=`\\*`,n++;continue}if(a===`^`){if(r){t+=`^`,n++;continue}t+=`\\^`,n++;continue}if(a===`$`){let i=n===e.length-1,a=n+2<e.length&&e[n+1]===`\\`&&e[n+2]===`)`;i||a?t+=`$`:t+=`\\$`,n++,r=!1;continue}a===`+`||a===`?`||a===`|`||a===`(`||a===`)`||a===`{`||a===`}`?t+=`\\${a}`:t+=a,n++,r=!1}return t}export{r as n,b as r,s as t};
|
|
18
|
-
//# sourceMappingURL=chunk-2TRDZQLB-
|
|
18
|
+
//# sourceMappingURL=chunk-2TRDZQLB-FBZrMh7I.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as e,w as t}from"./src-
|
|
2
|
-
//# sourceMappingURL=chunk-336JU56O-
|
|
1
|
+
import{T as e,w as t}from"./src-DBL0Mxlv.mjs";import{s as n,y as r}from"./chunk-ICPOFSXX-d7VyKeM8.mjs";import{u as i}from"./chunk-5PVQY5BW-Bv35hkyA.mjs";import{a,i as o,s}from"./chunk-5FUZZQ4R-BQ_uOgdA.mjs";import{a as c,i as l,n as u,r as d}from"./chunk-ENJZ2VHE-dY0aiIZS.mjs";var f={common:n,getConfig:r,insertCluster:o,insertEdge:u,insertEdgeLabel:d,insertMarkers:l,insertNode:a,interpolateToCurve:i,labelHelper:s,log:e,positionEdgeLabel:c},p={},m=t(e=>{for(let t of e)p[t.name]=t},`registerLayoutLoaders`);t(()=>{m([{name:`dagre`,loader:t(async()=>await import(`./dagre-KV5264BT-JumxHSx7.mjs`),`loader`)},...[{name:`cose-bilkent`,loader:t(async()=>await import(`./cose-bilkent-S5V4N54A-C3h1ARwX.mjs`),`loader`)}]])},`registerDefaultLayoutLoaders`)();var h=t(async(e,t)=>{if(!(e.layoutAlgorithm in p))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=p[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:c}=a,l=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,c).attr(`stop-opacity`,1)}return r.render(e,t,f,{algorithm:n.algorithm})},`render`),g=t((t=``,{fallback:n=`dagre`}={})=>{if(t in p)return t;if(n in p)return e.warn(`Layout algorithm ${t} is not registered. Using ${n} as fallback.`),n;throw Error(`Both layout algorithms ${t} and ${n} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{m as n,h as r,g as t};
|
|
2
|
+
//# sourceMappingURL=chunk-336JU56O-41A5UOXQ.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-B74TABJS-DlbqoTuk.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-
|
|
1
|
+
import{t as e}from"./chunk-B74TABJS-DlbqoTuk.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-BnsihHv5.mjs";import{n as s}from"./chunk-7L36YK2X-B6FqeSqt.mjs";import{t as c}from"./chunk-PXTK5WE2-DtNgPWAM.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-toaIg90F.mjs";import{n as d}from"./chunk-KRBPSX3W-plcpns8G.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./chunk-DBKNVD4L-CXGQWbr1.mjs";var b,x=r(()=>{b=class{input;pos=0;tokens=[];constructor(e){this.input=e}tokenize(){for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let e=this.nextToken();e&&this.tokens.push(e)}return this.tokens.push({type:`eof`,value:``,pos:this.pos}),this.tokens}skipWhitespace(){for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e===` `||e===` `||e===`
|
|
2
2
|
`||e===`\r`)this.pos++;else if(e===`#`)for(;this.pos<this.input.length&&this.input[this.pos]!==`
|
|
3
3
|
`;)this.pos++;else break}}nextToken(){let e=this.pos,t=this.input[this.pos];if(t>=`0`&&t<=`9`)return this.readNumber();if(t===`"`||t===`'`||t==="`")return this.readString(t);if(t===`b`&&this.pos+1<this.input.length){let e=this.input[this.pos+1];if(e===`"`||e===`'`||e==="`")return this.pos++,this.readString(e)}if(t===`/`){let t=this.tokens[this.tokens.length-1];return t&&(t.type===`int`||t.type===`float`||t.type===`string`||t.type===`ident`||t.type===`)`||t.type===`]`)?this.input[this.pos+1]===`/`?(this.pos+=2,{type:`//`,value:`//`,pos:e}):(this.pos++,{type:`/`,value:`/`,pos:e}):this.readRegex()}if(this.match(`not in`))return{type:`not in`,value:`not in`,pos:e};if(this.match(`=>`))return{type:`=>`,value:`=>`,pos:e};if(this.match(`**`))return{type:`**`,value:`**`,pos:e};if(this.match(`++`))return{type:`++`,value:`++`,pos:e};if(this.match(`//`))return{type:`//`,value:`//`,pos:e};if(this.match(`==`))return{type:`==`,value:`==`,pos:e};if(this.match(`!=`))return{type:`!=`,value:`!=`,pos:e};if(this.match(`<=`))return{type:`<=`,value:`<=`,pos:e};if(this.match(`>=`))return{type:`>=`,value:`>=`,pos:e};if(this.match(`&&`))return{type:`&&`,value:`&&`,pos:e};if(this.match(`||`))return{type:`||`,value:`||`,pos:e};let n=new Map([[`(`,`(`],[`)`,`)`],[`[`,`[`],[`]`,`]`],[`{`,`{`],[`}`,`}`],[`,`,`,`],[`:`,`:`],[`;`,`;`],[`+`,`+`],[`-`,`-`],[`*`,`*`],[`%`,`%`],[`<`,`<`],[`>`,`>`],[`!`,`!`],[`.`,`.`],[`|`,`|`],[`=`,`=`]]).get(t);if(n!==void 0)return this.pos++,{type:n,value:t,pos:e};if(this.isIdentStart(t))return this.readIdentifier();throw Error(`Unexpected character '${t}' at position ${this.pos}`)}match(e){if(this.input.slice(this.pos,this.pos+e.length)===e){if(/^[a-zA-Z]/.test(e)){let t=this.input[this.pos+e.length];if(t&&this.isIdentChar(t))return!1}return this.pos+=e.length,!0}return!1}isIdentStart(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`}isIdentChar(e){return this.isIdentStart(e)||e>=`0`&&e<=`9`}readNumber(){let e=this.pos,t=!1,n=!1;for(;this.pos<this.input.length;){let e=this.input[this.pos];if(e>=`0`&&e<=`9`)this.pos++;else if(e===`_`)this.pos++;else if(e===`.`&&!t&&!n)t=!0,this.pos++;else if((e===`e`||e===`E`)&&!n)n=!0,t=!0,this.pos++,this.pos<this.input.length&&(this.input[this.pos]===`+`||this.input[this.pos]===`-`)&&this.pos++;else break}let r=this.input.slice(e,this.pos).replace(/_/g,``);return{type:t?`float`:`int`,value:r,pos:e}}readString(e){let t=this.pos;this.pos++;let n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===e)return this.pos++,{type:`string`,value:n,pos:t};if(r===`\\`){if(this.pos++,this.pos<this.input.length){let e=this.input[this.pos];switch(e){case`n`:n+=`
|
|
4
4
|
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;case`\\`:n+=`\\`;break;case`"`:n+=`"`;break;case`'`:n+=`'`;break;case"`":n+="`";break;case`0`:n+=`\0`;break;default:n+=e}this.pos++}}else n+=r,this.pos++}throw Error(`Unterminated string starting at position ${t}`)}readRegex(){let e=this.pos;this.pos++;let t=``,n=``;for(;this.pos<this.input.length;){let r=this.input[this.pos];if(r===`/`){for(this.pos++;this.pos<this.input.length&&this.input[this.pos]===`i`;)n+=this.input[this.pos],this.pos++;return{type:`regex`,value:t+(n?`/${n}`:``),pos:e}}r===`\\`?(t+=r,this.pos++,this.pos<this.input.length&&(t+=this.input[this.pos],this.pos++)):(t+=r,this.pos++)}throw Error(`Unterminated regex starting at position ${e}`)}readIdentifier(){let e=this.pos;for(;this.pos<this.input.length&&this.isIdentChar(this.input[this.pos]);)this.pos++;let t=!1;this.pos<this.input.length&&this.input[this.pos]===`?`&&(t=!0,this.pos++);let n=this.input.slice(e,t?this.pos-1:this.pos);t&&(n+=`?`);let r=new Map([[`true`,`true`],[`false`,`false`],[`null`,`null`],[`and`,`and`],[`or`,`or`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`in`,`in`],[`as`,`as`],[`_`,`_`]]),i=n.replace(/\?$/,``),a=r.get(i);return a!==void 0&&!t?{type:a,value:i,pos:e}:{type:`ident`,value:n,pos:e}}}}),S={};n(S,{parseMoonblade:()=>w,parseNamedExpressions:()=>C});function C(e){let t=[],n=new b(e).tokenize(),r=0,i=()=>n[r]||{type:`eof`,value:``,pos:0},a=()=>n[r++];for(;i().type!==`eof`;){if(i().type===`,`&&t.length>0){a();continue}let o=[],s=0,c=r;for(;i().type!==`eof`;){let e=i();if((e.type===`,`||e.type===`as`)&&s===0)break;(e.type===`(`||e.type===`[`||e.type===`{`)&&s++,(e.type===`)`||e.type===`]`||e.type===`}`)&&s--,o.push(a())}o.push({type:`eof`,value:``,pos:0});let l=new E(o).parse(),u;if(i().type===`as`)if(a(),i().type===`(`){a();let e=[];for(;i().type!==`)`&&i().type!==`eof`;)(i().type===`ident`||i().type===`string`)&&(e.push(i().value),a()),i().type===`,`&&a();i().type===`)`&&a(),u=e}else if(i().type===`ident`||i().type===`string`)u=i().value,a();else throw Error(`Expected name after 'as', got ${i().type}`);else u=e.slice(n[c].pos,n[r-1]?.pos||e.length).trim(),l.type===`identifier`&&(u=l.name);t.push({expr:l,name:u})}return t}function w(e){let t=new b(e).tokenize();return new E(t).parse()}var T,E,D=r(()=>{x(),T={PIPE:1,OR:2,AND:3,EQUALITY:4,COMPARISON:5,ADDITIVE:6,MULTIPLICATIVE:7,POWER:8,UNARY:9,POSTFIX:10},E=class{pos=0;tokens;constructor(e){this.tokens=e}parse(){let e=this.parseExpr(0);if(this.peek().type!==`eof`)throw Error(`Unexpected token: ${this.peek().value}`);return e}parseExpr(e){let t=this.parsePrefix();for(;;){let n=this.peek(),r=this.getInfixPrec(n.type);if(r<e)break;t=this.parseInfix(t,r)}return t}parsePrefix(){let e=this.peek();switch(e.type){case`int`:return this.advance(),{type:`int`,value:Number.parseInt(e.value,10)};case`float`:return this.advance(),{type:`float`,value:Number.parseFloat(e.value)};case`string`:return this.advance(),{type:`string`,value:e.value};case`regex`:{this.advance();let t=e.value.split(`/`),n=t.length>1?t[t.length-1]:``;return{type:`regex`,pattern:t.slice(0,-1).join(`/`)||e.value,caseInsensitive:n.includes(`i`)}}case`true`:return this.advance(),{type:`bool`,value:!0};case`false`:return this.advance(),{type:`bool`,value:!1};case`null`:return this.advance(),{type:`null`};case`_`:return this.advance(),{type:`underscore`};case`ident`:{let t=e.value,n=t.endsWith(`?`),r=n?t.slice(0,-1):t;if(this.advance(),this.peek().type===`(`)return this.parseFunctionCall(r);if(this.peek().type===`=>`){this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:[r],body:e},[r])}return{type:`identifier`,name:r,unsure:n}}case`(`:{this.advance();let e=this.pos;if(this.peek().type===`)`){if(this.advance(),this.peek().type===`=>`)return this.advance(),{type:`lambda`,params:[],body:this.parseExpr(0)};throw Error(`Empty parentheses not allowed`)}if(this.peek().type===`ident`){let t=[this.peek().value];this.advance();let n=!0;for(;this.peek().type===`,`;)if(this.advance(),this.peek().type===`ident`)t.push(this.peek().value),this.advance();else{n=!1;break}if(n&&this.peek().type===`)`&&this.peekAt(1).type===`=>`){this.advance(),this.advance();let e=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:t,body:e},t)}this.pos=e}let t=this.parseExpr(0);return this.expect(`)`),t}case`[`:return this.parseList();case`{`:return this.parseMap();case`-`:{this.advance();let e=this.parseExpr(T.UNARY);return e.type===`int`?{type:`int`,value:-e.value}:e.type===`float`?{type:`float`,value:-e.value}:{type:`func`,name:`neg`,args:[{expr:e}]}}case`!`:return this.advance(),{type:`func`,name:`not`,args:[{expr:this.parseExpr(T.UNARY)}]};default:throw Error(`Unexpected token: ${e.type} (${e.value})`)}}parseFunctionCall(e){this.expect(`(`);let t=[];if(this.peek().type!==`)`)do{t.length>0&&this.peek().type===`,`&&this.advance();let e;if(this.peek().type===`ident`){let t=this.peek().value,n=this.pos+1;n<this.tokens.length&&this.tokens[n].type===`=`&&(e=t,this.advance(),this.advance())}let n=this.parseExpr(0);t.push({name:e,expr:n})}while(this.peek().type===`,`);return this.expect(`)`),{type:`func`,name:e.toLowerCase(),args:t}}parseList(){this.expect(`[`);let e=[];if(this.peek().type!==`]`)do e.length>0&&this.peek().type===`,`&&this.advance(),e.push(this.parseExpr(0));while(this.peek().type===`,`);return this.expect(`]`),{type:`list`,elements:e}}parseMap(){this.expect(`{`);let e=[];if(this.peek().type!==`}`)do{e.length>0&&this.peek().type===`,`&&this.advance();let t;if(this.peek().type===`ident`)t=this.peek().value,this.advance();else if(this.peek().type===`string`)t=this.peek().value,this.advance();else throw Error(`Expected map key, got ${this.peek().type}`);this.expect(`:`);let n=this.parseExpr(0);e.push({key:t,value:n})}while(this.peek().type===`,`);return this.expect(`}`),{type:`map`,entries:e}}parseInfix(e,t){let n=this.peek(),r=new Map([[`+`,`add`],[`-`,`sub`],[`*`,`mul`],[`/`,`div`],[`//`,`idiv`],[`%`,`mod`],[`**`,`pow`],[`++`,`concat`],[`==`,`==`],[`!=`,`!=`],[`<`,`<`],[`<=`,`<=`],[`>`,`>`],[`>=`,`>=`],[`eq`,`eq`],[`ne`,`ne`],[`lt`,`lt`],[`le`,`le`],[`gt`,`gt`],[`ge`,`ge`],[`&&`,`and`],[`and`,`and`],[`||`,`or`],[`or`,`or`]]).get(n.type);if(r!==void 0){this.advance();let i=this.parseExpr(t+(this.isRightAssoc(n.type)?0:1));return{type:`func`,name:r,args:[{expr:e},{expr:i}]}}if(n.type===`|`){this.advance();let n=this.parseExpr(t);return this.handlePipe(e,n)}if(n.type===`.`)return this.advance(),this.handleDot(e);if(n.type===`[`)return this.advance(),this.handleIndexing(e);if(n.type===`in`)return this.advance(),{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]};if(n.type===`not in`)return this.advance(),{type:`func`,name:`not`,args:[{expr:{type:`func`,name:`contains`,args:[{expr:this.parseExpr(t+1)},{expr:e}]}}]};throw Error(`Unexpected infix token: ${n.type}`)}handlePipe(e,t){if(t.type===`identifier`)return{type:`func`,name:t.name,args:[{expr:e}]};if(t.type===`func`){let n=this.countUnderscores(t);return n===0?t:n===1?this.fillUnderscore(t,e):{type:`pipeline`,exprs:[e,t]}}return this.countUnderscores(t)===1?this.fillUnderscore(t,e):t}handleDot(e){let t=this.peek();if(t.type===`ident`){let n=t.value;if(this.advance(),this.peek().type===`(`){let t=this.parseFunctionCall(n);return t.type===`func`&&t.args.unshift({expr:e}),t}return{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}if(t.type===`int`){let n=Number.parseInt(t.value,10);return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`int`,value:n}}]}}if(t.type===`string`){let n=t.value;return this.advance(),{type:`func`,name:`get`,args:[{expr:e},{expr:{type:`string`,value:n}}]}}throw Error(`Expected identifier, number, or string after dot, got ${t.type}`)}handleIndexing(e){if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e}]};let t=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:{type:`int`,value:0}},{expr:t}]}}let t=this.parseExpr(0);if(this.peek().type===`:`){if(this.advance(),this.peek().type===`]`)return this.advance(),{type:`func`,name:`slice`,args:[{expr:e},{expr:t}]};let n=this.parseExpr(0);return this.expect(`]`),{type:`func`,name:`slice`,args:[{expr:e},{expr:t},{expr:n}]}}return this.expect(`]`),{type:`func`,name:`get`,args:[{expr:e},{expr:t}]}}countUnderscores(e){return e.type===`underscore`?1:e.type===`func`?e.args.reduce((e,t)=>e+this.countUnderscores(t.expr),0):e.type===`list`?e.elements.reduce((e,t)=>e+this.countUnderscores(t),0):e.type===`map`?e.entries.reduce((e,t)=>e+this.countUnderscores(t.value),0):0}fillUnderscore(e,t){return e.type===`underscore`?t:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.fillUnderscore(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.fillUnderscore(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.fillUnderscore(e.value,t)}))}:e}bindLambdaArgs(e,t){return{...e,body:this.bindLambdaArgsInExpr(e.body,t)}}bindLambdaArgsInExpr(e,t){return e.type===`identifier`&&t.includes(e.name)?{type:`lambdaBinding`,name:e.name}:e.type===`func`?{...e,args:e.args.map(e=>({...e,expr:this.bindLambdaArgsInExpr(e.expr,t)}))}:e.type===`list`?{...e,elements:e.elements.map(e=>this.bindLambdaArgsInExpr(e,t))}:e.type===`map`?{...e,entries:e.entries.map(e=>({...e,value:this.bindLambdaArgsInExpr(e.value,t)}))}:e}getInfixPrec(e){switch(e){case`|`:return T.PIPE;case`||`:case`or`:return T.OR;case`&&`:case`and`:return T.AND;case`==`:case`!=`:case`eq`:case`ne`:return T.EQUALITY;case`<`:case`<=`:case`>`:case`>=`:case`lt`:case`le`:case`gt`:case`ge`:case`in`:case`not in`:return T.COMPARISON;case`+`:case`-`:case`++`:return T.ADDITIVE;case`*`:case`/`:case`//`:case`%`:return T.MULTIPLICATIVE;case`**`:return T.POWER;case`.`:case`[`:return T.POSTFIX;default:return-1}}isRightAssoc(e){return e===`**`}peek(){return this.tokens[this.pos]||{type:`eof`,value:``,pos:0}}peekAt(e){return this.tokens[this.pos+e]||{type:`eof`,value:``,pos:0}}advance(){return this.tokens[this.pos++]}expect(e){let t=this.peek();if(t.type!==e)throw Error(`Expected ${e}, got ${t.type}`);return this.advance()}}});D();function O(e,t){return t.length===0?j(e,[]):t.length===1?{type:`Pipe`,left:t[0],right:j(e,[])}:{type:`Pipe`,left:t[0],right:j(e,t.slice(1))}}var k={add:e=>A(`+`,e[0],e[1]),sub:e=>A(`-`,e[0],e[1]),mul:e=>A(`*`,e[0],e[1]),div:e=>A(`/`,e[0],e[1]),mod:e=>A(`%`,e[0],e[1]),idiv:e=>j(`floor`,[A(`/`,e[0],e[1])]),pow:e=>O(`pow`,e),neg:e=>({type:`UnaryOp`,op:`-`,operand:e[0]}),"==":e=>A(`==`,e[0],e[1]),"!=":e=>A(`!=`,e[0],e[1]),"<":e=>A(`<`,e[0],e[1]),"<=":e=>A(`<=`,e[0],e[1]),">":e=>A(`>`,e[0],e[1]),">=":e=>A(`>=`,e[0],e[1]),eq:e=>A(`==`,P(e[0]),P(e[1])),ne:e=>A(`!=`,P(e[0]),P(e[1])),lt:e=>A(`<`,P(e[0]),P(e[1])),le:e=>A(`<=`,P(e[0]),P(e[1])),gt:e=>A(`>`,P(e[0]),P(e[1])),ge:e=>A(`>=`,P(e[0]),P(e[1])),and:e=>A(`and`,e[0],e[1]),or:e=>A(`or`,e[0],e[1]),not:e=>({type:`UnaryOp`,op:`not`,operand:e[0]}),len:e=>O(`length`,e),length:e=>O(`length`,e),upper:e=>O(`ascii_upcase`,e),lower:e=>O(`ascii_downcase`,e),trim:e=>O(`trim`,e),ltrim:e=>e.length===0?j(`ltrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`ltrimstr`,[{type:`Literal`,value:` `}])},rtrim:e=>e.length===0?j(`rtrimstr`,[{type:`Literal`,value:` `}]):{type:`Pipe`,left:e[0],right:j(`rtrimstr`,[{type:`Literal`,value:` `}])},split:e=>O(`split`,e),join:e=>e.length===1?j(`join`,[{type:`Literal`,value:``}]):O(`join`,e),concat:e=>A(`+`,e[0],e[1]),startswith:e=>O(`startswith`,e),endswith:e=>O(`endswith`,e),contains:e=>O(`contains`,e),replace:e=>O(`gsub`,e),substr:e=>e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:A(`+`,e[1],e[2])},abs:e=>O(`fabs`,e),floor:e=>O(`floor`,e),ceil:e=>O(`ceil`,e),round:e=>O(`round`,e),sqrt:e=>O(`sqrt`,e),log:e=>O(`log`,e),log10:e=>O(`log10`,e),log2:e=>O(`log2`,e),exp:e=>O(`exp`,e),sin:e=>O(`sin`,e),cos:e=>O(`cos`,e),tan:e=>O(`tan`,e),asin:e=>O(`asin`,e),acos:e=>O(`acos`,e),atan:e=>O(`atan`,e),min:e=>O(`min`,e),max:e=>O(`max`,e),first:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:0}}:{type:`Index`,index:{type:`Literal`,value:0},base:e[0]},last:e=>e.length===0?{type:`Index`,index:{type:`Literal`,value:-1}}:{type:`Index`,index:{type:`Literal`,value:-1},base:e[0]},get:e=>e.length===1?{type:`Index`,index:e[0]}:{type:`Index`,index:e[1],base:e[0]},slice:e=>e.length===1?{type:`Slice`,base:e[0]}:e.length===2?{type:`Slice`,base:e[0],start:e[1]}:{type:`Slice`,base:e[0],start:e[1],end:e[2]},keys:`keys`,values:`values`,entries:e=>j(`to_entries`,e),from_entries:`from_entries`,reverse:`reverse`,sort:`sort`,sort_by:`sort_by`,group_by:`group_by`,unique:`unique`,unique_by:`unique_by`,flatten:`flatten`,map:e=>({type:`Pipe`,left:e[0],right:{type:`Array`,elements:e[1]}}),select:e=>j(`select`,e),empty:()=>j(`empty`,[]),count:()=>j(`length`,[]),sum:e=>e.length===0?j(`add`,[]):{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:j(`add`,[])},mean:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},avg:e=>e.length===0?{type:`Pipe`,left:{type:`Identity`},right:A(`/`,j(`add`,[]),j(`length`,[]))}:{type:`Pipe`,left:{type:`Array`,elements:e[0]},right:A(`/`,j(`add`,[]),j(`length`,[]))},type:`type`,isnull:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:null}):A(`==`,e[0],{type:`Literal`,value:null}),isempty:e=>e.length===0?A(`==`,{type:`Identity`},{type:`Literal`,value:``}):A(`==`,e[0],{type:`Literal`,value:``}),tonumber:e=>e.length===0?j(`tonumber`,[]):j(`tonumber`,e),tostring:e=>e.length===0?j(`tostring`,[]):j(`tostring`,e),if:e=>N(e[0],e[1],e[2]),coalesce:e=>{if(e.length===0)return{type:`Literal`,value:null};if(e.length===1)return e[0];let[t,...n]=e;return N(A(`and`,A(`!=`,t,{type:`Literal`,value:null}),A(`!=`,t,{type:`Literal`,value:``})),t,n.length===1?n[0]:k.coalesce(n))},index:()=>({type:`Field`,name:`_row_index`}),now:()=>j(`now`,[]),fmt:e=>j(`tostring`,e),format:e=>j(`tostring`,e)};Object.setPrototypeOf(k,null);function A(e,t,n){return{type:`BinaryOp`,op:e,left:t,right:n}}function j(e,t){return{type:`Call`,name:e,args:t}}var M=`then`;function N(e,t,n){let r=u({type:`Cond`,cond:e,elifs:[],else:n||{type:`Literal`,value:null}});return r[M]=t,r}function P(e){return{type:`Pipe`,left:e,right:{type:`Call`,name:`tostring`,args:[]}}}function F(e,t=!0){switch(e.type){case`int`:case`float`:return{type:`Literal`,value:e.value};case`string`:return{type:`Literal`,value:e.value};case`bool`:return{type:`Literal`,value:e.value};case`null`:return{type:`Literal`,value:null};case`underscore`:return{type:`Index`,base:{type:`Identity`},index:{type:`Literal`,value:`_`}};case`identifier`:return t?{type:`Field`,name:e.name}:{type:`VarRef`,name:e.name};case`lambdaBinding`:return{type:`VarRef`,name:e.name};case`func`:{let n=e.args.map(e=>F(e.expr,t)),r=Object.hasOwn(k,e.name)?k[e.name]:void 0;return typeof r==`function`?r(n):j(typeof r==`string`?r:e.name,n)}case`list`:return e.elements.length===0?{type:`Array`}:{type:`Array`,elements:e.elements.reduce((e,n,r)=>{let i=F(n,t);return r===0?i:{type:`Comma`,left:e,right:i}},null)};case`map`:return{type:`Object`,entries:e.entries.map(e=>({key:e.key,value:F(e.value,t)}))};case`regex`:return{type:`Literal`,value:e.pattern};case`slice`:return{type:`Slice`,start:e.start?F(e.start,t):void 0,end:e.end?F(e.end,t):void 0};case`lambda`:return F(e.body,t);case`pipeline`:return{type:`Identity`};default:throw Error(`Unknown moonblade expression type: ${e.type}`)}}function I(e){let t=[],n=0;for(;n<e.length;){for(;n<e.length&&(e[n]===` `||e[n]===`,`);)n++;if(n>=e.length)break;let r=n;for(;n<e.length&&/\w/.test(e[n]);)n++;let i=e.slice(r,n);for(;n<e.length&&e[n]===` `;)n++;if(e[n]!==`(`)break;n++;let a=1,o=n;for(;n<e.length&&a>0;)e[n]===`(`?a++:e[n]===`)`&&a--,a>0&&n++;let s=e.slice(o,n).trim();for(n++;n<e.length&&e[n]===` `;)n++;let c=``;if(e.slice(n,n+3).toLowerCase()===`as `){for(n+=3;n<e.length&&e[n]===` `;)n++;let t=n;for(;n<e.length&&/\w/.test(e[n]);)n++;c=e.slice(t,n)}c||=s?`${i}(${s})`:`${i}()`,t.push({func:i,expr:s,alias:c})}return t}function L(e){return/^\w+$/.test(e)}function R(e,t,n){let r=d(e,F(w(t)),n);return r.length>0?r[0]:null}function z(e,t,n={}){let{func:r,expr:i}=t;if(r===`count`&&!i)return e.length;let a;switch(a=L(i)?e.map(e=>e[i]).filter(e=>e!=null):e.map(e=>R(e,i,n)).filter(e=>e!=null),r){case`count`:return L(i)?a.length:a.filter(e=>!!e).length;case`sum`:return a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).reduce((e,t)=>e+t,0);case`mean`:case`avg`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?e.reduce((e,t)=>e+t,0)/e.length:0}case`min`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.min(...e):null}case`max`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e)));return e.length>0?Math.max(...e):null}case`first`:return a.length>0?a[0]:null;case`last`:return a.length>0?a[a.length-1]:null;case`median`:{let e=a.map(e=>typeof e==`number`?e:Number.parseFloat(String(e))).filter(e=>!Number.isNaN(e)).sort((e,t)=>e-t);if(e.length===0)return null;let t=Math.floor(e.length/2);return e.length%2==0?(e[t-1]+e[t])/2:e[t]}case`mode`:{let e=new Map;for(let t of a){let n=String(t);e.set(n,(e.get(n)||0)+1)}let t=0,n=null;for(let[r,i]of e)i>t&&(t=i,n=r);return n}case`cardinality`:return new Set(a.map(e=>String(e))).size;case`values`:return a.map(e=>String(e)).join(`|`);case`distinct_values`:return[...new Set(a.map(e=>String(e)))].sort().join(`|`);case`all`:if(e.length===0)return!0;for(let t of e)if(!R(t,i,n))return!1;return!0;case`any`:for(let t of e)if(R(t,i,n))return!0;return!1;default:return null}}function ee(e,t,n={}){let r=v();for(let i of t)_(r,i.alias,z(e,i,n));return r}async function te(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan agg: no aggregation expression
|
|
@@ -58,7 +58,7 @@ import{t as e}from"./chunk-B74TABJS-DlbqoTuk.mjs";import{a as t,i as n,n as r,o
|
|
|
58
58
|
`,exitCode:1};o=a[0].headers}let c=[];for(let{headers:e,data:t}of a)for(let n of t){let t=v();for(let r of o)_(t,r,e.includes(r)?n[r]:``);c.push(t)}return{stdout:h(o,c),stderr:``,exitCode:0}}async function Pe(t,n){let r=``,i=[],a=!1,o=!1,s=[];for(let e=0;e<t.length;e++){let n=t[e];(n===`-s`||n===`--select`)&&e+1<t.length?i=t[++e].split(`,`):n===`-v`||n===`--invert`?a=!0:n===`-i`||n===`--ignore-case`?o=!0:n===`-r`||n===`--regex`||n.startsWith(`-`)||(r?s.push(n):r=n)}if(!r)return{stdout:``,stderr:`xan search: no pattern specified
|
|
59
59
|
`,exitCode:1};let{headers:c,data:l,error:u}=await g(s,n);if(u)return u;let d=i.length>0?i:c,f;try{f=e(r,o?`i`:``)}catch{return{stdout:``,stderr:`xan search: invalid regex pattern '${r}'
|
|
60
60
|
`,exitCode:1}}return{stdout:h(c,l.filter(e=>{let t=d.some(t=>{let n=e[t];return n!=null&&f.test(String(n))});return a?!t:t})),stderr:``,exitCode:0}}async function Fe(e,t){let n=``,r=[];for(let t of e)t.startsWith(`-`)||(n?r.push(t):n=t);if(!n)return{stdout:``,stderr:`xan flatmap: no expression specified
|
|
61
|
-
`,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Ie(e,t){let{cmdView:n}=await import(`./xan-view-OW2TB7Z3-
|
|
61
|
+
`,exitCode:1};let{headers:i,data:a,error:o}=await g(r,t);if(o)return o;let s=C(n).map(({expr:e,name:t})=>({alias:typeof t==`string`?t:t[0],ast:F(e)})),c={limits:t.limits?{maxIterations:t.limits.maxJqIterations}:void 0},l=[...i,...s.map(e=>e.alias)],u=[];for(let e of a){let t=[],n=1;for(let r of s){let i=d(e,r.ast,c),a=i.length>0&&Array.isArray(i[0])?i[0]:i;t.push(a),n=Math.max(n,a.length)}for(let r=0;r<n;r++){let n=y(e);for(let e=0;e<s.length;e++){let i=t[e][r]??null;_(n,s[e].alias,i)}u.push(n)}}return{stdout:h(l,u),stderr:``,exitCode:0}}async function Ie(e,t){let{cmdView:n}=await import(`./xan-view-OW2TB7Z3-Oo5v6Y-1.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Le=new Set([`agg`,`behead`,`cat`,`count`,`dedup`,`drop`,`enum`,`explode`,`f`,`filter`,`fixlengths`,`flatmap`,`flatten`,`fmt`,`frequency`,`freq`,`from`,`groupby`,`head`,`headers`,`implode`,`join`,`map`,`merge`,`partition`,`pivot`,`rename`,`reverse`,`sample`,`search`,`select`,`shuffle`,`slice`,`sort`,`split`,`stats`,`tail`,`to`,`top`,`transform`,`transpose`,`view`,...Q]),$={name:`xan`,summary:`CSV toolkit for data manipulation`,usage:`xan <COMMAND> [OPTIONS] [FILE]`,description:`xan is a collection of commands for working with CSV data.
|
|
62
62
|
It provides a simple, ergonomic interface for common data operations.
|
|
63
63
|
|
|
64
64
|
COMMANDS:
|
|
@@ -137,4 +137,4 @@ EXAMPLES:
|
|
|
137
137
|
`,exitCode:1}:{stdout:``,stderr:`xan: unknown command '${n}'
|
|
138
138
|
Run 'xan --help' for usage.
|
|
139
139
|
`,exitCode:1}}}},Be={name:`xan`,flags:[],stdinType:`text`,needsArgs:!0};export{Be as n,ze as t};
|
|
140
|
-
//# sourceMappingURL=chunk-3BS5SKQH-
|
|
140
|
+
//# sourceMappingURL=chunk-3BS5SKQH-BgobawvM.mjs.map
|