@visulima/fs 5.0.0-alpha.30 → 5.0.0-alpha.31
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/CHANGELOG.md +6 -0
- package/dist/eol.js +2 -2
- package/dist/error.js +1 -1
- package/dist/glob-parent.js +1 -1
- package/dist/glob.js +1 -1
- package/dist/index.js +1 -1
- package/dist/ini.js +1 -1
- package/dist/is-glob.js +1 -1
- package/dist/json5.js +1 -1
- package/dist/jsonc.js +1 -1
- package/dist/match.js +1 -1
- package/dist/packem_shared/AlreadyExistsError-DEb3UWja.js +1 -0
- package/dist/packem_shared/DirectoryError-BtwSTLmT.js +1 -0
- package/dist/packem_shared/JSONError-Cvp9ycba.js +4 -0
- package/dist/packem_shared/NotEmptyError-DZ1Ix089.js +1 -0
- package/dist/packem_shared/NotFoundError-CnRY6lVp.js +1 -0
- package/dist/packem_shared/PermissionError-DJ_2VWEj.js +1 -0
- package/dist/packem_shared/WalkError-B8qTd-v-.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-CWAkuNXM.js +1 -0
- package/dist/packem_shared/assertValidFileContents-CbIN7sy7.js +1 -0
- package/dist/packem_shared/assertValidFileOrDirectoryPath-BTlt945W.js +1 -0
- package/dist/packem_shared/build-rm-options-avnusYx-.js +1 -0
- package/dist/packem_shared/collect-VHN_VRLN.js +1 -0
- package/dist/packem_shared/collectSync-C28T6vrY.js +1 -0
- package/dist/packem_shared/emptyDir-C7lyd1lW.js +1 -0
- package/dist/packem_shared/emptyDirSync-B8EYpmO9.js +1 -0
- package/dist/packem_shared/ensureDir-DGarVZw8.js +1 -0
- package/dist/packem_shared/ensureDirSync-CsgPrsDH.js +1 -0
- package/dist/packem_shared/ensureFile-CMugWljp.js +1 -0
- package/dist/packem_shared/ensureFileSync-CJYTEx2r.js +1 -0
- package/dist/packem_shared/ensureLink-ChShf3lf.js +1 -0
- package/dist/packem_shared/ensureLinkSync-DPpq0I2Z.js +1 -0
- package/dist/packem_shared/ensureSymlink-y4FZjfxA.js +1 -0
- package/dist/packem_shared/ensureSymlinkSync-TcHssCH7.js +1 -0
- package/dist/packem_shared/findUp-D49u53m9.js +1 -0
- package/dist/packem_shared/findUpSync-C2oAKTw1.js +1 -0
- package/dist/packem_shared/get-file-info-type-DzWpohDB.js +1 -0
- package/dist/packem_shared/glob-D_7bct6p.js +1 -0
- package/dist/packem_shared/globSync-f-4jVwn9.js +1 -0
- package/dist/packem_shared/index-B2MhYg3r.js +1 -0
- package/dist/packem_shared/index-BHy3Kcr7.js +11 -0
- package/dist/packem_shared/index-BspkXADC.js +1 -0
- package/dist/packem_shared/index-CChvzByK.js +1 -0
- package/dist/packem_shared/indexToLineColumn-BRSZFC6I-B2OZwR8G.js +6 -0
- package/dist/packem_shared/ini-preserve-D1DopDLd.js +4 -0
- package/dist/packem_shared/is-stats-identical-l1GRN4Qu.js +1 -0
- package/dist/packem_shared/isAccessible-DV2K-m2B.js +1 -0
- package/dist/packem_shared/isAccessibleSync-BCjiSxHj.js +1 -0
- package/dist/packem_shared/isFsCaseSensitive-j6UlSSM7.js +1 -0
- package/dist/packem_shared/jsonc-merge-Bkw73TLW.js +2 -0
- package/dist/packem_shared/move-CvE-ntXL.js +1 -0
- package/dist/packem_shared/parseJson-vUriP0eD.js +1 -0
- package/dist/packem_shared/readFile-ZXEXbVU5.js +1 -0
- package/dist/packem_shared/readFileSync-DseCu8sg.js +1 -0
- package/dist/packem_shared/readIni-CQK8HYxE.js +1 -0
- package/dist/packem_shared/readIniSync-l9LoYPoP.js +1 -0
- package/dist/packem_shared/readJson-T0hatQjC.js +1 -0
- package/dist/packem_shared/readJson5-CHbnB73J.js +1 -0
- package/dist/packem_shared/readJson5Sync-BsyhQYi8.js +1 -0
- package/dist/packem_shared/readJsonSync-Drti0sPY.js +1 -0
- package/dist/packem_shared/readJsonc-1woJjNLd.js +1 -0
- package/dist/packem_shared/readJsoncSync-TILCPRUQ.js +1 -0
- package/dist/packem_shared/readToml-Dawx4pqK.js +1 -0
- package/dist/packem_shared/readTomlSync-hnDlOU7g.js +1 -0
- package/dist/packem_shared/readYaml-DuXAtLKY.js +1 -0
- package/dist/packem_shared/readYamlSync-KlhBWm72.js +1 -0
- package/dist/packem_shared/remove-DmEfBrzp.js +1 -0
- package/dist/packem_shared/removeSync--c4qlu32.js +1 -0
- package/dist/packem_shared/resolve-symlink-target-CWrn0v4P.js +1 -0
- package/dist/packem_shared/sanitize-DGZ3w-_w.js +1 -0
- package/dist/packem_shared/stripJsonComments-gXl-1fAs.js +1 -0
- package/dist/packem_shared/to-uint-8-array-BBchIT6g.js +1 -0
- package/dist/packem_shared/walk-CxKfBzrV.js +1 -0
- package/dist/packem_shared/walk-include-BXhGSn6t.js +1 -0
- package/dist/packem_shared/walkSync-JkSkFL-F.js +1 -0
- package/dist/packem_shared/writeFile-CM-OVzxG.js +1 -0
- package/dist/packem_shared/writeFileSync-CNaAkXSP.js +1 -0
- package/dist/packem_shared/writeIni-B1NVnZkX.js +4 -0
- package/dist/packem_shared/writeIniSync-CwS1da1r.js +4 -0
- package/dist/packem_shared/writeJson-DC1V8Afe.js +4 -0
- package/dist/packem_shared/writeJson5--_qaVjxW.js +4 -0
- package/dist/packem_shared/writeJson5Sync-DPOk8wWz.js +4 -0
- package/dist/packem_shared/writeJsonSync-CUt49Wp1.js +4 -0
- package/dist/packem_shared/writeJsonc-DXuAO3_X.js +4 -0
- package/dist/packem_shared/writeJsoncSync-BEeqh1ry.js +4 -0
- package/dist/packem_shared/writeToml-BFD91-Sv.js +1 -0
- package/dist/packem_shared/writeTomlSync-D30hzuuu.js +1 -0
- package/dist/packem_shared/writeYaml-BD9JVGkk.js +1 -0
- package/dist/packem_shared/writeYamlSync-BobkRsmd.js +1 -0
- package/dist/size.js +1 -1
- package/dist/toml.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/yaml.js +1 -1
- package/package.json +1 -1
- package/dist/packem_shared/AlreadyExistsError-CEu6_Tjb.js +0 -1
- package/dist/packem_shared/DirectoryError-ddlbUV8C.js +0 -1
- package/dist/packem_shared/JSONError-D7h6PNWc.js +0 -4
- package/dist/packem_shared/NotEmptyError-DMh1o7UL.js +0 -1
- package/dist/packem_shared/NotFoundError-BPiW0icm.js +0 -1
- package/dist/packem_shared/PermissionError-B1Emi5a9.js +0 -1
- package/dist/packem_shared/WalkError-Olmh4908.js +0 -1
- package/dist/packem_shared/_commonjsHelpers-D6W6KoPK.js +0 -1
- package/dist/packem_shared/assertValidFileContents-BZFnXa7K.js +0 -1
- package/dist/packem_shared/assertValidFileOrDirectoryPath-DgPIPmZT.js +0 -1
- package/dist/packem_shared/build-rm-options-C1R4reBu.js +0 -1
- package/dist/packem_shared/collect-BuI4N8Cb.js +0 -1
- package/dist/packem_shared/collectSync-xeb7vY2J.js +0 -1
- package/dist/packem_shared/emptyDir-8utO028L.js +0 -1
- package/dist/packem_shared/emptyDirSync-Bk5fUX73.js +0 -1
- package/dist/packem_shared/ensureDir-CZ4oUFuo.js +0 -1
- package/dist/packem_shared/ensureDirSync-CoPWhbjM.js +0 -1
- package/dist/packem_shared/ensureFile-CF1cAAyh.js +0 -1
- package/dist/packem_shared/ensureFileSync-C3qR6naU.js +0 -1
- package/dist/packem_shared/ensureLink-LLLxlGHn.js +0 -1
- package/dist/packem_shared/ensureLinkSync-Dh_GtT8F.js +0 -1
- package/dist/packem_shared/ensureSymlink-bcGk7tvJ.js +0 -1
- package/dist/packem_shared/ensureSymlinkSync-BbVDPvI4.js +0 -1
- package/dist/packem_shared/findUp-CZow0UvS.js +0 -1
- package/dist/packem_shared/findUpSync-BOMeyfWY.js +0 -1
- package/dist/packem_shared/get-file-info-type-CaWGXRjY.js +0 -1
- package/dist/packem_shared/glob-MHJQjR39.js +0 -1
- package/dist/packem_shared/globSync-CwzlELgS.js +0 -1
- package/dist/packem_shared/index-CYIVJA0W.js +0 -1
- package/dist/packem_shared/index-DrapuBsB.js +0 -1
- package/dist/packem_shared/index-K-NNTkpb.js +0 -11
- package/dist/packem_shared/index-yGx8uzZs.js +0 -1
- package/dist/packem_shared/indexToLineColumn-BRSZFC6I-zN_sCTx7.js +0 -6
- package/dist/packem_shared/ini-preserve-CXc_xkpG.js +0 -4
- package/dist/packem_shared/is-stats-identical-CohsLtWy.js +0 -1
- package/dist/packem_shared/isAccessible-CDFxsAAo.js +0 -1
- package/dist/packem_shared/isAccessibleSync-5nzZWgin.js +0 -1
- package/dist/packem_shared/isFsCaseSensitive-CMZVY1A2.js +0 -1
- package/dist/packem_shared/jsonc-merge-CQMjx3Vw.js +0 -2
- package/dist/packem_shared/move-LmP6P9sn.js +0 -1
- package/dist/packem_shared/parseJson-DTdEDJwS.js +0 -1
- package/dist/packem_shared/readFile-BkNfutxp.js +0 -1
- package/dist/packem_shared/readFileSync-4c_c6Qey.js +0 -1
- package/dist/packem_shared/readIni-DlyyIBHq.js +0 -1
- package/dist/packem_shared/readIniSync-DwomjPMj.js +0 -1
- package/dist/packem_shared/readJson-BiskeuNZ.js +0 -1
- package/dist/packem_shared/readJson5-ffmra5zp.js +0 -1
- package/dist/packem_shared/readJson5Sync-oAo0gBuU.js +0 -1
- package/dist/packem_shared/readJsonSync-cmV1NjAI.js +0 -1
- package/dist/packem_shared/readJsonc-Bd6QH-bH.js +0 -1
- package/dist/packem_shared/readJsoncSync-rcXoQB_7.js +0 -1
- package/dist/packem_shared/readToml-4S8Io3SQ.js +0 -1
- package/dist/packem_shared/readTomlSync-CcZKONFn.js +0 -1
- package/dist/packem_shared/readYaml-D71jaFaB.js +0 -1
- package/dist/packem_shared/readYamlSync-B0UyP0rk.js +0 -1
- package/dist/packem_shared/remove-DH41Ov_c.js +0 -1
- package/dist/packem_shared/removeSync-50OEdnHd.js +0 -1
- package/dist/packem_shared/resolve-symlink-target-BofZSDIc.js +0 -1
- package/dist/packem_shared/sanitize-CU1xmyrg.js +0 -1
- package/dist/packem_shared/stripJsonComments-CzNR77MF.js +0 -1
- package/dist/packem_shared/to-uint-8-array-DwgaTasY.js +0 -1
- package/dist/packem_shared/walk-CFHn3Kig.js +0 -1
- package/dist/packem_shared/walk-include-D2widdUw.js +0 -1
- package/dist/packem_shared/walkSync-D9PxD1XJ.js +0 -1
- package/dist/packem_shared/writeFile-DUmg8P4m.js +0 -1
- package/dist/packem_shared/writeFileSync-Cboe5Z4V.js +0 -1
- package/dist/packem_shared/writeIni-DioeLq2k.js +0 -4
- package/dist/packem_shared/writeIniSync-yk0js2T2.js +0 -4
- package/dist/packem_shared/writeJson-D5-N8O0Q.js +0 -4
- package/dist/packem_shared/writeJson5-RIZyw1vX.js +0 -4
- package/dist/packem_shared/writeJson5Sync-Cnxh1THk.js +0 -4
- package/dist/packem_shared/writeJsonSync-BrXiOras.js +0 -4
- package/dist/packem_shared/writeJsonc-lGAmFl9u.js +0 -4
- package/dist/packem_shared/writeJsoncSync-BFuqkLDq.js +0 -4
- package/dist/packem_shared/writeToml-CaXpILHA.js +0 -1
- package/dist/packem_shared/writeTomlSync-CQ2mzKjs.js +0 -1
- package/dist/packem_shared/writeYaml-DKBXiztZ.js +0 -1
- package/dist/packem_shared/writeYamlSync-DVKnrXBl.js +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as A}from"node:module";import{parse as E,stringify as I}from"ini";import{R_OK as N}from"./F_OK-CAwY1qU7.js";import O from"./isAccessibleSync-BCjiSxHj.js";import{d as R,m as B}from"./ini-preserve-D1DopDLd.js";import L from"./writeFileSync-CNaAkXSP.js";const S=A(import.meta.url),i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,T=r=>{if(typeof i<"u"&&i.versions&&i.versions.node){const[t,n]=i.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return i.getBuiltinModule(r)}return S(r)},{readFileSync:q}=T("node:fs"),C=(r,t,n={})=>{const{eol:_,preserveStyle:g=!0,whitespace:y,...h}=n,{align:b,bracketedArray:a,newline:v,platform:w,section:p,sort:j,...k}=h;let c=_,f=y,o,l;if(g&&O(r,N))try{o=q(r,"utf8"),l=E(o,{bracketedArray:a??!0});const e=R(o);c??=e.eol,f??=e.whitespace}catch(e){if(e.code!=="ENOENT")throw e}const m={align:b,bracketedArray:a,newline:v,platform:w,section:p,sort:j,whitespace:f},d=(e,u)=>I(e,u===void 0?m:{...m,section:u});let s;o!==void 0&&l?s=B(o,l,t,d,{eol:c??`
|
|
2
|
+
`}):(s=d(t,p),c===`\r
|
|
3
|
+
`&&(s=s.replaceAll(/\r?\n/g,`\r
|
|
4
|
+
`))),L(r,s,k)};export{C as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as u}from"node:module";import{k as h}from"./index-B2MhYg3r.js";import{R_OK as j}from"./F_OK-CAwY1qU7.js";import N from"./isAccessible-DV2K-m2B.js";import b from"./writeFile-CM-OVzxG.js";const _=u(import.meta.url),i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof i<"u"&&i.versions&&i.versions.node){const[t,s]=i.versions.node.split(".").map(Number);if(t>22||t===22&&s>=3||t===20&&s>=16)return i.getBuiltinModule(e)}return _(e)},{readFile:y}=g("node:fs/promises"),R=async(e,t,s={})=>{const{detectIndent:c,indent:a,replacer:f,stringify:d=JSON.stringify,...p}={indent:" ",...s};let r=a,n=`
|
|
2
|
+
`;if(await N(e,j))try{const o=await y(e,"utf8");if(c){const{indent:l}=h(o);r=l}n=o.endsWith(`
|
|
3
|
+
`)?`
|
|
4
|
+
`:""}catch(o){if(o.code!=="ENOENT")throw o}const m=d(t,f,r);await b(e,`${m}${n}`,p)};export{R as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as l}from"node:module";import{k as y}from"./index-B2MhYg3r.js";import j from"json5";import{R_OK as q}from"./F_OK-CAwY1qU7.js";import b from"./isAccessible-DV2K-m2B.js";import w from"./writeFile-CM-OVzxG.js";const _=l(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[t,i]=r.versions.node.split(".").map(Number);if(t>22||t===22&&i>=3||t===20&&i>=16)return r.getBuiltinModule(e)}return _(e)},{readFile:h}=g("node:fs/promises"),M=async(e,t,i={})=>{const{detectIndent:a,indent:f,quote:p,replacer:d,...m}={indent:" ",...i};let s=f,n=`
|
|
2
|
+
`;if(await b(e,q))try{const o=await h(e,"utf8");if(a){const{indent:c}=y(o);c&&(s=c)}n=o.endsWith(`
|
|
3
|
+
`)?`
|
|
4
|
+
`:""}catch(o){if(o.code!=="ENOENT")throw o}const u=j.stringify(t,{quote:p,replacer:d,space:s});await w(e,`${u}${n}`,m)};export{M as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as a}from"node:module";import{k as y}from"./index-B2MhYg3r.js";import j from"json5";import{R_OK as q}from"./F_OK-CAwY1qU7.js";import b from"./isAccessibleSync-BCjiSxHj.js";import T from"./writeFileSync-CNaAkXSP.js";const _=a(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[t,s]=r.versions.node.split(".").map(Number);if(t>22||t===22&&s>=3||t===20&&s>=16)return r.getBuiltinModule(e)}return _(e)},{readFileSync:h}=g("node:fs"),E=(e,t,s={})=>{const{detectIndent:f,indent:d,quote:p,replacer:m,...u}={indent:" ",...s};let i=d,n=`
|
|
2
|
+
`;if(b(e,q))try{const o=h(e,"utf8");if(f){const{indent:c}=y(o);c&&(i=c)}n=o.endsWith(`
|
|
3
|
+
`)?`
|
|
4
|
+
`:""}catch(o){if(o.code!=="ENOENT")throw o}const l=j.stringify(t,{quote:p,replacer:m,space:i});T(e,`${l}${n}`,u)};export{E as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as a}from"node:module";import{k as h}from"./index-B2MhYg3r.js";import{R_OK as j}from"./F_OK-CAwY1qU7.js";import N from"./isAccessibleSync-BCjiSxHj.js";import b from"./writeFileSync-CNaAkXSP.js";const _=a(import.meta.url),n=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof n<"u"&&n.versions&&n.versions.node){const[t,r]=n.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return n.getBuiltinModule(e)}return _(e)},{readFileSync:y}=g("node:fs"),R=(e,t,r={})=>{const{detectIndent:c,indent:f,replacer:d,stringify:p=JSON.stringify,...l}={indent:" ",...r};let i=f,s=`
|
|
2
|
+
`;if(N(e,j))try{const o=y(e,"utf8");if(c){const{indent:u}=h(o);i=u}s=o.endsWith(`
|
|
3
|
+
`)?`
|
|
4
|
+
`:""}catch(o){if(o.code!=="ENOENT")throw o}const m=p(t,d,i);b(e,`${m}${s}`,l)};export{R as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as u}from"node:module";import{k as b}from"./index-B2MhYg3r.js";import{R_OK as N}from"./F_OK-CAwY1qU7.js";import h from"./isAccessible-DV2K-m2B.js";import{b as y}from"./jsonc-merge-Bkw73TLW.js";import T from"./writeFile-CM-OVzxG.js";const _=u(import.meta.url),a=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof a<"u"&&a.versions&&a.versions.node){const[t,n]=a.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return a.getBuiltinModule(e)}return _(e)},{readFile:w}=g("node:fs/promises"),j=async(e,t,n)=>{let r,o=n,s=`
|
|
2
|
+
`;if(!await h(e,N))return{indent:o,trailingNewline:s};try{if(r=await w(e,"utf8"),t){const{indent:i}=b(r);i&&(o=i)}s=r.endsWith(`
|
|
3
|
+
`)?`
|
|
4
|
+
`:""}catch(i){if(i.code!=="ENOENT")throw i}return{existingText:r,indent:o,trailingNewline:s}},E=async(e,t,n={})=>{const{detectIndent:r,formattingOptions:o,indent:s,preserveComments:i=!0,replacer:c,...d}={indent:" ",...n},{existingText:l,indent:m,trailingNewline:p}=await j(e,r,s),f=y(l,t,i,m,p,o,c);await T(e,f,d)};export{E as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as a}from"node:module";import{k as b}from"./index-B2MhYg3r.js";import{R_OK as h}from"./F_OK-CAwY1qU7.js";import T from"./isAccessibleSync-BCjiSxHj.js";import{b as j}from"./jsonc-merge-Bkw73TLW.js";import x from"./writeFileSync-CNaAkXSP.js";const _=a(import.meta.url),c=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof c<"u"&&c.versions&&c.versions.node){const[t,i]=c.versions.node.split(".").map(Number);if(t>22||t===22&&i>=3||t===20&&i>=16)return c.getBuiltinModule(e)}return _(e)},{readFileSync:N}=g("node:fs"),y=(e,t,i)=>{let r,o=i,s=`
|
|
2
|
+
`;if(!T(e,h))return{indent:o,trailingNewline:s};try{if(r=N(e,"utf8"),t){const{indent:n}=b(r);n&&(o=n)}s=r.endsWith(`
|
|
3
|
+
`)?`
|
|
4
|
+
`:""}catch(n){if(n.code!=="ENOENT")throw n}return{existingText:r,indent:o,trailingNewline:s}},B=(e,t,i={})=>{const{detectIndent:r,formattingOptions:o,indent:s,preserveComments:n=!0,replacer:d,...l}={indent:" ",...i},{existingText:f,indent:m,trailingNewline:p}=y(e,r,s),u=j(f,t,n,m,p,o,d);x(e,u,l)};export{B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stringify as a}from"smol-toml";import i from"./writeFile-CM-OVzxG.js";const s=async(t,o,r)=>{await i(t,a(o),r)};export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stringify as f}from"smol-toml";import i from"./writeFileSync-CNaAkXSP.js";const p=(o,r,t)=>{i(o,f(r),t)};export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stringify as p}from"yaml";import t from"./writeFile-CM-OVzxG.js";async function l(c,i,e,f){let r,a,o;typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e!="function"?(r=e,a=r.replacer,o=r.space):typeof f=="object"?(r=f,a=e,o=r.space):(a=e,o=f);const n=p(i,a,o??r);await t(c,n,r)}export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stringify as n}from"yaml";import t from"./writeFileSync-CNaAkXSP.js";function y(a,c,e,p){let r,o,f;typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e!="function"?(r=e,o=r.replacer,f=r.space):typeof p=="object"?(r=p,o=e,f=r.space):(o=e,f=p);const i=n(c,o,f??r);t(a,i,r)}export{y as default};
|
package/dist/size.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{createRequire as S}from"node:module";import{toPath as c}from"@visulima/path/utils";const z=S(import.meta.url),i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,o=t=>{if(typeof i<"u"&&i.versions&&i.versions.node){const[n,e]=i.versions.node.split(".").map(Number);if(n>22||n===22&&e>=3||n===20&&e>=16)return i.getBuiltinModule(t)}return z(t)},{readFileSync:d,statSync:_,existsSync:y}=o("node:fs"),{readFile:b}=o("node:fs/promises"),{isAbsolute:B,resolve:j}=o("node:path"),{Readable:m}=o("node:stream"),{URL:f}=o("node:url"),{brotliCompressSync:s,gzipSync:a,createGzip:v,createBrotliCompress:R}=o("node:zlib"),l=t=>{if(B(t))return y(t);try{return y(j(t))}catch{return!1}},q=async t=>{let n=0;for await(const e of t)n+=Buffer.from(e).length;return n},h=async(t,n)=>{let e=0;const r=n();return await new Promise((u,p)=>{r.on("data",w=>{e+=w.length}),r.on("end",()=>{u(e)}),r.on("error",p),t.on("error",p),t.pipe(r)})},g=async(t,n,e)=>{if(t instanceof f||typeof t=="string"){const r=c(t);if(l(r)){const u=m.from(await b(r));return await e(u)}if(typeof t=="string")return n(Buffer.from(t))}return t instanceof m?await e(t):n(t)},x=async(t,n)=>await g(t,e=>a(e,n).length,async e=>await h(e,()=>v(n))),C=async(t,n)=>await g(t,e=>s(e,n).length,async e=>await h(e,()=>R(n))),F=async t=>await g(t,n=>n.length,async n=>await q(n)),M=(t,n)=>{if(t instanceof f||typeof t=="string"){const e=c(t);if(l(e))return a(d(e),n).length;if(typeof t=="string")return a(Buffer.from(t),n).length}return a(t,n).length},A=(t,n)=>{if(t instanceof f||typeof t=="string"){const e=c(t);if(l(e))return s(d(e),n).length;if(typeof t=="string")return s(Buffer.from(t),n).length}return s(t,n).length},G=t=>{if(t instanceof f||typeof t=="string"){const n=c(t);if(l(n))return _(n).size;if(typeof t=="string")return Buffer.from(t).length}return t.length};export{C as brotliSize,A as brotliSizeSync,x as gzipSize,M as gzipSizeSync,F as rawSize,G as rawSizeSync};
|
package/dist/toml.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"./packem_shared/readToml-
|
|
1
|
+
import{default as r}from"./packem_shared/readToml-Dawx4pqK.js";import{default as t}from"./packem_shared/readTomlSync-hnDlOU7g.js";import{default as l}from"./packem_shared/writeToml-BFD91-Sv.js";import{default as d}from"./packem_shared/writeTomlSync-D30hzuuu.js";export{r as readToml,t as readTomlSync,l as writeToml,d as writeTomlSync};
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"./packem_shared/JSONError-
|
|
1
|
+
import{default as e}from"./packem_shared/JSONError-Cvp9ycba.js";import{default as a}from"./packem_shared/assertValidFileContents-CbIN7sy7.js";import{default as f}from"./packem_shared/assertValidFileOrDirectoryPath-BTlt945W.js";import{default as m}from"./packem_shared/parseJson-vUriP0eD.js";import{default as d}from"./packem_shared/stripJsonComments-gXl-1fAs.js";import{toPath as x}from"@visulima/path/utils";export{e as JSONError,a as assertValidFileContents,f as assertValidFileOrDirectoryPath,m as parseJson,d as stripJsonComments,x as toPath};
|
package/dist/yaml.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"./packem_shared/readYaml-
|
|
1
|
+
import{default as r}from"./packem_shared/readYaml-DuXAtLKY.js";import{default as f}from"./packem_shared/readYamlSync-KlhBWm72.js";import{default as m}from"./packem_shared/writeYaml-BD9JVGkk.js";import{default as d}from"./packem_shared/writeYamlSync-BobkRsmd.js";export{r as readYaml,f as readYamlSync,m as writeYaml,d as writeYamlSync};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var a=Object.defineProperty,n=t((e,r)=>a(e,"name",{value:r,configurable:!0}),"t");class E extends Error{static{t(this,"n")}static{n(this,"AlreadyExistsError")}constructor(r){super(`EEXIST: ${r}`)}get code(){return"EEXIST"}set code(r){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(r){throw new Error("Cannot overwrite name of AlreadyExistsError")}}export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,a=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class i extends Error{static{o(this,"n")}static{a(this,"DirectoryError")}constructor(r){super(`EISDIR: Illegal operation on a directory, ${r}`)}get code(){return"EISDIR"}set code(r){throw new Error("Cannot overwrite code EISDIR")}get name(){return"DirectoryError"}set name(r){throw new Error("Cannot overwrite name of DirectoryError")}}export{i as default};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});var a=Object.defineProperty,i=t((r,e)=>a(r,"name",{value:e,configurable:!0}),"i");class m extends Error{static{t(this,"t")}static{i(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(e){super(),this.#e=e}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
|
|
2
|
-
|
|
3
|
-
${this.codeFrame}
|
|
4
|
-
`:""}`}set message(e){this.#e=e}}export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,E=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"t");class c extends Error{static{t(this,"n")}static{E(this,"NotEmptyError")}constructor(r){super(`ENOTEMPTY: Directory not empty, ${r}`)}get code(){return"ENOTEMPTY"}set code(r){throw new Error("Cannot overwrite code ENOTEMPTY")}get name(){return"NotEmptyError"}set name(r){throw new Error("Cannot overwrite name of NotEmptyError")}}export{c as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,a=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class u extends Error{static{o(this,"n")}static{a(this,"NotFoundError")}constructor(r){super(`ENOENT: ${r}`)}get code(){return"ENOENT"}set code(r){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(r){throw new Error("Cannot overwrite name of NotFoundError")}}export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,s=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"o");class i extends Error{static{t(this,"n")}static{s(this,"PermissionError")}constructor(r){super(`EPERM: Operation not permitted, ${r}`)}get code(){return"EPERM"}set code(r){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(r){throw new Error("Cannot overwrite name of PermissionError")}}export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,s=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"t");class c extends Error{static{t(this,"i")}static{s(this,"WalkError")}root;constructor(r,a){super(`${r instanceof Error?r.message:String(r)} for path "${a}"`),this.cause=r,this.root=a}get name(){return"WalkError"}set name(r){throw new Error("Cannot overwrite name of WalkError")}}export{c as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var r=(t,e)=>c(t,"name",{value:e,configurable:!0});var p=Object.defineProperty,a=r((t,e)=>p(t,"name",{value:e,configurable:!0}),"t");function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}r(f,"getDefaultExportFromCjs");a(f,"getDefaultExportFromCjs");function l(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}r(l,"getDefaultExportFromNamespaceIfPresent");a(l,"getDefaultExportFromNamespaceIfPresent");function s(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}r(s,"getDefaultExportFromNamespaceIfNotNamed");a(s,"getDefaultExportFromNamespaceIfNotNamed");function m(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var o=a(r(function n(){var u=!1;try{u=this instanceof n}catch{}return u?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a"),"a");o.prototype=e.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,u.get?u:{enumerable:!0,get:a(function(){return t[n]},"get")})}),o}r(m,"getAugmentedNamespace");a(m,"getAugmentedNamespace");export{f as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var f=Object.defineProperty,i=t((e,r)=>f(e,"name",{value:r,configurable:!0}),"e");const o=i(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var n=Object.defineProperty,o=t((e,r)=>n(e,"name",{value:r,configurable:!0}),"n");const s=o(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var t=(e,r)=>a(e,"name",{value:r,configurable:!0});var i=Object.defineProperty,o=t((e,r)=>i(e,"name",{value:r,configurable:!0}),"t");const n=o(e=>{const r={force:!0,recursive:!0};return e?.maxRetries!==void 0&&(r.maxRetries=e.maxRetries),e?.retryDelay!==void 0&&(r.retryDelay=e.retryDelay),r},"buildRmOptions");export{n as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.defineProperty;var a=(r,e)=>n(r,"name",{value:e,configurable:!0});import o from"./walk-CFHn3Kig.js";var c=Object.defineProperty,i=a((r,e)=>c(r,"name",{value:e,configurable:!0}),"e");const l=i(async(r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const s=[];for await(const t of o(r,e))s.push(t.path);return s},"collect");export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var s=(r,e)=>t(r,"name",{value:e,configurable:!0});import a from"./walkSync-D9PxD1XJ.js";var c=Object.defineProperty,f=s((r,e)=>c(r,"name",{value:e,configurable:!0}),"n");const l=f((r,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const o=[];for(const n of a(r,e))o.push(n.path);return o},"collectSync");export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var i=(e,r)=>c(e,"name",{value:r,configurable:!0});import{createRequire as f}from"node:module";import{join as _}from"@visulima/path";import{toPath as g}from"@visulima/path/utils";import j from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{i as v}from"./build-rm-options-C1R4reBu.js";const m=f(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,t=i(e=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[r,s]=o.versions.node.split(".").map(Number);if(r>22||r===22&&s>=3||r===20&&s>=16)return o.getBuiltinModule(e)}return m(e)},"__cjs_getBuiltinModule"),{existsSync:u}=t("node:fs"),{mkdir:p,readdir:d,rm:l}=t("node:fs/promises");var y=Object.defineProperty,b=i((e,r)=>y(e,"name",{value:r,configurable:!0}),"o");const B=b(async(e,r)=>{if(j(e),!u(e)){await p(e,{recursive:!0});return}const s=await d(e),n=v(r);for(const a of s)await l(_(g(e),a),n)},"emptyDir");export{B as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var s=(e,r)=>t(e,"name",{value:r,configurable:!0});import{createRequire as c}from"node:module";import{join as l}from"@visulima/path";import{toPath as _}from"@visulima/path/utils";import y from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{i as g}from"./build-rm-options-C1R4reBu.js";const f=c(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,m=s(e=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[r,i]=o.versions.node.split(".").map(Number);if(r>22||r===22&&i>=3||r===20&&i>=16)return o.getBuiltinModule(e)}return f(e)},"__cjs_getBuiltinModule"),{existsSync:u,mkdirSync:a,readdirSync:p,rmSync:d}=m("node:fs");var j=Object.defineProperty,v=s((e,r)=>j(e,"name",{value:r,configurable:!0}),"o");const x=v((e,r)=>{if(y(e),!u(e)){a(e,{recursive:!0});return}const i=g(r);for(const n of p(e))d(l(_(e),n),i)},"emptyDirSync");export{x as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var s=(r,e)=>c(r,"name",{value:e,configurable:!0});import{createRequire as a}from"node:module";import d from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{g as n}from"./get-file-info-type-CaWGXRjY.js";const u=a(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=s(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,t]=o.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return o.getBuiltinModule(r)}return u(r)},"__cjs_getBuiltinModule"),{lstat:i,mkdir:p}=f("node:fs/promises");var l=Object.defineProperty,m=s((r,e)=>l(r,"name",{value:e,configurable:!0}),"o");const w=m(async r=>{d(r);try{const e=await i(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await p(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=await i(r);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(t))}'`,{cause:e})}},"ensureDir");export{w as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var s=(r,e)=>c(r,"name",{value:e,configurable:!0});import{createRequire as a}from"node:module";import p from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import{g as n}from"./get-file-info-type-CaWGXRjY.js";const u=a(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=s(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,t]=o.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return o.getBuiltinModule(r)}return u(r)},"__cjs_getBuiltinModule"),{lstatSync:i,mkdirSync:d}=f("node:fs");var l=Object.defineProperty,g=s((r,e)=>l(r,"name",{value:e,configurable:!0}),"o");const E=g(r=>{p(r);try{const e=i(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{d(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=i(r);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(n(t))}'`,{cause:e})}},"ensureDirSync");export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});import{createRequire as n}from"node:module";import{dirname as l}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import d from"./ensureDir-CZ4oUFuo.js";import{g as _}from"./get-file-info-type-CaWGXRjY.js";const a=n(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,c=t(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,i]=o.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return o.getBuiltinModule(r)}return a(r)},"__cjs_getBuiltinModule"),{lstat:f,writeFile:p}=c("node:fs/promises");var g=Object.defineProperty,w=t((r,e)=>g(r,"name",{value:e,configurable:!0}),"o");const F=w(async r=>{u(r);try{const e=await f(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(_(e))}'`)}catch(e){if(e.code==="ENOENT"){await d(l(m(r))),await p(r,new Uint8Array);return}throw e}},"ensureFile");export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});import{createRequire as n}from"node:module";import{dirname as p}from"@visulima/path";import{toPath as u}from"@visulima/path/utils";import m from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import d from"./ensureDirSync-CoPWhbjM.js";import{g as _}from"./get-file-info-type-CaWGXRjY.js";const c=n(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,a=t(r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,i]=o.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return o.getBuiltinModule(r)}return c(r)},"__cjs_getBuiltinModule"),{lstatSync:f,writeFileSync:l}=a("node:fs");var g=Object.defineProperty,y=t((r,e)=>g(r,"name",{value:e,configurable:!0}),"o");const F=y(r=>{m(r);try{const e=f(r);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(_(e))}'`)}catch(e){if(e.code==="ENOENT"){d(p(u(r))),l(r,new Uint8Array);return}throw e}},"ensureFileSync");export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var f=Object.defineProperty;var i=(t,e)=>f(t,"name",{value:e,configurable:!0});import{createRequire as u}from"node:module";import{toNamespacedPath as c,dirname as h}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import y from"./ensureDir-CZ4oUFuo.js";import{l as b}from"./is-stats-identical-CohsLtWy.js";const d=u(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=i(t=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,o]=s.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return s.getBuiltinModule(t)}return d(t)},"__cjs_getBuiltinModule"),{lstat:n,link:g}=_("node:fs/promises");var j=Object.defineProperty,v=i((t,e)=>j(t,"name",{value:e,configurable:!0}),"i");const M=v(async(t,e)=>{l(t),l(e),t=c(m(t)),e=c(m(e));let o;try{o=await n(e)}catch{}let a;try{a=await n(t)}catch(p){const r=p;throw r.message=r.message.replace("lstat","ensureLink"),r}o&&b(a,o)||(await y(h(e)),await g(t,e))},"ensureLink");export{M as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=Object.defineProperty;var n=(o,e)=>u(o,"name",{value:e,configurable:!0});import{createRequire as f}from"node:module";import{toNamespacedPath as c,dirname as y}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import h from"./ensureDirSync-CoPWhbjM.js";import{l as b}from"./is-stats-identical-CohsLtWy.js";const d=f(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=n(o=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[e,t]=r.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return r.getBuiltinModule(o)}return d(o)},"__cjs_getBuiltinModule"),{lstatSync:a,linkSync:g}=_("node:fs");var j=Object.defineProperty,v=n((o,e)=>j(o,"name",{value:e,configurable:!0}),"m");const M=v((o,e)=>{l(o),l(e),o=c(m(o)),e=c(m(e));let t;try{t=a(e)}catch{}let i;try{i=a(o)}catch(p){const s=p;throw s.message=s.message.replace("lstat","ensureLink"),s}t&&b(i,t)||(h(y(e)),g(o,e))},"ensureLinkSync");export{M as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var v=Object.defineProperty;var c=(o,e)=>v(o,"name",{value:e,configurable:!0});import{createRequire as b}from"node:module";import{toNamespacedPath as l,dirname as T,resolve as $}from"@visulima/path";import{toPath as d}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import q from"./ensureDir-CZ4oUFuo.js";import{g as y}from"./get-file-info-type-CaWGXRjY.js";import{l as x}from"./is-stats-identical-CohsLtWy.js";import{o as E}from"./resolve-symlink-target-BofZSDIc.js";import g from"./AlreadyExistsError-CEu6_Tjb.js";const j=b(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,k=c(o=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[e,i]=r.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return r.getBuiltinModule(o)}return j(o)},"__cjs_getBuiltinModule"),{lstat:m,stat:p,symlink:P,readlink:S}=k("node:fs/promises");var L=Object.defineProperty,A=c((o,e)=>L(o,"name",{value:e,configurable:!0}),"m");const B=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),D=A(async(o,e,i)=>{u(o),u(e);const t=E(o,e);e=l(d(e));try{if((await m(e)).isSymbolicLink()){const[s,n]=await Promise.all([p(t),p(e)]);if(x(s,n))return}}catch{}const h=await m(t),w=y(h);await q(T(e));let a=i??"file";i||(B?a="junction":a=w==="dir"?"dir":"file");try{await P(l(d(t)),e,a)}catch(s){if(s.code!=="EEXIST")throw s;const n=await m(e);if(!n.isSymbolicLink())throw new g(`A ${String(y(n))} already exists at the path: ${e}`);const _=await S(e),f=l($(_));if(f!==t)throw new g(`A symlink targeting to an undesired path already exists: ${e} -> ${f}`)}},"ensureSymlink");export{D as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var b=Object.defineProperty;var m=(o,e)=>b(o,"name",{value:e,configurable:!0});import{createRequire as w}from"node:module";import{toNamespacedPath as f,dirname as T,resolve as q}from"@visulima/path";import{toPath as d}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";import x from"./ensureDirSync-CoPWhbjM.js";import{g as y}from"./get-file-info-type-CaWGXRjY.js";import{l as g}from"./is-stats-identical-CohsLtWy.js";import{o as E}from"./resolve-symlink-target-BofZSDIc.js";import h from"./AlreadyExistsError-CEu6_Tjb.js";const j=w(import.meta.url),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$=m(o=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[e,r]=t.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return t.getBuiltinModule(o)}return j(o)},"__cjs_getBuiltinModule"),{lstatSync:l,statSync:c,symlinkSync:k,readlinkSync:P}=$("node:fs");var L=Object.defineProperty,A=m((o,e)=>L(o,"name",{value:e,configurable:!0}),"p");const B=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),D=A((o,e,r)=>{u(o),u(e);const i=E(o,e);e=f(d(e));try{if(l(e).isSymbolicLink()&&g(c(i),c(e))){const n=c(i),s=c(e);if(g(n,s))return}}catch{}const _=l(i),S=y(_);x(T(e));let a=r??"file";r||(B?a="junction":a=S==="dir"?"dir":"file");try{k(f(d(i)),e,a)}catch(n){if(n.code!=="EEXIST")throw n;const s=l(e);if(!s.isSymbolicLink())throw new h(`A ${String(y(s))} already exists at the path: ${e}`);const v=P(e),p=f(q(v));if(p!==i)throw new h(`A symlink targeting to an undesired path already exists: ${e} -> ${p}`)}},"ensureSymlinkSync");export{D as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var h=Object.defineProperty;var a=(r,e)=>h(r,"name",{value:e,configurable:!0});import{createRequire as b}from"node:module";import{resolve as c,parse as P,isAbsolute as S,dirname as B}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import{FIND_UP_STOP as q}from"./F_OK-CAwY1qU7.js";const v=b(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,j=a(r=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,i]=s.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return s.getBuiltinModule(r)}return v(r)},"__cjs_getBuiltinModule"),{stat:A,lstat:T}=j("node:fs/promises");var M=Object.defineProperty,m=a((r,e)=>M(r,"name",{value:e,configurable:!0}),"s");const N=m(async(r,e={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const i=e.cwd?f(e.cwd):process.cwd();let t=c(i);const{root:u}=P(t),d=f(e.stopAt??u),g=c(t,d),l=e.type??"file",_=m(async function(n){return typeof r=="function"?[await r(n)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");e.allowSymlinks??=!0;const w=e.allowSymlinks?A:T;for(;t&&t!==g&&t!==u;){const n=await _(t);for(let o of n){if(o===q)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=f(o));const p=S(o)?o:c(t,o);try{const y=await w(p);if(l==="file"&&y.isFile()||l==="directory"&&y.isDirectory())return p}catch{}}t=B(t)}},"findUp");export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var b=Object.defineProperty;var i=(e,t)=>b(e,"name",{value:t,configurable:!0});import{createRequire as h}from"node:module";import{resolve as c,parse as j,isAbsolute as T,dirname as P}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import{FIND_UP_STOP as B}from"./F_OK-CAwY1qU7.js";const v=h(import.meta.url),n=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,w=i(e=>{if(typeof n<"u"&&n.versions&&n.versions.node){const[t,s]=n.versions.node.split(".").map(Number);if(t>22||t===22&&s>=3||t===20&&s>=16)return n.getBuiltinModule(e)}return v(e)},"__cjs_getBuiltinModule"),{statSync:A,lstatSync:S}=w("node:fs");var q=Object.defineProperty,y=i((e,t)=>q(e,"name",{value:t,configurable:!0}),"o");const F=y((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const s=t.cwd?f(t.cwd):process.cwd();let r=c(s);const{root:a}=j(r),m=f(t.stopAt??a),d=c(r,m),u=t.type??"file",g=y(function(o){return typeof e=="function"?[e(o)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const _=t.allowSymlinks?A:S;for(;r&&r!==d&&r!==a;){for(let o of g(r)){if(o===B)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=f(o));const l=T(o)?o:c(r,o);try{const p=_(l);if(u==="file"&&p.isFile()||u==="directory"&&p.isDirectory())return l}catch{}}r=P(r)}},"findUpSync");export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.defineProperty;var r=(e,i)=>n(e,"name",{value:i,configurable:!0});var t=Object.defineProperty,f=r((e,i)=>t(e,"name",{value:i,configurable:!0}),"i");const o=f(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");export{o as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var r=(a,e)=>t(a,"name",{value:e,configurable:!0});import{b as o}from"./index-yGx8uzZs.js";var n=Object.defineProperty,b=r((a,e)=>n(a,"name",{value:e,configurable:!0}),"r");const f=b(async(a,e)=>await o(a,e),"glob");export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var a=(e,r)=>t(e,"name",{value:r,configurable:!0});import{x as o}from"./index-yGx8uzZs.js";var n=Object.defineProperty,c=a((e,r)=>n(e,"name",{value:r,configurable:!0}),"n");const s=c((e,r)=>o(e,r),"globSync");export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var s=(n,t)=>w(n,"name",{value:t,configurable:!0});var E=Object.defineProperty,i=s((n,t)=>E(n,"name",{value:t,configurable:!0}),"i");const K=/^(?:( )+|\t+)/,f="space";function g(n,t,e){return n&&t===f&&e===1}s(g,"I");i(g,"shouldIgnoreSingleSpace");function y(n,t){const e=new Map;let o=0,c,r;for(const u of n.split(/\n/g)){if(!u)continue;const l=u.match(K);if(l===null)o=0,c="";else{const d=l[0].length,a=l[1]?f:"tab";if(g(t,a,d))continue;a!==c&&(o=0),c=a;let m=1,I=0;const b=d-o;if(o=d,b===0)m=0,I=1;else{const h=Math.abs(b);if(g(t,a,h))continue;r=v(a,h)}const p=e.get(r);e.set(r,p===void 0?[1,0]:[p[0]+m,p[1]+I])}}return e}s(y,"h");i(y,"makeIndentsMap");function v(n,t){return(n===f?"s":"t")+String(t)}s(v,"m");i(v,"encodeIndentsKey");function M(n){const t=n[0]==="s"?f:"tab",e=Number(n.slice(1));return{type:t,amount:e}}s(M,"_");i(M,"decodeIndentsKey");function S(n){let t,e=0,o=0;for(const[c,[r,u]]of n)(r>e||r===e&&u>o)&&(e=r,o=u,t=c);return t}s(S,"k");i(S,"getMostUsedKey");function k(n,t){return(n===f?" ":" ").repeat(t)}s(k,"D");i(k,"makeIndentString");function x(n){if(typeof n!="string")throw new TypeError("Expected a string");let t=y(n,!0);t.size===0&&(t=y(n,!1));const e=S(t);let o,c=0,r="";return e!==void 0&&({type:o,amount:c}=M(e),r=k(o,c)),{amount:c,type:o,indent:r}}s(x,"C");i(x,"detectIndent");export{x as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var It=Object.defineProperty;var ut=(d,A)=>It(d,"name",{value:A,configurable:!0});import{g as Pt}from"./_commonjsHelpers-D6W6KoPK.js";var St={},xt,Ht;function bt(){if(Ht)return xt;Ht=1;const d="[^\\\\/]",A=Symbol("unignore"),H="\\.",v="\\+",D="\\?",p="\\/",x="(?=.)",c="[^/]",o=`(?:${p}|$)`,_=`(?:^|${p})`,g=`${H}{1,2}${o}`,G=`(?!${H})`,$=`(?!${_}${g})`,F=`(?!${H}{0,1}${o})`,M=`(?!${g})`,k=`[^.${p}]`,U=`${c}*?`,it="/",Z={DOT_LITERAL:H,PLUS_LITERAL:v,QMARK_LITERAL:D,SLASH_LITERAL:p,ONE_CHAR:x,QMARK:c,END_ANCHOR:o,DOTS_SLASH:g,NO_DOT:G,NO_DOTS:$,NO_DOT_SLASH:F,NO_DOTS_SLASH:M,QMARK_NO_DOT:k,STAR:U,START_ANCHOR:_,SEP:it},Q={...Z,SLASH_LITERAL:"[\\\\/]",QMARK:d,STAR:`${d}*?`,DOTS_SLASH:`${H}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${H})`,NO_DOTS:`(?!(?:^|[\\\\/])${H}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${H}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${H}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},i={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return xt={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:i,UNIGNORE:A,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(s){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${s.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(s){return s===!0?Q:Z}},xt}ut(bt,"requireConstants");var Ot;function yt(){return Ot||(Ot=1,(function(d){const{REGEX_BACKSLASH:A,REGEX_REMOVE_BACKSLASH:H,REGEX_SPECIAL_CHARS:v,REGEX_SPECIAL_CHARS_GLOBAL:D}=bt();d.isObject=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),d.hasRegexChars=p=>v.test(p),d.isRegexChar=p=>p.length===1&&d.hasRegexChars(p),d.escapeRegex=p=>p.replace(D,"\\$1"),d.toPosixSlashes=p=>p.replace(A,"/"),d.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const p=navigator.platform.toLowerCase();return p==="win32"||p==="windows"}return process.platform?process.platform==="win32":!1},d.removeBackslashes=p=>p.replace(H,x=>x==="\\"?"":x),d.escapeLast=(p,x,c)=>{const o=p.lastIndexOf(x,c);return o===-1?p:p[o-1]==="\\"?d.escapeLast(p,x,o-1):`${p.slice(0,o)}\\${p.slice(o)}`},d.removePrefix=(p,x={})=>{let c=p;return c.startsWith("./")&&(c=c.slice(2),x.prefix="./"),c},d.wrapOutput=(p,x={},c={})=>{const o=c.contains?"":"^",_=c.contains?"":"$";let g=`${o}(?:${p})${_}`;return x.negated===!0&&(g=`(?:^(?!${g}).*$)`),g},d.basename=(p,{windows:x}={})=>{const c=p.split(x?/[\\/]/:"/"),o=c[c.length-1];return o===""?c[c.length-2]:o}})(St)),St}ut(yt,"requireUtils");var Ct,mt;function wt(){if(mt)return Ct;mt=1;var d=Object.defineProperty,A=ut((s,u)=>d(s,"name",{value:u,configurable:!0}),"k");const H=yt(),{CHAR_ASTERISK:v,CHAR_AT:D,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:x,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:_,CHAR_LEFT_CURLY_BRACE:g,CHAR_LEFT_PARENTHESES:G,CHAR_LEFT_SQUARE_BRACKET:$,CHAR_PLUS:F,CHAR_QUESTION_MARK:M,CHAR_RIGHT_CURLY_BRACE:k,CHAR_RIGHT_PARENTHESES:U,CHAR_RIGHT_SQUARE_BRACKET:it}=bt(),Z=A(s=>s===_||s===p,"isPathSeparator"),Q=A(s=>{s.isPrefix!==!0&&(s.depth=s.isGlobstar?1/0:1)},"depth");return Ct=A((s,u)=>{const l=u||{},y=s.length-1,f=l.parts===!0||l.scanToEnd===!0,E=[],h=[],lt=[];let W=s,K=-1,X=0,j=0,J=!1,tt=!1,w=!1,pt=!1,ft=!1,O=!1,Y=!1,Rt=!1,_t=!1,L=!1,V=0,st,R,t={value:"",depth:0,isGlob:!1};const q=A(()=>K>=y,"eos"),rt=A(()=>W.charCodeAt(K+1),"peek"),z=A(()=>(st=R,W.charCodeAt(++K)),"advance");for(;K<y;){R=z();let P;if(R===p){Y=t.backslashes=!0,R=z(),R===g&&(O=!0);continue}if(O===!0||R===g){for(V++;q()!==!0&&(R=z());){if(R===p){Y=t.backslashes=!0,z();continue}if(R===g){V++;continue}if(O!==!0&&R===c&&(R=z())===c){if(J=t.isBrace=!0,w=t.isGlob=!0,L=!0,f===!0)continue;break}if(O!==!0&&R===x){if(J=t.isBrace=!0,w=t.isGlob=!0,L=!0,f===!0)continue;break}if(R===k&&(V--,V===0)){O=!1,J=t.isBrace=!0,L=!0;break}}if(f===!0)continue;break}if(R===_){if(E.push(K),h.push(t),t={value:"",depth:0,isGlob:!1},L===!0)continue;if(st===c&&K===X+1){X+=2;continue}j=K+1;continue}if(l.noext!==!0&&(R===F||R===D||R===v||R===M||R===o)&&rt()===G){if(w=t.isGlob=!0,pt=t.isExtglob=!0,L=!0,R===o&&K===X&&(_t=!0),f===!0){for(;q()!==!0&&(R=z());){if(R===p){Y=t.backslashes=!0,R=z();continue}if(R===U){w=t.isGlob=!0,L=!0;break}}continue}break}if(R===v){if(st===v&&(ft=t.isGlobstar=!0),w=t.isGlob=!0,L=!0,f===!0)continue;break}if(R===M){if(w=t.isGlob=!0,L=!0,f===!0)continue;break}if(R===$){for(;q()!==!0&&(P=z());){if(P===p){Y=t.backslashes=!0,z();continue}if(P===it){tt=t.isBracket=!0,w=t.isGlob=!0,L=!0;break}}if(f===!0)continue;break}if(l.nonegate!==!0&&R===o&&K===X){Rt=t.negated=!0,X++;continue}if(l.noparen!==!0&&R===G){if(w=t.isGlob=!0,f===!0){for(;q()!==!0&&(R=z());){if(R===G){Y=t.backslashes=!0,R=z();continue}if(R===U){L=!0;break}}continue}break}if(w===!0){if(L=!0,f===!0)continue;break}}l.noext===!0&&(pt=!1,w=!1);let e=W,n="",nt="";X>0&&(n=W.slice(0,X),W=W.slice(X),j-=X),e&&w===!0&&j>0?(e=W.slice(0,j),nt=W.slice(j)):w===!0?(e="",nt=W):e=W,e&&e!==""&&e!=="/"&&e!==W&&Z(e.charCodeAt(e.length-1))&&(e=e.slice(0,-1)),l.unescape===!0&&(nt&&(nt=H.removeBackslashes(nt)),e&&Y===!0&&(e=H.removeBackslashes(e)));const m={prefix:n,input:s,start:X,base:e,glob:nt,isBrace:J,isBracket:tt,isGlob:w,isExtglob:pt,isGlobstar:ft,negated:Rt,negatedExtglob:_t};if(l.tokens===!0&&(m.maxDepth=0,Z(R)||h.push(t),m.tokens=h),l.parts===!0||l.tokens===!0){let P;for(let I=0;I<E.length;I++){const et=P?P+1:X,At=E[I],ht=s.slice(et,At);l.tokens&&(I===0&&X!==0?(h[I].isPrefix=!0,h[I].value=n):h[I].value=ht,Q(h[I]),m.maxDepth+=h[I].depth),(I!==0||ht!=="")&<.push(ht),P=At}if(P&&P+1<s.length){const I=s.slice(P+1);lt.push(I),l.tokens&&(h[h.length-1].value=I,Q(h[h.length-1]),m.maxDepth+=h[h.length-1].depth)}m.slashes=E,m.parts=lt}return m},"scan"),Ct}ut(wt,"requireScan");var dt,Lt;function Bt(){if(Lt)return dt;Lt=1;var d=Object.defineProperty,A=ut((i,s)=>d(i,"name",{value:s,configurable:!0}),"y");const H=bt(),v=yt(),{MAX_LENGTH:D,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:x,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:o}=H,_=A((i,s)=>typeof s.expandRange=="function"?s.expandRange(...i,s):(i.sort(),`[${i.join("-")}]`),"expandRange"),g=A((i,s)=>`Missing ${i}: "${s}" - use "\\\\${s}" to match literal characters`,"syntaxError"),G=A(i=>{const s=[];let u=0,l=0,y=0,f="",E=!1;for(const h of i){if(E===!0){f+=h,E=!1;continue}if(h==="\\"){f+=h,E=!0;continue}if(h==='"'){y=y===1?0:1,f+=h;continue}if(y===0){if(h==="[")u++;else if(h==="]"&&u>0)u--;else if(u===0){if(h==="(")l++;else if(h===")"&&l>0)l--;else if(h==="|"&&l===0){s.push(f),f="";continue}}}f+=h}return s.push(f),s},"splitTopLevel"),$=A(i=>{let s=!1;for(const u of i){if(s===!0){s=!1;continue}if(u==="\\"){s=!0;continue}if(/[?*+@!()[\]{}]/.test(u))return!1}return!0},"isPlainBranch"),F=A(i=>{let s=i.trim(),u=!0;for(;u===!0;)u=!1,/^@\([^\\()[\]{}|]+\)$/.test(s)&&(s=s.slice(2,-1),u=!0);if($(s))return s.replace(/\\(.)/g,"$1")},"normalizeSimpleBranch"),M=A(i=>{const s=i.map(F).filter(Boolean);for(let u=0;u<s.length;u++)for(let l=u+1;l<s.length;l++){const y=s[u],f=s[l],E=y[0];if(!(!E||y!==E.repeat(y.length)||f!==E.repeat(f.length))&&(y===f||y.startsWith(f)||f.startsWith(y)))return!0}return!1},"hasRepeatedCharPrefixOverlap"),k=A((i,s=!0)=>{if(i[0]!=="+"&&i[0]!=="*"||i[1]!=="(")return;let u=0,l=0,y=0,f=!1;for(let E=1;E<i.length;E++){const h=i[E];if(f===!0){f=!1;continue}if(h==="\\"){f=!0;continue}if(h==='"'){y=y===1?0:1;continue}if(y!==1){if(h==="["){u++;continue}if(h==="]"&&u>0){u--;continue}if(!(u>0)){if(h==="("){l++;continue}if(h===")"&&(l--,l===0))return s===!0&&E!==i.length-1?void 0:{type:i[0],body:i.slice(2,E),end:E}}}}},"parseRepeatedExtglob"),U=A(i=>{let s=0;const u=[];for(;s<i.length;){const l=k(i.slice(s),!1);if(!l||l.type!=="*")return;const y=G(l.body).map(E=>E.trim());if(y.length!==1)return;const f=F(y[0]);if(!f||f.length!==1)return;u.push(f),s+=l.end+1}return u.length<1?void 0:`${u.length===1?v.escapeRegex(u[0]):`[${u.map(l=>v.escapeRegex(l)).join("")}]`}*`},"getStarExtglobSequenceOutput"),it=A(i=>{let s=0,u=i.trim(),l=k(u);for(;l;)s++,u=l.body.trim(),l=k(u);return s},"repeatedExtglobRecursion"),Z=A((i,s)=>{if(s.maxExtglobRecursion===!1)return{risky:!1};const u=typeof s.maxExtglobRecursion=="number"?s.maxExtglobRecursion:H.DEFAULT_MAX_EXTGLOB_RECURSION,l=G(i).map(y=>y.trim());if(l.length>1&&(l.some(y=>y==="")||l.some(y=>/^[*?]+$/.test(y))||M(l)))return{risky:!0};for(const y of l){const f=U(y);if(f)return{risky:!0,safeOutput:f};if(it(y)>u)return{risky:!0}}return{risky:!1}},"analyzeRepeatedExtglob"),Q=A((i,s)=>{if(typeof i!="string")throw new TypeError("Expected a string");i=o[i]||i;const u={...s},l=typeof u.maxLength=="number"?Math.min(D,u.maxLength):D;let y=i.length;if(y>l)throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${l}`);const f={type:"bos",value:"",output:u.prepend||""},E=[f],h=u.capture?"":"?:",lt=H.globChars(u.windows),W=H.extglobChars(lt),{DOT_LITERAL:K,PLUS_LITERAL:X,SLASH_LITERAL:j,ONE_CHAR:J,DOTS_SLASH:tt,NO_DOT:w,NO_DOT_SLASH:pt,NO_DOTS_SLASH:ft,QMARK:O,QMARK_NO_DOT:Y,STAR:Rt,START_ANCHOR:_t}=lt,L=A(a=>`(${h}(?:(?!${_t}${a.dot?tt:K}).)*?)`,"globstar"),V=u.dot?"":w,st=u.dot?O:Y;let R=u.bash===!0?L(u):Rt;u.capture&&(R=`(${R})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const t={input:i,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:E};i=v.removePrefix(i,t),y=i.length;const q=[],rt=[],z=[];let e=f,n;const nt=A(()=>t.index===y-1,"eos"),m=t.peek=(a=1)=>i[t.index+a],P=t.advance=()=>i[++t.index]||"",I=A(()=>i.slice(t.index+1),"remaining"),et=A((a="",T=0)=>{t.consumed+=a,t.index+=T},"consume"),At=A(a=>{t.output+=a.output!=null?a.output:a.value,et(a.value)},"append"),ht=A(()=>{let a=1;for(;m()==="!"&&(m(2)!=="("||m(3)==="?");)P(),t.start++,a++;return a%2===0?!1:(t.negated=!0,t.start++,!0)},"negate"),gt=A(a=>{t[a]++,z.push(a)},"increment"),ct=A(a=>{t[a]--,z.pop()},"decrement"),b=A(a=>{if(e.type==="globstar"){const T=t.braces>0&&(a.type==="comma"||a.type==="brace"),r=a.extglob===!0||q.length&&(a.type==="pipe"||a.type==="paren");a.type!=="slash"&&a.type!=="paren"&&!T&&!r&&(t.output=t.output.slice(0,-e.output.length),e.type="star",e.value="*",e.output=R,t.output+=e.output)}if(q.length&&a.type!=="paren"&&(q[q.length-1].inner+=a.value),(a.value||a.output)&&At(a),e&&e.type==="text"&&a.type==="text"){e.output=(e.output||e.value)+a.value,e.value+=a.value;return}a.prev=e,E.push(a),e=a},"push"),Et=A((a,T)=>{const r={...W[T],conditions:1,inner:""};r.prev=e,r.parens=t.parens,r.output=t.output,r.startIndex=t.index,r.tokensIndex=E.length;const S=(u.capture?"(":"")+r.open;gt("parens"),b({type:a,value:T,output:t.output?"":J}),b({type:"paren",extglob:!0,value:P(),output:S}),q.push(r)},"extglobOpen"),Nt=A(a=>{const T=i.slice(a.startIndex,t.index+1),r=i.slice(a.startIndex+2,t.index),S=Z(r,u);if((a.type==="plus"||a.type==="star")&&S.risky){const C=S.safeOutput?(a.output?"":J)+(u.capture?`(${S.safeOutput})`:S.safeOutput):void 0,at=E[a.tokensIndex];at.type="text",at.value=T,at.output=C||v.escapeRegex(T);for(let ot=a.tokensIndex+1;ot<E.length;ot++)E[ot].value="",E[ot].output="",delete E[ot].suffix;t.output=a.output+at.output,t.backtrack=!0,b({type:"paren",extglob:!0,value:n,output:""}),ct("parens");return}let N=a.close+(u.capture?")":""),B;if(a.type==="negate"){let C=R;if(a.inner&&a.inner.length>1&&a.inner.includes("/")&&(C=L(u)),(C!==R||nt()||/^\)+$/.test(I()))&&(N=a.close=`)$))${C}`),a.inner.includes("*")&&(B=I())&&/^\.[^\\/.]+$/.test(B)){const at=Q(B,{...s,fastpaths:!1}).output;N=a.close=`)${at})${C})`}a.prev.type==="bos"&&(t.negatedExtglob=!0)}b({type:"paren",extglob:!0,value:n,output:N}),ct("parens")},"extglobClose");if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(i)){let a=!1,T=i.replace(c,(r,S,N,B,C,at)=>B==="\\"?(a=!0,r):B==="?"?S?S+B+(C?O.repeat(C.length):""):at===0?st+(C?O.repeat(C.length):""):O.repeat(N.length):B==="."?K.repeat(N.length):B==="*"?S?S+B+(C?R:""):R:S?r:`\\${r}`);return a===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,r=>r.length%2===0?"\\\\":r?"\\":"")),T===i&&u.contains===!0?(t.output=i,t):(t.output=v.wrapOutput(T,t,s),t)}for(;!nt();){if(n=P(),n==="\0")continue;if(n==="\\"){const r=m();if(r==="/"&&u.bash!==!0||r==="."||r===";")continue;if(!r){n+="\\",b({type:"text",value:n});continue}const S=/^\\+/.exec(I());let N=0;if(S&&S[0].length>2&&(N=S[0].length,t.index+=N,N%2!==0&&(n+="\\")),u.unescape===!0?n=P():n+=P(),t.brackets===0){b({type:"text",value:n});continue}}if(t.brackets>0&&(n!=="]"||e.value==="["||e.value==="[^")){if(u.posix!==!1&&n===":"){const r=e.value.slice(1);if(r.includes("[")&&(e.posix=!0,r.includes(":"))){const S=e.value.lastIndexOf("["),N=e.value.slice(0,S),B=e.value.slice(S+2),C=p[B];if(C){e.value=N+C,t.backtrack=!0,P(),!f.output&&E.indexOf(e)===1&&(f.output=J);continue}}}(n==="["&&m()!==":"||n==="-"&&m()==="]")&&(n=`\\${n}`),n==="]"&&(e.value==="["||e.value==="[^")&&(n=`\\${n}`),u.posix===!0&&n==="!"&&e.value==="["&&(n="^"),e.value+=n,At({value:n});continue}if(t.quotes===1&&n!=='"'){n=v.escapeRegex(n),e.value+=n,At({value:n});continue}if(n==='"'){t.quotes=t.quotes===1?0:1,u.keepQuotes===!0&&b({type:"text",value:n});continue}if(n==="("){gt("parens"),b({type:"paren",value:n});continue}if(n===")"){if(t.parens===0&&u.strictBrackets===!0)throw new SyntaxError(g("opening","("));const r=q[q.length-1];if(r&&t.parens===r.parens+1){Nt(q.pop());continue}b({type:"paren",value:n,output:t.parens?")":"\\)"}),ct("parens");continue}if(n==="["){if(u.nobracket===!0||!I().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(g("closing","]"));n=`\\${n}`}else gt("brackets");b({type:"bracket",value:n});continue}if(n==="]"){if(u.nobracket===!0||e&&e.type==="bracket"&&e.value.length===1){b({type:"text",value:n,output:`\\${n}`});continue}if(t.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(g("opening","["));b({type:"text",value:n,output:`\\${n}`});continue}ct("brackets");const r=e.value.slice(1);if(e.posix!==!0&&r[0]==="^"&&!r.includes("/")&&(n=`/${n}`),e.value+=n,At({value:n}),u.literalBrackets===!1||v.hasRegexChars(r))continue;const S=v.escapeRegex(e.value);if(t.output=t.output.slice(0,-e.value.length),u.literalBrackets===!0){t.output+=S,e.value=S;continue}e.value=`(${h}${S}|${e.value})`,t.output+=e.value;continue}if(n==="{"&&u.nobrace!==!0){gt("braces");const r={type:"brace",value:n,output:"(",outputIndex:t.output.length,tokensIndex:t.tokens.length};rt.push(r),b(r);continue}if(n==="}"){const r=rt[rt.length-1];if(u.nobrace===!0||!r){b({type:"text",value:n,output:n});continue}let S=")";if(r.dots===!0){const N=E.slice(),B=[];for(let C=N.length-1;C>=0&&(E.pop(),N[C].type!=="brace");C--)N[C].type!=="dots"&&B.unshift(N[C].value);S=_(B,u),t.backtrack=!0}if(r.comma!==!0&&r.dots!==!0){const N=t.output.slice(0,r.outputIndex),B=t.tokens.slice(r.tokensIndex);r.value=r.output="\\{",n=S="\\}",t.output=N;for(const C of B)t.output+=C.output||C.value}b({type:"brace",value:n,output:S}),ct("braces"),rt.pop();continue}if(n==="|"){q.length>0&&q[q.length-1].conditions++,b({type:"text",value:n});continue}if(n===","){let r=n;const S=rt[rt.length-1];S&&z[z.length-1]==="braces"&&(S.comma=!0,r="|"),b({type:"comma",value:n,output:r});continue}if(n==="/"){if(e.type==="dot"&&t.index===t.start+1){t.start=t.index+1,t.consumed="",t.output="",E.pop(),e=f;continue}b({type:"slash",value:n,output:j});continue}if(n==="."){if(t.braces>0&&e.type==="dot"){e.value==="."&&(e.output=K);const r=rt[rt.length-1];e.type="dots",e.output+=n,e.value+=n,r.dots=!0;continue}if(t.braces+t.parens===0&&e.type!=="bos"&&e.type!=="slash"){b({type:"text",value:n,output:K});continue}b({type:"dot",value:n,output:K});continue}if(n==="?"){if(!(e&&e.value==="(")&&u.noextglob!==!0&&m()==="("&&m(2)!=="?"){Et("qmark",n);continue}if(e&&e.type==="paren"){const r=m();let S=n;(e.value==="("&&!/[!=<:]/.test(r)||r==="<"&&!/<([!=]|\w+>)/.test(I()))&&(S=`\\${n}`),b({type:"text",value:n,output:S});continue}if(u.dot!==!0&&(e.type==="slash"||e.type==="bos")){b({type:"qmark",value:n,output:Y});continue}b({type:"qmark",value:n,output:O});continue}if(n==="!"){if(u.noextglob!==!0&&m()==="("&&(m(2)!=="?"||!/[!=<:]/.test(m(3)))){Et("negate",n);continue}if(u.nonegate!==!0&&t.index===0){ht();continue}}if(n==="+"){if(u.noextglob!==!0&&m()==="("&&m(2)!=="?"){Et("plus",n);continue}if(e&&e.value==="("||u.regex===!1){b({type:"plus",value:n,output:X});continue}if(e&&(e.type==="bracket"||e.type==="paren"||e.type==="brace")||t.parens>0){b({type:"plus",value:n});continue}b({type:"plus",value:X});continue}if(n==="@"){if(u.noextglob!==!0&&m()==="("&&m(2)!=="?"){b({type:"at",extglob:!0,value:n,output:""});continue}b({type:"text",value:n});continue}if(n!=="*"){(n==="$"||n==="^")&&(n=`\\${n}`);const r=x.exec(I());r&&(n+=r[0],t.index+=r[0].length),b({type:"text",value:n});continue}if(e&&(e.type==="globstar"||e.star===!0)){e.type="star",e.star=!0,e.value+=n,e.output=R,t.backtrack=!0,t.globstar=!0,et(n);continue}let a=I();if(u.noextglob!==!0&&/^\([^?]/.test(a)){Et("star",n);continue}if(e.type==="star"){if(u.noglobstar===!0){et(n);continue}const r=e.prev,S=r.prev,N=r.type==="slash"||r.type==="bos",B=S&&(S.type==="star"||S.type==="globstar");if(u.bash===!0&&(!N||a[0]&&a[0]!=="/")){b({type:"star",value:n,output:""});continue}const C=t.braces>0&&(r.type==="comma"||r.type==="brace"),at=q.length&&(r.type==="pipe"||r.type==="paren");if(!N&&r.type!=="paren"&&!C&&!at){b({type:"star",value:n,output:""});continue}for(;a.slice(0,3)==="/**";){const ot=i[t.index+4];if(ot&&ot!=="/")break;a=a.slice(3),et("/**",3)}if(r.type==="bos"&&nt()){e.type="globstar",e.value+=n,e.output=L(u),t.output=e.output,t.globstar=!0,et(n);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!B&&nt()){t.output=t.output.slice(0,-(r.output+e.output).length),r.output=`(?:${r.output}`,e.type="globstar",e.output=L(u)+(u.strictSlashes?")":"|$)"),e.value+=n,t.globstar=!0,t.output+=r.output+e.output,et(n);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&a[0]==="/"){const ot=a[1]!==void 0?"|$":"";t.output=t.output.slice(0,-(r.output+e.output).length),r.output=`(?:${r.output}`,e.type="globstar",e.output=`${L(u)}${j}|${j}${ot})`,e.value+=n,t.output+=r.output+e.output,t.globstar=!0,et(n+P()),b({type:"slash",value:"/",output:""});continue}if(r.type==="bos"&&a[0]==="/"){e.type="globstar",e.value+=n,e.output=`(?:^|${j}|${L(u)}${j})`,t.output=e.output,t.globstar=!0,et(n+P()),b({type:"slash",value:"/",output:""});continue}if(C&&a[0]==="/"){e.type="globstar",e.value+=n,e.output=`(?:^|${j}|${L(u)}${j})`,t.output+=e.output,t.globstar=!0,et(n+P()),b({type:"slash",value:"/",output:""});continue}t.output=t.output.slice(0,-e.output.length),e.type="globstar",e.output=L(u),e.value+=n,t.output+=e.output,t.globstar=!0,et(n);continue}const T={type:"star",value:n,output:R};if(u.bash===!0){T.output=".*?",(e.type==="bos"||e.type==="slash")&&(T.output=V+T.output),b(T);continue}if(e&&(e.type==="bracket"||e.type==="paren")&&u.regex===!0){T.output=n,b(T);continue}(t.index===t.start||e.type==="slash"||e.type==="dot")&&(e.type==="dot"?(t.output+=pt,e.output+=pt):u.dot===!0?(t.output+=ft,e.output+=ft):(t.output+=V,e.output+=V),m()!=="*"&&(t.output+=J,e.output+=J)),b(T)}for(;t.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(g("closing","]"));t.output=v.escapeLast(t.output,"["),ct("brackets")}for(;t.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(g("closing",")"));t.output=v.escapeLast(t.output,"("),ct("parens")}for(;t.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(g("closing","}"));t.output=v.escapeLast(t.output,"{"),ct("braces")}if(u.strictSlashes!==!0&&(e.type==="star"||e.type==="bracket")&&b({type:"maybe_slash",value:"",output:`${j}?`}),t.backtrack===!0){t.output="";for(const a of t.tokens)t.output+=a.output!=null?a.output:a.value,a.suffix&&(t.output+=a.suffix)}return t},"parse");return Q.fastpaths=(i,s)=>{const u={...s},l=typeof u.maxLength=="number"?Math.min(D,u.maxLength):D,y=i.length;if(y>l)throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${l}`);i=o[i]||i;const{DOT_LITERAL:f,SLASH_LITERAL:E,ONE_CHAR:h,DOTS_SLASH:lt,NO_DOT:W,NO_DOTS:K,NO_DOTS_SLASH:X,STAR:j,START_ANCHOR:J}=H.globChars(u.windows),tt=u.dot?K:W,w=u.dot?X:W,pt=u.capture?"":"?:",ft={negated:!1,prefix:""};let O=u.bash===!0?".*?":j;u.capture&&(O=`(${O})`);const Y=A(V=>V.noglobstar===!0?O:`(${pt}(?:(?!${J}${V.dot?lt:f}).)*?)`,"globstar"),Rt=A(V=>{switch(V){case"*":return`${tt}${h}${O}`;case".*":return`${f}${h}${O}`;case"*.*":return`${tt}${O}${f}${h}${O}`;case"*/*":return`${tt}${O}${E}${h}${w}${O}`;case"**":return tt+Y(u);case"**/*":return`(?:${tt}${Y(u)}${E})?${w}${h}${O}`;case"**/*.*":return`(?:${tt}${Y(u)}${E})?${w}${O}${f}${h}${O}`;case"**/.*":return`(?:${tt}${Y(u)}${E})?${f}${h}${O}`;default:{const st=/^(.*?)\.(\w+)$/.exec(V);if(!st)return;const R=Rt(st[1]);return R?R+f+st[2]:void 0}}},"create"),_t=v.removePrefix(i,ft);let L=Rt(_t);return L&&u.strictSlashes!==!0&&(L+=`${E}?`),L},dt=Q,dt}ut(Bt,"requireParse");var vt,Tt;function Gt(){if(Tt)return vt;Tt=1;var d=Object.defineProperty,A=ut((o,_)=>d(o,"name",{value:_,configurable:!0}),"h");const H=wt(),v=Bt(),D=yt(),p=bt(),x=A(o=>o&&typeof o=="object"&&!Array.isArray(o),"isObject"),c=A((o,_,g=!1)=>{if(Array.isArray(o)){const Z=o.map(Q=>c(Q,_,g));return A(Q=>{for(const i of Z){const s=i(Q);if(s)return s}return!1},"arrayMatcher")}const G=x(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!G)throw new TypeError("Expected pattern to be a non-empty string");const $=_||{},F=$.windows,M=G?c.compileRe(o,_):c.makeRe(o,_,!1,!0),k=M.state;delete M.state;let U=A(()=>!1,"isIgnored");if($.ignore){const Z={..._,ignore:null,onMatch:null,onResult:null};U=c($.ignore,Z,g)}const it=A((Z,Q=!1)=>{const{isMatch:i,match:s,output:u}=c.test(Z,M,_,{glob:o,posix:F}),l={glob:o,state:k,regex:M,posix:F,input:Z,output:u,match:s,isMatch:i};if(typeof $.onResult=="function"&&$.onResult(l),i===!1)return l.isMatch=!1,Q?l:!1;t:if(U(Z)){if(typeof $.onIgnore=="function"&&$.onIgnore(l)===p.UNIGNORE){l.isMatch=!0;break t}return l.isMatch=!1,Q?l:!1}return typeof $.onMatch=="function"&&$.onMatch(l),Q?l:!0},"matcher");return g&&(it.state=k),it},"picomatch");return c.test=(o,_,g,{glob:G,posix:$}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};const F=g||{},M=F.format||($?D.toPosixSlashes:null);let k=o===G,U=k&&M?M(o):o;return k===!1&&(U=M?M(o):o,k=U===G),(k===!1||F.capture===!0)&&(F.matchBase===!0||F.basename===!0?k=c.matchBase(o,_,g,$):k=_.exec(U)),{isMatch:!!k,match:k,output:U}},c.matchBase=(o,_,g)=>(_ instanceof RegExp?_:c.makeRe(_,g)).test(D.basename(o)),c.isMatch=(o,_,g)=>c(_,g)(o),c.parse=(o,_)=>Array.isArray(o)?o.map(g=>c.parse(g,_)):v(o,{..._,fastpaths:!1}),c.scan=(o,_)=>H(o,_),c.compileRe=(o,_,g=!1,G=!1)=>{if(g===!0)return o.output;const $=_||{},F=$.contains?"":"^",M=$.contains?"":"$";let k=`${F}(?:${o.output})${M}`;o&&o.negated===!0&&(k=`^(?!${k}).*$`);const U=c.toRegex(k,_);return G===!0&&(U.state=o),U},c.makeRe=(o,_={},g=!1,G=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let $={negated:!1,fastpaths:!0};return _.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&($.output=v.fastpaths(o,_)),$.output||($=v(o,_)),c.compileRe($,_,g,G)},c.toRegex=(o,_)=>{try{const g=_||{};return new RegExp(o,g.flags||(g.nocase?"i":""))}catch(g){if(_&&_.debug===!0)throw g;return/$^/}},c.constants=p,vt=c,vt}ut(Gt,"requirePicomatch$1");var $t,kt;function Mt(){if(kt)return $t;kt=1;var d=Object.defineProperty,A=ut((p,x)=>d(p,"name",{value:x,configurable:!0}),"c");const H=Gt(),v=yt();function D(p,x,c=!1){return x&&(x.windows===null||x.windows===void 0)&&(x={...x,windows:v.isWindows()}),H(p,x,c)}return ut(D,"picomatch"),A(D,"picomatch"),Object.assign(D,H),$t=D,$t}ut(Mt,"requirePicomatch");var Dt=Mt();const Xt=Pt(Dt);export{Xt as s};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
var k=Object.defineProperty;var c=(x,s)=>k(x,"name",{value:s,configurable:!0});import"./_commonjsHelpers-D6W6KoPK.js";var v,g;function q(){if(g)return v;g=1;var x=Object.defineProperty,s=c((u,f)=>x(u,"name",{value:f,configurable:!0}),"l");/*!
|
|
2
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/return v=s(function(u){if(typeof u!="string"||u==="")return!1;for(var f;f=/(\\).|([@?!+*]\(.*\))/g.exec(u);){if(f[2])return!0;u=u.slice(f.index+f[0].length)}return!1},"isExtglob"),v}c(q,"requireIsExtglob");var d,O;function G(){if(O)return d;O=1;var x=Object.defineProperty,s=c((t,r)=>x(t,"name",{value:r,configurable:!0}),"x");/*!
|
|
7
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/var u=q(),f={"{":"}","(":")","[":"]"},h=s(function(t){if(t[0]==="!")return!0;for(var r=0,n=-2,a=-2,l=-2,o=-2,e=-2;r<t.length;){if(t[r]==="*"||t[r+1]==="?"&&/[\].+)]/.test(t[r])||a!==-1&&t[r]==="["&&t[r+1]!=="]"&&(a<r&&(a=t.indexOf("]",r)),a>r&&(e===-1||e>a||(e=t.indexOf("\\",r),e===-1||e>a)))||l!==-1&&t[r]==="{"&&t[r+1]!=="}"&&(l=t.indexOf("}",r),l>r&&(e=t.indexOf("\\",r),e===-1||e>l))||o!==-1&&t[r]==="("&&t[r+1]==="?"&&/[:!=]/.test(t[r+2])&&t[r+3]!==")"&&(o=t.indexOf(")",r),o>r&&(e=t.indexOf("\\",r),e===-1||e>o))||n!==-1&&t[r]==="("&&t[r+1]!=="|"&&(n<r&&(n=t.indexOf("|",r)),n!==-1&&t[n+1]!==")"&&(o=t.indexOf(")",n),o>n&&(e=t.indexOf("\\",n),e===-1||e>o))))return!0;if(t[r]==="\\"){var E=t[r+1];r+=2;var i=f[E];if(i){var b=t.indexOf(i,r);b!==-1&&(r=b+1)}if(t[r]==="!")return!0}else r++}return!1},"strictCheck"),p=s(function(t){if(t[0]==="!")return!0;for(var r=0;r<t.length;){if(/[*?{}()[\]]/.test(t[r]))return!0;if(t[r]==="\\"){var n=t[r+1];r+=2;var a=f[n];if(a){var l=t.indexOf(a,r);l!==-1&&(r=l+1)}if(t[r]==="!")return!0}else r++}return!1},"relaxedCheck");return d=s(function(t,r){if(typeof t!="string"||t==="")return!1;if(u(t))return!0;var n=h;return r&&r.strict===!1&&(n=p),n(t)},"isGlob"),d}c(G,"requireIsGlob");export{G as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var Et=Object.defineProperty;var l=(t,e)=>Et(t,"name",{value:e,configurable:!0});import{createRequire as Rt}from"node:module";import{s as F}from"./index-DrapuBsB.js";const Wt=Rt(import.meta.url),A=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=l(t=>{if(typeof A<"u"&&A.versions&&A.versions.node){const[e,s]=A.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return A.getBuiltinModule(t)}return Wt(t)},"__cjs_getBuiltinModule"),K=_("fs"),Ct={...K,default:K},{statSync:Ot,stat:Bt,realpathSync:Mt,realpath:Tt,readdirSync:It,readdir:Lt}=_("fs"),{sep:V,basename:Gt,dirname:O,resolve:X,normalize:zt,relative:Ut,posix:k,isAbsolute:Nt}=_("path"),{fileURLToPath:Qt}=_("url"),{createRequire:Yt}=_("module");var Ht=Object.defineProperty,u=l((t,e)=>Ht(t,"name",{value:e,configurable:!0}),"r"),Z=Yt(import.meta.url);function tt(t){let e=zt(t);return e.length>1&&e[e.length-1]===V&&(e=e.substring(0,e.length-1)),e}l(tt,"M$1");u(tt,"cleanPath");const Kt=/[\\/]/g;function T(t,e){return t.replace(Kt,e)}l(T,"D$1");u(T,"convertSlashes");const Zt=/^[a-z]:[\\/]$/i;function et(t){return t==="/"||Zt.test(t)}l(et,"T$1");u(et,"isRootDirectory");function q(t,e){const{resolvePaths:s,normalizePath:r,pathSeparator:n}=e,o=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(s&&(t=X(t)),(r||o)&&(t=tt(t)),t===".")return"";const i=t[t.length-1]!==n;return T(i?t+n:t,n)}l(q,"w");u(q,"normalizePath");function I(t,e){return e+t}l(I,"P");u(I,"joinPathWithBasePath");function st(t,e){return function(s,r){return r.startsWith(t)?r.slice(t.length)+s:T(Ut(t,r),e.pathSeparator)+e.pathSeparator+s}}l(st,"X");u(st,"joinPathWithRelativePath");function rt(t){return t}l(rt,"H");u(rt,"joinPath");function nt(t,e,s){return e+t+s}l(nt,"U$1");u(nt,"joinDirectoryPath");function it(t,e){const{relativePaths:s,includeBasePath:r}=e;return s&&t?st(t,e):r?I:rt}l(it,"J");u(it,"build$7");function ot(t){return function(e,s){s.push(e.substring(t.length)||".")}}l(ot,"K$1");u(ot,"pushDirectoryWithRelativePath");function ut(t){return function(e,s,r){const n=e.substring(t.length)||".";r.every(o=>o(n,!0))&&s.push(n)}}l(ut,"V");u(ut,"pushDirectoryFilterWithRelativePath");const Jt=u((t,e)=>{e.push(t||".")},"pushDirectory"),Vt=u((t,e,s)=>{const r=t||".";s.every(n=>n(r,!0))&&e.push(r)},"pushDirectoryFilter"),Xt=u(()=>{},"empty$2");function lt(t,e){const{includeDirs:s,filters:r,relativePaths:n}=e;return s?n?r&&r.length?ut(t):ot(t):r&&r.length?Vt:Jt:Xt}l(lt,"st$1");u(lt,"build$6");const te=u((t,e,s,r)=>{r.every(n=>n(t,!1))&&s.files++},"pushFileFilterAndCount"),ee=u((t,e,s,r)=>{r.every(n=>n(t,!1))&&e.push(t)},"pushFileFilter"),se=u((t,e,s,r)=>{s.files++},"pushFileCount"),re=u((t,e)=>{e.push(t)},"pushFile"),ne=u(()=>{},"empty$1");function at(t){const{excludeFiles:e,filters:s,onlyCounts:r}=t;return e?ne:s&&s.length?r?te:ee:r?se:re}l(at,"ut$1");u(at,"build$5");const ie=u(t=>t,"getArray"),oe=u(()=>[""].slice(0,0),"getArrayGroup");function ct(t){return t.group?oe:ie}l(ct,"ct$1");u(ct,"build$4");const ue=u((t,e,s)=>{t.push({directory:e,files:s,dir:e})},"groupFiles"),le=u(()=>{},"empty");function ht(t){return t.group?ue:le}l(ht,"ft$1");u(ht,"build$3");const ae=u(function(t,e,s){const{queue:r,fs:n,options:{suppressErrors:o}}=e;r.enqueue(),n.realpath(t,(i,a)=>{if(i)return r.dequeue(o?null:i,e);n.stat(a,(m,y)=>{if(m)return r.dequeue(o?null:m,e);if(y.isDirectory()&&L(t,a,e))return r.dequeue(null,e);s(y,a),r.dequeue(null,e)})})},"resolveSymlinksAsync"),ce=u(function(t,e,s){const{queue:r,fs:n,options:{suppressErrors:o}}=e;r.enqueue();try{const i=n.realpathSync(t),a=n.statSync(i);if(a.isDirectory()&&L(t,i,e))return;s(a,i)}catch(i){if(!o)throw i}},"resolveSymlinks");function pt(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?ce:ae}l(pt,"gt$1");u(pt,"build$2");function L(t,e,s){if(s.options.useRealPaths)return ft(e,s);let r=O(t),n=1;for(;r!==s.root&&n<2;){const o=s.symlinks.get(r);o&&(o===e||o.startsWith(e)||e.startsWith(o))?n++:r=O(r)}return s.symlinks.set(t,e),n>1}l(L,"E$1");u(L,"isRecursive");function ft(t,e){return e.visited.includes(t+e.options.pathSeparator)}l(ft,"dt$1");u(ft,"isRecursiveUsingRealPaths");const he=u(t=>t.counts,"onlyCountsSync"),pe=u(t=>t.groups,"groupsSync"),fe=u(t=>t.paths,"defaultSync"),ge=u(t=>t.paths.slice(0,t.options.maxFiles),"limitFilesSync"),de=u((t,e,s)=>(j(e,s,t.counts,t.options.suppressErrors),null),"onlyCountsAsync"),ye=u((t,e,s)=>(j(e,s,t.paths,t.options.suppressErrors),null),"defaultAsync"),me=u((t,e,s)=>(j(e,s,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),"limitFilesAsync"),be=u((t,e,s)=>(j(e,s,t.groups,t.options.suppressErrors),null),"groupsAsync");function j(t,e,s,r){e(t&&!r?t:null,s)}l(j,"y");u(j,"report");function gt(t,e){const{onlyCounts:s,group:r,maxFiles:n}=t;return s?e?he:de:r?e?pe:be:n?e?ge:me:e?fe:ye}l(gt,"Et");u(gt,"build$1");const dt={withFileTypes:!0},ve=u((t,e,s,r,n)=>{if(t.queue.enqueue(),r<0)return t.queue.dequeue(null,t);const{fs:o}=t;t.visited.push(e),t.counts.directories++,o.readdir(e||".",dt,(i,a=[])=>{n(a,s,r),t.queue.dequeue(t.options.suppressErrors?null:i,t)})},"walkAsync"),Pe=u((t,e,s,r,n)=>{const{fs:o}=t;if(r<0)return;t.visited.push(e),t.counts.directories++;let i=[];try{i=o.readdirSync(e||".",dt)}catch(a){if(!t.options.suppressErrors)throw a}n(i,s,r)},"walkSync");function yt(t){return t?Pe:ve}l(yt,"xt$1");u(yt,"build");var we=class{static{l(this,"_t")}static{u(this,"Queue")}count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},$e=class{static{l(this,"At")}static{u(this,"Counter")}_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},Se=class{static{l(this,"Wt")}static{u(this,"Aborter")}aborted=!1;abort(){this.aborted=!0}},mt=class{static{l(this,"q")}static{u(this,"Walker")}root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,s){this.isSynchronous=!s,this.callbackInvoker=gt(e,this.isSynchronous),this.root=q(t,e),this.state={root:et(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new $e,options:e,queue:new we((r,n)=>this.callbackInvoker(n,r,s)),symlinks:new Map,visited:[""].slice(0,0),controller:new Se,fs:e.fs||Ct},this.joinPath=it(this.root,e),this.pushDirectory=lt(this.root,e),this.pushFile=at(e),this.getArray=ct(e),this.groupFiles=ht(e),this.resolveSymlink=pt(e,this.isSynchronous),this.walkDirectory=yt(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=u((t,e,s)=>{const{paths:r,options:{filters:n,resolveSymlinks:o,excludeSymlinks:i,exclude:a,maxFiles:m,signal:y,useRealPaths:v,pathSeparator:f},controller:P}=this.state;if(P.aborted||y&&y.aborted||m&&r.length>m)return;const c=this.getArray(this.state.paths);for(let d=0;d<t.length;++d){const p=t[d];if(p.isFile()||p.isSymbolicLink()&&!o&&!i){const h=this.joinPath(p.name,e);this.pushFile(h,c,this.state.counts,n)}else if(p.isDirectory()){let h=nt(p.name,e,this.state.options.pathSeparator);if(a&&a(p.name,h))continue;this.pushDirectory(h,r,n),this.walkDirectory(this.state,h,h,s-1,this.walk)}else if(this.resolveSymlink&&p.isSymbolicLink()){let h=I(p.name,e);this.resolveSymlink(h,this.state,(R,b)=>{if(R.isDirectory()){if(b=q(b,this.state.options),a&&a(p.name,v?b:h+f))return;this.walkDirectory(this.state,b,v?b:h+f,s-1,this.walk)}else{b=v?b:h;const x=Gt(b),W=q(O(b),this.state.options);b=this.joinPath(x,W),this.pushFile(b,c,this.state.counts,n)}})}}this.groupFiles(this.state.groups,e,c)},"walk")};function bt(t,e){return new Promise((s,r)=>{G(t,e,(n,o)=>{if(n)return r(n);s(o)})})}l(bt,"Ct");u(bt,"promise");function G(t,e,s){new mt(t,e,s).start()}l(G,"x");u(G,"callback");function vt(t,e){return new mt(t,e).start()}l(vt,"jt");u(vt,"sync");var J=class{static{l(this,"F")}static{u(this,"APIBuilder")}constructor(t,e){this.root=t,this.options=e}withPromise(){return bt(this.root,this.options)}withCallback(t){G(this.root,this.options,t)}sync(){return vt(this.root,this.options)}};let Pt=null;try{Z.resolve("picomatch"),Pt=Z("picomatch")}catch{}var ke=class{static{l(this,"$t")}static{u(this,"Builder")}globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:V,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new J(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new J(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){const s=this.globFunction||Pt;if(!s)throw new Error("Please specify a glob function to use glob matching.");var r=this.globCache[t.join("\0")];return r||(r=s(t,...e),this.globCache[t.join("\0")]=r),this.options.filters.push(n=>r(n)),this}},Fe=Object.defineProperty,g=l((t,e)=>Fe(t,"name",{value:e,configurable:!0}),"a");const De=Array.isArray,wt=/\\/g,$t=process.platform==="win32",xe=/^(\/?\.\.)+$/;function B(t,e={}){const s=t.length,r=Array(s),n=Array(s);let o,i;for(o=0;o<s;o++){const a=z(t[o]);r[o]=a;const m=a.length,y=Array(m);for(i=0;i<m;i++)y[i]=F(a[i],e);n[o]=y}return a=>{const m=a.split("/");if(m[0]===".."&&xe.test(a))return!0;for(o=0;o<s;o++){const y=r[o],v=n[o],f=m.length,P=Math.min(f,y.length);for(i=0;i<P;){const c=y[i];if(c.includes("/"))return!0;if(!v[i](m[i]))break;if(!e.noglobstar&&c==="**")return!0;i++}if(i===f)return!0}return!1}}l(B,"D");g(B,"getPartialMatcher");const Ae=/^[A-Z]:\/$/i,_e=$t?t=>Ae.test(t):t=>t==="/";function M(t,e,s){if(t===e||e.startsWith(`${t}/`)){if(s){const n=t.length+ +!_e(t);return(o,i)=>o.slice(n,i?-1:void 0)||"."}const r=e.slice(t.length+1);return r?(n,o)=>{if(n===".")return r;const i=`${r}/${n}`;return o?i.slice(0,-1):i}:(n,o)=>o&&n!=="."?n.slice(0,-1):n}return s?r=>k.relative(t,r)||".":r=>k.relative(t,`${e}/${r}`)||"."}l(M,"M");g(M,"buildFormat");function St(t,e){if(e.startsWith(`${t}/`)){const s=e.slice(t.length+1);return r=>`${s}/${r}`}return s=>{const r=k.relative(t,`${e}/${s}`);return s[s.length-1]==="/"&&r!==""?`${r}/`:r||"."}}l(St,"at");g(St,"buildRelative");const je={parts:!0};function z(t){var e;const s=F.scan(t,je);return!((e=s.parts)===null||e===void 0)&&e.length?s.parts:[t]}l(z,"N");g(z,"splitPattern");const qe=/\\(?![()[\]{}!+@])/g;function Ee(t){return kt(t)}l(Ee,"ut");g(Ee,"convertPosixPathToPattern");function Re(t){return Ft(t).replace(qe,"/")}l(Re,"ft");g(Re,"convertWin32PathToPattern");const We=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Ce=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,kt=g(t=>t.replace(We,"\\$&"),"escapePosixPath"),Ft=g(t=>t.replace(Ce,"\\$&"),"escapeWin32Path"),Oe=$t?Ft:kt;function Dt(t,e){if(e?.caseSensitiveMatch===!1)return!0;const s=F.scan(t);return s.isGlob||s.negated}l(Dt,"k");g(Dt,"isDynamicPattern");function D(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}l(D,"E");g(D,"log");function U(t){return typeof t=="string"?[t]:t??[]}l(U,"W");g(U,"ensureStringArray");const Be=/^(\/?\.\.)+/,Me=/\\(?=[()[\]{}!*+?@|])/g;function E(t,e,s,r){var n;const o=e.cwd;let i=t;t[t.length-1]==="/"&&(i=t.slice(0,-1));const a=i.lastIndexOf("/"),m=(a===-1?i:i.slice(a+1)).startsWith("!(");i[i.length-1]!=="*"&&!m&&e.expandDirectories&&(i+="/**");const y=Oe(o);i=Nt(i.replace(Me,""))?k.relative(y,i):k.normalize(i);const v=(n=Be.exec(i))===null||n===void 0?void 0:n[0],f=z(i);if(v){const c=(v.length+1)/3;let d=0;const p=y.split("/");for(;d<c&&f[d+c]===p[p.length+d-c];)i=i.slice(0,(c-d-1)*3)+i.slice((c-d)*3+f[d+c].length+1)||".",d++;const h=k.join(o,v.slice(d*3));h[0]!=="."&&s.root.length>h.length&&(s.root=h,s.depthOffset=-c+d)}if(!r&&s.depthOffset>=0){var P;(P=s.commonPath)!==null&&P!==void 0||(s.commonPath=f);const c=[],d=Math.min(s.commonPath.length,f.length);for(let p=0;p<d;p++){const h=f[p];if(h==="**"&&!f[p+1]){c.pop();break}if(p===f.length-1||h!==s.commonPath[p]||Dt(h))break;c.push(h)}s.depthOffset=c.length,s.commonPath=c,s.root=c.length>0?k.join(o,...c):o}return i}l(E,"$");g(E,"normalizePattern");function xt(t,e,s){const r=[],n=[],o=[];for(const i of t.ignore)i&&(i[0]!=="!"||i[1]==="("?n.push(E(i,t,s,!0)):o.push(i.slice(1)));for(const i of e)i&&(i[0]!=="!"||i[1]==="("?r.push(E(i,t,s,!1)):(i[1]!=="!"||i[2]==="(")&&n.push(E(i.slice(1),t,s,!0)));return{match:r,ignore:n,unignore:o}}l(xt,"St");g(xt,"processPatterns");function At(t,e){const s=t.cwd,r={root:s,depthOffset:0},n=xt(t,e,r);t.debug&&D("internal processing patterns:",n);const{absolute:o,caseSensitiveMatch:i,debug:a,dot:m,followSymbolicLinks:y,onlyDirectories:v}=t,f=r.root.replace(wt,""),P={dot:m,nobrace:t.braceExpansion===!1,nocase:!i,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},c=n.unignore.length>0,d=c?F(n.unignore,P):void 0,p=c?B(n.unignore,P):void 0,h=F(n.match,{...P,ignore:n.ignore,onIgnore:d?$=>d($.output)&&F.constants.UNIGNORE:void 0}),R=F(n.ignore,P),b=B(n.match,P),x=M(s,f,o),W=o?x:M(s,f,!0),jt=n.match.length>0&&n.match.every($=>$==="**"||$==="**/*"),C=n.ignore.length>0||c||!jt?($,S)=>{const w=W(S,!0);return w==="."||p&&p(w)?!1:!b(w)||R(w)}:void 0;let Y;t.deep!==void 0&&(Y=Math.round(t.deep-r.depthOffset));const qt=new ke({filters:[a?($,S)=>{const w=x($,S),H=h(w);return H&&D(`matched ${w}`),H}:($,S)=>{const w=x($,S);return h(w)}],exclude:a&&C?($,S)=>{const w=C($,S);return D(`${w?"skipped":"crawling"} ${S}`),w}:C,fs:t.fs,pathSeparator:"/",relativePaths:!o,resolvePaths:o,includeBasePath:o,resolveSymlinks:y,excludeSymlinks:!y,excludeFiles:v,includeDirs:v||!t.onlyFiles,maxDepth:Y,signal:t.signal}).crawl(f);return t.debug&&D("internal properties:",{...r,root:f}),[qt,s!==f&&!o&&St(s,f)]}l(At,"vt");g(At,"buildCrawler");function N(t,e){if(e)for(let s=t.length-1;s>=0;s--)t[s]=e(t[s]);return t}l(N,"U");g(N,"formatPaths");const Te={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function _t(t){const e={...Te,...t};return e.cwd=(e.cwd instanceof URL?Qt(e.cwd):X(e.cwd)).replace(wt,"/"),e.ignore=U(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||Lt,readdirSync:e.fs.readdirSync||It,realpath:e.fs.realpath||Tt,realpathSync:e.fs.realpathSync||Mt,stat:e.fs.stat||Bt,statSync:e.fs.statSync||Ot}),e.debug&&D("globbing with options:",e),e}l(_t,"pt");g(_t,"getOptions");function Q(t,e={}){var s;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const r=De(t)||typeof t=="string",n=U((s=r?t:t.patterns)!==null&&s!==void 0?s:"**/*"),o=_t(r?e:t);return n.length>0?At(o,n):[]}l(Q,"G");g(Q,"getCrawler");async function Ie(t,e){const[s,r]=Q(t,e);return s?N(await s.withPromise(),r):[]}l(Ie,"bt");g(Ie,"glob");function Le(t,e){const[s,r]=Q(t,e);return s?N(s.sync(),r):[]}l(Le,"xt");g(Le,"globSync");export{Ie as b,Le as x};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var W=Object.defineProperty;var $=(e,r)=>W(e,"name",{value:r,configurable:!0});var T=Object.defineProperty,B=$((e,r)=>T(e,"name",{value:r,configurable:!0}),"A"),C=Object.defineProperty,j=B((e,r)=>C(e,"name",{value:r,configurable:!0}),"$"),F=Object.defineProperty,G=j((e,r)=>F(e,"name",{value:r,configurable:!0}),"r$1");const I=G(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
2
|
-
`),"normalizeLF"),E=globalThis.process??Object.create(null),O={versions:{}},k=new Proxy(E,{get(e,r){if(r in e)return e[r];if(r in O)return O[r]}});var N=Object.defineProperty,_=j((e,r)=>N(e,"name",{value:r,configurable:!0}),"b");const z=_((e,r,a,t)=>{const l={column:0,line:-1,...e.start},u={...l,...e.end},i=l.line,o=l.column,g=u.line,m=u.column;let p=Math.max(i-(a+1),0),b=Math.min(r.length,g+t);i===-1&&(p=0),g===-1&&(b=r.length);const y=g-i,s={};if(y)for(let n=0;n<=y;n++){const c=n+i;if(!o)s[c]=!0;else if(n===0){const f=r[c-1]?.length;s[c]=[o,(f??0)-o+1]}else if(n===y)s[c]=[0,m];else{const f=r[c-n]?.length;s[c]=[0,f]}}else o===m?s[i]=o?[o,0]:!0:s[i]=[o,(m??0)-(o??0)];return{end:b,markerLines:s,start:p}},"getMarkerLines");var q=Object.defineProperty,v=j((e,r)=>q(e,"name",{value:r,configurable:!0}),"t");const D=k.platform==="win32"&&!k.env?.WT_SESSION?">":"❯",Y=v((e,r,a)=>{const t={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...a,color:{gutter:v(n=>n,"gutter"),marker:v(n=>n,"marker"),message:v(n=>n,"message"),...a?.color}},l=typeof r.start.column=="number";let u=I(e).split(`
|
|
3
|
-
`);typeof t.tabWidth=="number"&&(u=u.map(n=>n.replaceAll(" "," ".repeat(t.tabWidth))));const{end:i,markerLines:o,start:g}=z(r,u,t.linesAbove,t.linesBelow),m=String(i).length,{gutter:p,marker:b,message:y}=t.color;let s=u.slice(g,i).map((n,c)=>{const f=g+1+c,h=o[f],S=String(f).padStart(m),w=!o[f+1],d=` ${S}${t.showGutter?" |":""}`;if(h){let A="";if(Array.isArray(h)){const L=n.replaceAll(/[^\t]/g," ").slice(0,Math.max(h[0]-1,0)),M=h[1]||1;A=[`
|
|
4
|
-
`,t.prefix+p(d.replaceAll(/\d/g," "))," ",L,b("^").repeat(M)].join(""),w&&t.message&&(A+=` ${y(t.message)}`)}return[t.prefix+b(D),p(d),n.length>0?` ${n}`:"",A].join("")}return`${t.prefix} ${p(d)}${n.length>0?` ${n}`:""}`}).join(`
|
|
5
|
-
`);return t.message&&!l&&(s=`${t.prefix+" ".repeat(m+1)+t.message}
|
|
6
|
-
${s}`),s},"codeFrame");var H=Object.defineProperty,J=$((e,r)=>H(e,"name",{value:r,configurable:!0}),"s"),K=Object.defineProperty,Q=J((e,r)=>K(e,"name",{value:r,configurable:!0}),"o"),R=Object.defineProperty,x=Q((e,r)=>R(e,"name",{value:r,configurable:!0}),"l");const P=x((e,r)=>{let a=0,t=r.length-2;for(;a<t;){const l=a+(t-a>>1);if(e<r[l])t=l-1;else if(e>=r[l+1])a=l+1;else{a=l;break}}return a},"binarySearch"),U=/\n|\r(?!\n)/,V=x(e=>e.split(U).reduce((r,a)=>(r.push(r.at(-1)+a.length+1),r),[0]),"getLineStartIndexes"),Z=x((e,r,a)=>{const t=a?.skipChecks??!1;if(!t&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!t&&(typeof r!="number"||typeof e=="string"&&r>=e.length||Array.isArray(e)&&r+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const u=V(e),i=P(r,u);return{column:r-u[i]+1,line:i+1}}const l=P(r,e);return{column:r-e[l]+1,line:l+1}},"indexToLineColumn");export{Y as N,Z as b};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var V=Object.defineProperty;var m=(e,t)=>V(e,"name",{value:t,configurable:!0});var D=Object.defineProperty,o=m((e,t)=>D(e,"name",{value:t,configurable:!0}),"o");const I=/^\s*(?:[;#].*)?$/,j=/^\s*\[([^\]]+)\]\s*$/,k=/\r?\n/,$=/\r?\n$/,K=/^[^=]+=/,v=o(e=>e===" "||e===" ","isWhitespace"),x=o(e=>{let t=0;for(;t<e.length&&v(e[t]);)t+=1;return{indent:e.slice(0,t),rest:e.slice(t)}},"splitLeadingWhitespace"),W=o(e=>{let t=e.length;for(;t>0&&v(e[t-1]);)t-=1;return{rest:e.slice(0,t),trailing:e.slice(t)}},"splitTrailingWhitespace"),b=o(e=>{const t=e.indexOf("=");if(t===-1)return;const n=e.slice(0,t),r=e.slice(t+1),{indent:i,rest:s}=x(n),{rest:c,trailing:a}=W(s);if(c===""||c.startsWith(";")||c.startsWith("#")||c.startsWith("["))return;const{indent:f,rest:p}=x(r),{rest:g,trailing:S}=W(p);return{after:f,before:a,indent:i,key:c,trailing:S,value:g}},"parseKeyValue"),N=o(e=>{let t=0,n=0;for(const r of e.split(k)){if(I.test(r)||j.test(r))continue;const i=b(r);i&&(i.before===" "&&i.after===" "?t+=1:i.before===""&&i.after===""&&(n+=1))}return{spaced:t,unspaced:n}},"countStyleMatches"),h=o((e,t)=>{if(!e)return;if(t===void 0)return e;let n=e;for(const r of t.split("."))if(n&&typeof n=="object"&&!Array.isArray(n))n=n[r];else return;return n&&typeof n=="object"&&!Array.isArray(n)?n:void 0},"getSection"),P=o((e,t)=>{for(const n of e.split(k)){if(!n||n.startsWith("["))continue;const r=K.exec(n);if(!r)continue;const i=n.slice(0,r[0].length-1).trim();if(i===t||i===`${t}[]`)return n.slice(r[0].length).trimStart()}return""},"extractValueToken"),M=o((e,t)=>{if(e.trim()==="")return{line:{kind:"blank",raw:e,section:t},nextSection:t};const n=e.trimStart();if(n.startsWith(";")||n.startsWith("#"))return{line:{kind:"comment",raw:e,section:t},nextSection:t};const r=j.exec(e);if(r){const s=r[1];return{line:{kind:"header",raw:e,section:s},nextSection:s}}const i=b(e);return i?{line:{key:i.key,kind:"key",raw:e,section:t},nextSection:t}:{line:{kind:"unknown",raw:e,section:t},nextSection:t}},"classifyLine"),T=o(e=>{const t=e.replace($,"").split(k),n=[];let r;for(const i of t){const{line:s,nextSection:c}=M(i,r);n.push(s),r=c}return n},"parseLines"),J=o((e,t,n)=>{const r=b(e.raw);if(!r||!e.key)return e.raw;const i=n({[e.key]:t}),s=P(i,e.key);return`${r.indent}${r.key}${r.before}=${r.after}${s}${r.trailing}`},"renderChangedKey"),A=o((e,t=[])=>{const n=[];for(const[r,i]of Object.entries(e))if(i&&typeof i=="object"&&!Array.isArray(i)){const s=[...t,r];n.push(s.join("."),...A(i,s))}return n},"collectSections"),O=o((e,t)=>{const n={};for(const[r,i]of Object.entries(e))t.has(r)||i&&typeof i=="object"&&!Array.isArray(i)||(n[r]=i);return n},"pickScalars"),L=o((e,t)=>{const n=[];for(const r of t.split(k))r!==""&&n.push(r);n.length>0&&e.push(...n)},"appendSerialized"),z=o(e=>{const{line:t,markWritten:n,nextData:r,oldData:i,renderValue:s}=e;if(!t.key)return t.raw;const c=h(r,t.section);if(!c||!(t.key in c))return;n(t.section,t.key);const a=h(i,t.section)?.[t.key],f=c[t.key];return JSON.stringify(a)===JSON.stringify(f)?t.raw:s(t,f)},"processKeyLine"),C=o((e,t,n,r,i)=>{const s=h(r,t);if(!s)return;const c=n.get(t)??new Set,a=O(s,c);Object.keys(a).length!==0&&L(e,i(a))},"flushAdditions"),E=o((e,t,n,r)=>{const i=new Set(t.filter(s=>s.kind==="header"&&s.section).map(s=>s.section));for(const s of A(n)){if(i.has(s))continue;const c=h(n,s);if(!c||Object.keys(c).length===0)continue;const a=O(c,new Set);Object.keys(a).length!==0&&L(e,r(a,s))}},"flushNewSections"),_=o(e=>{const t=e.includes(`\r
|
|
2
|
-
`)?`\r
|
|
3
|
-
`:`
|
|
4
|
-
`,{spaced:n,unspaced:r}=N(e);return{eol:t,whitespace:n>0&&n>=r}},"detectIniStyle"),q=o((e,t,n,r,i)=>{const{eol:s}=i,c=$.test(e),a=T(e),f=new Map,p=new Map;for(const[u,l]of a.entries())l.kind!=="blank"&&p.set(l.section,u);const g=o((u,l)=>{let d=f.get(u);d||(d=new Set,f.set(u,d)),d.add(l)},"markWritten"),S=o((u,l)=>J(u,l,r),"renderValue"),y=[];for(const[u,l]of a.entries()){if(l.kind==="key"){const d=z({line:l,markWritten:g,nextData:n,oldData:t,renderValue:S});d!==void 0&&y.push(d);continue}y.push(l.raw),p.get(l.section)===u&&C(y,l.section,f,n,r)}E(y,a,n,r);const w=y.join(s);return c&&!w.endsWith(s)?`${w}${s}`:w},"mergeIniPreservingLines");export{_ as d,q as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var t=(n,e)=>a(n,"name",{value:e,configurable:!0});var i=Object.defineProperty,r=t((n,e)=>i(n,"name",{value:e,configurable:!0}),"d");const v=r((n,e)=>!!e.ino&&!!e.dev&&e.ino===n.ino&&e.dev===n.dev,"isStatsIdentical");export{v as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var s=(e,r)=>i(e,"name",{value:r,configurable:!0});import{createRequire as n}from"node:module";import{toPath as f}from"@visulima/path/utils";import{F_OK as l}from"./F_OK-CAwY1qU7.js";import m from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";const c=n(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,a=s(e=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[r,t]=o.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return o.getBuiltinModule(e)}return c(e)},"__cjs_getBuiltinModule"),{access:u}=a("node:fs/promises");var p=Object.defineProperty,_=s((e,r)=>p(e,"name",{value:r,configurable:!0}),"o");async function d(e,r=l){m(e),e=f(e);try{return await u(e,r),!0}catch{return!1}}s(d,"m");_(d,"isAccessible");export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.defineProperty;var t=(e,r)=>n(e,"name",{value:r,configurable:!0});import{createRequire as i}from"node:module";import{toPath as f}from"@visulima/path/utils";import{F_OK as l}from"./F_OK-CAwY1qU7.js";import m from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";const c=i(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,u=t(e=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[r,s]=o.versions.node.split(".").map(Number);if(r>22||r===22&&s>=3||r===20&&s>=16)return o.getBuiltinModule(e)}return c(e)},"__cjs_getBuiltinModule"),{accessSync:a}=u("node:fs");var p=Object.defineProperty,_=t((e,r)=>p(e,"name",{value:r,configurable:!0}),"o");function d(e,r=l){m(e),e=f(e);try{return a(e,r),!0}catch{return!1}}t(d,"m");_(d,"isAccessibleSync");export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var y=Object.defineProperty;var c=(t,e)=>y(t,"name",{value:e,configurable:!0});import{createRequire as d}from"node:module";const v=d(import.meta.url),n=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,u=c(t=>{if(typeof n<"u"&&n.versions&&n.versions.node){const[e,s]=n.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return n.getBuiltinModule(t)}return v(t)},"__cjs_getBuiltinModule"),_=u("fs"),h=u("os"),g=u("path");var m=Object.defineProperty,b=c((t,e)=>m(t,"name",{value:e,configurable:!0}),"a"),j=Object.defineProperty,o=b((t,e)=>j(t,"name",{value:e,configurable:!0}),"s");const f=o(t=>{let e="";for(let s=0;s<t.length;s+=1){const r=t[s],i=r.toUpperCase();e+=r===i?r.toLowerCase():i}return e},"invertCase"),a=new Map,p=o((t,e)=>{const s=g.join(t,`.is-fs-case-sensitive-test-${process.pid}`);try{return e.writeFileSync(s,""),!e.existsSync(f(s))}finally{try{e.unlinkSync(s)}catch{}}},"checkDirectoryCaseWithWrite"),S=o((t,e,s)=>{try{return p(t,s)}catch(r){if(e===void 0)return p(h.tmpdir(),s);throw r}},"checkDirectoryCaseWithFallback"),w=o((t,e=_,s=!0)=>{const r=t??process.cwd();if(s&&a.has(r))return a.get(r);let i;const l=f(r);return l!==r&&e.existsSync(r)?i=!e.existsSync(l):i=S(r,t,e),s&&a.set(r,i),i},"isFsCaseSensitive");export{w as isFsCaseSensitive};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var g=Object.defineProperty;var p=(e,t)=>g(e,"name",{value:t,configurable:!0});import{modify as m,applyEdits as b,parse as d}from"jsonc-parser";var O=Object.defineProperty,s=p((e,t)=>O(e,"name",{value:t,configurable:!0}),"e");const y=s(e=>typeof e=="object"&&e!==null&&!Array.isArray(e),"isPlainObject"),l=s((e,t,i)=>{const r=m(e.text,t,i,{formattingOptions:e.formattingOptions});e.text=b(e.text,r)},"applyModification"),S=s((e,t,i,r,n)=>{const a=new Set([...Object.keys(t),...Object.keys(i)]);for(const o of a){const c=[...r,o];o in i?o in t?n(e,t[o],i[o],c):l(e,c,i[o]):l(e,c,void 0)}},"walkObject"),u=s((e,t,i,r)=>{if(t!==i){if(y(t)&&y(i)){S(e,t,i,r,u);return}if(Array.isArray(t)&&Array.isArray(i)&&t.length===i.length){for(const[n,a]of t.entries())u(e,a,i[n],[...r,n]);return}JSON.stringify(t)!==JSON.stringify(i)&&l(e,r,i)}},"walkValue"),j=s((e,t,i)=>{const r=d(e,[],{allowTrailingComma:!0}),n={formattingOptions:i,text:e};return u(n,r,t,[]),n.text},"mergeJsoncPreservingComments"),v=s(e=>typeof e=="number"?{insertSpaces:!0,tabSize:e}:typeof e=="string"?e===" "||e.includes(" ")?{insertSpaces:!1,tabSize:e.length||1}:{insertSpaces:!0,tabSize:e.length||2}:{insertSpaces:!0,tabSize:2},"formattingFromIndent"),J=s((e,t,i,r,n,a,o)=>{if(i&&e!==void 0){const c={...v(r),...a};let f=j(e,t,c);return n&&!f.endsWith(`
|
|
2
|
-
`)&&(f+=n),f}return`${JSON.stringify(t,o,r)}${n}`},"buildJsoncOutput");export{J as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var S=Object.defineProperty;var i=(r,e)=>S(r,"name",{value:e,configurable:!0});import{createRequire as b}from"node:module";import{toPath as m}from"@visulima/path/utils";import{dirname as c,resolve as s}from"@visulima/path";import $ from"./isAccessible-CDFxsAAo.js";import x from"./isAccessibleSync-5nzZWgin.js";const _=b(import.meta.url),n=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,w=i(r=>{if(typeof n<"u"&&n.versions&&n.versions.node){const[e,t]=n.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return n.getBuiltinModule(r)}return _(r)},"__cjs_getBuiltinModule"),{cwd:d}=n,{mkdir:g,rename:D,copyFile:E,unlink:j}=w("node:fs/promises"),{mkdirSync:M,renameSync:P,copyFileSync:k,unlinkSync:T}=w("node:fs");var F=Object.defineProperty,v=i((r,e)=>F(r,"name",{value:e,configurable:!0}),"o");class O extends Error{static{i(this,"a")}static{v(this,"SameDirectoryError")}constructor(e,t){super(`Source directory "${c(e)}" does not match destination directory "${c(t)}"`),this.name="SameDirectoryError"}}const f=v((r,e)=>{if(!r||!e)throw new Error("Source and destination paths must not be empty");if(c(r)!==c(e))throw new O(r,e)},"validateSameDirectory");var q=Object.defineProperty,B=i((r,e)=>q(r,"name",{value:e,configurable:!0}),"m$1");const p=B(async(r,e,{cwd:t,directoryMode:o,overwrite:u,validateDirectory:y})=>{if(t&&(r=s(t,r),e=s(t,e)),y&&f(r,e),!u&&await $(e))throw new Error(`The destination file exists: ${e}`);await g(c(e),{mode:o,recursive:!0});try{await D(r,e)}catch(a){if(a.code==="EXDEV")await E(r,e),await j(r);else throw a}},"internalMoveFile");var R=Object.defineProperty,V=i((r,e)=>R(r,"name",{value:e,configurable:!0}),"m");const h=V((r,e,{cwd:t,directoryMode:o,overwrite:u,validateDirectory:y})=>{if(t&&(r=s(t,r),e=s(t,e)),y&&f(r,e),!u&&x(e))throw new Error(`The destination file exists: ${e}`);M(c(e),{mode:o,recursive:!0});try{P(r,e)}catch(a){if(a.code==="EXDEV")k(r,e),T(r);else throw a}},"internalMoveFileSync");var X=Object.defineProperty,l=i((r,e)=>X(r,"name",{value:e,configurable:!0}),"i");const I=l(async(r,e,t={})=>{const o={overwrite:!0,validateDirectory:!1,...t,cwd:t.cwd?m(t.cwd):d()};await p(r,e,o)},"move"),J=l((r,e,t)=>{const o={overwrite:!0,validateDirectory:!1,...t};o.cwd=o.cwd?m(o.cwd):d(),h(r,e,o)},"moveSync"),K=l(async(r,e,t)=>{const o={overwrite:!0,...t,validateDirectory:!0};o.cwd=o.cwd?m(o.cwd):d(),await p(r,e,o)},"rename"),L=l((r,e,t)=>{const o={overwrite:!0,...t,validateDirectory:!0};o.cwd=o.cwd?m(o.cwd):d(),h(r,e,o)},"renameSync");export{I as move,J as moveSync,K as rename,L as renameSync};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d=Object.defineProperty;var s=(e,t)=>d(e,"name",{value:t,configurable:!0});import{b as l,N as m}from"./indexToLineColumn-BRSZFC6I-zN_sCTx7.js";import p from"./JSONError-D7h6PNWc.js";var f=Object.defineProperty,c=s((e,t)=>f(e,"name",{value:t,configurable:!0}),"a");const g=c(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),b=c((e,t,o)=>m(e,{start:t},{tabWidth:!1,...o}),"generateCodeFrame"),N=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,h=c((e,t)=>{const o=N.exec(t);if(!o)return;const[,n,r,a]=o;if(r&&a)return{column:Number(a),line:Number(r)};let i=Number(n);return i===e.length&&(i=e.length-1),l(e,i)},"getErrorLocation"),y=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,v=c(e=>e.replace(y,(t,o,n)=>`"${n}"(${g(n)})`),"addCodePointToUnexpectedToken");function w(e,t,o,n){typeof t=="string"&&(typeof o=="object"&&(n=o),o=t,t=void 0);let r;try{return JSON.parse(e,t)}catch(u){r=u.message}let a;e?(a=h(e,r),r=v(r)):r+=" while parsing empty string";const i=new p(r);throw i.fileName=o,a&&(i.codeFrame=b(e,a,n)),i}s(w,"E");c(w,"parseJson");export{w as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _=Object.defineProperty;var i=(e,o)=>_(e,"name",{value:o,configurable:!0});import{createRequire as g}from"node:module";import{toPath as y}from"@visulima/path/utils";import{R_OK as P}from"./F_OK-CAwY1qU7.js";import q from"./PermissionError-B1Emi5a9.js";import c from"./isAccessible-CDFxsAAo.js";import z from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";const h=g(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=i(e=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[o,n]=r.versions.node.split(".").map(Number);if(o>22||o===22&&n>=3||o===20&&n>=16)return r.getBuiltinModule(e)}return h(e)},"__cjs_getBuiltinModule"),{readFile:w}=f("node:fs/promises"),{unzip:j,brotliDecompress:v}=f("node:zlib");var B=Object.defineProperty,m=i((e,o)=>B(e,"name",{value:o,configurable:!0}),"n");const F={brotli:v,gzip:j,none:m((e,o)=>{o(null,e)},"none")},E=m(async(e,o)=>{if(z(e),e=y(e),!await c(e))throw new q(`unable to read the non-accessible file: ${e}`);if(!await c(e,P))throw new Error(`Unable to read the non-readable file: ${e}`);const{buffer:n,compression:p,encoding:u,flag:s}=o??{};return await w(e,s?{flag:s}:{}).then(async t=>await new Promise((d,b)=>{F[p??"none"](t,(a,l)=>{a?b(a):d(n?l:l.toString(u??"utf8"))})})).catch(t=>{throw t})},"readFile");export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _=Object.defineProperty;var t=(e,o)=>_(e,"name",{value:o,configurable:!0});import{createRequire as b}from"node:module";import{toPath as j}from"@visulima/path/utils";import{R_OK as S}from"./F_OK-CAwY1qU7.js";import c from"./PermissionError-B1Emi5a9.js";import a from"./isAccessibleSync-5nzZWgin.js";import $ from"./assertValidFileOrDirectoryPath-DgPIPmZT.js";const g=b(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=t(e=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[o,n]=r.versions.node.split(".").map(Number);if(o>22||o===22&&n>=3||o===20&&n>=16)return r.getBuiltinModule(e)}return g(e)},"__cjs_getBuiltinModule"),{readFileSync:y}=f("node:fs"),{unzipSync:h,brotliDecompressSync:v}=f("node:zlib");var w=Object.defineProperty,l=t((e,o)=>w(e,"name",{value:o,configurable:!0}),"n");const q={brotli:v,gzip:h,none:l(e=>e,"none")},O=l((e,o)=>{if($(e),e=j(e),!a(e))throw new c(`unable to read the non-accessible file: ${e}`);if(!a(e,S))throw new c(`invalid access to read file at: ${e}`);const{buffer:n,compression:m,encoding:p,flag:i}=o??{},u=y(e,i?{flag:i}:{}),d=q[m??"none"],s=d(u);return n?s:s.toString(p??"utf8")},"readFileSync");export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var a=(r,e)=>c(r,"name",{value:e,configurable:!0});import{parse as i}from"ini";import d from"./readFile-BkNfutxp.js";var u=Object.defineProperty,f=a((r,e)=>u(r,"name",{value:e,configurable:!0}),"n");const b=f(async(r,e)=>{const{bracketedArray:t=!0,...n}=e??{},o=await d(r,{encoding:"utf8",...n});return i(o,{bracketedArray:t})},"readIni");export{b as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var t=(r,e)=>c(r,"name",{value:e,configurable:!0});import{parse as i}from"ini";import u from"./readFileSync-4c_c6Qey.js";var d=Object.defineProperty,f=t((r,e)=>d(r,"name",{value:e,configurable:!0}),"r");const s=f((r,e)=>{const{bracketedArray:a=!0,...o}=e??{},n=u(r,{encoding:"utf8",...o});return i(n,{bracketedArray:a})},"readIniSync");export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var t=(e,o)=>i(e,"name",{value:o,configurable:!0});import{toPath as d}from"@visulima/path/utils";import u from"./parseJson-DTdEDJwS.js";import m from"./readFile-BkNfutxp.js";var p=Object.defineProperty,s=t((e,o)=>p(e,"name",{value:o,configurable:!0}),"i");async function l(e,o,n){typeof o=="object"&&(n=o,o=void 0);const c=await m(e,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(c);const{beforeParse:a,color:f}=n??{};return typeof a=="function"&&(r=a(r)),u(r,o,d(e),{color:f})}t(l,"c");s(l,"readJson");export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s=Object.defineProperty;var r=(o,e)=>s(o,"name",{value:e,configurable:!0});import m from"json5";import b from"./readFile-BkNfutxp.js";var d=Object.defineProperty,g=r((o,e)=>d(o,"name",{value:e,configurable:!0}),"i");async function l(o,e,f){e&&typeof e=="object"&&(f=e,e=void 0);const{beforeParse:t,buffer:i,compression:n,encoding:c="utf8",flag:u}=f??{},a=await b(o,{buffer:i,compression:n,encoding:c,flag:u}),p=typeof t=="function"?t(a):a;return m.parse(p,e)}r(l,"u");g(l,"readJson5");export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=Object.defineProperty;var r=(o,e)=>u(o,"name",{value:e,configurable:!0});import m from"json5";import d from"./readFileSync-4c_c6Qey.js";var b=Object.defineProperty,g=r((o,e)=>b(o,"name",{value:e,configurable:!0}),"p");function l(o,e,f){e&&typeof e=="object"&&(f=e,e=void 0);const{beforeParse:t,buffer:c,compression:n,encoding:i="utf8",flag:p}=f??{},a=d(o,{buffer:c,compression:n,encoding:i,flag:p}),s=typeof t=="function"?t(a):a;return m.parse(s,e)}r(l,"m");g(l,"readJson5Sync");export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var t=(o,e)=>i(o,"name",{value:e,configurable:!0});import{toPath as d}from"@visulima/path/utils";import u from"./parseJson-DTdEDJwS.js";import m from"./readFileSync-4c_c6Qey.js";var p=Object.defineProperty,l=t((o,e)=>p(o,"name",{value:e,configurable:!0}),"r");function s(o,e,n){typeof e=="object"&&(n=e,e=void 0);const f=m(o,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(f);const{beforeParse:c,color:a}=n??{};return typeof c=="function"&&(r=c(r)),u(r,e,d(o),{color:a})}t(s,"J");l(s,"readJsonSync");export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var C=Object.defineProperty;var l=(o,r)=>C(o,"name",{value:r,configurable:!0});import{b,N as h}from"./indexToLineColumn-BRSZFC6I-zN_sCTx7.js";import{toPath as E}from"@visulima/path/utils";import{parse as y,printParseErrorCode as P}from"jsonc-parser";import v from"./JSONError-D7h6PNWc.js";import J from"./readFile-BkNfutxp.js";var T=Object.defineProperty,c=l((o,r)=>T(o,"name",{value:r,configurable:!0}),"a");const $=c((o,r,a,n)=>{if(o.length===0)return;const t=o[0],f=b(r,t.offset),e=new v(`${P(t.error)} at offset ${t.offset}`);throw e.fileName=a,e.codeFrame=h(r,{start:f},{tabWidth:!1,...n}),e},"throwIfJsoncErrors"),W=c(async(o,r)=>{const{allowEmptyContent:a,allowTrailingComma:n=!0,beforeParse:t,buffer:f,color:e,compression:p,disallowComments:u,encoding:w="utf8",flag:d}=r??{},s=await J(o,{buffer:f,compression:p,encoding:w,flag:d}),m=typeof t=="function"?t(s):s,i=[],g=y(m,i,{allowEmptyContent:a,allowTrailingComma:n,disallowComments:u});return $(i,m,E(o),{color:e}),g},"readJsonc");export{W as default,$ as throwIfJsoncErrors};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var g=Object.defineProperty;var l=(o,r)=>g(o,"name",{value:r,configurable:!0});import{toPath as y}from"@visulima/path/utils";import{parse as C}from"jsonc-parser";import b from"./readFileSync-4c_c6Qey.js";import{throwIfJsoncErrors as P}from"./readJsonc-Bd6QH-bH.js";var v=Object.defineProperty,E=l((o,r)=>v(o,"name",{value:r,configurable:!0}),"p");const F=E((o,r)=>{const{allowEmptyContent:m,allowTrailingComma:f=!0,beforeParse:e,buffer:i,color:s,compression:c,disallowComments:p,encoding:u="utf8",flag:d}=r??{},t=b(o,{buffer:i,compression:c,encoding:u,flag:d}),n=typeof e=="function"?e(t):t,a=[],w=C(n,a,{allowEmptyContent:m,allowTrailingComma:f,disallowComments:p});return P(a,n,y(o),{color:s}),w},"readJsoncSync");export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var t=(r,e)=>o(r,"name",{value:e,configurable:!0});import{parse as n}from"smol-toml";import c from"./readFile-BkNfutxp.js";var f=Object.defineProperty,i=t((r,e)=>f(r,"name",{value:e,configurable:!0}),"r");const s=i(async(r,e)=>{const a=await c(r,{encoding:"utf8",...e});return n(a)},"readToml");export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.defineProperty;var t=(r,e)=>n(r,"name",{value:e,configurable:!0});import{parse as a}from"smol-toml";import c from"./readFileSync-4c_c6Qey.js";var f=Object.defineProperty,i=t((r,e)=>f(r,"name",{value:e,configurable:!0}),"n");const d=i((r,e)=>{const o=c(r,{encoding:"utf8",...e});return a(o)},"readTomlSync");export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var p=Object.defineProperty;var o=(r,e)=>p(r,"name",{value:e,configurable:!0});import{parse as n}from"yaml";import s from"./readFile-BkNfutxp.js";var l=Object.defineProperty,d=o((r,e)=>l(r,"name",{value:e,configurable:!0}),"r");async function g(r,e,t){const{buffer:c,compression:i,encoding:u="utf8",flag:m,...a}=t??{},f=await s(r,{buffer:c,compression:i,encoding:u,flag:m});return typeof e=="function"?n(f,e,a):n(f,a)}o(g,"l");d(g,"readYaml");export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var p=Object.defineProperty;var o=(r,e)=>p(r,"name",{value:e,configurable:!0});import{parse as t}from"yaml";import l from"./readFileSync-4c_c6Qey.js";var s=Object.defineProperty,d=o((r,e)=>s(r,"name",{value:e,configurable:!0}),"t");function g(r,e,a){const{buffer:c,compression:i,encoding:u="utf8",flag:m,...f}=a??{},n=l(r,{buffer:c,compression:i,encoding:u,flag:m});return typeof e=="function"?t(n,e,f):t(n,f)}o(g,"l");d(g,"readYamlSync");export{g as default};
|