@inkeep/open-knowledge 0.8.0-beta.8 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alias-JE7RI5QX-DvXqsNuT.mjs +1 -0
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +5 -3
- package/dist/{awk2-POPGKRAI-DSmUTUD5.mjs → awk2-POPGKRAI-DjdS5H9u.mjs} +1 -1
- package/dist/{banner-ewegHsSq.mjs → banner-D39r_H1d.mjs} +1 -1
- package/dist/{base64-4YMZCVJ5-BwzgfP6J.mjs → base64-4YMZCVJ5-KM4zCU91.mjs} +1 -1
- package/dist/{basename-AA2KJYZQ-CTXbUPI9.mjs → basename-AA2KJYZQ-623KrTZh.mjs} +1 -1
- package/dist/bash-IJWYRKFO-Czh-Vt61.mjs +1 -0
- package/dist/{build-BZeImWox.mjs → build-CHU3LuiR.mjs} +1 -1
- package/dist/build-DxnNKCqf.mjs +1 -0
- package/dist/{cat-RDUMLXKC-BA4E-6jM.mjs → cat-RDUMLXKC-BcPFfXNy.mjs} +1 -1
- package/dist/{chmod-SYMGL4JA-DqrztDS_.mjs → chmod-SYMGL4JA-DNQ-_FB-.mjs} +1 -1
- package/dist/{chokidar-DkLjLiwY.mjs → chokidar-CblsKfnx.mjs} +1 -1
- package/dist/{chunk-3ZUFRYJ4-DJGI-ol3.mjs → chunk-3ZUFRYJ4-C93H8j0V.mjs} +1 -1
- package/dist/{chunk-4GTNDTRF-DLfmDsTz.mjs → chunk-4GTNDTRF-_OVmXcJ-.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-Do18aeKJ.mjs → chunk-4HHKTUW3-Dm69hDaZ.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-BC5DMmtl.mjs → chunk-4Q4SM6WR-DDQRsilN.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-BkiwXNts.mjs → chunk-55VFSPNA-DVZfQAzN.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-DxXSmS6b.mjs → chunk-5QVNJEHU-BvsipSFW.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-CxAvX_p_.mjs → chunk-5V6VZH6T-BCr5_GDF.mjs} +2 -2
- package/dist/{chunk-62RKD26F-DFxm_wsk.mjs → chunk-62RKD26F-CBIDfuTL.mjs} +2 -2
- package/dist/{chunk-64BAICW3-CbWqy6AU.mjs → chunk-64BAICW3-CTJNEx4Q.mjs} +2 -2
- package/dist/{chunk-74CEPOFO-Ce6zfZno.mjs → chunk-74CEPOFO-D1bzz49u.mjs} +1 -1
- package/dist/{chunk-7L36YK2X-B9iPLZYF.mjs → chunk-7L36YK2X-RiPZFKaV.mjs} +1 -1
- package/dist/{chunk-7TSDKFEO-Clyycgm6.mjs → chunk-7TSDKFEO-a-GUGBTu.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-KpVaWQZk.mjs → chunk-A4HU7SVR-hefV_YmW.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-DZdE_RBM.mjs → chunk-A4JSPFCI-v5lUtffG.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-BSl75Gzh.mjs → chunk-A65PWWJC-D7J5l9eq.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-CI4JCXh0.mjs → chunk-A7A2DBEE-PLfkXLI4.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-BzesEh8O.mjs → chunk-A7ICOL4V-Drb3XsEL.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-DryLwDJN.mjs → chunk-ALLTKNUZ-BMiTDN50.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-ghqP5RjQ.mjs → chunk-APT7OOP2-CXHnSuct.mjs} +2 -2
- package/dist/{chunk-BBXLRYSX-CBa2upXR.mjs → chunk-BBXLRYSX-DHx5dxhT.mjs} +2 -2
- package/dist/{chunk-BRGMQKJV-BFUsD38L.mjs → chunk-BRGMQKJV-CUNiOrRZ.mjs} +3 -3
- package/dist/{chunk-CR5AFCPT-CaGcSJNH.mjs → chunk-CR5AFCPT-BWXo8X-o.mjs} +2 -2
- package/dist/{chunk-D4J545R4-39tfGEas.mjs → chunk-D4J545R4-C8nMOauR.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-B0H0ZE0g.mjs → chunk-D6CWQ5DW-Cik2LGX1.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-DjGAq771.mjs → chunk-D7MEQ3VN-Csvth_Ss.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-2hAkTSsi.mjs → chunk-DCAAORBQ-BdrR5ttw.mjs} +2 -2
- package/dist/{chunk-EEXR5ZDP-CqRIzSRf.mjs → chunk-EEXR5ZDP-C5AJH114.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-BNKZIY4Y.mjs → chunk-EIZGF4BS-8bsVXqW0.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-C6mQ92-8.mjs → chunk-F23WWYKW-DST0dB7V.mjs} +2 -2
- package/dist/{chunk-F55TLFGB-Ch4EQu4J.mjs → chunk-F55TLFGB-oTuag-aK.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-BrH2kwP5.mjs → chunk-GCTKCWKD-Deqi1D_N.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-Cjp7e-4Y.mjs → chunk-GOV5EKKI-i-yw_7Ty.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-DfpAAE3t.mjs → chunk-GXVXFKBA-993FoPmq.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-oo03cv9O.mjs → chunk-HDQ56CKY-pGV4pOJA.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-BX2ngisD.mjs → chunk-HJQJAYMS-Ci3vsKQW.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-B2veqSYo.mjs → chunk-HJWBQKYG-UZig4wUt.mjs} +2 -2
- package/dist/{chunk-HWBSOZZR-BK04cmy7.mjs → chunk-HWBSOZZR-LxiTl7Bc.mjs} +3 -3
- package/dist/{chunk-HWKDQ44K-D-Y0sZAA.mjs → chunk-HWKDQ44K-CPSjqtR_.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-BPQZMhwo.mjs → chunk-I57KEIP3-DwNGEmJW.mjs} +1 -1
- package/dist/{chunk-J642UCRS-DXUFHVvX.mjs → chunk-J642UCRS-DuJ82Ao2.mjs} +1 -1
- package/dist/{chunk-JVPRLUMK-CLwH0uCX.mjs → chunk-JVPRLUMK-DnQCNjpq.mjs} +2 -2
- package/dist/{chunk-KMEYNNUA-DGQRus36.mjs → chunk-KMEYNNUA-DfdK88O_.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-DQF3ekov.mjs → chunk-LL3S3NLB-DxXgE3kY.mjs} +2 -2
- package/dist/{chunk-LPQPILI2-unxmYj-H.mjs → chunk-LPQPILI2-CfDX1Tyv.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-Bj3GMNey.mjs → chunk-LTZRCH7N-GAjTFNwG.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-DmdrV1En.mjs → chunk-LWEGUNWT-BALY4RLC.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-DM-9Iq67.mjs → chunk-MDDMCKUK-BrBgeH_z.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-iT7NLOSj.mjs → chunk-MDLLFABN-oBQf6bGE.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-CoXvnzFl.mjs → chunk-MHTUABJP-dKmK6Hw7.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-C_Ew6iFJ.mjs → chunk-MIZPJHVH-D3ET6RI_.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-D0cew-4g.mjs → chunk-MLXIYONF-dOe6Iqcc.mjs} +1 -1
- package/dist/{chunk-MYE6AGBJ-Ba0ek4dq.mjs → chunk-MYE6AGBJ-B4pRo9ma.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-BjY7nf_U.mjs → chunk-NAERJDUW-CYdostkt.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-BfpDmYta.mjs → chunk-NCNPKYJZ-BFGan4lR.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-CTmaNmMV.mjs → chunk-NUYSJFDK-CU1FKadr.mjs} +2 -2
- package/dist/{chunk-NYQYO467-De27bHHh.mjs → chunk-NYQYO467-DUxnOnNG.mjs} +2 -2
- package/dist/{chunk-OARHFVLG-B7qGh_d9.mjs → chunk-OARHFVLG-CpUL83N9.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-JsUybhKc.mjs → chunk-OCLXQMOG-LAs82g00.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-DxqjLuBg.mjs → chunk-OCS6LSEM-y5pQiBQp.mjs} +2 -2
- package/dist/{chunk-OL3S66CO-5k30myjg.mjs → chunk-OL3S66CO-DjFShiWt.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-DjO83anU.mjs → chunk-PBXLG62G-CU755yEQ.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-BT5CrRx8.mjs → chunk-PP6PSHAB-DMC_XCfO.mjs} +1 -1
- package/dist/{chunk-PYSFUGCK-Sp2cHHMB.mjs → chunk-PYSFUGCK-CY7pclEB.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-CKprjJi1.mjs → chunk-QCDB2VPH-D1RuXtOm.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-DAJDwVLZ.mjs → chunk-QJ7O6ZN3-BH67tCjg.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-BhmoPD7w.mjs → chunk-R6QSAL5T-CtbJTvt9.mjs} +1 -1
- package/dist/{chunk-RPNGRAAP-C2BHhnew.mjs → chunk-RPNGRAAP-BughPjdR.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-B0K39uOy.mjs → chunk-SDNKECQQ-C3GEf3VZ.mjs} +2 -2
- package/dist/{chunk-SYMJJMQ4-BHTQ9-zw.mjs → chunk-SYMJJMQ4-tl6Dz6VW.mjs} +1 -1
- package/dist/{chunk-T56QNPHK-Cm6aWFiU.mjs → chunk-T56QNPHK-Dzjonwlk.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-BQSN0_NC.mjs → chunk-TLSUDHID-DYvzalvd.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-CyB5ygtc.mjs → chunk-TOMNU26N-DYqwg_75.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-hJoWF3in.mjs → chunk-TXBZCHCQ-l48TczF5.mjs} +2 -2
- package/dist/{chunk-UNYNJIFU-C1ZMf296.mjs → chunk-UNYNJIFU-B6KF1Gqq.mjs} +3 -3
- package/dist/{chunk-V7TAPXDL-CbyQ432v.mjs → chunk-V7TAPXDL-CnKUp2df.mjs} +2 -2
- package/dist/{chunk-VJFXDYWH-Ju3YsoA8.mjs → chunk-VJFXDYWH-IiUXkKX0.mjs} +2 -2
- package/dist/{chunk-VLGZJRPG-dvgMu0oq.mjs → chunk-VLGZJRPG-ChVasMna.mjs} +1 -1
- package/dist/{chunk-VOBGTVA6-CpbDs1cF.mjs → chunk-VOBGTVA6-BT7gUxqf.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-COBa4MtL.mjs → chunk-VYOJP4TV-BvibOnKG.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-9cXM_L_4.mjs → chunk-WKFATFPP-DCZdrA8x.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-CvfqmCuM.mjs → chunk-X2AJGDEF-BaH6i1Rq.mjs} +1 -1
- package/dist/{chunk-XKQRETAK-Bbdvongf.mjs → chunk-XKQRETAK-cVWA9gEB.mjs} +2 -2
- package/dist/{chunk-XORM457F-BzpdJr6h.mjs → chunk-XORM457F-BlSrSdGX.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-C2xS3KJO.mjs → chunk-XVDPCNWR-CtK-Xs2O.mjs} +2 -2
- package/dist/{chunk-YCFVLTST-B0tITlai.mjs → chunk-YCFVLTST-uJkMN44i.mjs} +2 -2
- package/dist/{chunk-YFG2CMIF-Cz08u2O6.mjs → chunk-YFG2CMIF-DYVCRkoM.mjs} +1 -1
- package/dist/{chunk-YS3AZT3J-WmJwXHQO.mjs → chunk-YS3AZT3J-DqU1hDNV.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-CUlXw32O.mjs → chunk-YTNYSM6T-ChSQxUVG.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-4l180K8r.mjs → chunk-Z6LRHWXI-CEAGkbzj.mjs} +1 -1
- package/dist/{chunk-Z7JVV2SM-BUdEAZMZ.mjs → chunk-Z7JVV2SM-BzR-yvwK.mjs} +2 -2
- package/dist/{clear-5CZ5X4YR-BEwl4_C9.mjs → clear-5CZ5X4YR-DQDNPZFX.mjs} +1 -1
- package/dist/cli.d.mts +5 -1
- package/dist/cli.mjs +45 -44
- package/dist/{column-WLPMMSTS-D0xWkTwB.mjs → column-WLPMMSTS-D7ZdQMYX.mjs} +1 -1
- package/dist/{comm-5SLSESQG-xUt6OU03.mjs → comm-5SLSESQG-D314YMTX.mjs} +1 -1
- package/dist/config-schema.json +21 -1
- package/dist/config.project-local.schema.json +5 -1
- package/dist/config.user.schema.json +21 -1
- package/dist/constants-76Uvqjmy.mjs +2 -0
- package/dist/{cp-XOYR4ABJ-X7H6YMBY.mjs → cp-XOYR4ABJ-BoeqT96E.mjs} +1 -1
- package/dist/{curl-47BFPSFW-Di93oHWG.mjs → curl-47BFPSFW-CseKVLFy.mjs} +2 -2
- package/dist/{cut-OPC3VAGB-CwS5RcsW.mjs → cut-OPC3VAGB-BduNLBmG.mjs} +1 -1
- package/dist/{date-DD7FVA2V-Dbk2XkK5.mjs → date-DD7FVA2V-CXtS-UgC.mjs} +1 -1
- package/dist/diff-HJF2MPDN-BIBcfzYf.mjs +1 -0
- package/dist/{dirname-LEMTZZFS-BT_ZAIuL.mjs → dirname-LEMTZZFS-y-nYlas9.mjs} +1 -1
- package/dist/dist-CL9tjej4.mjs +1 -0
- package/dist/{dist-h073CA-s.mjs → dist-DUA-uDSk.mjs} +249 -110
- package/dist/{dist-bundle-BSdjl7Rj.mjs → dist-bundle-BK4P1EQn.mjs} +1 -1
- package/dist/dist-bundle-CjV1Pdeo.mjs +1 -0
- package/dist/{du-WO2ENHXQ-VqOjFaSA.mjs → du-WO2ENHXQ-DxBFDhE9.mjs} +1 -1
- package/dist/echo-O45JWWI2-D2qFOnG-.mjs +1 -0
- package/dist/env-5EPCWSXR-3enSMuUq.mjs +1 -0
- package/dist/{esm-BbkJd7ro.mjs → esm-s2X3YAg-.mjs} +1 -1
- package/dist/{execAsync-BvlEgtAU.mjs → execAsync-0jii24p9.mjs} +1 -1
- package/dist/{execAsync-CXON0DWd.mjs → execAsync-Czqc-yAz.mjs} +1 -1
- package/dist/{execAsync-JPnR_wx1.mjs → execAsync-DgmLXmTx.mjs} +1 -1
- package/dist/{expand-DTNXU4LQ-DBWQTk0V.mjs → expand-DTNXU4LQ-ByrWF7LC.mjs} +1 -1
- package/dist/expr-5T3UU5KE-DslbMHGH.mjs +1 -0
- package/dist/file-ZIGAJ4YS-5ydJB32I.mjs +1 -0
- package/dist/find-TPUOAIUQ-B-6hQsZ1.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44-BWjM15GF.mjs +2 -0
- package/dist/{fold-LDSORVYE-DA4LkSBA.mjs → fold-LDSORVYE-BcrX-J9k.mjs} +1 -1
- package/dist/{getMachineId-bsd-Bv-VsEyc.mjs → getMachineId-bsd-BCJXEJCn.mjs} +2 -2
- package/dist/{getMachineId-bsd-CWLhAjUn.mjs → getMachineId-bsd-D7C80Q-x.mjs} +2 -2
- package/dist/{getMachineId-bsd-VWU2b38Z.mjs → getMachineId-bsd-GIcY1fmf.mjs} +2 -2
- package/dist/{getMachineId-darwin-BhzfDfjK.mjs → getMachineId-darwin-C9wsuHP1.mjs} +2 -2
- package/dist/{getMachineId-darwin-DGlWH8bP.mjs → getMachineId-darwin-D9y6ky_l.mjs} +2 -2
- package/dist/{getMachineId-darwin-DvOo46Q9.mjs → getMachineId-darwin-DG876t7S.mjs} +2 -2
- package/dist/{getMachineId-linux-CDvTv3pB.mjs → getMachineId-linux-BJESQahL.mjs} +2 -2
- package/dist/{getMachineId-linux-ROmYpdDb.mjs → getMachineId-linux-Bt9mk0EE.mjs} +2 -2
- package/dist/{getMachineId-linux-CCJsqLNI.mjs → getMachineId-linux-D9atImpV.mjs} +2 -2
- package/dist/{getMachineId-unsupported-DPtt_3fd.mjs → getMachineId-unsupported-DAbsbHrs.mjs} +2 -2
- package/dist/{getMachineId-unsupported-ejON9VjP.mjs → getMachineId-unsupported-Dabs3aBp.mjs} +2 -2
- package/dist/{getMachineId-unsupported-BkIyKQdM.mjs → getMachineId-unsupported-cApRznzG.mjs} +2 -2
- package/dist/{getMachineId-win-D3tcWjnb.mjs → getMachineId-win-1MPHaim9.mjs} +2 -2
- package/dist/{getMachineId-win-DmRv23KP.mjs → getMachineId-win-CH98qgwX.mjs} +2 -2
- package/dist/{getMachineId-win-WiGlM2s-.mjs → getMachineId-win-CU_iAQo9.mjs} +2 -2
- package/dist/gh-detect-DIxiI-Um.mjs +4 -0
- package/dist/git-handle-BJwB5EBp-D5YTDzvd.mjs +1 -0
- package/dist/git-handle-uz8TUFSi-BRV63-ar.mjs +10 -0
- package/dist/grep-3AIAIJVR-Gk5ggptS.mjs +1 -0
- package/dist/gzip-AQXSGOVS-DVhom50G.mjs +1 -0
- package/dist/{head-HT2B6D2J-SGgQuBJe.mjs → head-HT2B6D2J-ahSJqSiq.mjs} +1 -1
- package/dist/help-VVWX7SA5-DWuklTmV.mjs +1 -0
- package/dist/history-J4QRNGRO-DF-FzAzf.mjs +1 -0
- package/dist/{hostname-BK6HG2DE-JGVS1ppF.mjs → hostname-BK6HG2DE-BduSSI6z.mjs} +1 -1
- package/dist/html-to-markdown-TFCECAGV-Dyh1D0fg.mjs +1 -0
- package/dist/index.d.mts +64 -17
- package/dist/index.mjs +1 -1
- package/dist/init-BXz-SZwQ.mjs +1 -0
- package/dist/init-C-YMpYNY.mjs +281 -0
- package/dist/{join-GG2LDHE5-JRj0ouRV.mjs → join-GG2LDHE5-DbbozPoG.mjs} +1 -1
- package/dist/jq-ODXZBPLY-DDNFO29H.mjs +1 -0
- package/dist/{js-exec-M6UR76J5-DXM3rg6y.mjs → js-exec-M6UR76J5-Cw-W_H_2.mjs} +4 -4
- package/dist/{lib-Bp6oCBmn.mjs → lib-Dl2j2VNl.mjs} +1 -1
- package/dist/{libesm-Cfo1LhlX.mjs → libesm-B_qVEpZ1.mjs} +1 -1
- package/dist/{ln-4TRFBYAT-oOs-iS2Z.mjs → ln-4TRFBYAT-D-c9GUlv.mjs} +1 -1
- package/dist/{loader-CcKCJIs1.mjs → loader-BS97KMJd.mjs} +3 -3
- package/dist/loader-DuFZD8NM.mjs +1 -0
- package/dist/ls-KSXFZCWH-Cpvwn_RB.mjs +1 -0
- package/dist/{lzma-BhiA9VHg.mjs → lzma-BSHkPrAt.mjs} +1 -1
- package/dist/mcp-migrate-event-BF8ILHwp.mjs +2 -0
- package/dist/md5sum-INMIK4DX-ysJE_fRH.mjs +1 -0
- package/dist/mkdir-TDEMSB6C-Doj-uc1V.mjs +1 -0
- package/dist/mv-Z6MORUFL-CB3JJwR7.mjs +1 -0
- package/dist/{nl-U5YJDM32-DeUWi7jL.mjs → nl-U5YJDM32-DNpHPr0D.mjs} +1 -1
- package/dist/{od-VJEF2UR5-5IUCoJ8z.mjs → od-VJEF2UR5-CU4HUmLC.mjs} +1 -1
- package/dist/{open-browser-DKQcpNx8.mjs → open-browser-C6LU_1mt.mjs} +1 -1
- package/dist/paste-7N6AFSDS-CRLhW5JD.mjs +1 -0
- package/dist/preview-C6QYNQW4.mjs +1 -0
- package/dist/{preview-DcW99r1W.mjs → preview-v_FnHM1p.mjs} +2 -2
- package/dist/printf-CX64KX2P-BRDA91sv.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-DeW1i47n.js → ActivityModeContent-74fud2PX.js} +2 -2
- package/dist/public/assets/{ConsentDialogBody-CueZnjSB.js → ConsentDialogBody-CGOr8j6S.js} +1 -1
- package/dist/public/assets/DocumentContext-D0hMZvqt.js +58 -0
- package/dist/public/assets/{GraphPanel-MybfqBCo.js → GraphPanel-CAKYBrh_.js} +2 -2
- package/dist/public/assets/{McpConsentDialogBody-BK75h2_n.js → McpConsentDialogBody-zLI2c1sC.js} +1 -1
- package/dist/public/assets/SettingsDialogBody-CA5IZw_a.js +7 -0
- package/dist/public/assets/SourceEditor-Y1rYp83q.js +2 -0
- package/dist/public/assets/{_baseFor-CVV1DSgL.js → _baseFor-B3FCzyNW.js} +1 -1
- package/dist/public/assets/agent-presence-DxGcS3q2.js +1 -0
- package/dist/public/assets/{arc-DoxD41WW.js → arc-GOD6SLHR.js} +1 -1
- package/dist/public/assets/architecture-YZFGNWBL-B2pJrg2X.js +1 -0
- package/dist/public/assets/{architectureDiagram-Q4EWVU46-Umhu0V8h.js → architectureDiagram-Q4EWVU46-CIVh0TLx.js} +1 -1
- package/dist/public/assets/{blockDiagram-DXYQGD6D-C1_NJWhg.js → blockDiagram-DXYQGD6D-Cg-UHasz.js} +1 -1
- package/dist/public/assets/{c4Diagram-AHTNJAMY-Bi89hr0b.js → c4Diagram-AHTNJAMY-KFeHAAOO.js} +1 -1
- package/dist/public/assets/channel-BqqURnVG.js +1 -0
- package/dist/public/assets/{chunk-2KRD3SAO-uai9wz3V.js → chunk-2KRD3SAO-ChBquZUZ.js} +1 -1
- package/dist/public/assets/{chunk-336JU56O-Dw21nEIl.js → chunk-336JU56O-DHqaXNrn.js} +2 -2
- package/dist/public/assets/chunk-426QAEUC-CuPmuy8t.js +1 -0
- package/dist/public/assets/{chunk-4BX2VUAB-BTctgoF3.js → chunk-4BX2VUAB-Dagml-_v.js} +1 -1
- package/dist/public/assets/{chunk-4TB4RGXK-Dzo903ee.js → chunk-4TB4RGXK-QLafKs7A.js} +1 -1
- package/dist/public/assets/chunk-55IACEB6-BRPDx2aU.js +1 -0
- package/dist/public/assets/{chunk-5FUZZQ4R-BIiTrWwI.js → chunk-5FUZZQ4R-DoG5zk7O.js} +1 -1
- package/dist/public/assets/{chunk-5PVQY5BW-CPq9PJ04.js → chunk-5PVQY5BW--zDnbXdQ.js} +1 -1
- package/dist/public/assets/{chunk-67CJDMHE-DiSIolj4.js → chunk-67CJDMHE-BDDJCVvR.js} +1 -1
- package/dist/public/assets/{chunk-7N4EOEYR-Yp7Nf16N.js → chunk-7N4EOEYR-DcM-tXJf.js} +1 -1
- package/dist/public/assets/{chunk-AA7GKIK3--s2NNuet.js → chunk-AA7GKIK3-CIk9DOam.js} +1 -1
- package/dist/public/assets/{chunk-BSJP7CBP-BrRqu__W.js → chunk-BSJP7CBP-CC13npHT.js} +1 -1
- package/dist/public/assets/{chunk-CIAEETIT-BUzaopy6.js → chunk-CIAEETIT-B7rpgB3I.js} +1 -1
- package/dist/public/assets/{chunk-EDXVE4YY-CHezIzxM.js → chunk-EDXVE4YY-BfT15Ufb.js} +1 -1
- package/dist/public/assets/{chunk-ENJZ2VHE-BEqGi6Ge.js → chunk-ENJZ2VHE-DEtEhITq.js} +1 -1
- package/dist/public/assets/{chunk-FMBD7UC4-DEzvlUl3.js → chunk-FMBD7UC4-DXl_nUYs.js} +1 -1
- package/dist/public/assets/{chunk-FOC6F5B3-BtjWNx10.js → chunk-FOC6F5B3-wEKzMqND.js} +1 -1
- package/dist/public/assets/{chunk-ICPOFSXX-qb0R443H.js → chunk-ICPOFSXX-C8AElYY_.js} +2 -2
- package/dist/public/assets/{chunk-K5T4RW27-CfU2wPmV.js → chunk-K5T4RW27-DcJgbIMU.js} +1 -1
- package/dist/public/assets/{chunk-KGLVRYIC-BV1pDifD.js → chunk-KGLVRYIC-kNC4I9ls.js} +1 -1
- package/dist/public/assets/{chunk-LIHQZDEY-C40dIbib.js → chunk-LIHQZDEY-B0zYcYPV.js} +1 -1
- package/dist/public/assets/{chunk-ORNJ4GCN-8cFqvOFf.js → chunk-ORNJ4GCN-S_3Y_0FS.js} +1 -1
- package/dist/public/assets/{chunk-OYMX7WX6-Dtqc9bJK.js → chunk-OYMX7WX6-CX3nrwxJ.js} +1 -1
- package/dist/public/assets/chunk-QZHKN3VN-CTZ4su3-.js +1 -0
- package/dist/public/assets/{chunk-U2HBQHQK-CQLzJTzg.js → chunk-U2HBQHQK-CfAyyLJz.js} +1 -1
- package/dist/public/assets/{chunk-X2U36JSP-Ckk8Si9X.js → chunk-X2U36JSP-CmACymAN.js} +1 -1
- package/dist/public/assets/{chunk-XPW4576I-CLO5Bb_q.js → chunk-XPW4576I-D1s3NdKZ.js} +1 -1
- package/dist/public/assets/{chunk-YZCP3GAM-D01ONOQf.js → chunk-YZCP3GAM-CiWxV9XS.js} +1 -1
- package/dist/public/assets/{chunk-ZZ45TVLE-iYlFrL8a.js → chunk-ZZ45TVLE-B7t5_MqN.js} +1 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-DrN_pUa5.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-C1MJ1Ukt.js +1 -0
- package/dist/public/assets/clone-CecJCxEU.js +1 -0
- package/dist/public/assets/config-validation-events-CpTwSaaY.js +12 -0
- package/dist/public/assets/{cose-bilkent-S5V4N54A-6FB6GAoi.js → cose-bilkent-S5V4N54A-BjJ-OKPr.js} +1 -1
- package/dist/public/assets/{dagre-BawjCOce.js → dagre-BuFRtOcC.js} +1 -1
- package/dist/public/assets/{dagre-KV5264BT-DiqfdMLu.js → dagre-KV5264BT-BpBW6R71.js} +1 -1
- package/dist/public/assets/{diagram-5BDNPKRD-C2HFWivb.js → diagram-5BDNPKRD-B5phtkJp.js} +1 -1
- package/dist/public/assets/{diagram-G4DWMVQ6-fU1Grx9M.js → diagram-G4DWMVQ6-tjReW6yx.js} +1 -1
- package/dist/public/assets/{diagram-MMDJMWI5-Dew67RHi.js → diagram-MMDJMWI5-b4CgKryF.js} +1 -1
- package/dist/public/assets/{diagram-TYMM5635-Bs72rW03.js → diagram-TYMM5635-D5B0g2lj.js} +1 -1
- package/dist/public/assets/{dist-4Gx7SLsd.js → dist-CadHdAvi.js} +1 -1
- package/dist/public/assets/{dist-CVgnIZoV.js → dist-CdAufVHw.js} +1 -1
- package/dist/public/assets/{dist-C7UlNfyl.js → dist-Cwt7KtW7.js} +1 -1
- package/dist/public/assets/{dist-DNUHV99F.js → dist-DRBAXDc3.js} +1 -1
- package/dist/public/assets/{dist-BxWfPtC6.js → dist-DkR43q3h.js} +1 -1
- package/dist/public/assets/{dist-DDdDbjlC.js → dist-sw9fzKjM.js} +1 -1
- package/dist/public/assets/{dist-CpBY4tsd.js → dist-y5PvfJVO.js} +1 -1
- package/dist/public/assets/{erDiagram-SMLLAGMA-VRRm4B7K.js → erDiagram-SMLLAGMA-CRJz10Jv.js} +1 -1
- package/dist/public/assets/{flatten-DFiFicpD.js → flatten-BWAerz3O.js} +1 -1
- package/dist/public/assets/{flowDiagram-DWJPFMVM-Q_gtUOx-.js → flowDiagram-DWJPFMVM-BDCJTgJ7.js} +1 -1
- package/dist/public/assets/{ganttDiagram-T4ZO3ILL-zrPBnw3N.js → ganttDiagram-T4ZO3ILL-cPQKlGYc.js} +1 -1
- package/dist/public/assets/gitGraph-7Q5UKJZL-BMann5g7.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-EX3kOeOG.js → gitGraphDiagram-UUTBAWPF-BMyjc352.js} +1 -1
- package/dist/public/assets/{graphlib-CZnU8zlt.js → graphlib-BU8FnRz1.js} +1 -1
- package/dist/public/assets/index-CUIPiS16.css +1 -0
- package/dist/public/assets/index-DsiNPb9w.js +1914 -0
- package/dist/public/assets/info-OMHHGYJF-CKMkwFH6.js +1 -0
- package/dist/public/assets/{infoDiagram-42DDH7IO-eyKsqOVi.js → infoDiagram-42DDH7IO-BZ6v5y-j.js} +1 -1
- package/dist/public/assets/{isEmpty-gGVpRSDa.js → isEmpty-Cairwk5V.js} +1 -1
- package/dist/public/assets/isSymbol-BKUBGC2u.js +1 -0
- package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-k-QHjesL.js → ishikawaDiagram-UXIWVN3A-DA7_P2Up.js} +1 -1
- package/dist/public/assets/{journeyDiagram-VCZTEJTY-Cvl0YdFw.js → journeyDiagram-VCZTEJTY-CzZoB161.js} +1 -1
- package/dist/public/assets/{kanban-definition-6JOO6SKY-Dcm2fJo0.js → kanban-definition-6JOO6SKY-DKg7pXv1.js} +1 -1
- package/dist/public/assets/{line-CcNx577i.js → line-DGc-MCyQ.js} +1 -1
- package/dist/public/assets/{linear-faBQNtcz.js → linear-D6wzOaQP.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CFsvu03i.js → mermaid-parser.core-Bm2u0Ges.js} +2 -2
- package/dist/public/assets/{mermaid.core-B_sYDyB7.js → mermaid.core-DRx0wZe0.js} +3 -3
- package/dist/public/assets/{mindmap-definition-QFDTVHPH-DN1InlYG.js → mindmap-definition-QFDTVHPH-C9GRZxO6.js} +1 -1
- package/dist/public/assets/{now-D_m-3Vjm.js → now-BN_Nj6nz.js} +1 -1
- package/dist/public/assets/{ordinal-BLFwWMHf.js → ordinal-Dk6d5Y-0.js} +1 -1
- package/dist/public/assets/packet-4T2RLAQJ-DXn_0fd3.js +1 -0
- package/dist/public/assets/pie-ZZUOXDRM-BdZBZPW9.js +1 -0
- package/dist/public/assets/{pieDiagram-DEJITSTG-CfGSJlNk.js → pieDiagram-DEJITSTG-L6I3ft9Z.js} +1 -1
- package/dist/public/assets/prop-types-vr6qWjMf.js +500 -0
- package/dist/public/assets/{propagation-api-CobBjsTC.js → propagation-api-3kmMXRwS.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-34T5L4WZ-C81SZKqU.js → quadrantDiagram-34T5L4WZ-Dp2IeEPC.js} +1 -1
- package/dist/public/assets/radar-PYXPWWZC-yUE2OrUV.js +1 -0
- package/dist/public/assets/{reduce-DmI60TfL.js → reduce-CSWSFqzz.js} +1 -1
- package/dist/public/assets/{requirementDiagram-MS252O5E-B3GaR6ry.js → requirementDiagram-MS252O5E-BxNWyIZg.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-XADWPNL6-Cnw0G0jm.js → sankeyDiagram-XADWPNL6-CRn0_xkw.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-FGHM5R23-CmtiFMPf.js → sequenceDiagram-FGHM5R23-Drkjb1j4.js} +1 -1
- package/dist/public/assets/{src-DOAilbaA.js → src-DZeiyxTL.js} +1 -1
- package/dist/public/assets/{stateDiagram-FHFEXIEX-YrnzMnvb.js → stateDiagram-FHFEXIEX-BBUFKS0u.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-BtYsWsIg.js +1 -0
- package/dist/public/assets/{target-navigation-intent-DBwiHDPG.js → target-navigation-intent-BTTe7RwN.js} +1 -1
- package/dist/public/assets/{telemetry-impl-BiwhAvRS.js → telemetry-impl-DPRMO_b_.js} +2 -2
- package/dist/public/assets/{timeline-definition-GMOUNBTQ-BNvHUVoa.js → timeline-definition-GMOUNBTQ-CLoe9y-z.js} +1 -1
- package/dist/public/assets/toggle-group-BKjtvTFY.js +1 -0
- package/dist/public/assets/treeView-SZITEDCU-BjJ_gnFc.js +1 -0
- package/dist/public/assets/treemap-W4RFUUIX-DiV984fD.js +1 -0
- package/dist/public/assets/typing-burst-detector-RJxLgd3M.js +2 -0
- package/dist/public/assets/{vennDiagram-DHZGUBPP--cd7swWt.js → vennDiagram-DHZGUBPP-q2zdiy4F.js} +1 -1
- package/dist/public/assets/wardley-RL74JXVD-DbPCtCHV.js +1 -0
- package/dist/public/assets/{wardleyDiagram-NUSXRM2D-CMZwcIpy.js → wardleyDiagram-NUSXRM2D-Njg6YHso.js} +1 -1
- package/dist/public/assets/{xychartDiagram-5P7HB3ND-DI9blb-P.js → xychartDiagram-5P7HB3ND-Ct8Wgp45.js} +1 -1
- package/dist/public/index.html +23 -26
- package/dist/pwd-D4OZ7N27-DOBMwDAQ.mjs +1 -0
- package/dist/{python3-AUFTPCU6-Dq9xUUBq.mjs → python3-AUFTPCU6-C02r6EXI.mjs} +3 -3
- package/dist/readlink-MI4GCHJF-C7jxdmka.mjs +1 -0
- package/dist/{repair-launch-json-CQqAUGg3.mjs → repair-launch-json-CgdePX8D.mjs} +2 -2
- package/dist/repair-mcp-configs-BMbDnGra.mjs +2 -0
- package/dist/{repair-skills-BmAa1apA.mjs → repair-skills-B0MyM-S8.mjs} +2 -2
- package/dist/repair-skills-B75azgiA.mjs +1 -0
- package/dist/{rev-XOSYPP45-BrX3RY1o.mjs → rev-XOSYPP45-BrzxRIO9.mjs} +1 -1
- package/dist/rg-FOQSCCX3-D0ctWk6O.mjs +1 -0
- package/dist/rm-RTZG23RL-DZt78fCD.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-CJJKrOdm.mjs +1 -0
- package/dist/schemas/v0/config.project-local.schema.json +5 -1
- package/dist/schemas/v0/config.user.schema.json +21 -1
- package/dist/{sed-VFTTATXJ-DbqskjHs.mjs → sed-VFTTATXJ-Cv8KiT35.mjs} +1 -1
- package/dist/seq-RN5ZUASB-BD6p5vId.mjs +1 -0
- package/dist/server-lock-BIY3RMaC-CfCHCMTe.mjs +2 -0
- package/dist/server-lock-v2ktHD7l-C-3wEnoU.mjs +1 -0
- package/dist/sha1sum-VJPNLNU6-DukJfnER.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-QlLE_NGo.mjs +1 -0
- package/dist/{sleep-VZFPZFWA-By_skETk.mjs → sleep-VZFPZFWA-gwZmptDS.mjs} +1 -1
- package/dist/sort-DCNRDA7U-Bnmzizlk.mjs +1 -0
- package/dist/{split-SITCSYCZ-C3JRw7ww.mjs → split-SITCSYCZ-NsOC8k0n.mjs} +1 -1
- package/dist/{sqlite3-56UMWEY3-DaCjOzpq.mjs → sqlite3-56UMWEY3-D2ymLPIL.mjs} +1 -1
- package/dist/src-BomuiQtB.mjs +2 -0
- package/dist/start-BOBY1H-7.mjs +1 -0
- package/dist/start-D2Uxztu5.mjs +3 -0
- package/dist/stat-BT5A227F-Di81wqB8.mjs +1 -0
- package/dist/strings-7PLOGTPD-DKTG3t3M.mjs +1 -0
- package/dist/{tac-SJGXQ4T2-CSwW7a_8.mjs → tac-SJGXQ4T2-CMuGqDl5.mjs} +1 -1
- package/dist/tail-S5ULNTJU-CxhswWhX.mjs +1 -0
- package/dist/{tar-ANUBEFJY-BIVb0c7i.mjs → tar-ANUBEFJY-BajYpRKO.mjs} +1 -1
- package/dist/tee-O7VXZDCO-DwJ0hUpW.mjs +1 -0
- package/dist/time-DEUO3QV2-W5vzutuD.mjs +1 -0
- package/dist/{timeout-VRKMCG72-Vpzd_EzJ.mjs → timeout-VRKMCG72-wW3XOtt7.mjs} +1 -1
- package/dist/touch-DX2IJOQ4-C7eGjNGd.mjs +1 -0
- package/dist/tr-2HXZRDSW-DlafN6SW.mjs +1 -0
- package/dist/tree-LYXBS7DC-Ou8JkGQ1.mjs +1 -0
- package/dist/true-WHJNXCHG-B4B4ZHqp.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-D6xZmTWp.mjs +1 -0
- package/dist/uniq-SUNANL47-Ce9L4IzE.mjs +1 -0
- package/dist/wc-TQB3VNOX-dwG38U4n.mjs +1 -0
- package/dist/which-XZHEH76L-Cw9SQliE.mjs +1 -0
- package/dist/whoami-DGKU3D2X-hzRI9gvz.mjs +1 -0
- package/dist/{write-project-skill-VpMfcqZu.mjs → write-project-skill-grQBEqMb.mjs} +2 -2
- package/dist/xan-BXDXYEIB-loWv9Mk3.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-8Lt55NoE.mjs +1 -0
- package/dist/xargs-I6EZUCYF-CG6axhMW.mjs +1 -0
- package/dist/yazl-CJayzk0b.mjs +1 -0
- package/dist/yazl-DjRp4wSy.mjs +2 -0
- package/dist/yq-MJMAR36V-CsEAtdgj.mjs +1 -0
- package/package.json +4 -1
- package/dist/alias-JE7RI5QX-CAVgalv7.mjs +0 -1
- package/dist/bash-IJWYRKFO-CSBfp75s.mjs +0 -1
- package/dist/build-B4ZT2GMK.mjs +0 -1
- package/dist/constants-D7XfXxlD.mjs +0 -2
- package/dist/diff-HJF2MPDN-fNt2f91n.mjs +0 -1
- package/dist/dist-DIChSlVj.mjs +0 -1
- package/dist/dist-bundle-BmF5_Mcp.mjs +0 -1
- package/dist/echo-O45JWWI2-C-3bei5r.mjs +0 -1
- package/dist/env-5EPCWSXR-DoYioOMQ.mjs +0 -1
- package/dist/expr-5T3UU5KE-BhfN9y59.mjs +0 -1
- package/dist/file-ZIGAJ4YS-DJbeP4p1.mjs +0 -1
- package/dist/find-TPUOAIUQ-CczmrVYd.mjs +0 -1
- package/dist/flag-coverage-QT4N2Z44-CRPgxYXl.mjs +0 -2
- package/dist/git-handle-CjyGVy33-CK0dYQ8y.mjs +0 -10
- package/dist/git-handle-CjyGVy33-DVACqhWk.mjs +0 -1
- package/dist/grep-3AIAIJVR-BNFrRnPp.mjs +0 -1
- package/dist/gzip-AQXSGOVS-Ch_VPnFG.mjs +0 -1
- package/dist/help-VVWX7SA5-9Ykrc3HE.mjs +0 -1
- package/dist/history-J4QRNGRO-CaZeA5kN.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-BG8DWXFH.mjs +0 -1
- package/dist/init-DPYAS2ZD.mjs +0 -409
- package/dist/init-DpZclUms.mjs +0 -1
- package/dist/jq-ODXZBPLY-DHB9kbWU.mjs +0 -1
- package/dist/loader-CfsvAEk9.mjs +0 -1
- package/dist/ls-KSXFZCWH-CQHD37jl.mjs +0 -1
- package/dist/md5sum-INMIK4DX-BDAIIDt4.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-Lwjy9N0j.mjs +0 -1
- package/dist/mv-Z6MORUFL-DgTIQxj0.mjs +0 -1
- package/dist/paste-7N6AFSDS-BnArAq5a.mjs +0 -1
- package/dist/preview-BMr8C3lA.mjs +0 -1
- package/dist/printf-CX64KX2P-BByztiUk.mjs +0 -1
- package/dist/public/assets/DocumentContext-CwBWJ4Ks.js +0 -58
- package/dist/public/assets/SettingsDialogBody-Cs-Oet1Z.js +0 -7
- package/dist/public/assets/SourceEditor-z6339Mj3.js +0 -2
- package/dist/public/assets/agent-presence-4UV17fwS.js +0 -1
- package/dist/public/assets/architecture-YZFGNWBL-C7rs88Cj.js +0 -1
- package/dist/public/assets/channel-CQ2zxNG5.js +0 -1
- package/dist/public/assets/chunk-426QAEUC-CJ_7mg4w.js +0 -1
- package/dist/public/assets/chunk-55IACEB6-dtXOOCuI.js +0 -1
- package/dist/public/assets/chunk-QZHKN3VN-Bz4XrtbS.js +0 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-BsQynKQW.js +0 -1
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-Cnv0Fq8M.js +0 -1
- package/dist/public/assets/clone-CsuuW-bg.js +0 -1
- package/dist/public/assets/config-validation-events-D7jOmIYr.js +0 -12
- package/dist/public/assets/cursor-f-dht0b0.js +0 -1
- package/dist/public/assets/dist-BkI3xKU4.js +0 -1
- package/dist/public/assets/dropdown-menu-DL6A5saL.js +0 -1
- package/dist/public/assets/gitGraph-7Q5UKJZL-Bmgp5n-M.js +0 -1
- package/dist/public/assets/index-C5PBW8hb.css +0 -1
- package/dist/public/assets/index-M15V0jry.js +0 -1914
- package/dist/public/assets/info-OMHHGYJF-DCMX4pS_.js +0 -1
- package/dist/public/assets/isSymbol-D0ur5y-p.js +0 -1
- package/dist/public/assets/packet-4T2RLAQJ-DveBhlQF.js +0 -1
- package/dist/public/assets/pie-ZZUOXDRM-yiLyabeZ.js +0 -1
- package/dist/public/assets/prop-types-CuXJaENL.js +0 -500
- package/dist/public/assets/radar-PYXPWWZC-D8GV_2fZ.js +0 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-CboeXSIo.js +0 -1
- package/dist/public/assets/toggle-group-BNXCmF3n.js +0 -1
- package/dist/public/assets/treeView-SZITEDCU-A2Cj-I1J.js +0 -1
- package/dist/public/assets/treemap-W4RFUUIX-uOn6xcZK.js +0 -1
- package/dist/public/assets/typing-burst-detector-BbezQD9h.js +0 -2
- package/dist/public/assets/wardley-RL74JXVD-DrTPuxUO.js +0 -1
- package/dist/pwd-D4OZ7N27-CEyHiqxC.mjs +0 -1
- package/dist/readlink-MI4GCHJF-DrjzDETr.mjs +0 -1
- package/dist/repair-mcp-configs-FiLhomCw.mjs +0 -2
- package/dist/repair-skills-B8s2RCRZ.mjs +0 -1
- package/dist/rg-FOQSCCX3-COS6uwJc.mjs +0 -1
- package/dist/rm-RTZG23RL-CVB8AHY5.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-BPMg1E7n.mjs +0 -1
- package/dist/rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs +0 -2
- package/dist/seq-RN5ZUASB-xObuoCwd.mjs +0 -1
- package/dist/server-lock-BniQ3qki-CadPGoZN.mjs +0 -2
- package/dist/server-lock-BniQ3qki-DjKtnzVr.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-CtzyEkCD.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-CXUzEmYp.mjs +0 -1
- package/dist/sort-DCNRDA7U-DEjrctZD.mjs +0 -1
- package/dist/src-rVQIvNz2.mjs +0 -2
- package/dist/start-Cvvkb00d.mjs +0 -1
- package/dist/start-DV6SnYRI.mjs +0 -3
- package/dist/stat-BT5A227F-DTrBFTFt.mjs +0 -1
- package/dist/strings-7PLOGTPD-jFq6v5Kd.mjs +0 -1
- package/dist/tail-S5ULNTJU-EJIXiVsh.mjs +0 -1
- package/dist/tee-O7VXZDCO-7YBB40m-.mjs +0 -1
- package/dist/time-DEUO3QV2-DL-cn0eZ.mjs +0 -1
- package/dist/touch-DX2IJOQ4-BsGLHPhC.mjs +0 -1
- package/dist/tr-2HXZRDSW-CQc1dvVn.mjs +0 -1
- package/dist/tree-LYXBS7DC-BKP2eqPA.mjs +0 -1
- package/dist/true-WHJNXCHG-DuLihQOR.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-8kSHk86g.mjs +0 -1
- package/dist/uniq-SUNANL47--vTI7SnC.mjs +0 -1
- package/dist/wc-TQB3VNOX-DiOuiJK4.mjs +0 -1
- package/dist/which-XZHEH76L-Di_vxpS1.mjs +0 -1
- package/dist/whoami-DGKU3D2X-BDh4nuof.mjs +0 -1
- package/dist/xan-BXDXYEIB-xeeBU-41.mjs +0 -1
- package/dist/xan-view-ECQUO7AJ-Bp_uMGUB.mjs +0 -1
- package/dist/xargs-I6EZUCYF-Xyb7Erje.mjs +0 -1
- package/dist/yq-MJMAR36V-BM8HTxRY.mjs +0 -1
- /package/dist/{expansion-ENLSRCXJ-DRm2UiGT.mjs → expansion-ENLSRCXJ-ZEK-CtLJ.mjs} +0 -0
- /package/dist/public/assets/{ActivityPanelDiffView-DgtknSgX.js → ActivityPanelDiffView-LNHry3BJ.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-sCjVW6Bj.js → __vite-browser-external-Bet_nOzq.js} +0 -0
- /package/dist/public/assets/{array-COEOjKUv.js → array-DfeqBzds.js} +0 -0
- /package/dist/public/assets/{checkbox-DoU3OXGx.js → checkbox-CBMLW0iM.js} +0 -0
- /package/dist/public/assets/{colors-D6LRuSY-.js → colors-CuFmRbNJ.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-4jw_vW_Q.js → cytoscape.esm-C3hcpWGW.js} +0 -0
- /package/dist/public/assets/{defaultLocale-CoF2cqkH.js → defaultLocale-CmG7Nywc.js} +0 -0
- /package/dist/public/assets/{dist-Bog19bCH.js → dist-GFox5lpz.js} +0 -0
- /package/dist/public/assets/{go-wMvjCq97.js → go-BjDSeE19.js} +0 -0
- /package/dist/public/assets/{init-8GNx5phc.js → init-D-V7N9g_.js} +0 -0
- /package/dist/public/assets/{isObjectLike-DFnkciUU.js → isObjectLike-HLvQwJYx.js} +0 -0
- /package/dist/public/assets/{katex-qwlL5fSd.js → katex-DX-tM4Fr.js} +0 -0
- /package/dist/public/assets/{label-XH11jREQ.js → label-DCMZaJ38.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-CijO54Jd.js → mcp-consent-store-19Boxoxe.js} +0 -0
- /package/dist/public/assets/{min-BiwsSkbB.js → min-CHzARyU6.js} +0 -0
- /package/dist/public/assets/{path-C-grg3CZ.js → path-Bf8MP5yP.js} +0 -0
- /package/dist/public/assets/{pdf-CtJiipL_.js → pdf-wFLJduM2.js} +0 -0
- /package/dist/public/assets/{pdf.worker-BZq-wJdz.js → pdf.worker-CP44mBOj.js} +0 -0
- /package/dist/public/assets/{project-paths-CsGHlmFh.js → project-paths-eyh51nmQ.js} +0 -0
- /package/dist/public/assets/{rough.esm-DDK-gphn.js → rough.esm-Di0388iR.js} +0 -0
- /package/dist/public/assets/{shell-DdhS5_h8.js → shell-184Lov7C.js} +0 -0
- /package/dist/public/assets/{src-L3wpjxBL.js → src-Dz70a8sm.js} +0 -0
- /package/dist/public/assets/{stex-J8UMaf7u.js → stex-DxnLy7rA.js} +0 -0
- /package/dist/public/assets/{textarea-Bt3y5Hxz.js → textarea-C_bHQrXh.js} +0 -0
- /package/dist/public/assets/{trace-api-3dczfLSc.js → trace-api-CiCjX4Sz.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-BSTW6KzM.js → w3c-keyname-B5t0fahT.js} +0 -0
|
@@ -2,4 +2,4 @@ async function e(e,t){let n=`octal`,r=[],i=[];for(let t=0;t<e.length;t++){let a=
|
|
|
2
2
|
`,exitCode:1}}}let o=r.includes(`char`);function s(e){return e===0?` \\0`:e===7?` \\a`:e===8?` \\b`:e===9?` \\t`:e===10?` \\n`:e===11?` \\v`:e===12?` \\f`:e===13?` \\r`:e>=32&&e<127?` ${String.fromCharCode(e)}`:` ${e.toString(8).padStart(3,`0`)}`}function c(e){return o?` ${e.toString(16).padStart(2,`0`)}`:` ${e.toString(16).padStart(2,`0`)}`}function l(e){return` ${e.toString(8).padStart(3,`0`)}`}let u=[];for(let e of a)u.push(e.charCodeAt(0));let d=[];for(let e=0;e<u.length;e+=16){let t=u.slice(e,e+16);for(let i=0;i<r.length;i++){let a=r[i],o;o=a===`char`?t.map(s):a===`hex`?t.map(c):t.map(l);let u=``;i===0&&n!==`none`?u=`${e.toString(8).padStart(7,`0`)} `:(i>0||n===`none`)&&(u=n===`none`?``:` `),d.push(u+o.join(``))}}return n!==`none`&&u.length>0&&d.push(u.length.toString(8).padStart(7,`0`)),{stdout:d.length>0?`${d.join(`
|
|
3
3
|
`)}
|
|
4
4
|
`:``,stderr:``,exitCode:0}}var t={name:`od`,execute:e},n={name:`od`,flags:[{flag:`-c`,type:`boolean`},{flag:`-A`,type:`value`,valueHint:`string`},{flag:`-t`,type:`value`,valueHint:`string`},{flag:`-N`,type:`value`,valueHint:`number`}],stdinType:`text`,needsFiles:!0};export{n,t};
|
|
5
|
-
//# sourceMappingURL=chunk-PP6PSHAB-
|
|
5
|
+
//# sourceMappingURL=chunk-PP6PSHAB-DMC_XCfO.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`unexpand`,summary:`convert spaces to tabs`,usage:`unexpand [OPTION]... [FILE]...`,description:`Convert blanks in each FILE to TABs, writing to standard output. If no FILE is specified, standard input is read.`,options:[`-t N Use N spaces per tab (default: 8)`,`-t LIST Use comma-separated list of tab stops`,`-a Convert all sequences of blanks (not just leading)`],examples:[`unexpand file.txt # Convert leading spaces to tabs`,`unexpand -a file.txt # Convert all space sequences`,`unexpand -t 4 file.txt # Use 4-space tabs`]};function i(e){let t=e.split(`,`).map(e=>e.trim()),n=[];for(let e of t){let t=parseInt(e,10);if(Number.isNaN(t)||t<1)return null;n.push(t)}for(let e=1;e<n.length;e++)if(n[e]<=n[e-1])return null;return n}function a(e,t){if(t.length===1){let n=t[0];return e+(n-e%n)}for(let n of t)if(n>e)return n;if(t.length>=2){let n=t[t.length-1]-t[t.length-2],r=t[t.length-1];return r+(Math.floor((e-r)/n)+1)*n}return-1}function o(e,t){let{tabStops:n,allBlanks:r}=t,i=``,o=0,s=``,c=0,l=!0,u=()=>{if(s.length===0)return;let e=c+s.length;if(!r&&!l){i+=s,s=``;return}let t=c,o=``;for(;t<e;){let r=a(t,n);if(r<=e&&r>t)o+=` `,t=r;else break}let u=e-t;u>0&&(o+=` `.repeat(u)),i+=o,s=``};for(let t of e)t===` `?(s.length===0&&(c=o),s+=t,o++):t===` `?(u(),i+=t,o=a(o,n)):(u(),i+=t,o++,l=!1);return u(),i}function s(e,t){if(e===``)return``;let n=e.split(`
|
|
2
2
|
`),r=e.endsWith(`
|
|
3
3
|
`)&&n[n.length-1]===``;return r&&n.pop(),n.map(e=>o(e,t)).join(`
|
|
4
4
|
`)+(r?`
|
|
@@ -8,4 +8,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-Ce6zfZno.mjs";var r={name:`une
|
|
|
8
8
|
`};c.tabStops=e,u+=2}else if(t.startsWith(`--tabs=`)){let e=i(t.slice(7));if(!e)return{exitCode:1,stdout:``,stderr:`unexpand: invalid tab size: '${t.slice(7)}'
|
|
9
9
|
`};c.tabStops=e,u++}else if(t===`-a`||t===`--all`)c.allBlanks=!0,u++;else if(t===`--`){l.push(...a.slice(u+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`unexpand`,t);l.push(t),u++}}let d=``;if(l.length===0)d=s(o.stdin??``,c);else for(let e of l){let t=o.fs.resolvePath(o.cwd,e),n=await o.fs.readFile(t);if(n===null)return{exitCode:1,stdout:d,stderr:`unexpand: ${e}: No such file or directory
|
|
10
10
|
`};d+=s(n,c)}return{exitCode:0,stdout:d,stderr:``}}},l={name:`unexpand`,flags:[{flag:`-t`,type:`value`,valueHint:`number`},{flag:`-a`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{c as n,l as t};
|
|
11
|
-
//# sourceMappingURL=chunk-PYSFUGCK-
|
|
11
|
+
//# sourceMappingURL=chunk-PYSFUGCK-CY7pclEB.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`rev`,summary:`reverse lines characterwise`,usage:`rev [file ...]`,description:`Copies the specified files to standard output, reversing the order of characters in every line. If no files are specified, standard input is read.`,examples:[`echo 'hello' | rev # Output: olleh`,`rev file.txt # Reverse each line in file`]};function i(e){return Array.from(e).reverse().join(``)}var a={name:`rev`,execute:async(a,o)=>{if(n(a))return t(r);let s=[];for(let t of a)if(t===`--`){let e=a.indexOf(t);s.push(...a.slice(e+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`rev`,t);s.push(t)}let c=``,l=e=>{let t=e.split(`
|
|
2
2
|
`),n=e.endsWith(`
|
|
3
3
|
`)&&t[t.length-1]===``;return n&&t.pop(),t.map(i).join(`
|
|
4
4
|
`)+(n?`
|
|
5
5
|
`:``)};if(s.length===0)c=l(o.stdin??``);else for(let e of s)if(e===`-`){let e=o.stdin??``;c+=l(e)}else{let t=o.fs.resolvePath(o.cwd,e),n=await o.fs.readFile(t);if(n===null)return{exitCode:1,stdout:c,stderr:`rev: ${e}: No such file or directory
|
|
6
6
|
`};c+=l(n)}return{exitCode:0,stdout:c,stderr:``}}},o={name:`rev`,flags:[],stdinType:`text`,needsFiles:!0};export{a as n,o as t};
|
|
7
|
-
//# sourceMappingURL=chunk-QCDB2VPH-
|
|
7
|
+
//# sourceMappingURL=chunk-QCDB2VPH-D1RuXtOm.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var r={name:`base64`,summary:`base64 encode/decode data and print to standard output`,usage:`base64 [OPTION]... [FILE]`,options:[`-d, --decode decode data`,`-w, --wrap=COLS wrap encoded lines after COLS character (default 76, 0 to disable)`,` --help display this help and exit`]},i={decode:{short:`d`,long:`decode`,type:`boolean`},wrap:{short:`w`,long:`wrap`,type:`number`,default:76}};async function a(e,t,n){if(t.length===0||t.length===1&&t[0]===`-`)return{ok:!0,data:Uint8Array.from(e.stdin,e=>e.charCodeAt(0))};let r=[];for(let i of t){if(i===`-`){r.push(Uint8Array.from(e.stdin,e=>e.charCodeAt(0)));continue}try{let t=e.fs.resolvePath(e.cwd,i),n=await e.fs.readFileBuffer(t);r.push(n)}catch{return{ok:!1,error:{stdout:``,stderr:`${n}: ${i}: No such file or directory
|
|
2
2
|
`,exitCode:1}}}}let i=r.reduce((e,t)=>e+t.length,0),a=new Uint8Array(i),o=0;for(let e of r)a.set(e,o),o+=e.length;return{ok:!0,data:a}}var o={name:`base64`,async execute(o,s){if(t(o))return e(r);let c=n(`base64`,o,i);if(!c.ok)return c.error;let l=c.result.flags.decode,u=c.result.flags.wrap,d=c.result.positional;try{if(l){let e=await a(s,d,`base64`);if(!e.ok)return e.error;if(typeof Buffer<`u`){let t=Buffer.from(e.data).toString(`utf8`).replace(/\s/g,``);return{stdout:Buffer.from(t,`base64`).toString(`latin1`),stderr:``,exitCode:0,stdoutEncoding:`binary`}}let t=String.fromCharCode(...e.data).replace(/\s/g,``);return{stdout:atob(t),stderr:``,exitCode:0,stdoutEncoding:`binary`}}let e=await a(s,d,`base64`);if(!e.ok)return e.error;let t;if(t=typeof Buffer<`u`?Buffer.from(e.data).toString(`base64`):btoa(String.fromCharCode(...e.data)),u>0){let e=[];for(let n=0;n<t.length;n+=u)e.push(t.slice(n,n+u));t=e.join(`
|
|
3
3
|
`)+(t.length>0?`
|
|
4
4
|
`:``)}return{stdout:t,stderr:``,exitCode:0}}catch{return{stdout:``,stderr:`base64: invalid input
|
|
5
5
|
`,exitCode:1}}}},s={name:`base64`,flags:[{flag:`-d`,type:`boolean`},{flag:`-w`,type:`value`,valueHint:`number`}],stdinType:`text`,needsFiles:!0};export{s as n,o as t};
|
|
6
|
-
//# sourceMappingURL=chunk-QJ7O6ZN3-
|
|
6
|
+
//# sourceMappingURL=chunk-QJ7O6ZN3-BH67tCjg.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var e={name:`true`,async execute(){return{stdout:``,stderr:``,exitCode:0}}},t={name:`false`,async execute(){return{stdout:``,stderr:``,exitCode:1}}},n={name:`true`,flags:[]},r={name:`false`,flags:[]};export{t as i,r as n,n as r,e as t};
|
|
2
|
-
//# sourceMappingURL=chunk-R6QSAL5T-
|
|
2
|
+
//# sourceMappingURL=chunk-R6QSAL5T-CtbJTvt9.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var r={name:`du`,summary:`estimate file space usage`,usage:`du [OPTION]... [FILE]...`,options:[`-a write counts for all files, not just directories`,`-h print sizes in human readable format`,`-s display only a total for each argument`,`-c produce a grand total`,`--max-depth=N print total for directory only if N or fewer levels deep`,` --help display this help and exit`]},i={allFiles:{short:`a`,type:`boolean`},humanReadable:{short:`h`,type:`boolean`},summarize:{short:`s`,type:`boolean`},grandTotal:{short:`c`,type:`boolean`},maxDepth:{long:`max-depth`,type:`number`}},a={name:`du`,async execute(a,o){if(t(a))return e(r);let l=n(`du`,a,i);if(!l.ok)return l.error;let u={allFiles:l.result.flags.allFiles,humanReadable:l.result.flags.humanReadable,summarize:l.result.flags.summarize,grandTotal:l.result.flags.grandTotal,maxDepth:l.result.flags.maxDepth??null},d=l.result.positional;d.length===0&&d.push(`.`);let f=``,p=``,m=0;for(let e of d){let t=o.fs.resolvePath(o.cwd,e);try{await o.fs.stat(t);let n=await s(o,t,e,u,0);f+=n.output,m+=n.totalSize,p+=n.stderr}catch{p+=`du: cannot access '${e}': No such file or directory
|
|
2
2
|
`}}return u.grandTotal&&d.length>0&&(f+=`${c(m,u.humanReadable)} total
|
|
3
3
|
`),{stdout:f,stderr:p,exitCode:p?1:0}}},o=1e3;async function s(e,t,n,r,i){let a={output:``,totalSize:0,stderr:``};if(i>o)return a;try{let o=await e.fs.stat(t);if(!o.isDirectory)return a.totalSize=o.size,(r.allFiles||i===0)&&(a.output=c(o.size,r.humanReadable)+` `+n+`
|
|
4
4
|
`),a;let l=0,u=[];if(e.fs.readdirWithFileTypes){let n=await e.fs.readdirWithFileTypes(t),r=n.filter(e=>e.isFile),i=n.filter(e=>e.isDirectory);for(let n=0;n<r.length;n+=100){let i=r.slice(n,n+100),a=await Promise.all(i.map(async n=>{let r=t===`/`?`/${n.name}`:`${t}/${n.name}`;try{let t=await e.fs.stat(r);return{name:n.name,isDirectory:!1,size:t.size}}catch{return{name:n.name,isDirectory:!1,size:0}}}));u.push(...a)}u.push(...i.map(e=>({name:e.name,isDirectory:!0})))}else{let n=await e.fs.readdir(t);for(let r=0;r<n.length;r+=100){let i=n.slice(r,r+100),a=await Promise.all(i.map(async n=>{let r=t===`/`?`/${n}`:`${t}/${n}`;try{let t=await e.fs.stat(r);return{name:n,isDirectory:t.isDirectory,size:t.isDirectory?void 0:t.size}}catch{return{name:n,isDirectory:!1,size:0}}}));u.push(...a)}}u.sort((e,t)=>e.name.localeCompare(t.name));let d=u.filter(e=>!e.isDirectory);for(let e of d){let t=e.size??0;if(l+=t,r.allFiles&&!r.summarize){let i=n===`.`?e.name:`${n}/${e.name}`;a.output+=c(t,r.humanReadable)+` `+i+`
|
|
5
5
|
`}}let f=u.filter(e=>e.isDirectory);for(let o=0;o<f.length;o+=100){let c=f.slice(o,o+100),u=await Promise.all(c.map(async a=>{let o=t===`/`?`/${a.name}`:`${t}/${a.name}`,c=n===`.`?a.name:`${n}/${a.name}`;return{name:a.name,result:await s(e,o,c,r,i+1)}}));u.sort((e,t)=>e.name.localeCompare(t.name));for(let{result:e}of u)l+=e.totalSize,r.summarize||(r.maxDepth===null||i+1<=r.maxDepth)&&(a.output+=e.output)}a.totalSize=l,(r.summarize||r.maxDepth===null||i<=r.maxDepth)&&(a.output+=`${c(l,r.humanReadable)} ${n}
|
|
6
6
|
`)}catch{a.stderr=`du: cannot read directory '${n}': Permission denied
|
|
7
7
|
`}return a}function c(e,t){return t?e<1024?`${e}`:e<1024*1024?`${(e/1024).toFixed(1)}K`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)}M`:`${(e/(1024*1024*1024)).toFixed(1)}G`:String(Math.ceil(e/1024)||1)}var l={name:`du`,flags:[{flag:`-a`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`--max-depth`,type:`value`,valueHint:`number`}],needsFiles:!0};export{l as n,a as t};
|
|
8
|
-
//# sourceMappingURL=chunk-RPNGRAAP-
|
|
8
|
+
//# sourceMappingURL=chunk-RPNGRAAP-BughPjdR.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-7L36YK2X-RiPZFKaV.mjs";var i={name:`cut`,summary:`remove sections from each line of files`,usage:`cut [OPTION]... [FILE]...`,options:[`-c LIST select only these characters`,`-d DELIM use DELIM instead of TAB for field delimiter`,`-f LIST select only these fields`,`-s, --only-delimited do not print lines without delimiters`,` --help display this help and exit`]};function a(e){let t=[],n=e.split(`,`);for(let e of n)if(e.includes(`-`)){let[n,r]=e.split(`-`);t.push({start:n?parseInt(n,10):1,end:r?parseInt(r,10):null})}else{let n=parseInt(e,10);t.push({start:n,end:n})}return t}function o(e,t){let n=[];for(let r of t){let t=r.start-1,i=r.end===null?e.length:r.end;for(let r=t;r<i&&r<e.length;r++)r>=0&&!n.includes(e[r])&&n.push(e[r])}return n}var s={name:`cut`,async execute(s,c){if(n(s))return t(i);let l=` `,u=null,d=null,f=!1,p=[];for(let t=0;t<s.length;t++){let n=s[t];if(n===`-d`)l=s[++t]||` `;else if(n.startsWith(`-d`))l=n.slice(2);else if(n===`-f`)u=s[++t];else if(n.startsWith(`-f`))u=n.slice(2);else if(n===`-c`)d=s[++t];else if(n.startsWith(`-c`))d=n.slice(2);else if(n===`-s`||n===`--only-delimited`)f=!0;else{if(n.startsWith(`--`))return e(`cut`,n);if(n.startsWith(`-`)){let t=!1;for(let e of n.slice(1))if(e===`s`)f=!0;else if(!`dfc`.includes(e)){t=!0;break}if(t)return e(`cut`,n)}else p.push(n)}}if(!u&&!d)return{stdout:``,stderr:`cut: you must specify a list of bytes, characters, or fields
|
|
2
2
|
`,exitCode:1};let m=await r(c,p,{cmdName:`cut`});if(!m.ok)return m.error;let h=m.content.split(`
|
|
3
3
|
`);h.length>0&&h[h.length-1]===``&&h.pop();let g=a(u||d||`1`),_=``;for(let e of h)if(d){let t=e.split(``),n=[];for(let e of g){let r=e.start-1,i=e.end===null?t.length:e.end;for(let e=r;e<i&&e<t.length;e++)e>=0&&n.push(t[e])}_+=`${n.join(``)}
|
|
4
4
|
`}else{if(f&&!e.includes(l))continue;let t=o(e.split(l),g);_+=`${t.join(l)}
|
|
5
5
|
`}return{stdout:_,stderr:``,exitCode:0,stdoutEncoding:`binary`}}},c={name:`cut`,flags:[{flag:`-d`,type:`value`,valueHint:`delimiter`},{flag:`-f`,type:`value`,valueHint:`string`},{flag:`-c`,type:`value`,valueHint:`string`},{flag:`-s`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{s as n,c as t};
|
|
6
|
-
//# sourceMappingURL=chunk-SDNKECQQ-
|
|
6
|
+
//# sourceMappingURL=chunk-SDNKECQQ-C3GEf3VZ.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-FK9Q3tQk.mjs";import{i as t}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{t as n}from"./chunk-44UOCSGV-CaFxJDHm.mjs";import{r,t as i}from"./chunk-74CEPOFO-
|
|
1
|
+
import{t as e}from"./chunk-FK9Q3tQk.mjs";import{i as t}from"./chunk-GFQRA5P5-DnjwTqP3.mjs";import{t as n}from"./chunk-44UOCSGV-CaFxJDHm.mjs";import{r,t as i}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as a,r as o}from"./chunk-EEXR5ZDP-C5AJH114.mjs";var s=e((e=>{(function(){var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return i(o(e),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}function i(e,r){var i=1,a=e.length,o,s=``,c,l,u,d,f,p,m,h;for(c=0;c<a;c++)if(typeof e[c]==`string`)s+=e[c];else if(typeof e[c]==`object`){if(u=e[c],u.keys)for(o=r[i],l=0;l<u.keys.length;l++){if(o==null)throw Error(n(`[sprintf] Cannot access property "%s" of undefined value "%s"`,u.keys[l],u.keys[l-1]));o=o[u.keys[l]]}else o=u.param_no?r[u.param_no]:r[i++];if(t.not_type.test(u.type)&&t.not_primitive.test(u.type)&&o instanceof Function&&(o=o()),t.numeric_arg.test(u.type)&&typeof o!=`number`&&isNaN(o))throw TypeError(n(`[sprintf] expecting number but found %T`,o));switch(t.number.test(u.type)&&(m=o>=0),u.type){case`b`:o=parseInt(o,10).toString(2);break;case`c`:o=String.fromCharCode(parseInt(o,10));break;case`d`:case`i`:o=parseInt(o,10);break;case`j`:o=JSON.stringify(o,null,u.width?parseInt(u.width):0);break;case`e`:o=u.precision?parseFloat(o).toExponential(u.precision):parseFloat(o).toExponential();break;case`f`:o=u.precision?parseFloat(o).toFixed(u.precision):parseFloat(o);break;case`g`:o=u.precision?String(Number(o.toPrecision(u.precision))):parseFloat(o);break;case`o`:o=(parseInt(o,10)>>>0).toString(8);break;case`s`:o=String(o),o=u.precision?o.substring(0,u.precision):o;break;case`t`:o=String(!!o),o=u.precision?o.substring(0,u.precision):o;break;case`T`:o=Object.prototype.toString.call(o).slice(8,-1).toLowerCase(),o=u.precision?o.substring(0,u.precision):o;break;case`u`:o=parseInt(o,10)>>>0;break;case`v`:o=o.valueOf(),o=u.precision?o.substring(0,u.precision):o;break;case`x`:o=(parseInt(o,10)>>>0).toString(16);break;case`X`:o=(parseInt(o,10)>>>0).toString(16).toUpperCase();break}t.json.test(u.type)?s+=o:(t.number.test(u.type)&&(!m||u.sign)?(h=m?`+`:`-`,o=o.toString().replace(t.sign,``)):h=``,f=u.pad_char?u.pad_char===`0`?`0`:u.pad_char.charAt(1):` `,p=u.width-(h+o).length,d=u.width&&p>0?f.repeat(p):``,s+=u.align?h+o+d:f===`0`?h+d+o:d+h+o)}return s}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var n=e,r,i=[],o=0;n;){if((r=t.text.exec(n))!==null)i.push(r[0]);else if((r=t.modulo.exec(n))!==null)i.push(`%`);else if((r=t.placeholder.exec(n))!==null){if(r[2]){o|=1;var s=[],c=r[2],l=[];if((l=t.key.exec(c))!==null)for(s.push(l[1]);(c=c.substring(l[0].length))!==``;)if((l=t.key_access.exec(c))!==null)s.push(l[1]);else if((l=t.index_access.exec(c))!==null)s.push(l[1]);else throw SyntaxError(`[sprintf] failed to parse named argument key`);else throw SyntaxError(`[sprintf] failed to parse named argument key`);r[2]=s}else o|=2;if(o===3)throw Error(`[sprintf] mixing positional and named placeholders is not (yet) supported`);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}else throw SyntaxError(`[sprintf] unexpected placeholder`);n=n.substring(r[0].length)}return a[e]=i}e!==void 0&&(e.sprintf=n,e.vsprintf=r),typeof window<`u`&&(window.sprintf=n,window.vsprintf=r,typeof define==`function`&&define.amd&&define(function(){return{sprintf:n,vsprintf:r}}))})()}))();function c(e,t,n){let r=new Date(t*1e3),i=``,a=0;for(;a<e.length;)if(e[a]===`%`&&a+1<e.length){let t=e[a+1],o=u(r,t,n);o===null?(i+=e[a],a++):(i+=o,a+=2)}else i+=e[a],a++;return i}function l(e,t){let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,weekday:`short`,hour12:!1,timeZone:t};try{let t=new Intl.DateTimeFormat(`en-US`,n).formatToParts(e),r=e=>t.find(t=>t.type===e)?.value??``,i=new Map([[`Sun`,0],[`Mon`,1],[`Tue`,2],[`Wed`,3],[`Thu`,4],[`Fri`,5],[`Sat`,6]]),a=r(`weekday`);return{year:Number.parseInt(r(`year`),10)||e.getFullYear(),month:Number.parseInt(r(`month`),10)||e.getMonth()+1,day:Number.parseInt(r(`day`),10)||e.getDate(),hour:Number.parseInt(r(`hour`),10)||e.getHours(),minute:Number.parseInt(r(`minute`),10)||e.getMinutes(),second:Number.parseInt(r(`second`),10)||e.getSeconds(),weekday:i.get(a)??e.getDay()}}catch{return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),weekday:e.getDay()}}}function u(e,t,n){let r=l(e,n),i=(e,t=2)=>String(e).padStart(t,`0`),a=p(r.year,r.month,r.day),o=m(r.year,r.month,r.day,r.weekday,0),s=m(r.year,r.month,r.day,r.weekday,1);switch(t){case`a`:return[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][r.weekday];case`A`:return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`][r.weekday];case`b`:case`h`:return[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][r.month-1];case`B`:return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`][r.month-1];case`c`:return`${[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][r.weekday]} ${[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][r.month-1]} ${String(r.day).padStart(2,` `)} ${i(r.hour)}:${i(r.minute)}:${i(r.second)} ${r.year}`;case`C`:return i(Math.floor(r.year/100));case`d`:return i(r.day);case`D`:return`${i(r.month)}/${i(r.day)}/${i(r.year%100)}`;case`e`:return String(r.day).padStart(2,` `);case`F`:return`${r.year}-${i(r.month)}-${i(r.day)}`;case`g`:return i(g(r.year,r.month,r.day)%100);case`G`:return String(g(r.year,r.month,r.day));case`H`:return i(r.hour);case`I`:return i(r.hour%12||12);case`j`:return String(a).padStart(3,`0`);case`k`:return String(r.hour).padStart(2,` `);case`l`:return String(r.hour%12||12).padStart(2,` `);case`m`:return i(r.month);case`M`:return i(r.minute);case`n`:return`
|
|
2
2
|
`;case`N`:return`000000000`;case`p`:return r.hour<12?`AM`:`PM`;case`P`:return r.hour<12?`am`:`pm`;case`r`:return`${i(r.hour%12||12)}:${i(r.minute)}:${i(r.second)} ${r.hour<12?`AM`:`PM`}`;case`R`:return`${i(r.hour)}:${i(r.minute)}`;case`s`:return String(Math.floor(e.getTime()/1e3));case`S`:return i(r.second);case`t`:return` `;case`T`:return`${i(r.hour)}:${i(r.minute)}:${i(r.second)}`;case`u`:return String(r.weekday===0?7:r.weekday);case`U`:return i(o);case`V`:return i(h(r.year,r.month,r.day));case`w`:return String(r.weekday);case`W`:return i(s);case`x`:return`${i(r.month)}/${i(r.day)}/${i(r.year%100)}`;case`X`:return`${i(r.hour)}:${i(r.minute)}:${i(r.second)}`;case`y`:return i(r.year%100);case`Y`:return String(r.year);case`z`:return d(e,n);case`Z`:return f(e,n);case`%`:return`%`;default:return null}}function d(e,t){if(!t){let t=-e.getTimezoneOffset(),n=t>=0?`+`:`-`,r=Math.floor(Math.abs(t)/60),i=Math.abs(t)%60;return`${n}${String(r).padStart(2,`0`)}${String(i).padStart(2,`0`)}`}try{let n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,timeZoneName:`longOffset`}).formatToParts(e).find(e=>e.type===`timeZoneName`);if(n){let e=n.value.match(/GMT([+-])(\d{2}):(\d{2})/);if(e)return`${e[1]}${e[2]}${e[3]}`;if(n.value===`GMT`||n.value===`UTC`)return`+0000`}}catch{}let n=-e.getTimezoneOffset(),r=n>=0?`+`:`-`,i=Math.floor(Math.abs(n)/60),a=Math.abs(n)%60;return`${r}${String(i).padStart(2,`0`)}${String(a).padStart(2,`0`)}`}function f(e,t){try{return new Intl.DateTimeFormat(`en-US`,{timeZone:t,timeZoneName:`short`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value??`UTC`}catch{return`UTC`}}function p(e,t,n){let r=[31,28,31,30,31,30,31,31,30,31,30,31];(e%4==0&&e%100!=0||e%400==0)&&(r[1]=29);let i=n;for(let e=0;e<t-1;e++)i+=r[e];return i}function m(e,t,n,r,i){let a=p(e,t,n),o=(new Date(e,0,1).getDay()-i+7)%7,s=(r-i+7)%7,c=a-1+o;return Math.floor((c-s+7)/7)}function h(e,t,n){let r=new Date(e,t-1,n,12,0,0);r.setDate(r.getDate()+3-(r.getDay()+6)%7);let i=new Date(r.getFullYear(),0,4);i.setDate(i.getDate()+3-(i.getDay()+6)%7);let a=r.getTime()-i.getTime();return 1+Math.round(a/(10080*60*1e3))}function g(e,t,n){let r=new Date(e,t-1,n,12,0,0);return r.setDate(r.getDate()+3-(r.getDay()+6)%7),r.getFullYear()}function _(e){let t=``,n=0;for(;n<e.length;){let r=e[n];if(r<128){t+=String.fromCharCode(r),n++;continue}if((r&224)==192){if(n+1<e.length&&(e[n+1]&192)==128&&r>=194){let i=(r&31)<<6|e[n+1]&63;t+=String.fromCharCode(i),n+=2;continue}t+=String.fromCharCode(r),n++;continue}if((r&240)==224){if(n+2<e.length&&(e[n+1]&192)==128&&(e[n+2]&192)==128){if(r===224&&e[n+1]<160){t+=String.fromCharCode(r),n++;continue}let i=(r&15)<<12|(e[n+1]&63)<<6|e[n+2]&63;if(i>=55296&&i<=57343){t+=String.fromCharCode(r),n++;continue}t+=String.fromCharCode(i),n+=3;continue}t+=String.fromCharCode(r),n++;continue}if((r&248)==240&&r<=244){if(n+3<e.length&&(e[n+1]&192)==128&&(e[n+2]&192)==128&&(e[n+3]&192)==128){if(r===240&&e[n+1]<144){t+=String.fromCharCode(r),n++;continue}let i=(r&7)<<18|(e[n+1]&63)<<12|(e[n+2]&63)<<6|e[n+3]&63;if(i>1114111){t+=String.fromCharCode(r),n++;continue}t+=String.fromCodePoint(i),n+=4;continue}t+=String.fromCharCode(r),n++;continue}t+=String.fromCharCode(r),n++}return t}var v={name:`printf`,summary:`format and print data`,usage:`printf [-v var] FORMAT [ARGUMENT...]`,options:[` -v var assign the output to shell variable VAR rather than display it`,` --help display this help and exit`],notes:[`FORMAT controls the output like in C printf.`,`Escape sequences: \\n (newline), \\t (tab), \\\\ (backslash)`,`Format specifiers: %s (string), %d (integer), %f (float), %x (hex), %o (octal), %% (literal %)`,`Width and precision: %10s (width 10), %.2f (2 decimal places), %010d (zero-padded)`,`Flags: %- (left-justify), %+ (show sign), %0 (zero-pad)`]},y={name:`printf`,async execute(e,a){if(i(e))return r(v);if(e.length===0)return{stdout:``,stderr:`printf: usage: printf format [arguments]
|
|
3
3
|
`,exitCode:2};let s=null,c=0;for(;c<e.length;){let t=e[c];if(t===`--`){c++;break}if(t===`-v`){if(c+1>=e.length)return{stdout:``,stderr:`printf: -v: option requires an argument
|
|
4
4
|
`,exitCode:1};if(s=e[c+1],!/^[a-zA-Z_][a-zA-Z0-9_]*(\[[a-zA-Z0-9_@*"'$]+\])?$/.test(s))return{stdout:``,stderr:`printf: \`${s}': not a valid identifier
|
|
@@ -12,4 +12,4 @@ import{t as e}from"./chunk-FK9Q3tQk.mjs";import{i as t}from"./chunk-GFQRA5P5-Dnj
|
|
|
12
12
|
`}}}}var S=!1;function C(e){S=!1;let t=e.trimStart(),n=t!==t.trimEnd();if(e=t.trimEnd(),e.startsWith(`'`)&&e.length>=2||e.startsWith(`"`)&&e.length>=2)return e.charCodeAt(1);if(e.startsWith(`\\'`)&&e.length>=3||e.startsWith(`\\"`)&&e.length>=3)return e.charCodeAt(2);if(e.startsWith(`+`)&&(e=e.slice(1)),e.startsWith(`0x`)||e.startsWith(`0X`)){let t=parseInt(e,16);return Number.isNaN(t)?(S=!0,0):(n&&(S=!0),t)}if(e.startsWith(`0`)&&e.length>1&&/^-?0[0-7]+$/.test(e))return n&&(S=!0),parseInt(e,8)||0;if(/^\d+#/.test(e)){S=!0;let t=e.match(/^(\d+)#/);return t?parseInt(t[1],10):0}if(e!==``&&!/^-?\d+$/.test(e)){S=!0;let t=parseInt(e,10);return Number.isNaN(t)?0:t}return n&&(S=!0),parseInt(e,10)||0}function w(e,t){let n=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[diu]$/);if(!n)return(0,s.sprintf)(e.replace(/\.\d*/,``),t);let r=n[1]||``,i=n[2]?parseInt(n[2],10):0,a=n[3]===void 0?-1:n[4]?parseInt(n[4],10):0,o=t<0,c=String(Math.abs(t));a>=0&&(c=c.padStart(a,`0`));let l=``;o?l=`-`:r.includes(`+`)?l=`+`:r.includes(` `)&&(l=` `);let u=l+c;return i>u.length&&(u=r.includes(`-`)?u.padEnd(i,` `):r.includes(`0`)&&a<0?l+c.padStart(i-l.length,`0`):u.padStart(i,` `)),u}function T(e,t){let n=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?o$/);if(!n)return(0,s.sprintf)(e,t);let r=n[1]||``,i=n[2]?parseInt(n[2],10):0,a=n[3]===void 0?-1:n[4]?parseInt(n[4],10):0,o=Math.abs(t).toString(8);a>=0&&(o=o.padStart(a,`0`)),r.includes(`#`)&&!o.startsWith(`0`)&&(o=`0${o}`);let c=o;return i>c.length&&(c=r.includes(`-`)?c.padEnd(i,` `):r.includes(`0`)&&a<0?c.padStart(i,`0`):c.padStart(i,` `)),c}function E(e,t){let n=e.includes(`X`),r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[xX]$/);if(!r)return(0,s.sprintf)(e,t);let i=r[1]||``,a=r[2]?parseInt(r[2],10):0,o=r[3]===void 0?-1:r[4]?parseInt(r[4],10):0,c=Math.abs(t).toString(16);n&&(c=c.toUpperCase()),o>=0&&(c=c.padStart(o,`0`));let l=``;i.includes(`#`)&&t!==0&&(l=n?`0X`:`0x`);let u=l+c;return a>u.length&&(u=i.includes(`-`)?u.padEnd(a,` `):i.includes(`0`)&&o<0?l+c.padStart(a-l.length,`0`):u.padStart(a,` `)),u}function D(e){if(e===``)return`''`;if(/^[a-zA-Z0-9_./-]+$/.test(e))return e;if(/[\x00-\x1f\x7f-\xff]/.test(e)){let t=`$'`;for(let n of e){let e=n.charCodeAt(0);n===`'`?t+=`\\'`:n===`\\`?t+=`\\\\`:n===`
|
|
13
13
|
`?t+=`\\n`:n===` `?t+=`\\t`:n===`\r`?t+=`\\r`:n===`\x07`?t+=`\\a`:n===`\b`?t+=`\\b`:n===`\f`?t+=`\\f`:n===`\v`?t+=`\\v`:n===`\x1B`?t+=`\\E`:e<32||e>=127&&e<=255?t+=`\\${e.toString(8).padStart(3,`0`)}`:n===`"`?t+=`\\"`:t+=n}return t+=`'`,t}let t=``;for(let n of e)` |&;<>()$\`\\"'*?[#~=%!{}`.includes(n)?t+=`\\${n}`:t+=n;return t}function O(e,t){let n=e.match(/^%(-?)(\d*)(\.(\d*))?s$/);if(!n)return(0,s.sprintf)(e.replace(/0+(?=\d)/,``),t);let r=n[1]===`-`,i=n[2]?parseInt(n[2],10):0,o=n[3]===void 0?-1:n[4]?parseInt(n[4],10):0;return a(t,r?-i:i,o)}function k(e,t){let n=D(t),r=e.match(/^%(-?)(\d*)q$/);if(!r)return n;let i=r[1]===`-`,a=r[2]?parseInt(r[2],10):0,o=n;return a>o.length&&(o=i?o.padEnd(a,` `):o.padStart(a,` `)),o}function A(e,t,n){let r=e.match(/^%([- +#0']*)(\d*)(\.(\d*))?[eEfFgG]$/);if(!r)return(0,s.sprintf)(e,n);let i=r[1]||``,a=r[2]?parseInt(r[2],10):0,o=r[3]===void 0?6:r[4]?parseInt(r[4],10):0,c,l=t.toLowerCase();if(l===`e`?(c=n.toExponential(o),c=c.replace(/e([+-])(\d)$/,`e$10$2`),t===`E`&&(c=c.toUpperCase())):l===`f`?(c=n.toFixed(o),i.includes(`#`)&&o===0&&!c.includes(`.`)&&(c+=`.`)):l===`g`?(c=n.toPrecision(o||1),i.includes(`#`)||(c=c.replace(/\.?0+$/,``),c=c.replace(/\.?0+e/,`e`)),c=c.replace(/e([+-])(\d)$/,`e$10$2`),t===`G`&&(c=c.toUpperCase())):c=n.toString(),n>=0&&(i.includes(`+`)?c=`+${c}`:i.includes(` `)&&(c=` ${c}`)),a>c.length)if(i.includes(`-`))c=c.padEnd(a,` `);else if(i.includes(`0`)){let e=c.match(/^[+ -]/)?.[0]||``;c=e+(e?c.slice(1):c).padStart(a-e.length,`0`)}else c=c.padStart(a,` `);return c}function j(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length)switch(e[n+1]){case`n`:t+=`
|
|
14
14
|
`,n+=2;break;case`t`:t+=` `,n+=2;break;case`r`:t+=`\r`,n+=2;break;case`\\`:t+=`\\`,n+=2;break;case`a`:t+=`\x07`,n+=2;break;case`b`:t+=`\b`,n+=2;break;case`f`:t+=`\f`,n+=2;break;case`v`:t+=`\v`,n+=2;break;case`c`:return{value:t,stopped:!0};case`x`:{let r=[],i=n;for(;i+1<e.length&&e[i]===`\\`&&e[i+1]===`x`;){let t=``,n=i+2;for(;n<e.length&&n<i+4&&/[0-9a-fA-F]/.test(e[n]);)t+=e[n],n++;if(t)r.push(parseInt(t,16)),i=n;else break}r.length>0?(t+=_(r),n=i):(t+=`\\x`,n+=2);break}case`u`:{let r=``,i=n+2;for(;i<e.length&&i<n+6&&/[0-9a-fA-F]/.test(e[i]);)r+=e[i],i++;r?(t+=String.fromCodePoint(parseInt(r,16)),n=i):(t+=`\\u`,n+=2);break}case`0`:{let r=``,i=n+2;for(;i<e.length&&i<n+5&&/[0-7]/.test(e[i]);)r+=e[i],i++;r?t+=String.fromCharCode(parseInt(r,8)):t+=`\0`,n=i;break}case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:{let r=``,i=n+1;for(;i<e.length&&i<n+4&&/[0-7]/.test(e[i]);)r+=e[i],i++;t+=String.fromCharCode(parseInt(r,8)),n=i;break}default:t+=e[n],n++}else t+=e[n],n++;return{value:t,stopped:!1}}var M={name:`printf`,flags:[{flag:`-v`,type:`value`,valueHint:`string`}],stdinType:`none`,needsArgs:!0};export{M as n,y as t};
|
|
15
|
-
//# sourceMappingURL=chunk-T56QNPHK-
|
|
15
|
+
//# sourceMappingURL=chunk-T56QNPHK-Dzjonwlk.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{n as e}from"./libesm-
|
|
1
|
+
import{n as e}from"./libesm-B_qVEpZ1.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var i={name:`diff`,summary:`compare files line by line`,usage:`diff [OPTION]... FILE1 FILE2`,options:[`-u, --unified output unified diff format (default)`,`-q, --brief report only whether files differ`,`-s, --report-identical-files report when files are the same`,`-i, --ignore-case ignore case differences`,` --help display this help and exit`]},a={unified:{short:`u`,long:`unified`,type:`boolean`},brief:{short:`q`,long:`brief`,type:`boolean`},reportSame:{short:`s`,long:`report-identical-files`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`diff`,async execute(o,s){if(n(o))return t(i);let c=r(`diff`,o,a);if(!c.ok)return c.error;let l=c.result.flags.brief,u=c.result.flags.reportSame,d=c.result.flags.ignoreCase,f=c.result.positional;if(c.result.flags.unified,f.length<2)return{stdout:``,stderr:`diff: missing operand
|
|
2
2
|
`,exitCode:2};let p,m,[h,g]=f;try{p=h===`-`?s.stdin:await s.fs.readFile(s.fs.resolvePath(s.cwd,h))}catch{return{stdout:``,stderr:`diff: ${h}: No such file or directory
|
|
3
3
|
`,exitCode:2}}try{m=g===`-`?s.stdin:await s.fs.readFile(s.fs.resolvePath(s.cwd,g))}catch{return{stdout:``,stderr:`diff: ${g}: No such file or directory
|
|
4
4
|
`,exitCode:2}}let _=p,v=m;return d&&(_=_.toLowerCase(),v=v.toLowerCase()),_===v?u?{stdout:`Files ${h} and ${g} are identical
|
|
5
5
|
`,stderr:``,exitCode:0}:{stdout:``,stderr:``,exitCode:0}:l?{stdout:`Files ${h} and ${g} differ
|
|
6
6
|
`,stderr:``,exitCode:1}:{stdout:e(h,g,p,m,``,``,{context:3}),stderr:``,exitCode:1}}},s={name:`diff`,flags:[{flag:`-u`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-i`,type:`boolean`}],needsArgs:!0,minArgs:2};export{s as n,o as t};
|
|
7
|
-
//# sourceMappingURL=chunk-TLSUDHID-
|
|
7
|
+
//# sourceMappingURL=chunk-TLSUDHID-DYvzalvd.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{t as e}from"./chunk-IPJHKYVM-C3IodQq7.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-
|
|
1
|
+
import{t as e}from"./chunk-IPJHKYVM-C3IodQq7.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-D1bzz49u.mjs";var i={name:`xargs`,summary:`build and execute command lines from standard input`,usage:`xargs [OPTION]... [COMMAND [INITIAL-ARGS]]`,options:[`-I REPLACE replace occurrences of REPLACE with input`,`-d DELIM use DELIM as input delimiter (e.g., -d '\\n' for newline)`,`-n NUM use at most NUM arguments per command line`,`-P NUM run at most NUM processes at a time`,`-0, --null items are separated by null, not whitespace`,`-t, --verbose print commands before executing`,`-r, --no-run-if-empty do not run command if input is empty`,` --help display this help and exit`]},a={name:`xargs`,async execute(a,o){if(r(a))return n(i);let s=null,c=null,l=null,u=null,d=!1,f=!1,p=0;for(let e=0;e<a.length;e++){let n=a[e];if(n===`-I`&&e+1<a.length)s=a[++e],p=e+1;else if(n===`-d`&&e+1<a.length)c=a[++e].replace(/\\n/g,`
|
|
2
2
|
`).replace(/\\t/g,` `).replace(/\\r/g,`\r`).replace(/\\0/g,`\0`).replace(/\\\\/g,`\\`),p=e+1;else if(n===`-n`&&e+1<a.length)l=parseInt(a[++e],10),p=e+1;else if(n===`-P`&&e+1<a.length)u=parseInt(a[++e],10),p=e+1;else if(n===`-0`||n===`--null`)d=!0,p=e+1;else if(n===`-t`||n===`--verbose`)f=!0,p=e+1;else if(n===`-r`||n===`--no-run-if-empty`)p=e+1;else{if(n.startsWith(`--`))return t(`xargs`,n);if(n.startsWith(`-`)&&n.length>1){for(let e of n.slice(1))if(!`0tr`.includes(e))return t(`xargs`,`-${e}`);n.includes(`0`)&&(d=!0),n.includes(`t`)&&(f=!0),n.includes(`r`),p=e+1}else if(!n.startsWith(`-`)){p=e;break}}}let m=a.slice(p);m.length===0&&m.push(`echo`);let h;if(h=d?o.stdin.split(`\0`).filter(e=>e.length>0):c===null?o.stdin.split(/\s+/).map(e=>e.trim()).filter(e=>e.length>0):o.stdin.replace(/\n$/,``).split(c).filter(e=>e.length>0),h.length===0)return{stdout:``,stderr:``,exitCode:0};let g=``,_=``,v=0,y=e=>/[\s"'\\$`!*?[\]{}();&|<>#]/.test(e)?`"${e.replace(/([\\"`$])/g,`\\$1`)}"`:e,b=async t=>{if(f){let e=t.map(y).join(` `);_+=`${e}
|
|
3
3
|
`}return o.exec?o.exec(e([t[0]]),{cwd:o.cwd,signal:o.signal,args:t.slice(1)}):{stdout:`${t.map(y).join(` `)}
|
|
4
4
|
`,stderr:``,exitCode:0}},x=async e=>{if(u!==null&&u>1)for(let t=0;t<e.length;t+=u){let n=e.slice(t,t+u),r=await Promise.all(n.map(b));for(let e of r)g+=e.stdout,_+=e.stderr,e.exitCode!==0&&(v=e.exitCode)}else for(let t of e){let e=await b(t);g+=e.stdout,_+=e.stderr,e.exitCode!==0&&(v=e.exitCode)}};if(s!==null)await x(h.map(e=>m.map(t=>t.replaceAll(s,e))));else if(l!==null){let e=[];for(let t=0;t<h.length;t+=l){let n=h.slice(t,t+l);e.push([...m,...n])}await x(e)}else{let e=await b([...m,...h]);g+=e.stdout,_+=e.stderr,v=e.exitCode}return{stdout:g,stderr:_,exitCode:v}}},o={name:`xargs`,flags:[{flag:`-I`,type:`value`,valueHint:`string`},{flag:`-d`,type:`value`,valueHint:`delimiter`},{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-0`,type:`boolean`},{flag:`-t`,type:`boolean`},{flag:`-r`,type:`boolean`}],stdinType:`text`};export{a as n,o as t};
|
|
5
|
-
//# sourceMappingURL=chunk-TOMNU26N-
|
|
5
|
+
//# sourceMappingURL=chunk-TOMNU26N-DYqwg_75.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";import{n as r}from"./chunk-7L36YK2X-RiPZFKaV.mjs";var i={name:`cat`,summary:`concatenate files and print on the standard output`,usage:`cat [OPTION]... [FILE]...`,options:[`-n, --number number all output lines`,` --help display this help and exit`]},a={number:{short:`n`,long:`number`,type:`boolean`}},o={name:`cat`,async execute(o,c){if(t(o))return e(i);let l=n(`cat`,o,a);if(!l.ok)return l.error;let u=l.result.flags.number,d=l.result.positional,f=await r(c,d,{cmdName:`cat`,allowStdinMarker:!0,stopOnError:!1}),p=``,m=1;for(let{content:e}of f.files)if(u){let t=s(e,m);p+=t.content,m=t.nextLineNumber}else p+=e;let h=d.length>0&&d.some(e=>e!==`-`);return{stdout:p,stderr:f.stderr,exitCode:f.exitCode,...h?{stdoutEncoding:`binary`}:{}}}};function s(e,t){let n=e.split(`
|
|
2
2
|
`),r=e.endsWith(`
|
|
3
3
|
`),i=r?n.slice(0,-1):n;return{content:i.map((e,n)=>`${String(t+n).padStart(6,` `)} ${e}`).join(`
|
|
4
4
|
`)+(r?`
|
|
5
5
|
`:``),nextLineNumber:t+i.length}}var c={name:`cat`,flags:[{flag:`-n`,type:`boolean`},{flag:`-A`,type:`boolean`},{flag:`-b`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-e`,type:`boolean`},{flag:`-t`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{c as n,o as t};
|
|
6
|
-
//# sourceMappingURL=chunk-TXBZCHCQ-
|
|
6
|
+
//# sourceMappingURL=chunk-TXBZCHCQ-l48TczF5.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-DIKSLkPq.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-
|
|
1
|
+
import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{a as t,i as n,n as r,o as i}from"./chunk-DXB73IDG-DIKSLkPq.mjs";import{r as a,t as o}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as s}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as c}from"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import{n as l,s as u}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as d}from"./chunk-BBXLRYSX-DHx5dxhT.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-F55TLFGB-oTuag-aK.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=[];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;if(this.advance(),this.peek().type===`,`||this.peek().type===`)`){for(e.push(t);this.peek().type===`,`&&(this.advance(),this.peek().type===`ident`);)e.push(this.peek().value),this.advance();if(this.peek().type===`)`&&(this.advance(),this.peek().type===`=>`)){this.advance();let t=this.parseExpr(0);return this.bindLambdaArgs({type:`lambda`,params:e,body:t},e)}this.pos-=e.length*2,e.length>1&&(this.pos=this.pos)}this.pos--}let t=this.parseExpr(0);return this.expect(`)`),this.peek().type,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}}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-YNYSPYQ5-DesxOVHh.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 Me(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 Ne(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 Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-
|
|
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 Pe(e,t){let{cmdView:n}=await import(`./xan-view-ECQUO7AJ-8Lt55NoE.mjs`);return n(e,t)}var Q=new Set([`fuzzy-join`,`glob`,`hist`,`input`,`parallel`,`plot`,`progress`,`range`,`scrape`,`tokenize`,`union-find`]),Fe=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}}}},Re={name:`xan`,flags:[],stdinType:`text`,needsArgs:!0};export{Le as n,Re as t};
|
|
140
|
-
//# sourceMappingURL=chunk-UNYNJIFU-
|
|
140
|
+
//# sourceMappingURL=chunk-UNYNJIFU-B6KF1Gqq.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-Ce6zfZno.mjs";import{t as n}from"./chunk-HWKDQ44K-D-Y0sZAA.mjs";const r=(e,t,n)=>{let r=e instanceof RegExp?i(e,n):e,o=t instanceof RegExp?i(t,n):t,s=r!==null&&o!=null&&a(r,o,n);return s&&{start:s[0],end:s[1],pre:n.slice(0,s[0]),body:n.slice(s[0]+r.length,s[1]),post:n.slice(s[1]+o.length)}},i=(e,t)=>{let n=t.match(e);return n?n[0]:null},a=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},o=`\0SLASH`+Math.random()+`\0`,s=`\0OPEN`+Math.random()+`\0`,c=`\0CLOSE`+Math.random()+`\0`,l=`\0COMMA`+Math.random()+`\0`,u=`\0PERIOD`+Math.random()+`\0`,d=new RegExp(o,`g`),f=new RegExp(s,`g`),p=new RegExp(c,`g`),m=new RegExp(l,`g`),h=new RegExp(u,`g`),g=/\\\\/g,_=/\\{/g,v=/\\}/g,ee=/\\,/g,te=/\\\./g;function y(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ne(e){return e.replace(g,o).replace(_,s).replace(v,c).replace(ee,l).replace(te,u)}function re(e){return e.replace(d,`\\`).replace(f,`{`).replace(p,`}`).replace(m,`,`).replace(h,`.`)}function b(e){if(!e)return[``];let t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:i,body:a,post:o}=n,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=b(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function ie(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),S(ne(e),n,!0).map(re)}function ae(e){return`{`+e+`}`}function x(e){return/^-?0\d/.test(e)}function oe(e,t){return e<=t}function se(e,t){return e>=t}function S(e,t,n){let i=[],a=r(`{`,`}`,e);if(!a)return[e];let o=a.pre,s=a.post.length?S(a.post,t,!1):[``];if(/\$$/.test(a.pre))for(let e=0;e<s.length&&e<t;e++){let t=o+`{`+a.body+`}`+s[e];i.push(t)}else{let r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),u=r||l,d=a.body.indexOf(`,`)>=0;if(!u&&!d)return a.post.match(/,(?!,).*\}/)?(e=a.pre+`{`+a.body+c+a.post,S(e,t,!0)):[e];let f;if(u)f=a.body.split(/\.\./);else if(f=b(a.body),f.length===1&&f[0]!==void 0&&(f=S(f[0],t,!1).map(ae),f.length===1))return s.map(e=>a.pre+f[0]+e);let p;if(u&&f[0]!==void 0&&f[1]!==void 0){let e=y(f[0]),t=y(f[1]),n=Math.max(f[0].length,f[1].length),r=f.length===3&&f[2]!==void 0?Math.max(Math.abs(y(f[2])),1):1,i=oe;t<e&&(r*=-1,i=se);let a=f.some(x);p=[];for(let o=e;i(o,t);o+=r){let e;if(l)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}p.push(e)}}else{p=[];for(let e=0;e<f.length;e++)p.push.apply(p,S(f[e],t,!1))}for(let e=0;e<p.length;e++)for(let r=0;r<s.length&&i.length<t;r++){let t=o+p[e]+s[r];(!n||u||t)&&i.push(t)}}return i}const C=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},ce={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},w=e=>e.replace(/[[\]\\-]/g,`\\$&`),le=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),T=e=>e.join(``),ue=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(ce))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(w(d)+`-`+w(t)):t===d&&r.push(w(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(w(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(w(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[le(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+T(r)+`]`,p=`[`+(l?``:`^`)+T(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},E=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var D;const O=new Set([`!`,`?`,`+`,`*`,`@`]),k=e=>O.has(e),A=e=>k(e.type),j=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),de=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),fe=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),M=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),N=`(?!\\.)`,pe=new Set([`[`,`.`]),me=new Set([`..`,`.`]),he=new Set(`().*{}+?[]^$\\!`),ge=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),P=`[^/]`,F=P+`*?`,I=P+`+?`;let L=0;var R=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++L;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof D&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof D&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new D(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new D(n,t);u=D.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new D(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new D(n,d);d.push(o),u=D.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new D(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,de)}#m(e,t=j){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=fe){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new D(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!M.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=M.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new D(null,void 0,t);return D.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!A(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?D.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&me.has(this.#r[0]))){let n=pe,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?N:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,E(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,E(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?N:``)+I;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?N:``)+F+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,E(i),this.#t=!!this.#t,this.#n]}#x(){if(A(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(he.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?I:F,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=ue(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=P,t=!0;continue}i+=ge(c)}return[i,E(e),!!t,a]}};D=R;const _e=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),z=(e,t,n={})=>(C(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Y(t,n).match(e)),ve=/^\*+([^+@!?*[(]*)$/,ye=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),be=e=>t=>t.endsWith(e),xe=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),Se=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ce=/^\*+\.\*+$/,we=e=>!e.startsWith(`.`)&&e.includes(`.`),B=e=>e!==`.`&&e!==`..`&&e.includes(`.`),Te=/^\.\*+$/,Ee=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),De=/^\*+$/,Oe=e=>e.length!==0&&!e.startsWith(`.`),ke=e=>e.length!==0&&e!==`.`&&e!==`..`,Ae=/^\?+([^+@!?*[(]*)?$/,je=([e,t=``])=>{let n=V([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Me=([e,t=``])=>{let n=H([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Ne=([e,t=``])=>{let n=H([e]);return t?e=>n(e)&&e.endsWith(t):n},Pe=([e,t=``])=>{let n=V([e]);return t?e=>n(e)&&e.endsWith(t):n},V=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},H=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},U=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,W={win32:{sep:`\\`},posix:{sep:`/`}};z.sep=U===`win32`?W.win32.sep:W.posix.sep;const G=Symbol(`globstar **`);z.GLOBSTAR=G,z.filter=(e,t={})=>n=>z(n,e,t);const K=(e,t={})=>Object.assign({},e,t);z.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return z;let t=z;return Object.assign((n,r,i={})=>t(n,r,K(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,K(e,n))}static defaults(n){return t.defaults(K(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,K(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,K(e,r))}},unescape:(n,r={})=>t.unescape(n,K(e,r)),escape:(n,r={})=>t.escape(n,K(e,r)),filter:(n,r={})=>t.filter(n,K(e,r)),defaults:n=>t.defaults(K(e,n)),makeRe:(n,r={})=>t.makeRe(n,K(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,K(e,r)),match:(n,r,i={})=>t.match(n,r,K(e,i)),sep:t.sep,GLOBSTAR:G})};const q=(e,t={})=>(C(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ie(e,{max:t.braceExpandMax}));z.braceExpand=q,z.makeRe=(e,t={})=>new Y(e,t).makeRe(),z.match=(e,t,n={})=>{let r=new Y(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const J=/[?*]|[+@!]\(.*?\)|\[|\]/,Fe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var Y=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){C(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||U,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!J.test(e[2]))&&!J.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(G)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(G,i),o=t.lastIndexOf(G),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===G?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===G)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return q(this.pattern,this.options)}parse(e){C(e);let t=this.options;if(e===`**`)return G;if(e===``)return``;let n,r=null;(n=e.match(De))?r=t.dot?ke:Oe:(n=e.match(ve))?r=(t.nocase?t.dot?Se:xe:t.dot?be:ye)(n[1]):(n=e.match(Ae))?r=(t.nocase?t.dot?Me:je:t.dot?Ne:Pe)(n):(n=e.match(Ce))?r=t.dot?B:we:(n=e.match(Te))&&(r=Ee);let i=R.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Fe(e):e===G?G:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==G||a===G||(a===void 0?i!==void 0&&i!==G?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==G&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=G))});let i=t.filter(e=>e!==G);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return z.defaults(e).Minimatch}};z.AST=R,z.Minimatch=Y,z.escape=_e,z.unescape=E;function X(e){if(e<1024)return String(e);if(e<1024*1024){let t=e/1024;return t<10?`${t.toFixed(1)}K`:`${Math.round(t)}K`}if(e<1024*1024*1024){let t=e/1048576;return t<10?`${t.toFixed(1)}M`:`${Math.round(t)}M`}let t=e/(1024*1024*1024);return t<10?`${t.toFixed(1)}G`:`${Math.round(t)}G`}function Z(e){let t=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][e.getMonth()],n=String(e.getDate()).padStart(2,` `);return e>new Date(new Date().getTime()-4320*60*60*1e3)?`${t} ${n} ${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`:`${t} ${n} ${e.getFullYear()}`}function Q(e){return e.isDirectory?`/`:e.isSymbolicLink?`@`:e.mode&73?`*`:``}var Ie={name:`ls`,summary:`list directory contents`,usage:`ls [OPTION]... [FILE]...`,options:[`-a, --all do not ignore entries starting with .`,`-A, --almost-all do not list . and ..`,`-d, --directory list directories themselves, not their contents`,`-F, --classify append indicator (one of */=>@) to entries`,`-h, --human-readable with -l, print sizes like 1K 234M 2G etc.`,`-l use a long listing format`,`-r, --reverse reverse order while sorting`,`-R, --recursive list subdirectories recursively`,`-S sort by file size, largest first`,`-t sort by time, newest first`,`-1 list one file per line`,` --help display this help and exit`]},Le={showAll:{short:`a`,long:`all`,type:`boolean`},showAlmostAll:{short:`A`,long:`almost-all`,type:`boolean`},longFormat:{short:`l`,type:`boolean`},humanReadable:{short:`h`,long:`human-readable`,type:`boolean`},recursive:{short:`R`,long:`recursive`,type:`boolean`},reverse:{short:`r`,long:`reverse`,type:`boolean`},sortBySize:{short:`S`,type:`boolean`},classifyFiles:{short:`F`,long:`classify`,type:`boolean`},directoryOnly:{short:`d`,long:`directory`,type:`boolean`},sortByTime:{short:`t`,type:`boolean`},onePerLine:{short:`1`,type:`boolean`}},Re={name:`ls`,async execute(r,i){if(t(r))return e(Ie);let a=n(`ls`,r,Le);if(!a.ok)return a.error;let o=a.result.flags.showAll,s=a.result.flags.showAlmostAll,c=a.result.flags.longFormat,l=a.result.flags.humanReadable,u=a.result.flags.recursive,d=a.result.flags.reverse,f=a.result.flags.sortBySize,p=a.result.flags.classifyFiles,m=a.result.flags.directoryOnly;a.result.flags.sortByTime,a.result.flags.onePerLine;let h=a.result.positional;h.length===0&&h.push(`.`);let g=``,_=``,v=0;for(let e=0;e<h.length;e++){let t=h[e];if(e>0&&g&&!g.endsWith(`
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";const r=(e,t,n)=>{let r=e instanceof RegExp?i(e,n):e,o=t instanceof RegExp?i(t,n):t,s=r!==null&&o!=null&&a(r,o,n);return s&&{start:s[0],end:s[1],pre:n.slice(0,s[0]),body:n.slice(s[0]+r.length,s[1]),post:n.slice(s[1]+o.length)}},i=(e,t)=>{let n=t.match(e);return n?n[0]:null},a=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},o=`\0SLASH`+Math.random()+`\0`,s=`\0OPEN`+Math.random()+`\0`,c=`\0CLOSE`+Math.random()+`\0`,l=`\0COMMA`+Math.random()+`\0`,u=`\0PERIOD`+Math.random()+`\0`,d=new RegExp(o,`g`),f=new RegExp(s,`g`),p=new RegExp(c,`g`),m=new RegExp(l,`g`),h=new RegExp(u,`g`),g=/\\\\/g,_=/\\{/g,v=/\\}/g,ee=/\\,/g,te=/\\\./g;function y(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ne(e){return e.replace(g,o).replace(_,s).replace(v,c).replace(ee,l).replace(te,u)}function re(e){return e.replace(d,`\\`).replace(f,`{`).replace(p,`}`).replace(m,`,`).replace(h,`.`)}function b(e){if(!e)return[``];let t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:i,body:a,post:o}=n,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=b(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function ie(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),S(ne(e),n,!0).map(re)}function ae(e){return`{`+e+`}`}function x(e){return/^-?0\d/.test(e)}function oe(e,t){return e<=t}function se(e,t){return e>=t}function S(e,t,n){let i=[],a=r(`{`,`}`,e);if(!a)return[e];let o=a.pre,s=a.post.length?S(a.post,t,!1):[``];if(/\$$/.test(a.pre))for(let e=0;e<s.length&&e<t;e++){let t=o+`{`+a.body+`}`+s[e];i.push(t)}else{let r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),u=r||l,d=a.body.indexOf(`,`)>=0;if(!u&&!d)return a.post.match(/,(?!,).*\}/)?(e=a.pre+`{`+a.body+c+a.post,S(e,t,!0)):[e];let f;if(u)f=a.body.split(/\.\./);else if(f=b(a.body),f.length===1&&f[0]!==void 0&&(f=S(f[0],t,!1).map(ae),f.length===1))return s.map(e=>a.pre+f[0]+e);let p;if(u&&f[0]!==void 0&&f[1]!==void 0){let e=y(f[0]),t=y(f[1]),n=Math.max(f[0].length,f[1].length),r=f.length===3&&f[2]!==void 0?Math.max(Math.abs(y(f[2])),1):1,i=oe;t<e&&(r*=-1,i=se);let a=f.some(x);p=[];for(let o=e;i(o,t);o+=r){let e;if(l)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}p.push(e)}}else{p=[];for(let e=0;e<f.length;e++)p.push.apply(p,S(f[e],t,!1))}for(let e=0;e<p.length;e++)for(let r=0;r<s.length&&i.length<t;r++){let t=o+p[e]+s[r];(!n||u||t)&&i.push(t)}}return i}const C=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},ce={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},w=e=>e.replace(/[[\]\\-]/g,`\\$&`),le=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),T=e=>e.join(``),ue=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(ce))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(w(d)+`-`+w(t)):t===d&&r.push(w(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(w(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(w(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[le(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+T(r)+`]`,p=`[`+(l?``:`^`)+T(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},E=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var D;const O=new Set([`!`,`?`,`+`,`*`,`@`]),k=e=>O.has(e),A=e=>k(e.type),j=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),de=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),fe=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),M=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),N=`(?!\\.)`,pe=new Set([`[`,`.`]),me=new Set([`..`,`.`]),he=new Set(`().*{}+?[]^$\\!`),ge=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),P=`[^/]`,F=P+`*?`,I=P+`+?`;let L=0;var R=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++L;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof D&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof D&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new D(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new D(n,t);u=D.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new D(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new D(n,d);d.push(o),u=D.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new D(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,de)}#m(e,t=j){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=fe){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new D(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!M.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=M.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new D(null,void 0,t);return D.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!A(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?D.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&me.has(this.#r[0]))){let n=pe,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?N:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,E(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,E(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?N:``)+I;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?N:``)+F+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,E(i),this.#t=!!this.#t,this.#n]}#x(){if(A(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(he.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?I:F,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=ue(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=P,t=!0;continue}i+=ge(c)}return[i,E(e),!!t,a]}};D=R;const _e=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),z=(e,t,n={})=>(C(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Y(t,n).match(e)),ve=/^\*+([^+@!?*[(]*)$/,ye=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),be=e=>t=>t.endsWith(e),xe=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),Se=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ce=/^\*+\.\*+$/,we=e=>!e.startsWith(`.`)&&e.includes(`.`),B=e=>e!==`.`&&e!==`..`&&e.includes(`.`),Te=/^\.\*+$/,Ee=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),De=/^\*+$/,Oe=e=>e.length!==0&&!e.startsWith(`.`),ke=e=>e.length!==0&&e!==`.`&&e!==`..`,Ae=/^\?+([^+@!?*[(]*)?$/,je=([e,t=``])=>{let n=V([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Me=([e,t=``])=>{let n=H([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Ne=([e,t=``])=>{let n=H([e]);return t?e=>n(e)&&e.endsWith(t):n},Pe=([e,t=``])=>{let n=V([e]);return t?e=>n(e)&&e.endsWith(t):n},V=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},H=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},U=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,W={win32:{sep:`\\`},posix:{sep:`/`}};z.sep=U===`win32`?W.win32.sep:W.posix.sep;const G=Symbol(`globstar **`);z.GLOBSTAR=G,z.filter=(e,t={})=>n=>z(n,e,t);const K=(e,t={})=>Object.assign({},e,t);z.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return z;let t=z;return Object.assign((n,r,i={})=>t(n,r,K(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,K(e,n))}static defaults(n){return t.defaults(K(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,K(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,K(e,r))}},unescape:(n,r={})=>t.unescape(n,K(e,r)),escape:(n,r={})=>t.escape(n,K(e,r)),filter:(n,r={})=>t.filter(n,K(e,r)),defaults:n=>t.defaults(K(e,n)),makeRe:(n,r={})=>t.makeRe(n,K(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,K(e,r)),match:(n,r,i={})=>t.match(n,r,K(e,i)),sep:t.sep,GLOBSTAR:G})};const q=(e,t={})=>(C(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ie(e,{max:t.braceExpandMax}));z.braceExpand=q,z.makeRe=(e,t={})=>new Y(e,t).makeRe(),z.match=(e,t,n={})=>{let r=new Y(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const J=/[?*]|[+@!]\(.*?\)|\[|\]/,Fe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var Y=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){C(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||U,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!J.test(e[2]))&&!J.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(G)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(G,i),o=t.lastIndexOf(G),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===G?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===G)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return q(this.pattern,this.options)}parse(e){C(e);let t=this.options;if(e===`**`)return G;if(e===``)return``;let n,r=null;(n=e.match(De))?r=t.dot?ke:Oe:(n=e.match(ve))?r=(t.nocase?t.dot?Se:xe:t.dot?be:ye)(n[1]):(n=e.match(Ae))?r=(t.nocase?t.dot?Me:je:t.dot?Ne:Pe)(n):(n=e.match(Ce))?r=t.dot?B:we:(n=e.match(Te))&&(r=Ee);let i=R.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Fe(e):e===G?G:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==G||a===G||(a===void 0?i!==void 0&&i!==G?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==G&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=G))});let i=t.filter(e=>e!==G);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return z.defaults(e).Minimatch}};z.AST=R,z.Minimatch=Y,z.escape=_e,z.unescape=E;function X(e){if(e<1024)return String(e);if(e<1024*1024){let t=e/1024;return t<10?`${t.toFixed(1)}K`:`${Math.round(t)}K`}if(e<1024*1024*1024){let t=e/1048576;return t<10?`${t.toFixed(1)}M`:`${Math.round(t)}M`}let t=e/(1024*1024*1024);return t<10?`${t.toFixed(1)}G`:`${Math.round(t)}G`}function Z(e){let t=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][e.getMonth()],n=String(e.getDate()).padStart(2,` `);return e>new Date(new Date().getTime()-4320*60*60*1e3)?`${t} ${n} ${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`:`${t} ${n} ${e.getFullYear()}`}function Q(e){return e.isDirectory?`/`:e.isSymbolicLink?`@`:e.mode&73?`*`:``}var Ie={name:`ls`,summary:`list directory contents`,usage:`ls [OPTION]... [FILE]...`,options:[`-a, --all do not ignore entries starting with .`,`-A, --almost-all do not list . and ..`,`-d, --directory list directories themselves, not their contents`,`-F, --classify append indicator (one of */=>@) to entries`,`-h, --human-readable with -l, print sizes like 1K 234M 2G etc.`,`-l use a long listing format`,`-r, --reverse reverse order while sorting`,`-R, --recursive list subdirectories recursively`,`-S sort by file size, largest first`,`-t sort by time, newest first`,`-1 list one file per line`,` --help display this help and exit`]},Le={showAll:{short:`a`,long:`all`,type:`boolean`},showAlmostAll:{short:`A`,long:`almost-all`,type:`boolean`},longFormat:{short:`l`,type:`boolean`},humanReadable:{short:`h`,long:`human-readable`,type:`boolean`},recursive:{short:`R`,long:`recursive`,type:`boolean`},reverse:{short:`r`,long:`reverse`,type:`boolean`},sortBySize:{short:`S`,type:`boolean`},classifyFiles:{short:`F`,long:`classify`,type:`boolean`},directoryOnly:{short:`d`,long:`directory`,type:`boolean`},sortByTime:{short:`t`,type:`boolean`},onePerLine:{short:`1`,type:`boolean`}},Re={name:`ls`,async execute(r,i){if(t(r))return e(Ie);let a=n(`ls`,r,Le);if(!a.ok)return a.error;let o=a.result.flags.showAll,s=a.result.flags.showAlmostAll,c=a.result.flags.longFormat,l=a.result.flags.humanReadable,u=a.result.flags.recursive,d=a.result.flags.reverse,f=a.result.flags.sortBySize,p=a.result.flags.classifyFiles,m=a.result.flags.directoryOnly;a.result.flags.sortByTime,a.result.flags.onePerLine;let h=a.result.positional;h.length===0&&h.push(`.`);let g=``,_=``,v=0;for(let e=0;e<h.length;e++){let t=h[e];if(e>0&&g&&!g.endsWith(`
|
|
2
2
|
|
|
3
3
|
`)&&(g+=`
|
|
4
4
|
`),m){let e=i.fs.resolvePath(i.cwd,t);try{let n=await i.fs.stat(e);if(c){let r=n.isDirectory?`drwxr-xr-x`:`-rw-r--r--`,a=p?Q(await i.fs.lstat(e)):n.isDirectory?`/`:``,o=n.size??0,s=l?X(o).padStart(5):String(o).padStart(5),c=Z(n.mtime??new Date(0));g+=`${r} 1 user user ${s} ${c} ${t}${a}
|
|
@@ -25,4 +25,4 @@ import{r as e,t}from"./chunk-74CEPOFO-Ce6zfZno.mjs";import{t as n}from"./chunk-H
|
|
|
25
25
|
`:``);if(a){let o=m.filter(e=>e!==`.`&&e!==`..`),d=[];if(t.fs.readdirWithFileTypes)d=(await t.fs.readdirWithFileTypes(p)).filter(e=>e.isDirectory&&o.includes(e.name)).map(e=>({name:e.name,isDirectory:!0}));else for(let e=0;e<o.length;e+=100){let n=o.slice(e,e+100),r=await Promise.all(n.map(async e=>{let n=p===`/`?`/${e}`:`${p}/${e}`;try{return{name:e,isDirectory:(await t.fs.stat(n)).isDirectory}}catch{return{name:e,isDirectory:!1}}}));d.push(...r.filter(e=>e.isDirectory))}d.sort((e,t)=>e.name.localeCompare(t.name)),s&&d.reverse();let f=[];for(let o=0;o<d.length;o+=100){let p=d.slice(o,o+100),m=await Promise.all(p.map(async o=>{let d=await $(e===`.`?`./${o.name}`:`${e}/${o.name}`,t,n,r,i,a,!1,s,c,l,u,!0);return{name:o.name,result:d}}));f.push(...m)}f.sort((e,t)=>e.name.localeCompare(t.name)),s&&f.reverse();for(let{result:e}of f)h+=`
|
|
26
26
|
`,h+=e.stdout}return{stdout:h,stderr:``,exitCode:0}}catch{return{stdout:``,stderr:`ls: ${e}: No such file or directory
|
|
27
27
|
`,exitCode:2}}}var Be={name:`ls`,flags:[{flag:`-a`,type:`boolean`},{flag:`-A`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-R`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-t`,type:`boolean`},{flag:`-1`,type:`boolean`}],needsFiles:!0};export{Be as n,Re as t};
|
|
28
|
-
//# sourceMappingURL=chunk-V7TAPXDL-
|
|
28
|
+
//# sourceMappingURL=chunk-V7TAPXDL-CnKUp2df.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`expand`,summary:`convert tabs to spaces`,usage:`expand [OPTION]... [FILE]...`,description:`Convert TABs in each FILE to spaces, writing to standard output. If no FILE is specified, standard input is read.`,options:[`-t N Use N spaces per tab (default: 8)`,`-t LIST Use comma-separated list of tab stops`,`-i Only convert leading tabs on each line`],examples:[`expand file.txt # Convert all tabs to 8 spaces`,`expand -t 4 file.txt # Use 4-space tabs`,`expand -t 4,8,12 file.txt # Custom tab stops`]};function i(e){let t=e.split(`,`).map(e=>e.trim()),n=[];for(let e of t){let t=parseInt(e,10);if(Number.isNaN(t)||t<1)return null;n.push(t)}for(let e=1;e<n.length;e++)if(n[e]<=n[e-1])return null;return n}function a(e,t){if(t.length===1){let n=t[0];return n-e%n}for(let n of t)if(n>e)return n-e;if(t.length>=2){let n=t[t.length-1]-t[t.length-2],r=t[t.length-1];return r+(Math.floor((e-r)/n)+1)*n-e}return 1}function o(e,t){let{tabStops:n,leadingOnly:r}=t,i=``,o=0,s=!0;for(let t of e)if(t===` `)if(r&&!s)i+=t,o++;else{let e=a(o,n);i+=` `.repeat(e),o+=e}else t!==` `&&t!==` `&&(s=!1),i+=t,o++;return i}function s(e,t){if(e===``)return``;let n=e.split(`
|
|
2
2
|
`),r=e.endsWith(`
|
|
3
3
|
`)&&n[n.length-1]===``;return r&&n.pop(),n.map(e=>o(e,t)).join(`
|
|
4
4
|
`)+(r?`
|
|
@@ -8,4 +8,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-Ce6zfZno.mjs";var r={name:`exp
|
|
|
8
8
|
`};c.tabStops=e,u+=2}else if(t.startsWith(`--tabs=`)){let e=i(t.slice(7));if(!e)return{exitCode:1,stdout:``,stderr:`expand: invalid tab size: '${t.slice(7)}'
|
|
9
9
|
`};c.tabStops=e,u++}else if(t===`-i`||t===`--initial`)c.leadingOnly=!0,u++;else if(t===`--`){l.push(...a.slice(u+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`expand`,t);l.push(t),u++}}let d=``;if(l.length===0)d=s(o.stdin??``,c);else for(let e of l){let t=o.fs.resolvePath(o.cwd,e),n=await o.fs.readFile(t);if(n===null)return{exitCode:1,stdout:d,stderr:`expand: ${e}: No such file or directory
|
|
10
10
|
`};d+=s(n,c)}return{exitCode:0,stdout:d,stderr:``}}},l={name:`expand`,flags:[{flag:`-t`,type:`value`,valueHint:`number`},{flag:`-i`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{l as n,c as t};
|
|
11
|
-
//# sourceMappingURL=chunk-VJFXDYWH-
|
|
11
|
+
//# sourceMappingURL=chunk-VJFXDYWH-IiUXkKX0.mjs.map
|
|
@@ -14,4 +14,4 @@ import{t as e}from"./chunk-YNYSPYQ5-DesxOVHh.mjs";function t(e,t){return e.repla
|
|
|
14
14
|
`:``,matched:t.length>0,matchCount:t.length}}if(C.length===0)return{output:``,matched:!1,matchCount:0};let w=new Set,T=-1,E=[];for(let e of C){let n=Math.max(0,e.startLine-l),r=Math.min(y-1,e.endLine+u);T>=0&&n>T+1&&E.push(f);for(let t=n;t<e.startLine;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}if(c){let t=h===null?e.matchText:h,n=s?`${s}:`:``;m&&(n+=`${e.byteOffset}:`),i&&(n+=`${e.startLine+1}:`),p&&(n+=`${e.column}:`),E.push(n+t);for(let t=e.startLine;t<=e.endLine;t++)w.add(t),T=t}else for(let n=e.startLine;n<=e.endLine&&n<y;n++)if(!w.has(n)){w.add(n),T=n;let r=_[n];h!==null&&n===e.startLine&&(t.lastIndex=0,r=t.replace(r,h));let a=s?`${s}:`:``;m&&n===e.startLine&&(a+=`${e.byteOffset}:`),i&&(a+=`${n+1}:`),p&&n===e.startLine&&(a+=`${e.column}:`),E.push(a+r)}for(let t=e.endLine+1;t<=r;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}}return{output:E.length>0?`${E.join(`
|
|
15
15
|
`)}
|
|
16
16
|
`:``,matched:!0,matchCount:C.length}}var i=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 a(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 a=e.slice(n+2,t),o=i.get(a);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 o(t,n){let r,i;switch(n.mode){case`fixed`:r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);break;case`extended`:case`perl`:if(r=a(t),r=r.replace(/\(\?P<([^>]+)>/g,`(?<$1>`),n.mode===`perl`){r=s(r),r=c(r),r=l(r);let e=p(r);r=e.pattern,i=e.kResetGroup}break;default:r=a(t),r=_(r);break}n.wholeWord&&(r=`\\b(?:${r})\\b`),n.lineRegexp&&(r=`^${r}$`);let o=/\\u\{[0-9A-Fa-f]+\}/.test(r),u=`g`+(n.ignoreCase?`i`:``)+(n.multiline?`m`:``)+(n.multilineDotall?`s`:``)+(o?`u`:``);return{regex:e(r,u),kResetGroup:i}}function s(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 c(e){return e.replace(/\\x\{([0-9A-Fa-f]+)\}/g,`\\u{$1}`)}function l(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=u(e,n);if(s!==-1){let r=d(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 u(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 d(e,t,n){let r=e;return t.includes(`i`)&&(r=f(r)),r}function f(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 p(e){let t=m(e);if(t===-1)return{pattern:e};let n=e.slice(0,t),r=e.slice(t+2),i=h(n);return{pattern:`(?:${n})(${r})`,kResetGroup:i+1}}function m(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 h(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 g(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 _(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{o as n,g as r,n as t};
|
|
17
|
-
//# sourceMappingURL=chunk-VLGZJRPG-
|
|
17
|
+
//# sourceMappingURL=chunk-VLGZJRPG-ChVasMna.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";var n={name:`alias`,summary:`define or display aliases`,usage:`alias [name[=value] ...]`,options:[` --help display this help and exit`]},r=`BASH_ALIAS_`,i={name:`alias`,async execute(i,a){if(t(i))return e(n);if(i.length===0){let e=``;for(let[t,n]of a.env)if(t.startsWith(r)){let i=t.slice(r.length);e+=`alias ${i}='${n}'
|
|
2
2
|
`}return{stdout:e,stderr:``,exitCode:0}}let o=i[0]===`--`?i.slice(1):i;for(let e of o){let t=e.indexOf(`=`);if(t===-1){let t=r+e;return a.env.get(t)?{stdout:`alias ${e}='${a.env.get(t)}'
|
|
3
3
|
`,stderr:``,exitCode:0}:{stdout:``,stderr:`alias: ${e}: not found
|
|
4
4
|
`,exitCode:1}}else{let n=e.slice(0,t),i=e.slice(t+1);(i.startsWith(`'`)&&i.endsWith(`'`)||i.startsWith(`"`)&&i.endsWith(`"`))&&(i=i.slice(1,-1)),a.env.set(r+n,i)}}return{stdout:``,stderr:``,exitCode:0}}},a={name:`unalias`,async execute(n,i){if(t(n))return e({name:`unalias`,summary:`remove alias definitions`,usage:`unalias name [name ...]`,options:[`-a remove all aliases`,` --help display this help and exit`]});if(n.length===0)return{stdout:``,stderr:`unalias: usage: unalias [-a] name [name ...]
|
|
5
5
|
`,exitCode:1};if(n[0]===`-a`){for(let e of i.env.keys())e.startsWith(r)&&i.env.delete(e);return{stdout:``,stderr:``,exitCode:0}}let a=n[0]===`--`?n.slice(1):n,o=!1,s=``;for(let e of a){let t=r+e;i.env.get(t)?i.env.delete(t):(s+=`unalias: ${e}: not found
|
|
6
6
|
`,o=!0)}return{stdout:``,stderr:s,exitCode:o?1:0}}},o={name:`alias`,flags:[]},s={name:`unalias`,flags:[{flag:`-a`,type:`boolean`}]};export{o as i,s as n,i as r,a as t};
|
|
7
|
-
//# sourceMappingURL=chunk-VOBGTVA6-
|
|
7
|
+
//# sourceMappingURL=chunk-VOBGTVA6-BT7gUxqf.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`strings`,summary:`print the sequences of printable characters in files`,usage:`strings [OPTION]... [FILE]...`,description:`For each FILE, print the printable character sequences that are at least MIN characters long. If no FILE is specified, standard input is read.`,options:[`-n MIN Print sequences of at least MIN characters (default: 4)`,`-t FORMAT Print offset before each string (o=octal, x=hex, d=decimal)`,`-a Scan the entire file (default behavior)`,`-e ENCODING Select character encoding (s=7-bit, S=8-bit)`],examples:[`strings file.bin # Extract strings (min 4 chars)`,`strings -n 8 file.bin # Extract strings (min 8 chars)`,`strings -t x file.bin # Show hex offset`,`echo 'hello' | strings # Read from stdin`]};function i(e){return e>=32&&e<=126||e===9}function a(e,t){if(t===null)return``;switch(t){case`o`:return`${e.toString(8).padStart(7,` `)} `;case`x`:return`${e.toString(16).padStart(7,` `)} `;case`d`:return`${e.toString(10).padStart(7,` `)} `;default:return t}}function o(e,t){let n=[],r=``,o=0,s=typeof e==`string`?new TextEncoder().encode(e):e;for(let e=0;e<s.length;e++){let c=s[e];if(i(c))r.length===0&&(o=e),r+=String.fromCharCode(c);else{if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}r=``}}if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}return n}var s={name:`strings`,execute:async(i,a)=>{if(n(i))return t(r);let s={minLength:4,offsetFormat:null},c=[],l=0;for(;l<i.length;){let t=i[l];if(t===`-n`&&l+1<i.length){let e=Number.parseInt(i[l+1],10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${i[l+1]}'
|
|
2
2
|
`};s.minLength=e,l+=2}else if(t.match(/^-n\d+$/)){let e=Number.parseInt(t.slice(2),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${t.slice(2)}'
|
|
3
3
|
`};s.minLength=e,l++}else if(t.match(/^-\d+$/)){let e=Number.parseInt(t.slice(1),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${t.slice(1)}'
|
|
4
4
|
`};s.minLength=e,l++}else if(t===`-t`&&l+1<i.length){let e=i[l+1];if(e!==`o`&&e!==`x`&&e!==`d`)return{exitCode:1,stdout:``,stderr:`strings: invalid radix: '${e}'
|
|
@@ -11,4 +11,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-Ce6zfZno.mjs";var r={name:`str
|
|
|
11
11
|
`}}let n=o(t,s);n.length>0&&(u+=`${n.join(`
|
|
12
12
|
`)}
|
|
13
13
|
`)}return{exitCode:0,stdout:u,stderr:``}}},c={name:`strings`,flags:[{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-t`,type:`value`,valueHint:`string`},{flag:`-a`,type:`boolean`},{flag:`-e`,type:`value`,valueHint:`string`}],stdinType:`text`,needsFiles:!0};export{s as n,c as t};
|
|
14
|
-
//# sourceMappingURL=chunk-VYOJP4TV-
|
|
14
|
+
//# sourceMappingURL=chunk-VYOJP4TV-BvibOnKG.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";import{t as r}from"./chunk-7L36YK2X-RiPZFKaV.mjs";var i={name:`uniq`,summary:`report or omit repeated lines`,usage:`uniq [OPTION]... [INPUT [OUTPUT]]`,options:[`-c, --count prefix lines by the number of occurrences`,`-d, --repeated only print duplicate lines`,`-i, --ignore-case ignore case when comparing`,`-u, --unique only print unique lines`,` --help display this help and exit`]},a={count:{short:`c`,long:`count`,type:`boolean`},duplicatesOnly:{short:`d`,long:`repeated`,type:`boolean`},uniqueOnly:{short:`u`,long:`unique`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`uniq`,async execute(o,s){if(t(o))return e(i);let c=n(`uniq`,o,a);if(!c.ok)return c.error;let{count:l,duplicatesOnly:u,uniqueOnly:d,ignoreCase:f}=c.result.flags,p=c.result.positional,m=await r(s,p,{cmdName:`uniq`});if(!m.ok)return m.error;let h=m.content.split(`
|
|
2
2
|
`);if(h.length>0&&h[h.length-1]===``&&h.pop(),h.length===0)return{stdout:``,stderr:``,exitCode:0};let g=[],_=h[0],v=1,y=(e,t)=>f?e.toLowerCase()===t.toLowerCase():e===t;for(let e=1;e<h.length;e++)y(h[e],_)?v++:(g.push({line:_,count:v}),_=h[e],v=1);g.push({line:_,count:v});let b=g;u?b=g.filter(e=>e.count>1):d&&(b=g.filter(e=>e.count===1));let x=``;for(let{line:e,count:t}of b)l?x+=`${String(t).padStart(4)} ${e}
|
|
3
3
|
`:x+=`${e}
|
|
4
4
|
`;return{stdout:x,stderr:``,exitCode:0,stdoutEncoding:`binary`}}},s={name:`uniq`,flags:[{flag:`-c`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-u`,type:`boolean`},{flag:`-i`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{s as n,o as t};
|
|
5
|
-
//# sourceMappingURL=chunk-WKFATFPP-
|
|
5
|
+
//# sourceMappingURL=chunk-WKFATFPP-DCZdrA8x.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
function e(e,t){return(t?`d`:`-`)+[e&256?`r`:`-`,e&128?`w`:`-`,e&64?`x`:`-`,e&32?`r`:`-`,e&16?`w`:`-`,e&8?`x`:`-`,e&4?`r`:`-`,e&2?`w`:`-`,e&1?`x`:`-`].join(``)}export{e as t};
|
|
2
|
-
//# sourceMappingURL=chunk-X2AJGDEF-
|
|
2
|
+
//# sourceMappingURL=chunk-X2AJGDEF-BaH6i1Rq.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./chunk-EIZGF4BS-
|
|
2
|
-
//# sourceMappingURL=chunk-XKQRETAK-
|
|
1
|
+
import{t as e}from"./chunk-EIZGF4BS-8bsVXqW0.mjs";var t=e(`sha1sum`,`sha1`,`compute SHA1 message digest`),n={name:`sha1sum`,flags:[{flag:`-c`,type:`boolean`}],needsFiles:!0};export{n,t};
|
|
2
|
+
//# sourceMappingURL=chunk-XKQRETAK-cVWA9gEB.mjs.map
|