@visulima/vis 1.0.0-alpha.24 → 1.0.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -0
- package/LICENSE.md +1154 -179
- package/README.md +5 -3
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/config/index.d.ts +19 -0
- package/dist/packem_chunks/bin.js +299 -290
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/config.js +15 -15
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +2 -2
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +1 -1
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +10 -10
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +1 -1
- package/dist/packem_chunks/handler2.js +2 -2
- package/dist/packem_chunks/handler20.js +1 -1
- package/dist/packem_chunks/handler21.js +5 -5
- package/dist/packem_chunks/handler22.js +2 -2
- package/dist/packem_chunks/handler23.js +2 -2
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +1 -1
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler29.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler30.js +1 -1
- package/dist/packem_chunks/handler31.js +1 -1
- package/dist/packem_chunks/handler32.js +3 -3
- package/dist/packem_chunks/handler34.js +5 -28
- package/dist/packem_chunks/handler35.js +22 -5
- package/dist/packem_chunks/handler36.js +60 -21
- package/dist/packem_chunks/handler37.js +6 -61
- package/dist/packem_chunks/handler38.js +24 -6
- package/dist/packem_chunks/handler39.js +152 -707
- package/dist/packem_chunks/handler4.js +1 -1
- package/dist/packem_chunks/handler40.js +10 -24
- package/dist/packem_chunks/handler41.js +25 -286
- package/dist/packem_chunks/handler42.js +707 -152
- package/dist/packem_chunks/handler43.js +24 -10
- package/dist/packem_chunks/handler44.js +322 -25
- package/dist/packem_chunks/handler45.js +46 -24
- package/dist/packem_chunks/handler46.js +1 -1
- package/dist/packem_chunks/handler47.js +7 -7
- package/dist/packem_chunks/handler48.js +66 -58
- package/dist/packem_chunks/handler5.js +3 -3
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +16 -16
- package/dist/packem_chunks/index.js +6 -6
- package/dist/packem_chunks/list.js +1 -1
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/prune.js +3 -3
- package/dist/packem_chunks/run.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/sync2.js +1 -1
- package/dist/packem_chunks/tripwire.js +1 -1
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_shared/{advisories-U1QKY_tg.js → advisories-DS8JEB_g.js} +1 -1
- package/dist/packem_shared/affected-shas-Dm7eqcI8.js +1 -0
- package/dist/packem_shared/{ai-analysis-B8pDCOuT.js → ai-analysis-Csn82p17.js} +1 -1
- package/dist/packem_shared/{ai-fix-DiGSrGKv.js → ai-fix-BlYyz5bI.js} +3 -3
- package/dist/packem_shared/{cyclonedx-DPEW0nwS.js → cyclonedx-ja1cbU69.js} +1 -1
- package/dist/packem_shared/dependency-scan-s2MD0vi-.js +1 -0
- package/dist/packem_shared/{docker-_pBC9Loj.js → docker-Bw9gKo69.js} +1 -1
- package/dist/packem_shared/{index-D_tAc2nS.js → index-88UK-tt_.js} +1 -1
- package/dist/packem_shared/index-CS6a2wFB.js +29 -0
- package/dist/packem_shared/lifecycle-ChCFTm5Q.js +2 -0
- package/dist/packem_shared/{lockfile-CQLFNyVa.js → lockfile-BG1HvBzH.js} +1 -1
- package/dist/packem_shared/{min-release-age-Cz6HbF-I.js → min-release-age-heJgeP7o.js} +1 -1
- package/dist/packem_shared/{osv-bloom-CyCDpXBl.js → osv-bloom-QSAn2Dcw.js} +2 -2
- package/dist/packem_shared/{pm-runner-Dnj9J3KF.js → pm-runner-BzGZmzYs.js} +1 -1
- package/dist/packem_shared/{provenance-yESbF7Vs.js → provenance-BsBn1f5S.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-BpxcFRuk.js → resolve-explicit-CBPr617N.js} +1 -1
- package/dist/packem_shared/{s1ngularity-B_xjP4lC.js → s1ngularity-j_ArCZAs.js} +1 -1
- package/dist/packem_shared/{signatures-DBwSnMBB.js → signatures-CaXzNuEn.js} +1 -1
- package/dist/packem_shared/{typosquats-Citu7BRY.js → typosquats-C1e6RNjF.js} +1 -1
- package/dist/packem_shared/vis-update-app-qhQPV97i.js +1 -0
- package/index.d.ts +201 -201
- package/index.js +52 -52
- package/package.json +14 -25
- package/schemas/project.schema.json +4 -0
- package/schemas/vis-config.schema.json +5 -0
- package/dist/packem_shared/dependency-scan-BbtivycX.js +0 -1
- package/dist/packem_shared/index-B8Ko8mwG.js +0 -29
- package/dist/packem_shared/lifecycle-DJDsjoic.js +0 -2
- package/dist/packem_shared/vis-update-app-BWA1kA1q.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var m=Object.defineProperty;var a=(o,r)=>m(o,"name",{value:r,configurable:!0});import{e as l,E as f,I as u}from"../packem_shared/index.server-B7ETiT4C.js";import{p as i}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-
|
|
1
|
+
var m=Object.defineProperty;var a=(o,r)=>m(o,"name",{value:r,configurable:!0});import{e as l,E as f,I as u}from"../packem_shared/index.server-B7ETiT4C.js";import{p as i}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-QSAn2Dcw.js";var d=Object.defineProperty,n=a((o,r)=>d(o,"name",{value:r,configurable:!0}),"s");const c=n(o=>{if(!o)return"never";const r=Date.parse(o);if(Number.isNaN(r))return o;const t=Date.now()-r;if(t<0)return o;const e=Math.floor(t/6e4);if(e<1)return"just now";if(e<60)return`${e}m ago`;const s=Math.floor(e/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`},"formatRelative"),p=n(o=>o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`,"formatBytes"),g=n(async({options:o,workspaceRoot:r})=>{if(!r)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const t=await $(r,o.cacheDir);if(o.format==="json"){process.stdout.write(`${JSON.stringify(t,void 0,2)}
|
|
2
2
|
`);return}if(i.info(`Cache: ${t.cacheDir}`),!t.present){i.warn(`No osv-bloom filter yet. Run ${l("vis advisories bloom sync")} to populate.`);return}if(t.manifest){const{manifest:e}=t;i.info(`Built: ${e.builtAtRfc3339} (${c(e.builtAtRfc3339)})`),i.info(`Fetch: ${t.fetchedAtIso??f("—")} (${c(t.fetchedAtIso)})`),i.info(`Filter: ${u(p(e.bloomByteLen))} m=${e.bloomMBits.toLocaleString()} bits k=${String(e.bloomKHashes)}`),i.info(`Set: ${e.entryCount.toLocaleString()} entries from ${e.advisoryCount.toLocaleString()} advisories (target FPR ${e.targetFpr})`),i.info(f(`Digest: ${e.setDigestSha256}`))}else i.warn("filter.bin present but manifest.json missing — `vis advisories bloom sync` will rewrite the cache.")},"execute"),y=g;export{y as advisoriesBloomStatusExecute};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var D=Object.defineProperty;var f=(o,t)=>D(o,"name",{value:t,configurable:!0});import{E as d}from"../packem_shared/index.server-B7ETiT4C.js";import{p as n}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-EbvmIh4i.js";import{s as y,D as h}from"../packem_shared/osv-bloom-
|
|
1
|
+
var D=Object.defineProperty;var f=(o,t)=>D(o,"name",{value:t,configurable:!0});import{E as d}from"../packem_shared/index.server-B7ETiT4C.js";import{p as n}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-EbvmIh4i.js";import{s as y,D as h}from"../packem_shared/osv-bloom-QSAn2Dcw.js";var v=Object.defineProperty,a=f((o,t)=>v(o,"name",{value:t,configurable:!0}),"s");const w=a(o=>o?.security?.audit?.advisories?.bloom??{},"readBloomConfig"),p=a(o=>o>=1e3?`${(o/1e3).toFixed(1)}s`:`${Math.round(o)}ms`,"formatDuration"),$=a(o=>o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`,"formatBytes"),B=a(async({options:o,visConfig:t,workspaceRoot:c})=>{if(!c)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const l=o.format==="json",m=w(t),u=o.source??m.source??h,s=b([{id:"bloom",label:"Sync osv-bloom prefilter"}],{live:!l});let e,r;try{s.start("bloom");const i=Date.now();e=await y({allowedHosts:m.allowedHosts,cacheDir:o.cacheDir,force:!!o.force,source:u,workspaceRoot:c}),e.upToDate?s.finish("bloom","ok",`up to date · ${p(Date.now()-i)}`):s.finish("bloom","ok",`${e.manifest.entryCount.toLocaleString()} entries · ${$(e.bytesOnDisk)} · ${p(e.durationMs)}`)}catch(i){r=i instanceof Error?i.message:String(i),s.finish("bloom","error",r)}finally{s.stop()}l?process.stdout.write(`${JSON.stringify({bytesOnDisk:e?.bytesOnDisk??0,cacheDir:e?.cacheDir??null,durationMs:e?.durationMs??0,error:r??null,manifest:e?.manifest??null,source:u,upToDate:e?.upToDate??!1},void 0,2)}
|
|
2
2
|
`):e&&(n.info(d(`Cache: ${e.cacheDir}`)),n.info(d(`Built: ${e.manifest.builtAtRfc3339}`)),r||n.success(e.upToDate?"osv-bloom prefilter up to date.":"osv-bloom prefilter synced.")),r&&(process.exitCode=1)},"execute"),x=B;export{x as advisoriesBloomSyncExecute};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var yo=Object.defineProperty;var x=(e,t)=>yo(e,"name",{value:t,configurable:!0});import{createRequire as bo}from"node:module";import{f as jn,$ as jo,U as On,i as J,_ as Qr,K as rt,s as Oo,M as L,a as kn}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{createJiti as Pn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const vo=bo(import.meta.url),Le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Lr=x(e=>{if(typeof Le<"u"&&Le.versions&&Le.versions.node){const[t,n]=Le.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Le.getBuiltinModule(e)}return vo(e)},"__cjs_getBuiltinModule"),{createHash:xn}=Lr("node:crypto"),{readdirSync:wn,readFileSync:$o,copyFileSync:xo,unlinkSync:wo}=Lr("node:fs"),{createRequire:tt}=Lr("node:module");var ko=Object.defineProperty,ve=x((e,t)=>ko(e,"name",{value:t,configurable:!0}),"K$2"),Po=Object.defineProperty,M=ve((e,t)=>Po(e,"name",{value:t,configurable:!0}),"E");const Eo=tt(import.meta.url),ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,En=M(e=>{if(typeof ge<"u"&&ge.versions&&ge.versions.node){const[t,n]=ge.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return ge.getBuiltinModule(e)}return Eo(e)},"__cjs_getBuiltinModule"),{existsSync:he}=En("node:fs"),{env:me,cwd:Tn}=ge,{createRequire:$e}=En("node:module"),An=0,ye=2,Sn=Symbol("findUpStop");var To=Object.defineProperty,Ao=M((e,t)=>To(e,"name",{value:t,configurable:!0}),"t$4"),So=Object.defineProperty,Co=Ao((e,t)=>So(e,"name",{value:t,configurable:!0}),"t"),Mo=Object.defineProperty,_o=Co((e,t)=>Mo(e,"name",{value:t,configurable:!0}),"n");const Vr=_o(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var zo=Object.defineProperty,No=M((e,t)=>zo(e,"name",{value:t,configurable:!0}),"i$4"),Bo=Object.defineProperty,Ro=No((e,t)=>Bo(e,"name",{value:t,configurable:!0}),"r"),Io=Object.defineProperty,Do=Ro((e,t)=>Io(e,"name",{value:t,configurable:!0}),"i");const en=Do(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Fo=Object.defineProperty,Wo=M((e,t)=>Fo(e,"name",{value:t,configurable:!0}),"i$3"),Lo=Object.defineProperty,Cn=Wo((e,t)=>Lo(e,"name",{value:t,configurable:!0}),"s");const Vo=$e(import.meta.url),Ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Uo=Cn(e=>{if(typeof Ve<"u"&&Ve.versions&&Ve.versions.node){const[t,n]=Ve.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ve.getBuiltinModule(e)}return Vo(e)},"__cjs_getBuiltinModule"),{lstatSync:tn,mkdirSync:qo}=Uo("node:fs");var Zo=Object.defineProperty,Go=Cn((e,t)=>Zo(e,"name",{value:t,configurable:!0}),"o");const Ko=Go(e=>{Vr(e);try{const t=tn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(en(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{qo(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=tn(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(en(n))}'`,{cause:t})}},"ensureDirSync");var Jo=Object.defineProperty,m=M((e,t)=>Jo(e,"name",{value:t,configurable:!0}),"s$6");let rn=m(()=>{var e=(()=>{var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=m((r,o)=>{for(var i in o)t(r,i,{get:o[i],enumerable:!0})},"ne"),g=m((r,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(r,a)&&a!==i&&t(r,a,{get:m(()=>o[a],"get"),enumerable:!(c=n(o,a))||c.enumerable});return r},"ae"),h=m(r=>g(t({},"__esModule",{value:!0}),r),"oe"),$={};l($,{zeptomatch:m(()=>We,"zeptomatch")});var O=m(r=>{const o=new Set,i=[r];for(let c=0;c<i.length;c++){const a=i[c];if(o.has(a))continue;o.add(a);const{children:f}=a;if(f?.length)for(let p=0,y=f.length;p<y;p++)i.push(f[p])}return Array.from(o)},"M"),j=m(r=>{let o="";const i=O(r);for(let c=0,a=i.length;c<a;c++){const f=i[c];if(!f.regex)continue;const p=f.regex.flags;if(o||(o=p),o!==p)throw new Error(`Inconsistent RegExp flags used: "${o}" and "${p}"`)}return o},"se"),v=m((r,o,i)=>{const c=i.get(r);if(c!==void 0)return c;const a=r.partial??o;let f="";if(r.regex&&(f+=a?"(?:$|":"",f+=r.regex.source),r.children?.length){const p=E(r.children.map(y=>v(y,o,i)).filter(Boolean));if(p?.length){const y=r.children.some(G=>!G.regex||!(G.partial??o)),k=p.length>1||a&&(!f.length||y);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),C=m((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=v(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=m(r=>Array.from(new Set(r)),"ue"),P=m((r,o,i)=>P.compile(r,i).test(o),"R");P.compile=(r,o)=>{const i=o?.partial??!1,c=C(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,q=m((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ee=q,xe=m(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),we=xe,X=m(r=>Array.isArray(r),"j"),B=m(r=>typeof r=="function","_"),je=m(r=>r.length===0,"he"),Oe=(()=>{const{toString:r}=Function.prototype,o=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return i=>(i.length===0||i.length===1)&&o.test(r.call(i))})(),$t=m(r=>typeof r=="number","de"),xt=m(r=>typeof r=="object"&&r!==null,"xe"),wt=m(r=>r instanceof RegExp,"me"),jt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ot=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),ke=m(r=>typeof r=="string","A"),_=m(r=>r===void 0,"f"),kt=m(r=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=r(i);return o.set(i,a),a}},"ye"),Pe=m((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=z(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),d=m((r,o)=>X(r)?Pt(r,o):ke(r)?Ee(r,o):Et(r,o),"i"),Pt=m((r,o)=>{const i={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);i[a]=!0}return c=>{const a=c.input;let f=c.index,p=f;for(;p<a.length&&a.charCodeAt(p)in i;)p+=1;if(p>f){if(!_(o)&&!c.options.silent){const y=a.slice(f,p),k=B(o)?o(y,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),Et=m((r,o)=>{if(Ot(r))return Ee(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return jt(r)&&B(o)&&!Oe(o)?Tt(a,o):At(a,o)}},"$e"),Tt=m((r,o)=>i=>{const c=i.index,a=i.input;r.lastIndex=c;const f=r.exec(a);if(f){const p=r.lastIndex;if(!i.options.silent){const y=o(...f,a,`${c}`);_(y)||i.output.push(y)}return i.index=p,!0}else return!1},"Ee"),At=m((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!_(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;_(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Ee=m((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!_(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;_(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ie=m((r,o,i,c)=>{const a=z(r),f=o>1;return ce(ae(Ae(p=>{let y=0;for(;y<i;){const k=p.index;if(!a(p)||(y+=1,p.index===k))break}return y>=o},f),c))},"k"),Te=m((r,o)=>ie(r,0,1,o),"L"),Y=m((r,o)=>ie(r,0,1/0,o),"$"),St=m((r,o)=>ie(r,1,1/0,o),"Re"),D=m((r,o)=>{const i=r.map(z);return ce(ae(Ae(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),A=m((r,o)=>{const i=r.map(z);return ce(ae(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),Ae=m((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,y=c(a);return!y&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!y||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),y}:c},"q"),ae=m((r,o)=>{const i=z(r);return o?c=>{if(c.options.silent)return i(c);const a=c.output.length;if(i(c)){const f=c.output.splice(a,1/0),p=o(f);return _(p)||c.output.push(p),!0}else return!1}:i},"B"),ce=(()=>{let r=0;return o=>{const i=z(o),c=r+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,y=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=y.queue;if(p<=y.indexMax){const K=y.store||(y.store=new Map);if(k.length){for(let W=0,zr=k.length;W<zr;W+=2){const Nr=k[W*2],Br=k[W*2+1];K.set(Nr,Br)}k.length=0}const S=K.get(p);if(S===!1)return!1;if($t(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const G=a.output.length,_r=i(a);if(y.indexMax=Math.max(y.indexMax,p),_r){const K=a.index,S=a.output.length;if(S>G){const W=a.output.slice(G,S);k.push(p,{index:K,output:W})}else k.push(p,K);return!0}else return k.push(p,!1),!1}}})(),Se=m(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=kt(r=>{if(B(r))return je(r)?Se(r):r;if(ke(r)||wt(r))return d(r);if(X(r))return D(r);if(xt(r))return A(Object.values(r));throw new Error("Invalid rule")}),R=m(r=>r,"d"),Ct=m(r=>typeof r=="string","ke"),Mt=m(r=>{const o=new WeakMap,i=new WeakMap;return(c,a)=>{const f=a?.partial?i:o,p=f.get(c);if(p!==void 0)return p;const y=r(c,a);return f.set(c,y),y}},"Be"),_t=m(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),zt=d(/\\./,R),Nt=d(/./,R),Bt=d(/\*\*\*+/,"*"),Rt=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),It=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Dt=Y(A([zt,Bt,Rt,It,Nt])),Ft=Dt,Wt=m(r=>Pe(r,Ft,{memoization:!1}).join(""),"Ie"),Lt=Wt,Ce="abcdefghijklmnopqrstuvwxyz",Vt=m(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Ce[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Me=m(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Ce.indexOf(r[i])+1;return o},"V"),ue=m((r,o)=>{if(o<r)return ue(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Ut=m((r,o,i)=>ue(r,o).map(c=>String(c).padStart(i,"0")),"qe"),_e=m((r,o)=>ue(Me(r),Me(o)).map(Vt),"W"),w=m(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=m(r=>({children:r}),"y"),F=(()=>{const r=m((o,i,c)=>{if(c.has(o))return;c.add(o);const{children:a}=o;if(!a.length)a.push(i);else for(let f=0,p=a.length;f<p;f++)r(a[f],i,c)},"e");return o=>{if(!o.length)return Z([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];r(a,f,c)}return o[0]}})(),N=m(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),qt=d(/\\./,w),Zt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),Gt=d(/[\\\/]/,N),Kt=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),Jt=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${We.compile(o).source}$).*?`)),Ht=d(/^(!!)+/),Xt=A([Jt,Ht]),Yt=d(/\/(\*\*\/)+/,()=>Z([F([N(),w(".+?"),N()]),N()])),Qt=d(/^(\*\*\/)+/,()=>Z([w("^"),F([w(".*?"),N()])])),er=d(/\/(\*\*)$/,()=>Z([F([N(),w(".*?")]),w("$")])),tr=d(/\*\*/,()=>w(".*?")),ze=A([Yt,Qt,er,tr]),rr=d(/\*\/(?!\*\*\/|\*$)/,()=>F([w("[^\\\\/]*?"),N()])),nr=d(/\*/,()=>w("[^\\\\/]*")),Ne=A([rr,nr]),Be=d("?",()=>w("[^\\\\/]")),or=d("[",R),sr=d("]",R),ir=d(/[!^]/,"^\\\\/"),ar=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),cr=d(/\\./,R),ur=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),lr=d(/[\\\/]/,"\\\\/"),fr=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),pr=A([cr,ur,lr,ar,fr]),Re=D([or,Te(ir),Y(pr),sr],r=>w(r.join(""))),dr=d("{","(?:"),gr=d("}",")"),hr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Ut(+o,+i,Math.min(o.length,i.length)).join("|")),mr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>_e(o,i).join("|")),yr=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>_e(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),br=A([hr,mr,yr]),Ie=D([dr,br,gr],r=>w(r.join(""))),vr=d("{"),$r=d("}"),xr=d(","),wr=d(/\\./,w),jr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Or=d(/[\\\/]/,N),kr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),Pr=Se(()=>Fe),Er=d("",()=>w("(?:)")),Tr=St(A([ze,Ne,Be,Re,Ie,Pr,wr,jr,Or,kr]),F),De=A([Tr,Er]),Fe=D([vr,Te(D([De,Y(D([xr,De]))])),$r],Z),Ar=Y(A([Xt,ze,Ne,Be,Re,Ie,Fe,qt,Zt,Gt,Kt]),F),Sr=Ar,Cr=m(r=>Pe(r,Sr,{memoization:!1})[0],"kr"),Mr=Cr,le=m((r,o,i)=>le.compile(r,i).test(o),"N");le.compile=(()=>{const r=_t((i,c)=>ee(Mr(Lt(i)),c)),o=Mt((i,c)=>we(i.map(a=>r(a,c))));return(i,c)=>Ct(i)?r(i,c):o(i,c)})();var We=le;return h($)})();return e.default||e},"_lazyMatch"),Rr;const Ho=m((e,t)=>(Rr||(Rr=rn(),rn=null),Rr(e,t)),"zeptomatch"),Xo=/^[A-Z]:\//i,H=m((e="")=>e&&e.replaceAll("\\","/").replace(Xo,t=>t.toUpperCase()),"normalizeWindowsPath"),Yo=/^[/\\]{2}/,Qo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Mn=/^[A-Z]:$/i,nn=/^\/([A-Z]:)?$/i,es=/.(\.[^./]+)$/,ts=/^[/\\]|^[a-z]:[/\\]/i,rs=/\/$/,ns=m(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),_n=m((e,t)=>{let n="",s=0,u=-1,l=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||l===1))if(l===2){if(n.length<2||s!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const $=n.lastIndexOf("/");$===-1?(n="",s=0):(n=n.slice(0,$),s=n.length-1-n.lastIndexOf("/")),u=h,l=0;continue}else if(n.length>0){n="",s=0,u=h,l=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(u+1,h)}`:n=e.slice(u+1,h),s=h-u-1;u=h,l=0}else g==="."&&l!==-1?++l:l=-1}return n},"normalizeString"),fe=m(e=>Qo.test(e),"isAbsolute"),zn=m(function(e){if(e.length===0)return".";e=H(e);const t=Yo.exec(e),n=fe(e),s=e.at(-1)==="/";return e=_n(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Mn.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!fe(e)?`/${e}`:e)},"normalize"),Nn=m((...e)=>{let t="";for(const n of e)if(n)if(t.length>0){const s=t.at(-1)==="/",u=n[0]==="/";s&&u?t+=n.slice(1):t+=s||u?n:`/${n}`}else t+=n;return zn(t)},"join"),Q=m(function(...e){e=e.map(s=>H(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:ns();!u||u.length===0||(t=`${u}/${t}`,n=fe(u))}return t=_n(t,!n),n&&!fe(t)?`/${t}`:t.length>0?t:"."},"resolve");m(function(e){return H(e)},"toNamespacedPath");const Bn=m(function(e){return es.exec(H(e))?.[1]??""},"extname");m(function(e,t){const n=Q(e).replace(nn,"$1").split("/"),s=Q(t).replace(nn,"$1").split("/");if(s[0][1]===":"&&n[0][1]===":"&&n[0]!==s[0])return s.join("/");const u=[...n];for(const l of u){if(s[0]!==l)break;n.shift(),s.shift()}return[...n.map(()=>".."),...s].join("/")},"relative");const Ur=m(e=>{const t=H(e).replace(rs,"").split("/").slice(0,-1);return t.length===1&&Mn.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(fe(e)?"/":".")},"dirname");m(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return H(e.root?Q(...t):t.join("/"))},"format");const os=m((e,t)=>{const n=H(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename"),Rn=m(function(e){const t=ts.exec(e)?.[0]?.replaceAll("\\","/")??"",n=os(e),s=Bn(n);return{base:n,dir:Ur(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");m((e,t)=>Ho(t,zn(e)),"matchesGlob");var ss=Object.defineProperty,V=M((e,t)=>ss(e,"name",{value:t,configurable:!0}),"i$2");const is=$e(import.meta.url),Ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,as=V(e=>{if(typeof Ue<"u"&&Ue.versions&&Ue.versions.node){const[t,n]=Ue.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ue.getBuiltinModule(e)}return is(e)},"__cjs_getBuiltinModule"),{fileURLToPath:cs}=as("node:url");function ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(ut,"dn");ve(ut,"Nr");M(ut,"w$1");V(ut,"getDefaultExportFromCjs");var on,sn;function lt(){return sn||(sn=1,on=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),on}x(lt,"gn");ve(lt,"Dr");M(lt,"y$2");V(lt,"requireBinaryExtensions");var us=lt();const ls=ut(us),fs=new Set(ls),ps=new Set(["/","\\",void 0]),an=Symbol.for("pathe:normalizedAlias"),ds=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,gs=V((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),at=V((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),In=V(e=>{if(e[an])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([n],[s])=>gs(n,s)));for(const n in t)for(const s in t)s===n||n.startsWith(s)||t[n].startsWith(s)&&ps.has(t[n][s.length])&&(t[n]=t[s]+t[n].slice(s.length));return Object.defineProperty(t,an,{enumerable:!1,value:!0}),t},"normalizeAliases");V((e,t)=>{e=H(e),t=In(t);for(const[n,s]of Object.entries(t)){if(!e.startsWith(n))continue;const u=at(n)?n.slice(0,-1):n;if(at(e[u.length]))return Nn(s,e.slice(n.length))}return e},"resolveAlias");V(e=>ds.exec(e)?.[2],"filename");V((e,t)=>{e=H(e),t=In(t);for(const[n,s]of Object.entries(t).toReversed()){if(!e.startsWith(s))continue;const u=at(s)?s.slice(0,-1):s;if(at(e[u.length]))return Nn(n,e.slice(s.length))}return e},"reverseResolveAlias");const hs=/^(?:\.?\.[/\\]|\.\.\B)/,ms=/^(?:msys|cygwin)$/;V(e=>hs.test(e)||e==="..","isRelative");V(e=>fs.has(Bn(e).slice(1).toLowerCase()),"isBinaryPath");const be=V(e=>H(e instanceof URL?cs(e):e),"toPath");V(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:ms.test(e)},"isWindows");var ys=Object.defineProperty,bs=M((e,t)=>ys(e,"name",{value:t,configurable:!0}),"p"),vs=Object.defineProperty,Dn=bs((e,t)=>vs(e,"name",{value:t,configurable:!0}),"a");const $s=$e(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fn=Dn(e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,n]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return qe.getBuiltinModule(e)}return $s(e)},"__cjs_getBuiltinModule"),{stat:xs,lstat:ws}=Fn("node:fs/promises"),{fileURLToPath:js}=Fn("node:url");var Os=Object.defineProperty,cn=Dn((e,t)=>Os(e,"name",{value:t,configurable:!0}),"n");const ks=cn(async(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 n=t.cwd?be(t.cwd):process.cwd();let s=Q(n);const{root:u}=Rn(s),l=be(t.stopAt??u),g=Q(s,l),h=t.type??"file",$=cn(async function(j){return typeof e=="function"?[await e(j)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const O=t.allowSymlinks?xs:ws;for(;s&&s!==g&&s!==u;){const j=await $(s);for(let v of j){if(v===Sn)return;if(v===void 0)continue;Buffer.isBuffer(v)?v=v.toString():v instanceof URL&&(v=js(v));const C=fe(v)?v:Q(s,v);try{const E=await O(C);if(h==="file"&&E.isFile()||h==="directory"&&E.isDirectory())return C}catch{}}s=Ur(s)}},"findUp");var Ps=Object.defineProperty,Es=M((e,t)=>Ps(e,"name",{value:t,configurable:!0}),"u$3"),Ts=Object.defineProperty,Wn=Es((e,t)=>Ts(e,"name",{value:t,configurable:!0}),"i");const As=$e(import.meta.url),Ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ln=Wn(e=>{if(typeof Ze<"u"&&Ze.versions&&Ze.versions.node){const[t,n]=Ze.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ze.getBuiltinModule(e)}return As(e)},"__cjs_getBuiltinModule"),{statSync:Ss,lstatSync:Cs}=Ln("node:fs"),{fileURLToPath:Ms}=Ln("node:url");var _s=Object.defineProperty,un=Wn((e,t)=>_s(e,"name",{value:t,configurable:!0}),"o");const zs=un((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 n=t.cwd?be(t.cwd):process.cwd();let s=Q(n);const{root:u}=Rn(s),l=be(t.stopAt??u),g=Q(s,l),h=t.type??"file",$=un(function(j){return typeof e=="function"?[e(j)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const O=t.allowSymlinks?Ss:Cs;for(;s&&s!==g&&s!==u;){for(let j of $(s)){if(j===Sn)return;if(j===void 0)continue;Buffer.isBuffer(j)?j=j.toString():j instanceof URL&&(j=Ms(j));const v=fe(j)?j:Q(s,j);try{const C=O(v);if(h==="file"&&C.isFile()||h==="directory"&&C.isDirectory())return v}catch{}}s=Ur(s)}},"findUpSync");var Ns=Object.defineProperty,Vn=M((e,t)=>Ns(e,"name",{value:t,configurable:!0}),"t$2"),Bs=Object.defineProperty,qr=Vn((e,t)=>Bs(e,"name",{value:t,configurable:!0}),"s");const Rs=$e(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Is=qr(e=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[t,n]=Ge.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ge.getBuiltinModule(e)}return Rs(e)},"__cjs_getBuiltinModule"),{access:Ds}=Is("node:fs/promises");var Fs=Object.defineProperty,Ws=qr((e,t)=>Fs(e,"name",{value:t,configurable:!0}),"o");async function re(e,t=An){Vr(e),e=be(e);try{return await Ds(e,t),!0}catch{return!1}}x(re,"Q$2");ve(re,"se");M(re,"i$1");Vn(re,"d");qr(re,"m");Ws(re,"isAccessible");var Ls=Object.defineProperty,Un=M((e,t)=>Ls(e,"name",{value:t,configurable:!0}),"t$1"),Vs=Object.defineProperty,Zr=Un((e,t)=>Vs(e,"name",{value:t,configurable:!0}),"t");const Us=$e(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qs=Zr(e=>{if(typeof Ke<"u"&&Ke.versions&&Ke.versions.node){const[t,n]=Ke.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ke.getBuiltinModule(e)}return Us(e)},"__cjs_getBuiltinModule"),{accessSync:Zs}=qs("node:fs");var Gs=Object.defineProperty,Ks=Zr((e,t)=>Gs(e,"name",{value:t,configurable:!0}),"o");function ne(e,t=An){Vr(e),e=be(e);try{return Zs(e,t),!0}catch{return!1}}x(ne,"ee$1");ve(ne,"ie");M(ne,"i");Un(ne,"d");Zr(ne,"m");Ks(ne,"isAccessibleSync");var Js=Object.defineProperty,qn=M((e,t)=>Js(e,"name",{value:t,configurable:!0}),"o"),Hs=Object.defineProperty,Zn=qn((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"o"),Xs=Object.defineProperty,Ys=Zn((e,t)=>Xs(e,"name",{value:t,configurable:!0}),"o");let Gn=class extends Error{static{x(this,"Jn")}static{ve(this,"Xr")}static{M(this,"s")}static{qn(this,"u")}static{Zn(this,"n")}static{Ys(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var Qs=Object.defineProperty,ei=M((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"$e"),ti=Object.defineProperty,Gr=ei((e,t)=>ti(e,"name",{value:t,configurable:!0}),"W"),ri=Object.defineProperty,b=Gr((e,t)=>ri(e,"name",{value:t,configurable:!0}),"u$1");let ln=b(()=>{var e=(()=>{var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=b((r,o)=>{for(var i in o)t(r,i,{get:o[i],enumerable:!0})},"ne"),g=b((r,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(r,a)&&a!==i&&t(r,a,{get:b(()=>o[a],"get"),enumerable:!(c=n(o,a))||c.enumerable});return r},"ae"),h=b(r=>g(t({},"__esModule",{value:!0}),r),"oe"),$={};l($,{zeptomatch:b(()=>We,"zeptomatch")});var O=b(r=>{const o=new Set,i=[r];for(let c=0;c<i.length;c++){const a=i[c];if(o.has(a))continue;o.add(a);const{children:f}=a;if(f?.length)for(let p=0,y=f.length;p<y;p++)i.push(f[p])}return Array.from(o)},"M"),j=b(r=>{let o="";const i=O(r);for(let c=0,a=i.length;c<a;c++){const f=i[c];if(!f.regex)continue;const p=f.regex.flags;if(o||(o=p),o!==p)throw new Error(`Inconsistent RegExp flags used: "${o}" and "${p}"`)}return o},"se"),v=b((r,o,i)=>{const c=i.get(r);if(c!==void 0)return c;const a=r.partial??o;let f="";if(r.regex&&(f+=a?"(?:$|":"",f+=r.regex.source),r.children?.length){const p=E(r.children.map(y=>v(y,o,i)).filter(Boolean));if(p?.length){const y=r.children.some(G=>!G.regex||!(G.partial??o)),k=p.length>1||a&&(!f.length||y);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),C=b((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=v(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=b(r=>Array.from(new Set(r)),"ue"),P=b((r,o,i)=>P.compile(r,i).test(o),"R");P.compile=(r,o)=>{const i=o?.partial??!1,c=C(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,q=b((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ee=q,xe=b(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),we=xe,X=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),je=b(r=>r.length===0,"he"),Oe=(()=>{const{toString:r}=Function.prototype,o=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return i=>(i.length===0||i.length===1)&&o.test(r.call(i))})(),$t=b(r=>typeof r=="number","de"),xt=b(r=>typeof r=="object"&&r!==null,"xe"),wt=b(r=>r instanceof RegExp,"me"),jt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ot=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),ke=b(r=>typeof r=="string","A"),_=b(r=>r===void 0,"f"),kt=b(r=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=r(i);return o.set(i,a),a}},"ye"),Pe=b((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=z(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),d=b((r,o)=>X(r)?Pt(r,o):ke(r)?Ee(r,o):Et(r,o),"i"),Pt=b((r,o)=>{const i={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);i[a]=!0}return c=>{const a=c.input;let f=c.index,p=f;for(;p<a.length&&a.charCodeAt(p)in i;)p+=1;if(p>f){if(!_(o)&&!c.options.silent){const y=a.slice(f,p),k=B(o)?o(y,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),Et=b((r,o)=>{if(Ot(r))return Ee(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return jt(r)&&B(o)&&!Oe(o)?Tt(a,o):At(a,o)}},"$e"),Tt=b((r,o)=>i=>{const c=i.index,a=i.input;r.lastIndex=c;const f=r.exec(a);if(f){const p=r.lastIndex;if(!i.options.silent){const y=o(...f,a,`${c}`);_(y)||i.output.push(y)}return i.index=p,!0}else return!1},"Ee"),At=b((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!_(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;_(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Ee=b((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!_(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;_(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ie=b((r,o,i,c)=>{const a=z(r),f=o>1;return ce(ae(Ae(p=>{let y=0;for(;y<i;){const k=p.index;if(!a(p)||(y+=1,p.index===k))break}return y>=o},f),c))},"k"),Te=b((r,o)=>ie(r,0,1,o),"L"),Y=b((r,o)=>ie(r,0,1/0,o),"$"),St=b((r,o)=>ie(r,1,1/0,o),"Re"),D=b((r,o)=>{const i=r.map(z);return ce(ae(Ae(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),A=b((r,o)=>{const i=r.map(z);return ce(ae(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),Ae=b((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,y=c(a);return!y&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!y||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),y}:c},"q"),ae=b((r,o)=>{const i=z(r);return o?c=>{if(c.options.silent)return i(c);const a=c.output.length;if(i(c)){const f=c.output.splice(a,1/0),p=o(f);return _(p)||c.output.push(p),!0}else return!1}:i},"B"),ce=(()=>{let r=0;return o=>{const i=z(o),c=r+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,y=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=y.queue;if(p<=y.indexMax){const K=y.store||(y.store=new Map);if(k.length){for(let W=0,zr=k.length;W<zr;W+=2){const Nr=k[W*2],Br=k[W*2+1];K.set(Nr,Br)}k.length=0}const S=K.get(p);if(S===!1)return!1;if($t(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const G=a.output.length,_r=i(a);if(y.indexMax=Math.max(y.indexMax,p),_r){const K=a.index,S=a.output.length;if(S>G){const W=a.output.slice(G,S);k.push(p,{index:K,output:W})}else k.push(p,K);return!0}else return k.push(p,!1),!1}}})(),Se=b(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=kt(r=>{if(B(r))return je(r)?Se(r):r;if(ke(r)||wt(r))return d(r);if(X(r))return D(r);if(xt(r))return A(Object.values(r));throw new Error("Invalid rule")}),R=b(r=>r,"d"),Ct=b(r=>typeof r=="string","ke"),Mt=b(r=>{const o=new WeakMap,i=new WeakMap;return(c,a)=>{const f=a?.partial?i:o,p=f.get(c);if(p!==void 0)return p;const y=r(c,a);return f.set(c,y),y}},"Be"),_t=b(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),zt=d(/\\./,R),Nt=d(/./,R),Bt=d(/\*\*\*+/,"*"),Rt=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),It=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Dt=Y(A([zt,Bt,Rt,It,Nt])),Ft=Dt,Wt=b(r=>Pe(r,Ft,{memoization:!1}).join(""),"Ie"),Lt=Wt,Ce="abcdefghijklmnopqrstuvwxyz",Vt=b(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Ce[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Me=b(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Ce.indexOf(r[i])+1;return o},"V"),ue=b((r,o)=>{if(o<r)return ue(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Ut=b((r,o,i)=>ue(r,o).map(c=>String(c).padStart(i,"0")),"qe"),_e=b((r,o)=>ue(Me(r),Me(o)).map(Vt),"W"),w=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=b(r=>({children:r}),"y"),F=(()=>{const r=b((o,i,c)=>{if(c.has(o))return;c.add(o);const{children:a}=o;if(!a.length)a.push(i);else for(let f=0,p=a.length;f<p;f++)r(a[f],i,c)},"e");return o=>{if(!o.length)return Z([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];r(a,f,c)}return o[0]}})(),N=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),qt=d(/\\./,w),Zt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),Gt=d(/[\\\/]/,N),Kt=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),Jt=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${We.compile(o).source}$).*?`)),Ht=d(/^(!!)+/),Xt=A([Jt,Ht]),Yt=d(/\/(\*\*\/)+/,()=>Z([F([N(),w(".+?"),N()]),N()])),Qt=d(/^(\*\*\/)+/,()=>Z([w("^"),F([w(".*?"),N()])])),er=d(/\/(\*\*)$/,()=>Z([F([N(),w(".*?")]),w("$")])),tr=d(/\*\*/,()=>w(".*?")),ze=A([Yt,Qt,er,tr]),rr=d(/\*\/(?!\*\*\/|\*$)/,()=>F([w("[^\\\\/]*?"),N()])),nr=d(/\*/,()=>w("[^\\\\/]*")),Ne=A([rr,nr]),Be=d("?",()=>w("[^\\\\/]")),or=d("[",R),sr=d("]",R),ir=d(/[!^]/,"^\\\\/"),ar=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),cr=d(/\\./,R),ur=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),lr=d(/[\\\/]/,"\\\\/"),fr=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),pr=A([cr,ur,lr,ar,fr]),Re=D([or,Te(ir),Y(pr),sr],r=>w(r.join(""))),dr=d("{","(?:"),gr=d("}",")"),hr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Ut(+o,+i,Math.min(o.length,i.length)).join("|")),mr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>_e(o,i).join("|")),yr=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>_e(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),br=A([hr,mr,yr]),Ie=D([dr,br,gr],r=>w(r.join(""))),vr=d("{"),$r=d("}"),xr=d(","),wr=d(/\\./,w),jr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Or=d(/[\\\/]/,N),kr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),Pr=Se(()=>Fe),Er=d("",()=>w("(?:)")),Tr=St(A([ze,Ne,Be,Re,Ie,Pr,wr,jr,Or,kr]),F),De=A([Tr,Er]),Fe=D([vr,Te(D([De,Y(D([xr,De]))])),$r],Z),Ar=Y(A([Xt,ze,Ne,Be,Re,Ie,Fe,qt,Zt,Gt,Kt]),F),Sr=Ar,Cr=b(r=>Pe(r,Sr,{memoization:!1})[0],"kr"),Mr=Cr,le=b((r,o,i)=>le.compile(r,i).test(o),"N");le.compile=(()=>{const r=_t((i,c)=>ee(Mr(Lt(i)),c)),o=Mt((i,c)=>we(i.map(a=>r(a,c))));return(i,c)=>Ct(i)?r(i,c):o(i,c)})();var We=le;return h($)})();return e.default||e},"_lazyMatch"),Ir;const ni=b((e,t)=>(Ir||(Ir=ln(),ln=null),Ir(e,t)),"default");var oi=Object.defineProperty,si=Gr((e,t)=>oi(e,"name",{value:t,configurable:!0}),"t$1");const ii=/^[A-Z]:\//i,pe=si((e="")=>e&&e.replaceAll("\\","/").replace(ii,t=>t.toUpperCase()),"normalizeWindowsPath");var ai=Object.defineProperty,I=Gr((e,t)=>ai(e,"name",{value:t,configurable:!0}),"r");const ci=/^[/\\]{2}/,ui=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Kn=/^[A-Z]:$/i,fn=/^\/([A-Z]:)?$/i,li=/.(\.[^./]+)$/,fi=/^[/\\]|^[a-z]:[/\\]/i,pi=/\/$/,di=I(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Jn=I((e,t)=>{let n="",s=0,u=-1,l=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||l===1))if(l===2){if(n.length<2||s!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const $=n.lastIndexOf("/");$===-1?(n="",s=0):(n=n.slice(0,$),s=n.length-1-n.lastIndexOf("/")),u=h,l=0;continue}else if(n.length>0){n="",s=0,u=h,l=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(u+1,h)}`:n=e.slice(u+1,h),s=h-u-1;u=h,l=0}else g==="."&&l!==-1?++l:l=-1}return n},"normalizeString"),Ye=I(e=>ui.test(e),"isAbsolute"),Hn=I(function(e){if(e.length===0)return".";e=pe(e);const t=ci.exec(e),n=Ye(e),s=e.at(-1)==="/";return e=Jn(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Kn.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!Ye(e)?`/${e}`:e)},"normalize"),te=I((...e)=>{let t="";for(const n of e)if(n)if(t.length>0){const s=t.at(-1)==="/",u=n[0]==="/";s&&u?t+=n.slice(1):t+=s||u?n:`/${n}`}else t+=n;return Hn(t)},"join"),Wr=I(function(...e){e=e.map(s=>pe(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:di();!u||u.length===0||(t=`${u}/${t}`,n=Ye(u))}return t=Jn(t,!n),n&&!Ye(t)?`/${t}`:t.length>0?t:"."},"resolve");I(function(e){return pe(e)},"toNamespacedPath");const gi=I(function(e){return li.exec(pe(e))?.[1]??""},"extname");I(function(e,t){const n=Wr(e).replace(fn,"$1").split("/"),s=Wr(t).replace(fn,"$1").split("/");if(s[0][1]===":"&&n[0][1]===":"&&n[0]!==s[0])return s.join("/");const u=[...n];for(const l of u){if(s[0]!==l)break;n.shift(),s.shift()}return[...n.map(()=>".."),...s].join("/")},"relative");const Kr=I(e=>{const t=pe(e).replace(pi,"").split("/").slice(0,-1);return t.length===1&&Kn.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ye(e)?"/":".")},"dirname");I(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return pe(e.root?Wr(...t):t.join("/"))},"format");const hi=I((e,t)=>{const n=pe(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename");I(function(e){const t=fi.exec(e)?.[0]?.replaceAll("\\","/")??"",n=hi(e),s=gi(n);return{base:n,dir:Kr(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");I((e,t)=>ni(t,Hn(e)),"matchesGlob");var mi=Object.defineProperty,Jr=M((e,t)=>mi(e,"name",{value:t,configurable:!0}),"u");const ct=Jr((e,t)=>(t?.create&&Ko(e),e),"useDirectory");Jr(async(e,t)=>{if(me.CACHE_DIR&&!["0","1","false","true"].includes(me.CACHE_DIR))return ct(te(me.CACHE_DIR,e),t);const n=await ks("package.json",{cwd:t?.cwd??Tn(),type:"file"});if(!n){if(t?.throwError)throw new Gn("No such file or directory found.");return}const s=te(Kr(n),"node_modules"),u=te(s,".cache"),l=te(u,e);if(!(he(l)&&!await re(l,ye))&&!(he(u)&&!await re(u,ye))&&!(he(s)&&!await re(s,ye)))return ct(l,t)},"findCacheDirectory");const yi=Jr((e,t)=>{if(me.CACHE_DIR&&!["0","1","false","true"].includes(me.CACHE_DIR))return ct(te(me.CACHE_DIR,e),t);const n=zs("package.json",{cwd:t?.cwd??Tn(),type:"file"});if(!n){if(t?.throwError)throw new Gn("No such file or directory found.");return}const s=te(Kr(n),"node_modules"),u=te(s,".cache"),l=te(u,e);if(!(he(l)&&!ne(l,ye))&&!(he(u)&&!ne(u,ye))&&!(he(s)&&!ne(s,ye)))return ct(l,t)},"findCacheDirectorySync"),Xn=yi;var bi=Object.defineProperty,vi=x((e,t)=>bi(e,"name",{value:t,configurable:!0}),"i$7"),$i=Object.defineProperty,xi=vi((e,t)=>$i(e,"name",{value:t,configurable:!0}),"r"),wi=Object.defineProperty,ji=xi((e,t)=>wi(e,"name",{value:t,configurable:!0}),"i");const pn=ji(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Oi=Object.defineProperty,ki=x((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"i$6"),Pi=Object.defineProperty,Yn=ki((e,t)=>Pi(e,"name",{value:t,configurable:!0}),"s");const Ei=tt(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ti=Yn(e=>{if(typeof Je<"u"&&Je.versions&&Je.versions.node){const[t,n]=Je.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Je.getBuiltinModule(e)}return Ei(e)},"__cjs_getBuiltinModule"),{lstatSync:dn,mkdirSync:Ai}=Ti("node:fs");var Si=Object.defineProperty,Ci=Yn((e,t)=>Si(e,"name",{value:t,configurable:!0}),"o");const ft=Ci(e=>{jn(e);try{const t=dn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(pn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Ai(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=dn(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(pn(n))}'`,{cause:t})}},"ensureDirSync");var Mi=Object.defineProperty,_i=x((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"x$2"),zi=Object.defineProperty,Qn=_i((e,t)=>zi(e,"name",{value:t,configurable:!0}),"$"),Ni=Object.defineProperty,Bi=Qn((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"A"),Ri=Object.defineProperty,Hr=Bi((e,t)=>Ri(e,"name",{value:t,configurable:!0}),"$"),Ii=Object.defineProperty,Di=Hr((e,t)=>Ii(e,"name",{value:t,configurable:!0}),"r$1");const Fi=Di(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
2
|
-
`),"normalizeLF"),
|
|
3
|
-
`);typeof
|
|
4
|
-
`,
|
|
5
|
-
`);return
|
|
6
|
-
${
|
|
1
|
+
var lo=Object.defineProperty;var m=(e,t)=>lo(e,"name",{value:t,configurable:!0});import{createRequire as fo}from"node:module";import{f as nr,$ as yo,U as or,i as D,_ as Dt,K as Ce,s as bo,M as A,a as sr}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{createJiti as ir}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const po=fo(import.meta.url),ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,lt=m(e=>{if(typeof ye<"u"&&ye.versions&&ye.versions.node){const[t,r]=ye.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ye.getBuiltinModule(e)}return po(e)},"__cjs_getBuiltinModule"),{createHash:tr}=lt("node:crypto"),{readdirSync:rr,readFileSync:go,copyFileSync:mo,unlinkSync:ho}=lt("node:fs"),{createRequire:Se}=lt("node:module");var vo=Object.defineProperty,z=m((e,t)=>vo(e,"name",{value:t,configurable:!0}),"O$2"),$o=Object.defineProperty,k=z((e,t)=>$o(e,"name",{value:t,configurable:!0}),"h");const wo=Se(import.meta.url),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ar=k(e=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[t,r]=ie.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ie.getBuiltinModule(e)}return wo(e)},"__cjs_getBuiltinModule"),{existsSync:ae}=ar("node:fs"),{env:ce,cwd:cr}=ie,{createRequire:pe}=ar("node:module"),ur=0,ue=2,lr=Symbol("findUpStop");var jo=Object.defineProperty,xo=k((e,t)=>jo(e,"name",{value:t,configurable:!0}),"t$4"),Oo=Object.defineProperty,ko=xo((e,t)=>Oo(e,"name",{value:t,configurable:!0}),"t"),Po=Object.defineProperty,To=ko((e,t)=>Po(e,"name",{value:t,configurable:!0}),"n");const ft=To(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Eo=Object.defineProperty,So=k((e,t)=>Eo(e,"name",{value:t,configurable:!0}),"i$4"),Co=Object.defineProperty,Ao=So((e,t)=>Co(e,"name",{value:t,configurable:!0}),"r"),_o=Object.defineProperty,No=Ao((e,t)=>_o(e,"name",{value:t,configurable:!0}),"i");const zt=No(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Mo=Object.defineProperty,Bo=k((e,t)=>Mo(e,"name",{value:t,configurable:!0}),"i$3"),Do=Object.defineProperty,fr=Bo((e,t)=>Do(e,"name",{value:t,configurable:!0}),"s");const zo=pe(import.meta.url),be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ro=fr(e=>{if(typeof be<"u"&&be.versions&&be.versions.node){const[t,r]=be.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return be.getBuiltinModule(e)}return zo(e)},"__cjs_getBuiltinModule"),{lstatSync:Rt,mkdirSync:Io}=Ro("node:fs");var Fo=Object.defineProperty,Lo=fr((e,t)=>Fo(e,"name",{value:t,configurable:!0}),"o");const Wo=Lo(e=>{ft(e);try{const t=Rt(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(zt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Io(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=Rt(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(zt(r))}'`,{cause:t})}},"ensureDirSync");var Uo=Object.defineProperty,Vo=k((e,t)=>Uo(e,"name",{value:t,configurable:!0}),"$e"),qo=Object.defineProperty,pt=Vo((e,t)=>qo(e,"name",{value:t,configurable:!0}),"W"),Ko=Object.defineProperty,g=pt((e,t)=>Ko(e,"name",{value:t,configurable:!0}),"u$1");let It=g(()=>{var e=(()=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,c=g((o,s)=>{for(var a in s)t(o,a,{get:s[a],enumerable:!0})},"ne"),f=g((o,s,a,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let u of n(s))!i.call(o,u)&&u!==a&&t(o,u,{get:g(()=>s[u],"get"),enumerable:!(l=r(s,u))||l.enumerable});return o},"ae"),d=g(o=>f(t({},"__esModule",{value:!0}),o),"oe"),v={};c(v,{zeptomatch:g(()=>Bt,"zeptomatch")});var w=g(o=>{const s=new Set,a=[o];for(let l=0;l<a.length;l++){const u=a[l];if(s.has(u))continue;s.add(u);const{children:p}=u;if(p?.length)for(let h=0,j=p.length;h<j;h++)a.push(p[h])}return Array.from(s)},"M"),$=g(o=>{let s="";const a=w(o);for(let l=0,u=a.length;l<u;l++){const p=a[l];if(!p.regex)continue;const h=p.regex.flags;if(s||(s=h),s!==h)throw new Error(`Inconsistent RegExp flags used: "${s}" and "${h}"`)}return s},"se"),y=g((o,s,a)=>{const l=a.get(o);if(l!==void 0)return l;const u=o.partial??s;let p="";if(o.regex&&(p+=u?"(?:$|":"",p+=o.regex.source),o.children?.length){const h=P(o.children.map(j=>y(j,s,a)).filter(Boolean));if(h?.length){const j=o.children.some(me=>!me.regex||!(me.partial??s)),S=h.length>1||u&&(!p.length||j);p+=S?u?"(?:$|":"(?:":"",p+=h.join("|"),p+=S?")":""}}return o.regex&&(p+=u?")":""),a.set(o,p),p},"O"),E=g((o,s)=>{const a=new Map,l=w(o);for(let u=l.length-1;u>=0;u--){const p=y(l[u],s,a);if(!(u>0))return p}return""},"ie"),P=g(o=>Array.from(new Set(o)),"ue"),x=g((o,s,a)=>x.compile(o,a).test(s),"R");x.compile=(o,s)=>{const a=s?.partial??!1,l=E(o,a),u=$(o);return new RegExp(`^(?:${l})$`,u)};var _=x,F=g((o,s)=>{const a=_.compile(o,s),l=`${a.source.slice(0,-1)}[\\\\/]?$`,u=a.flags;return new RegExp(l,u)},"le"),te=F,Qe=g(o=>{const s=o.map(l=>l.source).join("|")||"$^",a=o[0]?.flags;return new RegExp(s,a)},"ve"),Ye=Qe,re=g(o=>Array.isArray(o),"j"),L=g(o=>typeof o=="function","_"),et=g(o=>o.length===0,"he"),tt=(()=>{const{toString:o}=Function.prototype,s=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return a=>(a.length===0||a.length===1)&&s.test(o.call(a))})(),Kr=g(o=>typeof o=="number","de"),Gr=g(o=>typeof o=="object"&&o!==null,"xe"),Jr=g(o=>o instanceof RegExp,"me"),Zr=(()=>{const o=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return s=>o.test(s.source)})(),Hr=(()=>{const o=/^[a-zA-Z0-9_-]+$/;return s=>o.test(s.source)&&!s.flags.includes("i")})(),vt=g(o=>typeof o=="string","A"),V=g(o=>o===void 0,"f"),Xr=g(o=>{const s=new Map;return a=>{const l=s.get(a);if(l!==void 0)return l;const u=o(a);return s.set(a,u),u}},"ye"),$t=g((o,s,a={})=>{const l={cache:{},input:o,index:0,indexBacktrackMax:0,options:a,output:[]},u=q(s)(l),p=Math.max(l.index,l.indexBacktrackMax);if(u&&l.index===o.length)return l.output;throw new Error(`Failed to parse at index ${p}`)},"I"),b=g((o,s)=>re(o)?Qr(o,s):vt(o)?wt(o,s):Yr(o,s),"i"),Qr=g((o,s)=>{const a={};for(const l of o){if(l.length!==1)throw new Error(`Invalid character: "${l}"`);const u=l.charCodeAt(0);a[u]=!0}return l=>{const u=l.input;let p=l.index,h=p;for(;h<u.length&&u.charCodeAt(h)in a;)h+=1;if(h>p){if(!V(s)&&!l.options.silent){const j=u.slice(p,h),S=L(s)?s(j,u,`${p}`):s;V(S)||l.output.push(S)}l.index=h}return!0}},"we"),Yr=g((o,s)=>{if(Hr(o))return wt(o.source,s);{const a=o.source,l=o.flags.replace(/y|$/,"y"),u=new RegExp(a,l);return Zr(o)&&L(s)&&!tt(s)?en(u,s):tn(u,s)}},"$e"),en=g((o,s)=>a=>{const l=a.index,u=a.input;o.lastIndex=l;const p=o.exec(u);if(p){const h=o.lastIndex;if(!a.options.silent){const j=s(...p,u,`${l}`);V(j)||a.output.push(j)}return a.index=h,!0}else return!1},"Ee"),tn=g((o,s)=>a=>{const l=a.index,u=a.input;if(o.lastIndex=l,o.test(u)){const p=o.lastIndex;if(!V(s)&&!a.options.silent){const h=L(s)?s(u.slice(l,p),u,`${l}`):s;V(h)||a.output.push(h)}return a.index=p,!0}else return!1},"Ce"),wt=g((o,s)=>a=>{const l=a.index,u=a.input;if(u.startsWith(o,l)){if(!V(s)&&!a.options.silent){const p=L(s)?s(o,u,`${l}`):s;V(p)||a.output.push(p)}return a.index+=o.length,!0}else return!1},"F"),rt=g((o,s,a,l)=>{const u=q(o),p=s>1;return ot(nt(xt(h=>{let j=0;for(;j<a;){const S=h.index;if(!u(h)||(j+=1,h.index===S))break}return j>=s},p),l))},"k"),jt=g((o,s)=>rt(o,0,1,s),"L"),Ie=g((o,s)=>rt(o,0,1/0,s),"$"),rn=g((o,s)=>rt(o,1,1/0,s),"Re"),ne=g((o,s)=>{const a=o.map(q);return ot(nt(xt(l=>{for(let u=0,p=a.length;u<p;u++)if(!a[u](l))return!1;return!0}),s))},"x"),N=g((o,s)=>{const a=o.map(q);return ot(nt(l=>{for(let u=0,p=a.length;u<p;u++)if(a[u](l))return!0;return!1},s))},"p"),xt=g((o,s=!0,a=!1)=>{const l=q(o);return s?u=>{const p=u.index,h=u.output.length,j=l(u);return!j&&!a&&(u.indexBacktrackMax=Math.max(u.indexBacktrackMax,u.index)),(!j||a)&&(u.index=p,u.output.length!==h&&(u.output.length=h)),j}:l},"q"),nt=g((o,s)=>{const a=q(o);return s?l=>{if(l.options.silent)return a(l);const u=l.output.length;if(a(l)){const p=l.output.splice(u,1/0),h=s(p);return V(h)||l.output.push(h),!0}else return!1}:a},"B"),ot=(()=>{let o=0;return s=>{const a=q(s),l=o+=1;return u=>{var p;if(u.options.memoization===!1)return a(u);const h=u.index,j=(p=u.cache)[l]||(p[l]={indexMax:-1,queue:[]}),S=j.queue;if(h<=j.indexMax){const he=j.store||(j.store=new Map);if(S.length){for(let se=0,ao=S.length;se<ao;se+=2){const co=S[se*2],uo=S[se*2+1];he.set(co,uo)}S.length=0}const M=he.get(h);if(M===!1)return!1;if(Kr(M))return u.index=M,!0;if(M)return u.index=M.index,M.output?.length&&u.output.push(...M.output),!0}const me=u.output.length,io=a(u);if(j.indexMax=Math.max(j.indexMax,h),io){const he=u.index,M=u.output.length;if(M>me){const se=u.output.slice(me,M);S.push(h,{index:he,output:se})}else S.push(h,he);return!0}else return S.push(h,!1),!1}}})(),Ot=g(o=>{let s;return a=>(s||(s=q(o())),s(a))},"G"),q=Xr(o=>{if(L(o))return et(o)?Ot(o):o;if(vt(o)||Jr(o))return b(o);if(re(o))return ne(o);if(Gr(o))return N(Object.values(o));throw new Error("Invalid rule")}),X=g(o=>o,"d"),nn=g(o=>typeof o=="string","ke"),on=g(o=>{const s=new WeakMap,a=new WeakMap;return(l,u)=>{const p=u?.partial?a:s,h=p.get(l);if(h!==void 0)return h;const j=o(l,u);return p.set(l,j),j}},"Be"),sn=g(o=>{const s={},a={};return(l,u)=>{const p=u?.partial?a:s;return p[l]??(p[l]=o(l,u))}},"Pe"),an=b(/\\./,X),cn=b(/./,X),un=b(/\*\*\*+/,"*"),ln=b(/([^/{[(!])\*\*/,(o,s)=>`${s}*`),fn=b(/(^|.)\*\*(?=[^*/)\]}])/,(o,s)=>`${s}*`),pn=Ie(N([an,un,ln,fn,cn])),dn=pn,gn=g(o=>$t(o,dn,{memoization:!1}).join(""),"Ie"),mn=gn,kt="abcdefghijklmnopqrstuvwxyz",hn=g(o=>{let s="";for(;o>0;){const a=(o-1)%26;s=kt[a]+s,o=Math.floor((o-1)/26)}return s},"Le"),Pt=g(o=>{let s=0;for(let a=0,l=o.length;a<l;a++)s=s*26+kt.indexOf(o[a])+1;return s},"V"),st=g((o,s)=>{if(s<o)return st(s,o);const a=[];for(;o<=s;)a.push(o++);return a},"b"),yn=g((o,s,a)=>st(o,s).map(l=>String(l).padStart(a,"0")),"qe"),Tt=g((o,s)=>st(Pt(o),Pt(s)).map(hn),"W"),T=g(o=>({partial:!1,regex:new RegExp(o,"s"),children:[]}),"c"),ge=g(o=>({children:o}),"y"),oe=(()=>{const o=g((s,a,l)=>{if(l.has(s))return;l.add(s);const{children:u}=s;if(!u.length)u.push(a);else for(let p=0,h=u.length;p<h;p++)o(u[p],a,l)},"e");return s=>{if(!s.length)return ge([]);for(let a=s.length-1;a>=1;a--){const l=new Set,u=s[a-1],p=s[a];o(u,p,l)}return s[0]}})(),K=g(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),bn=b(/\\./,T),vn=b(/[$.*+?^(){}[\]\|]/,o=>T(`\\${o}`)),$n=b(/[\\\/]/,K),wn=b(/[^$.*+?^(){}[\]\|\\\/]+/,T),jn=b(/^(?:!!)*!(.*)$/,(o,s)=>T(`(?!^${Bt.compile(s).source}$).*?`)),xn=b(/^(!!)+/),On=N([jn,xn]),kn=b(/\/(\*\*\/)+/,()=>ge([oe([K(),T(".+?"),K()]),K()])),Pn=b(/^(\*\*\/)+/,()=>ge([T("^"),oe([T(".*?"),K()])])),Tn=b(/\/(\*\*)$/,()=>ge([oe([K(),T(".*?")]),T("$")])),En=b(/\*\*/,()=>T(".*?")),Et=N([kn,Pn,Tn,En]),Sn=b(/\*\/(?!\*\*\/|\*$)/,()=>oe([T("[^\\\\/]*?"),K()])),Cn=b(/\*/,()=>T("[^\\\\/]*")),St=N([Sn,Cn]),Ct=b("?",()=>T("[^\\\\/]")),An=b("[",X),_n=b("]",X),Nn=b(/[!^]/,"^\\\\/"),Mn=b(/[a-z]-[a-z]|[0-9]-[0-9]/i,X),Bn=b(/\\./,X),Dn=b(/[$.*+?^(){}[\|]/,o=>`\\${o}`),zn=b(/[\\\/]/,"\\\\/"),Rn=b(/[^$.*+?^(){}[\]\|\\\/]+/,X),In=N([Bn,Dn,zn,Mn,Rn]),At=ne([An,jt(Nn),Ie(In),_n],o=>T(o.join(""))),Fn=b("{","(?:"),Ln=b("}",")"),Wn=b(/(\d+)\.\.(\d+)/,(o,s,a)=>yn(+s,+a,Math.min(s.length,a.length)).join("|")),Un=b(/([a-z]+)\.\.([a-z]+)/,(o,s,a)=>Tt(s,a).join("|")),Vn=b(/([A-Z]+)\.\.([A-Z]+)/,(o,s,a)=>Tt(s.toLowerCase(),a.toLowerCase()).join("|").toUpperCase()),qn=N([Wn,Un,Vn]),_t=ne([Fn,qn,Ln],o=>T(o.join(""))),Kn=b("{"),Gn=b("}"),Jn=b(","),Zn=b(/\\./,T),Hn=b(/[$.*+?^(){[\]\|]/,o=>T(`\\${o}`)),Xn=b(/[\\\/]/,K),Qn=b(/[^$.*+?^(){}[\]\|\\\/,]+/,T),Yn=Ot(()=>Mt),eo=b("",()=>T("(?:)")),to=rn(N([Et,St,Ct,At,_t,Yn,Zn,Hn,Xn,Qn]),oe),Nt=N([to,eo]),Mt=ne([Kn,jt(ne([Nt,Ie(ne([Jn,Nt]))])),Gn],ge),ro=Ie(N([On,Et,St,Ct,At,_t,Mt,bn,vn,$n,wn]),oe),no=ro,oo=g(o=>$t(o,no,{memoization:!1})[0],"kr"),so=oo,it=g((o,s,a)=>it.compile(o,a).test(s),"N");it.compile=(()=>{const o=sn((a,l)=>te(so(mn(a)),l)),s=on((a,l)=>Ye(a.map(u=>o(u,l))));return(a,l)=>nn(a)?o(a,l):s(a,l)})();var Bt=it;return d(v)})();return e.default||e},"_lazyMatch"),at;const Go=g((e,t)=>(at||(at=It(),It=null),at(e,t)),"default");var Jo=Object.defineProperty,Zo=pt((e,t)=>Jo(e,"name",{value:t,configurable:!0}),"t$1");const Ho=/^[A-Z]:\//i,R=Zo((e="")=>e&&e.replaceAll("\\","/").replace(Ho,t=>t.toUpperCase()),"normalizeWindowsPath");var Xo=Object.defineProperty,C=pt((e,t)=>Xo(e,"name",{value:t,configurable:!0}),"r");const Qo=/^[/\\]{2}/,Yo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,pr=/^[A-Z]:$/i,Ft=/^\/([A-Z]:)?$/i,es=/.(\.[^./]+)$/,ts=/^[/\\]|^[a-z]:[/\\]/i,rs=/\/$/,ns=C(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),dr=C((e,t)=>{let r="",n=0,i=-1,c=0,f;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(i===d-1||c===1))if(c===2){if(r.length<2||n!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const v=r.lastIndexOf("/");v===-1?(r="",n=0):(r=r.slice(0,v),n=r.length-1-r.lastIndexOf("/")),i=d,c=0;continue}else if(r.length>0){r="",n=0,i=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${e.slice(i+1,d)}`:r=e.slice(i+1,d),n=d-i-1;i=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r},"normalizeString"),Q=C(e=>Yo.test(e),"isAbsolute"),gr=C(function(e){if(e.length===0)return".";e=R(e);const t=Qo.exec(e),r=Q(e),n=e.at(-1)==="/";return e=dr(e,!r),e.length===0?r?"/":n?"./":".":(n&&(e+="/"),pr.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!Q(e)?`/${e}`:e)},"normalize"),B=C((...e)=>{let t="";for(const r of e)if(r)if(t.length>0){const n=t.at(-1)==="/",i=r[0]==="/";n&&i?t+=r.slice(1):t+=n||i?r:`/${r}`}else t+=r;return gr(t)},"join"),W=C(function(...e){e=e.map(n=>R(n));let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:ns();!i||i.length===0||(t=`${i}/${t}`,r=Q(i))}return t=dr(t,!r),r&&!Q(t)?`/${t}`:t.length>0?t:"."},"resolve");C(function(e){return R(e)},"toNamespacedPath");const mr=C(function(e){return es.exec(R(e))?.[1]??""},"extname");C(function(e,t){const r=W(e).replace(Ft,"$1").split("/"),n=W(t).replace(Ft,"$1").split("/");if(n[0][1]===":"&&r[0][1]===":"&&r[0]!==n[0])return n.join("/");const i=[...r];for(const c of i){if(n[0]!==c)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")},"relative");const Ae=C(e=>{const t=R(e).replace(rs,"").split("/").slice(0,-1);return t.length===1&&pr.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Q(e)?"/":".")},"dirname");C(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return R(e.root?W(...t):t.join("/"))},"format");const os=C((e,t)=>{const r=R(e).split("/").pop();return t&&r.endsWith(t)?r.slice(0,-t.length):r},"basename"),hr=C(function(e){const t=ts.exec(e)?.[0]?.replaceAll("\\","/")??"",r=os(e),n=mr(r);return{base:r,dir:Ae(e),ext:n,name:r.slice(0,r.length-n.length),root:t}},"parse");C((e,t)=>Go(t,gr(e)),"matchesGlob");var ss=Object.defineProperty,Y=k((e,t)=>ss(e,"name",{value:t,configurable:!0}),"n$2"),is=Object.defineProperty,U=Y((e,t)=>is(e,"name",{value:t,configurable:!0}),"a");const as=pe(import.meta.url),ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cs=U(e=>{if(typeof ve<"u"&&ve.versions&&ve.versions.node){const[t,r]=ve.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ve.getBuiltinModule(e)}return as(e)},"__cjs_getBuiltinModule"),{fileURLToPath:us}=cs("node:url");var ls=Object.defineProperty,le=U((e,t)=>ls(e,"name",{value:t,configurable:!0}),"t$1");function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}m(de,"ue");z(de,"de");k(de,"m$4");Y(de,"d");U(de,"getDefaultExportFromCjs");le(de,"getDefaultExportFromCjs");function _e(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}m(_e,"me");z(_e,"je");k(_e,"h");Y(_e,"O");U(_e,"getDefaultExportFromNamespaceIfPresent");le(_e,"getDefaultExportFromNamespaceIfPresent");function Ne(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}m(Ne,"he");z(Ne,"Oe");k(Ne,"x");Y(Ne,"P");U(Ne,"getDefaultExportFromNamespaceIfNotNamed");le(Ne,"getDefaultExportFromNamespaceIfNotNamed");function Me(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=le(U(Y(k(z(m(function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"c"),"c"),"a"),"s"),"a"),"a");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:le(function(){return e[n]},"get")})}),r}m(Me,"ye");z(Me,"Pe");k(Me,"y$2");Y(Me,"_");U(Me,"getAugmentedNamespace");le(Me,"getAugmentedNamespace");var Lt,Wt;function Be(){return Wt||(Wt=1,Lt=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Lt}m(Be,"be");z(Be,"_e");k(Be,"w$1");Y(Be,"k");U(Be,"requireBinaryExtensions");var fs=Be();const ps=de(fs);var ds=Object.defineProperty,I=U((e,t)=>ds(e,"name",{value:t,configurable:!0}),"r");const gs=new Set(ps),ms=new Set(["/","\\",void 0]),Ut=Symbol.for("pathe:normalizedAlias"),hs=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,ys=I((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Le=I((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),yr=I(e=>{if(e[Ut])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([r],[n])=>ys(r,n)));for(const r in t)for(const n in t)n===r||r.startsWith(n)||t[r].startsWith(n)&&ms.has(t[r][n.length])&&(t[r]=t[n]+t[r].slice(n.length));return Object.defineProperty(t,Ut,{enumerable:!1,value:!0}),t},"normalizeAliases");I((e,t)=>{e=R(e),t=yr(t);for(const[r,n]of Object.entries(t)){if(!e.startsWith(r))continue;const i=Le(r)?r.slice(0,-1):r;if(Le(e[i.length]))return B(n,e.slice(r.length))}return e},"resolveAlias");I(e=>hs.exec(e)?.[2],"filename");I((e,t)=>{e=R(e),t=yr(t);for(const[r,n]of Object.entries(t).toReversed()){if(!e.startsWith(n))continue;const i=Le(n)?n.slice(0,-1):n;if(Le(e[i.length]))return B(r,e.slice(n.length))}return e},"reverseResolveAlias");const bs=/^(?:\.?\.[/\\]|\.\.\B)/,vs=/^(?:msys|cygwin)$/;I(e=>bs.test(e)||e==="..","isRelative");I(e=>gs.has(mr(e).slice(1).toLowerCase()),"isBinaryPath");const fe=I(e=>R(e instanceof URL?us(e):e),"toPath");I(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:vs.test(e)},"isWindows");var $s=Object.defineProperty,ws=k((e,t)=>$s(e,"name",{value:t,configurable:!0}),"p"),js=Object.defineProperty,br=ws((e,t)=>js(e,"name",{value:t,configurable:!0}),"a");const xs=pe(import.meta.url),$e=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vr=br(e=>{if(typeof $e<"u"&&$e.versions&&$e.versions.node){const[t,r]=$e.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return $e.getBuiltinModule(e)}return xs(e)},"__cjs_getBuiltinModule"),{stat:Os,lstat:ks}=vr("node:fs/promises"),{fileURLToPath:Ps}=vr("node:url");var Ts=Object.defineProperty,Vt=br((e,t)=>Ts(e,"name",{value:t,configurable:!0}),"n");const Es=Vt(async(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 r=t.cwd?fe(t.cwd):process.cwd();let n=W(r);const{root:i}=hr(n),c=fe(t.stopAt??i),f=W(n,c),d=t.type??"file",v=Vt(async function($){return typeof e=="function"?[await e($)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const w=t.allowSymlinks?Os:ks;for(;n&&n!==f&&n!==i;){const $=await v(n);for(let y of $){if(y===lr)return;if(y===void 0)continue;Buffer.isBuffer(y)?y=y.toString():y instanceof URL&&(y=Ps(y));const E=Q(y)?y:W(n,y);try{const P=await w(E);if(d==="file"&&P.isFile()||d==="directory"&&P.isDirectory())return E}catch{}}n=Ae(n)}},"findUp");var Ss=Object.defineProperty,Cs=k((e,t)=>Ss(e,"name",{value:t,configurable:!0}),"u$3"),As=Object.defineProperty,$r=Cs((e,t)=>As(e,"name",{value:t,configurable:!0}),"i");const _s=pe(import.meta.url),we=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wr=$r(e=>{if(typeof we<"u"&&we.versions&&we.versions.node){const[t,r]=we.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return we.getBuiltinModule(e)}return _s(e)},"__cjs_getBuiltinModule"),{statSync:Ns,lstatSync:Ms}=wr("node:fs"),{fileURLToPath:Bs}=wr("node:url");var Ds=Object.defineProperty,qt=$r((e,t)=>Ds(e,"name",{value:t,configurable:!0}),"o");const zs=qt((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 r=t.cwd?fe(t.cwd):process.cwd();let n=W(r);const{root:i}=hr(n),c=fe(t.stopAt??i),f=W(n,c),d=t.type??"file",v=qt(function($){return typeof e=="function"?[e($)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const w=t.allowSymlinks?Ns:Ms;for(;n&&n!==f&&n!==i;){for(let $ of v(n)){if($===lr)return;if($===void 0)continue;Buffer.isBuffer($)?$=$.toString():$ instanceof URL&&($=Bs($));const y=Q($)?$:W(n,$);try{const E=w(y);if(d==="file"&&E.isFile()||d==="directory"&&E.isDirectory())return y}catch{}}n=Ae(n)}},"findUpSync");var Rs=Object.defineProperty,jr=k((e,t)=>Rs(e,"name",{value:t,configurable:!0}),"t$2"),Is=Object.defineProperty,dt=jr((e,t)=>Is(e,"name",{value:t,configurable:!0}),"s");const Fs=pe(import.meta.url),je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ls=dt(e=>{if(typeof je<"u"&&je.versions&&je.versions.node){const[t,r]=je.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return je.getBuiltinModule(e)}return Fs(e)},"__cjs_getBuiltinModule"),{access:Ws}=Ls("node:fs/promises");var Us=Object.defineProperty,Vs=dt((e,t)=>Us(e,"name",{value:t,configurable:!0}),"o");async function G(e,t=ur){ft(e),e=fe(e);try{return await Ws(e,t),!0}catch{return!1}}m(G,"D$2");z(G,"G");k(G,"i$1");jr(G,"d");dt(G,"m");Vs(G,"isAccessible");var qs=Object.defineProperty,xr=k((e,t)=>qs(e,"name",{value:t,configurable:!0}),"t$1"),Ks=Object.defineProperty,gt=xr((e,t)=>Ks(e,"name",{value:t,configurable:!0}),"t");const Gs=pe(import.meta.url),xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Js=gt(e=>{if(typeof xe<"u"&&xe.versions&&xe.versions.node){const[t,r]=xe.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return xe.getBuiltinModule(e)}return Gs(e)},"__cjs_getBuiltinModule"),{accessSync:Zs}=Js("node:fs");var Hs=Object.defineProperty,Xs=gt((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"o");function J(e,t=ur){ft(e),e=fe(e);try{return Zs(e,t),!0}catch{return!1}}m(J,"I$2");z(J,"V");k(J,"i");xr(J,"d");gt(J,"m");Xs(J,"isAccessibleSync");var Qs=Object.defineProperty,Or=k((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"o"),Ys=Object.defineProperty,kr=Or((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"o"),ei=Object.defineProperty,ti=kr((e,t)=>ei(e,"name",{value:t,configurable:!0}),"o");class Pr extends Error{static{m(this,"$t")}static{z(this,"wt")}static{k(this,"s")}static{Or(this,"u")}static{kr(this,"n")}static{ti(this,"NotFoundError")}constructor(t){super(`ENOENT: ${t}`)}get code(){return"ENOENT"}set code(t){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(t){throw new Error("Cannot overwrite name of NotFoundError")}}var ri=Object.defineProperty,mt=k((e,t)=>ri(e,"name",{value:t,configurable:!0}),"u");const We=mt((e,t)=>(t?.create&&Wo(e),e),"useDirectory");mt(async(e,t)=>{if(ce.CACHE_DIR&&!["0","1","false","true"].includes(ce.CACHE_DIR))return We(B(ce.CACHE_DIR,e),t);const r=await Es("package.json",{cwd:t?.cwd??cr(),type:"file"});if(!r){if(t?.throwError)throw new Pr("No such file or directory found.");return}const n=B(Ae(r),"node_modules"),i=B(n,".cache"),c=B(i,e);if(!(ae(c)&&!await G(c,ue))&&!(ae(i)&&!await G(i,ue))&&!(ae(n)&&!await G(n,ue)))return We(c,t)},"findCacheDirectory");const ni=mt((e,t)=>{if(ce.CACHE_DIR&&!["0","1","false","true"].includes(ce.CACHE_DIR))return We(B(ce.CACHE_DIR,e),t);const r=zs("package.json",{cwd:t?.cwd??cr(),type:"file"});if(!r){if(t?.throwError)throw new Pr("No such file or directory found.");return}const n=B(Ae(r),"node_modules"),i=B(n,".cache"),c=B(i,e);if(!(ae(c)&&!J(c,ue))&&!(ae(i)&&!J(i,ue))&&!(ae(n)&&!J(n,ue)))return We(c,t)},"findCacheDirectorySync"),Tr=ni;var oi=Object.defineProperty,si=m((e,t)=>oi(e,"name",{value:t,configurable:!0}),"i$7"),ii=Object.defineProperty,ai=si((e,t)=>ii(e,"name",{value:t,configurable:!0}),"r"),ci=Object.defineProperty,ui=ai((e,t)=>ci(e,"name",{value:t,configurable:!0}),"i");const Kt=ui(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var li=Object.defineProperty,fi=m((e,t)=>li(e,"name",{value:t,configurable:!0}),"i$6"),pi=Object.defineProperty,Er=fi((e,t)=>pi(e,"name",{value:t,configurable:!0}),"s");const di=Se(import.meta.url),Oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gi=Er(e=>{if(typeof Oe<"u"&&Oe.versions&&Oe.versions.node){const[t,r]=Oe.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Oe.getBuiltinModule(e)}return di(e)},"__cjs_getBuiltinModule"),{lstatSync:Gt,mkdirSync:mi}=gi("node:fs");var hi=Object.defineProperty,yi=Er((e,t)=>hi(e,"name",{value:t,configurable:!0}),"o");const Ue=yi(e=>{nr(e);try{const t=Gt(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Kt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{mi(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=Gt(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Kt(r))}'`,{cause:t})}},"ensureDirSync");var bi=Object.defineProperty,vi=m((e,t)=>bi(e,"name",{value:t,configurable:!0}),"x$2"),$i=Object.defineProperty,Sr=vi((e,t)=>$i(e,"name",{value:t,configurable:!0}),"$"),wi=Object.defineProperty,ji=Sr((e,t)=>wi(e,"name",{value:t,configurable:!0}),"A"),xi=Object.defineProperty,ht=ji((e,t)=>xi(e,"name",{value:t,configurable:!0}),"$"),Oi=Object.defineProperty,ki=ht((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"r$1");const Pi=ki(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
2
|
+
`),"normalizeLF"),Ti=globalThis.process??Object.create(null),Jt={versions:{}},Zt=new Proxy(Ti,{get(e,t){if(t in e)return e[t];if(t in Jt)return Jt[t]}});var Ei=Object.defineProperty,Si=ht((e,t)=>Ei(e,"name",{value:t,configurable:!0}),"b");const Ci=Si((e,t,r,n)=>{const i={column:0,line:-1,...e.start},c={...i,...e.end},f=i.line,d=i.column,v=c.line,w=c.column;let $=Math.max(f-(r+1),0),y=Math.min(t.length,v+n);f===-1&&($=0),v===-1&&(y=t.length);const E=v-f,P={};if(E)for(let x=0;x<=E;x++){const _=x+f;if(!d)P[_]=!0;else if(x===0){const F=t[_-1]?.length;P[_]=[d,(F??0)-d+1]}else if(x===E)P[_]=[0,w];else{const F=t[_-x]?.length;P[_]=[0,F]}}else d===w?P[f]=d?[d,0]:!0:P[f]=[d,(w??0)-(d??0)];return{end:y,markerLines:P,start:$}},"getMarkerLines");var Ai=Object.defineProperty,Fe=ht((e,t)=>Ai(e,"name",{value:t,configurable:!0}),"t");const _i=Zt.platform==="win32"&&!Zt.env?.WT_SESSION?">":"❯",Ni=Fe((e,t,r)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:Fe(x=>x,"gutter"),marker:Fe(x=>x,"marker"),message:Fe(x=>x,"message"),...r?.color}},i=typeof t.start.column=="number";let c=Pi(e).split(`
|
|
3
|
+
`);typeof n.tabWidth=="number"&&(c=c.map(x=>x.replaceAll(" "," ".repeat(n.tabWidth))));const{end:f,markerLines:d,start:v}=Ci(t,c,n.linesAbove,n.linesBelow),w=String(f).length,{gutter:$,marker:y,message:E}=n.color;let P=c.slice(v,f).map((x,_)=>{const F=v+1+_,te=d[F],Qe=` ${String(F)}`.slice(-w),Ye=!d[F+1],re=` ${Qe}${n.showGutter?" |":""}`;if(te){let L="";if(Array.isArray(te)){const et=x.replaceAll(/[^\t]/g," ").slice(0,Math.max(te[0]-1,0)),tt=te[1]||1;L=[`
|
|
4
|
+
`,n.prefix+$(re.replaceAll(/\d/g," "))," ",et,y("^").repeat(tt)].join(""),Ye&&n.message&&(L+=` ${E(n.message)}`)}return[n.prefix+y(_i),$(re),x.length>0?` ${x}`:"",L].join("")}return`${n.prefix} ${$(re)}${x.length>0?` ${x}`:""}`}).join(`
|
|
5
|
+
`);return n.message&&!i&&(P=`${n.prefix+" ".repeat(w+1)+n.message}
|
|
6
|
+
${P}`),P},"codeFrame");var Mi=Object.defineProperty,Bi=Sr((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"s"),Di=Object.defineProperty,zi=Bi((e,t)=>Di(e,"name",{value:t,configurable:!0}),"o"),Ri=Object.defineProperty,yt=zi((e,t)=>Ri(e,"name",{value:t,configurable:!0}),"l");const Ht=yt((e,t)=>{let r=0,n=t.length-2;for(;r<n;){const i=r+(n-r>>1);if(e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return r},"binarySearch"),Ii=/\n|\r(?!\n)/,Fi=yt(e=>e.split(Ii).reduce((t,r)=>(t.push(t.at(-1)+r.length+1),t),[0]),"getLineStartIndexes"),Li=yt((e,t,r)=>{const n=r?.skipChecks??!1;if(!n&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!n&&(typeof t!="number"||typeof e=="string"&&t>=e.length||Array.isArray(e)&&t+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const c=Fi(e),f=Ht(t,c);return{column:t-c[f]+1,line:f+1}}const i=Ht(t,e);return{column:t-e[i]+1,line:i+1}},"indexToLineColumn");var Wi=Object.defineProperty,Cr=m((e,t)=>Wi(e,"name",{value:t,configurable:!0}),"t$6"),Ui=Object.defineProperty,Ar=Cr((e,t)=>Ui(e,"name",{value:t,configurable:!0}),"t"),Vi=Object.defineProperty,qi=Ar((e,t)=>Vi(e,"name",{value:t,configurable:!0}),"i");let Ki=class extends Error{static{m(this,"m")}static{Cr(this,"m")}static{Ar(this,"t")}static{qi(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
|
|
7
7
|
|
|
8
8
|
${this.codeFrame}
|
|
9
|
-
`:""}`}set message(t){this.#e=t}};var
|
|
10
|
-
`;if(
|
|
9
|
+
`:""}`}set message(t){this.#e=t}};var Gi=Object.defineProperty,_r=m((e,t)=>Gi(e,"name",{value:t,configurable:!0}),"u$3"),Ji=Object.defineProperty,Nr=_r((e,t)=>Ji(e,"name",{value:t,configurable:!0}),"s"),Zi=Object.defineProperty,De=Nr((e,t)=>Zi(e,"name",{value:t,configurable:!0}),"a");const Hi=De(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Xi=De((e,t,r)=>Ni(e,{start:t},{tabWidth:!1,...r}),"generateCodeFrame"),Qi=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Yi=De((e,t)=>{const r=Qi.exec(t);if(!r)return;const[,n,i,c]=r;if(i&&c)return{column:Number(c),line:Number(i)};let f=Number(n);return f===e.length&&(f=e.length-1),Li(e,f)},"getErrorLocation"),ea=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,ta=De(e=>e.replace(ea,(t,r,n)=>`"${n}"(${Hi(n)})`),"addCodePointToUnexpectedToken");function Ve(e,t,r,n){typeof t=="string"&&(typeof r=="object"&&(n=r),r=t,t=void 0);let i;try{return JSON.parse(e,t)}catch(d){i=d.message}let c;e?(c=Yi(e,i),i=ta(i)):i+=" while parsing empty string";const f=new Ki(i);throw f.fileName=r,c&&(f.codeFrame=Xi(e,c,n)),f}m(Ve,"d$5");_r(Ve,"w");Nr(Ve,"E");De(Ve,"parseJson");var ra=Object.defineProperty,Mr=m((e,t)=>ra(e,"name",{value:t,configurable:!0}),"t$5"),na=Object.defineProperty,Br=Mr((e,t)=>na(e,"name",{value:t,configurable:!0}),"t"),oa=Object.defineProperty,sa=Br((e,t)=>oa(e,"name",{value:t,configurable:!0}),"r");function ze(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=yo(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:c,color:f}=r??{};return typeof c=="function"&&(i=c(i)),Ve(i,t,or(e),{color:f})}m(ze,"n$3");Mr(ze,"s");Br(ze,"J");sa(ze,"readJsonSync");var ia=Object.defineProperty,aa=m((e,t)=>ia(e,"name",{value:t,configurable:!0}),"a$3"),ca=Object.defineProperty,ua=aa((e,t)=>ca(e,"name",{value:t,configurable:!0}),"t"),la=Object.defineProperty,fa=ua((e,t)=>la(e,"name",{value:t,configurable:!0}),"e");const pa=fa(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");var da=Object.defineProperty,ga=m((e,t)=>da(e,"name",{value:t,configurable:!0}),"t$3"),ma=Object.defineProperty,ha=ga((e,t)=>ma(e,"name",{value:t,configurable:!0}),"r"),ya=Object.defineProperty,ba=ha((e,t)=>ya(e,"name",{value:t,configurable:!0}),"f");const va=new TextEncoder,$a=ba(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return va.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var wa=Object.defineProperty,ja=m((e,t)=>wa(e,"name",{value:t,configurable:!0}),"m$1"),xa=Object.defineProperty,Dr=ja((e,t)=>xa(e,"name",{value:t,configurable:!0}),"s");const Oa=Se(import.meta.url),ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ka=Dr(e=>{if(typeof ke<"u"&&ke.versions&&ke.versions.node){const[t,r]=ke.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ke.getBuiltinModule(e)}return Oa(e)},"__cjs_getBuiltinModule"),{mkdirSync:Pa,writeFileSync:Ta,statSync:Ea,renameSync:Xt,chownSync:Sa,chmodSync:Ca,unlinkSync:Aa}=ka("node:fs");var _a=Object.defineProperty,Na=Dr((e,t)=>_a(e,"name",{value:t,configurable:!0}),"f");const Ma=Na((e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},nr(e),pa(t),e=or(e);const n=`${e}.tmp`;try{const i=D(e,Dt);if(!i&&r.recursive){const f=Ce(e);D(f,Dt)||Pa(f,{recursive:!0})}let c;if(Ta(n,$a(t),{encoding:r.encoding,flag:r.flag}),i&&!r.overwrite&&(c=Ea(e),r.chown??={gid:c.gid,uid:c.uid},Xt(e,`${e}.bak`)),r.chown)try{Sa(n,r.chown.uid,r.chown.gid)}catch{}Ca(n,c&&!r.mode?c.mode:r.mode??438),Xt(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{D(n)&&Aa(`${e}.tmp`)}},"writeFileSync");var Ba=Object.defineProperty,Z=m((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"i$2"),Da=Object.defineProperty,H=Z((e,t)=>Da(e,"name",{value:t,configurable:!0}),"s"),za=Object.defineProperty,ee=H((e,t)=>za(e,"name",{value:t,configurable:!0}),"i");const Ra=/^(?:( )+|\t+)/,Re="space";function Te(e,t,r){return e&&t===Re&&r===1}m(Te,"d$3");Z(Te,"g");H(Te,"I");ee(Te,"shouldIgnoreSingleSpace");function Ee(e,t){const r=new Map;let n=0,i,c;for(const f of e.split(/\n/g)){if(!f)continue;const d=f.match(Ra);if(d===null)n=0,i="";else{const v=d[0].length,w=d[1]?Re:"tab";if(Te(t,w,v))continue;w!==i&&(n=0),i=w;let $=1,y=0;const E=v-n;if(n=v,E===0)$=0,y=1;else{const x=Math.abs(E);if(Te(t,w,x))continue;c=qe(w,x)}const P=r.get(c);r.set(c,P===void 0?[1,0]:[P[0]+$,P[1]+y])}}return r}m(Ee,"p");Z(Ee,"y");H(Ee,"h");ee(Ee,"makeIndentsMap");function qe(e,t){return(e===Re?"s":"t")+String(t)}m(qe,"b$1");Z(qe,"v");H(qe,"m");ee(qe,"encodeIndentsKey");function Ke(e){const t=e[0]==="s"?Re:"tab",r=Number(e.slice(1));return{type:t,amount:r}}m(Ke,"v");Z(Ke,"M");H(Ke,"_");ee(Ke,"decodeIndentsKey");function Ge(e){let t,r=0,n=0;for(const[i,[c,f]]of e)(c>r||c===r&&f>n)&&(r=c,n=f,t=i);return t}m(Ge,"I");Z(Ge,"S");H(Ge,"k");ee(Ge,"getMostUsedKey");function Je(e,t){return(e===Re?" ":" ").repeat(t)}m(Je,"h$1");Z(Je,"k");H(Je,"D");ee(Je,"makeIndentString");function Ze(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=Ee(e,!0);t.size===0&&(t=Ee(e,!1));const r=Ge(t);let n,i=0,c="";return r!==void 0&&({type:n,amount:i}=Ke(r),c=Je(n,i)),{amount:i,type:n,indent:c}}m(Ze,"M");Z(Ze,"x");H(Ze,"C");ee(Ze,"detectIndent");var Ia=Object.defineProperty,Fa=m((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"a$1"),La=Object.defineProperty,zr=Fa((e,t)=>La(e,"name",{value:t,configurable:!0}),"i");const Wa=Se(import.meta.url),Pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ua=zr(e=>{if(typeof Pe<"u"&&Pe.versions&&Pe.versions.node){const[t,r]=Pe.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Pe.getBuiltinModule(e)}return Wa(e)},"__cjs_getBuiltinModule"),{readFileSync:Va}=Ua("node:fs");var qa=Object.defineProperty,Ka=zr((e,t)=>qa(e,"name",{value:t,configurable:!0}),"r");const Rr=Ka((e,t,r={})=>{const{detectIndent:n,indent:i,replacer:c,stringify:f=JSON.stringify,...d}={indent:" ",...r};let v=i,w=`
|
|
10
|
+
`;if(D(e,bo))try{const y=Va(e,"utf8");if(n){const{indent:E}=Ze(y);v=E}w=y.endsWith(`
|
|
11
11
|
`)?`
|
|
12
|
-
`:""}catch(
|
|
13
|
-
`),
|
|
14
|
-
Chain: ${
|
|
12
|
+
`:""}catch(y){if(y.code!=="ENOENT")throw y}const $=f(t,c,v);Ma(e,`${$}${w}`,d)},"writeJsonSync");var Ga=Object.defineProperty,Ja=m((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"s$1");class He extends Error{static{m(this,"VisConfigError")}static{Ja(this,"VisConfigError")}chain;constructor(t,r,n){super(t,n),this.name=this.constructor.name,this.chain=r}}var Za=Object.defineProperty,Ha=m((e,t)=>Za(e,"name",{value:t,configurable:!0}),"e");class Xa extends He{static{m(this,"VisConfigCycleError")}static{Ha(this,"VisConfigCycleError")}constructor(t,r){const n=[...r,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${n}`,r)}}var Qa=Object.defineProperty,Ya=m((e,t)=>Qa(e,"name",{value:t,configurable:!0}),"s");class Ir extends He{static{m(this,"VisConfigDeprecatedKeyError")}static{Ya(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,r,n){const i=[`${t} uses removed keys.`,""];for(const c of n){const f=c.location?` (at ${c.location})`:"";i.push(` • ${c.name}${f} → renamed to \`${c.renamedTo}\``);for(const d of c.children??[])i.push(` ↳ ${d.name} → renamed to \`${d.renamedTo}\``)}i.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(i.join(`
|
|
13
|
+
`),r),this.filePath=t,this.removedKeys=n}}var ec=Object.defineProperty,tc=m((e,t)=>ec(e,"name",{value:t,configurable:!0}),"t$1");class Qt extends He{static{m(this,"VisConfigLoadError")}static{tc(this,"VisConfigLoadError")}constructor(t,r,n){const i=n instanceof Error?n.message:String(n),c=r.length>0?`
|
|
14
|
+
Chain: ${r.join(" → ")}`:"";super(`Failed to load ${t}: ${i}${c}`,r,{cause:n})}}var rc=Object.defineProperty,Fr=m((e,t)=>rc(e,"name",{value:t,configurable:!0}),"t");const nc=Fr(e=>e.join(" → "),"formatChain");class ct extends He{static{m(this,"VisConfigNotFoundError")}static{Fr(this,"VisConfigNotFoundError")}constructor(t,r,n){const i=r.length>0?r[r.length-1]:"<unknown>",c=n.length>0?`
|
|
15
15
|
Tried:
|
|
16
|
-
${
|
|
17
|
-
`)}`:"";super(`Cannot resolve "${t}" extended from ${
|
|
18
|
-
Chain: ${
|
|
19
|
-
`);return t.digest("hex")},"hashConfigChain")
|
|
16
|
+
${n.join(`
|
|
17
|
+
`)}`:"";super(`Cannot resolve "${t}" extended from ${i}.${c}
|
|
18
|
+
Chain: ${nc(r)}`,r)}}var oc=Object.defineProperty,Lr=m((e,t)=>oc(e,"name",{value:t,configurable:!0}),"i$1");const Yt="@inherit",sc=["aliases","dependsOn","inputs","outputs"],ic=Lr((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Yt))return[...t];const r=[];for(const n of t){if(n===Yt){e!==void 0&&r.push(...e);continue}r.push(n)}return r},"mergeArrayWithInherit"),ac=Lr((e,t)=>{const r={...e,...t};for(const n of sc){const i=e?.[n],c=t?.[n],f=ic(i,c);f===void 0?delete r[n]:r[n]=f}return r},"mergeTargetWithInherit");var cc=Object.defineProperty,Xe=m((e,t)=>cc(e,"name",{value:t,configurable:!0}),"o");const uc=Xe(e=>{const t=[];if(Object.hasOwn(e,"targetDefaults")&&t.push({name:"targetDefaults",renamedTo:"tasks"}),Object.hasOwn(e,"taskRunnerOptions")&&t.push({name:"taskRunnerOptions",renamedTo:"taskRunner"}),Object.hasOwn(e,"taskDefaults")){const{taskDefaults:r}=e,n=[];if(Array.isArray(r))for(const[i,c]of r.entries())c&&typeof c=="object"&&(Object.hasOwn(c,"scope")&&n.push({location:`taskDefaults[${i}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(c,"targets")&&n.push({location:`taskDefaults[${i}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:n.length>0?n:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[r,n]of e.scopedTasks.entries())n&&typeof n=="object"&&(Object.hasOwn(n,"scope")&&t.push({location:`scopedTasks[${r}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(n,"targets")&&t.push({location:`scopedTasks[${r}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),lc=Xe(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),fc=Xe((e,t,r)=>{if(!r||typeof r!="object")return;const n=uc(r);if(n.length>0)throw new Ir(e,t,n)},"assertNoDeprecatedConfigKeys"),pc=Xe((e,t,r)=>{if(!r||typeof r!="object")return;const n=lc(r);if(n.length>0)throw new Ir(e,t,n)},"assertNoDeprecatedTaskKeys");var dc=Object.defineProperty,O=m((e,t)=>dc(e,"name",{value:t,configurable:!0}),"r");const Wr=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],gc=new Set(Wr),Ur=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],mc=new Set(Ur),zc=2880,ut={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},hc=O(e=>{if(!e)return{...ut};const t=ut.policies??{},r=e.policies??{},n={...t,...r};for(const i of Object.keys(t)){const c=t[i],f=r[i];c!==void 0&&f!==void 0&&(n[i]={...c,...f})}return{...ut,...e,policies:n}},"mergeSecurityDefaults"),er=O(e=>({...e,security:hc(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),yc=O(e=>{let t;try{t=rr(e)}catch{return}const r=new Set(t.filter(n=>gc.has(n)));for(const n of Wr)if(r.has(n))return A(e,n)},"findVisConfigFile"),bc=O(e=>{let t;try{t=rr(e)}catch{return}const r=new Set(t.filter(n=>mc.has(n)));for(const n of Ur)if(r.has(n))return A(e,n)},"findVisTaskConfigFile"),bt=O(e=>tr("sha256").update(go(e)).digest("hex"),"hashFileContents"),vc=O(e=>{const t=tr("sha256"),r=[...e].sort();for(const n of r)t.update(n),t.update(":"),t.update(bt(n)),t.update(`
|
|
19
|
+
`);return t.digest("hex")},"hashConfigChain"),$c=O(e=>{const t=A(e,"node_modules");if(D(t)){const n=A(t,".cache","vis");return Ue(n),A(n,"vis-config-cache.json")}const r=Tr("vis",{create:!0,cwd:e});return r?A(r,"vis-config-cache.json"):void 0},"getConfigCachePath"),wc=O((e,t)=>{if(D(e))try{const r=ze(e);if(r.hash===t)return r.config}catch{}},"readConfigCache"),jc=O((e,t,r)=>{try{Ue(Ce(e)),Rr(e,{config:r,hash:t})}catch{}},"writeConfigCache"),xc=O(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),Oc=O((e,t,r)=>{if(sr(e))throw new ct(e,[...r,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const n=[];if(e.startsWith("./")||e.startsWith("../")){const i=Ce(t),c=A(i,e);if(n.push(c),D(c))return c;throw new ct(e,[...r,t],n)}try{return Se(t).resolve(e)}catch{throw n.push(`require.resolve("${e}") from ${t}`),new ct(e,[...r,t],n)}},"resolveExtendsSpecifier"),Vr=O(async(e,t,r)=>{const n=bt(t),i=t.slice(t.lastIndexOf(".")),c=A(Ce(t),`.vis-config-tmp-${n}${i}`);mo(t,c);let f;try{f=await e.import(c,{default:!0,try:!0})??{}}catch(d){throw new Qt(t,r,d)}finally{try{ho(c)}catch{}}try{return(typeof f=="function"?await f()??{}:f)??{}}catch(d){throw new Qt(t,r,d)}},"loadRawConfig"),kc=O((e,t)=>{const r={...e,...t};if(e.tasks||t.tasks){const n=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),i={};for(const c of n)i[c]=ac(e.tasks?.[c],t.tasks?.[c]);r.tasks=i}if((e.scopedTasks||t.scopedTasks)&&(r.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(r.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(r.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const n=e.security?.policies??{},i=t.security?.policies??{},c={...n,...i};for(const f of Object.keys(n)){const d=n[f],v=i[f];d!==void 0&&v!==void 0&&(c[f]={...d,...v})}r.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:c}}return(e.update||t.update)&&(r.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(r.taskRunner={...e.taskRunner,...t.taskRunner}),delete r.extends,r},"mergeVisConfigs"),qr=O(async(e,t,r,n,i,c)=>{if(n.has(t))throw new Xa(t,r);if(!i.has(t)){n.add(t);try{const f=await Vr(e,t,r);fc(t,r,f);const d=xc(f.extends);for(const v of d){const w=Oc(v,t,r);await qr(e,w,[...r,t],n,i,c)}i.set(t,f),c.push(t)}finally{n.delete(t)}}},"resolveConfigChain"),Rc=O(async(e,t)=>{let r;if(t?.explicitConfigPath){const y=sr(t.explicitConfigPath)?t.explicitConfigPath:A(e,t.explicitConfigPath);if(!D(y))throw new Error(`Cannot find config file at ${y}`);r=y}else r=yc(e);if(!r)return er({});const n=ir(e,{fsCache:!1,moduleCache:!1}),i=new Set,c=new Map,f=[];await qr(n,r,[],i,c,f);const d=vc(f),v=$c(e);if(v){const y=wc(v,d);if(y)return y}let w={};for(const y of f)w=kc(w,c.get(y));const $=er(w);return v&&jc(v,d,$),$},"loadVisConfig"),Pc=O(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),Tc=O((e,t)=>{const r=A(e,"node_modules"),n=Pc(t);if(D(r)){const c=A(r,".cache","vis","task-configs");return Ue(c),A(c,`${n}.json`)}const i=Tr("vis",{create:!0,cwd:e});return i?A(i,"task-configs",`${n}.json`):void 0},"getVisTaskCachePath"),Ec=O((e,t)=>{if(D(e))try{const r=ze(e);if(r.hash===t)return r.config}catch{}},"readVisTaskCache"),Sc=O((e,t,r)=>{try{Ue(Ce(e)),Rr(e,{config:r,hash:t})}catch{}},"writeVisTaskCache"),Ic=O(async(e,t,r)=>{const n=bc(t);if(!n)return;const i=bt(n),c=Tc(e,r);if(c){const w=Ec(c,i);if(w)return w}const f=ir(t,{fsCache:!1,moduleCache:!1}),d=await Vr(f,n,[]);pc(n,[],d);const v=d;return c&&Sc(c,i,v),v},"loadVisTaskConfig"),Fc=O(e=>e,"defineTaskConfig"),Lc=O(e=>e,"defineConfig");export{Ma as B,Tr as D,bc as G,zc as H,Ze as M,Ur as V,Fc as a,Ue as b,Lc as c,Kt as d,Rc as e,Ve as f,$a as g,Wr as h,ac as i,yc as j,ut as l,er as m,ze as n,Ic as r,pa as s,Rr as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var O=Object.defineProperty;var v=(e,t)=>O(e,"name",{value:t,configurable:!0});import{createRequire as q}from"node:module";import{j as $,E as P,e as R,q as D,T as j,I}from"../packem_shared/index.server-B7ETiT4C.js";import{z as _}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{r as W,a as B,b as L,c as w}from"../packem_shared/ai-fix-
|
|
1
|
+
var O=Object.defineProperty;var v=(e,t)=>O(e,"name",{value:t,configurable:!0});import{createRequire as q}from"node:module";import{j as $,E as P,e as R,q as D,T as j,I}from"../packem_shared/index.server-B7ETiT4C.js";import{z as _}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{r as W,a as B,b as L,c as w}from"../packem_shared/ai-fix-BlYyz5bI.js";import{p}from"./bin.js";import{l as N}from"../packem_shared/failure-log-B0Uh-65U.js";const A=q(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,J=v(e=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[t,r]=m.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return m.getBuiltinModule(e)}return A(e)},"__cjs_getBuiltinModule"),{createInterface:z}=J("node:readline");var M=Object.defineProperty,l=v((e,t)=>M(e,"name",{value:t,configurable:!0}),"c");const U={"ambiguous-match":"ambiguous match",applied:"applied",error:"error","missing-file":"missing file","no-match":"no match","outside-workspace":"outside workspace"},S=l((e,t,r)=>{const o=W(e,t,r),s=_(e,o);return s===""||s.startsWith("..")?o:s},"formatDisplayPath"),E=l((e,t,r)=>{const o=[$(`Fix proposal (${e.provider}, confidence: ${e.confidence})`),"",e.explanation||P("<no explanation>")];if(e.cannotFix)return o.push(""),o.push(R(`Cannot fix automatically: ${e.cannotFix}`)),o.join(`
|
|
2
2
|
`);if(e.patches.length===0)return o.push(""),o.push(R("No patches were proposed.")),o.join(`
|
|
3
3
|
`);o.push(""),o.push($(`Patches (${String(e.patches.length)}):`));for(const[s,i]of e.patches.entries()){const a=S(t,r,i.file);o.push(""),o.push(D(`[${String(s+1)}] ${a}`)),i.reason&&o.push(P(` reason: ${i.reason}`));for(const c of i.oldString.split(`
|
|
4
4
|
`))o.push(j(` - ${c}`));for(const c of i.newString.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var O=Object.defineProperty;var v=(r,e)=>O(r,"name",{value:e,configurable:!0});import{createTaskGraph as E}from"@visulima/task-runner";import{C as R,S}from"./bin.js";import{r as C,f as P}from"../packem_shared/selectors-BE2BCnTR.js";var x=Object.defineProperty,d=v((r,e)=>x(r,"name",{value:e,configurable:!0}),"u");const G=d((r,e,n)=>{const c=[],t=new Set,i=d((o,f)=>{if(t.has(o))return;t.add(o);const m=e[o]??[];for(const u of m)i(u,f+1);const s=n[o],h=" ".repeat(f);c.push(`${h}${o}${s?.cache===!1?" (no-cache)":""}`)},"walk");for(const o of r)i(o,0);return c},"renderPlan"),J=d((r,e,n)=>({roots:r,tasks:Object.fromEntries(Object.entries(n).map(([c,t])=>[c,{cache:t.cache,dependsOn:e[c]??[],outputs:t.outputs,parallelism:t.parallelism,projectRoot:t.projectRoot,target:t.target}]))}),"toJson"),D=d(async({argument:r,logger:e,options:n,process:c,visConfig:t,workspaceRoot:i})=>{const o=r[0];if(!o)throw new Error("Missing selector. Usage: vis action-graph <selector>");if(!i)throw new Error("Could not determine workspace root. Run inside a monorepo.");const{config:f,packageJsons:m,workspace:s}=R(i,t),h=S(i,s,m),u=await C(o,s,c.cwd,i),{target:l}=u;let j=u.projects;n.query&&(j=P(j,s,n.query));const k=j.filter(p=>s.projects[p]?.targets?.[l]!==void 0);if(k.length===0){e.info(`No projects have a "${l}" target.`);return}const y=k.map(p=>{const w=s.projects[p],g=w.targets?.[l],b={project:p,target:l};return{cache:g?.cache,id:`${p}:${l}`,outputs:g?.outputs??[],overrides:{command:g?.command},parallelism:g?.parallelism,projectRoot:w.root,target:b}}),a=E(y,{projectGraph:h,targetDefaults:f.tasks,workspace:s});if(n.json){e.info(JSON.stringify(J(a.roots,a.dependencies,a.tasks),null,2));return}const $=G(a.roots,a.dependencies,a.tasks);e.info(`Execution plan (${Object.keys(a.tasks).length} task(s), ${a.roots.length} root(s)):`),e.info("");for(const p of $)e.info(p)},"execute");export{D as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var g=Object.defineProperty;var d=(t,o)=>g(t,"name",{value:o,configurable:!0});import{M as l}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{C as v,
|
|
2
|
-
`));return}throw new Error(`Unknown subcommand: "${n}". Expected scaffold or prune.`)},"execute");export{
|
|
1
|
+
var g=Object.defineProperty;var d=(t,o)=>g(t,"name",{value:o,configurable:!0});import{M as l}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{C as v,S as h}from"./bin.js";import{s as j,p as x}from"../packem_shared/docker-Bw9gKo69.js";var C=Object.defineProperty,m=d((t,o)=>C(t,"name",{value:o,configurable:!0}),"f");const $=m(async({argument:t,logger:o,options:s,visConfig:w,workspaceRoot:e})=>{const n=t[0];if(!n)throw new Error("Missing subcommand. Usage: vis docker <scaffold|prune>");if(!e)throw new Error("Could not determine workspace root. Run inside a monorepo.");const{packageJsons:k,workspace:c}=v(e,w);if(n==="scaffold"){const a=h(e,c,k),r=s.focus;if(!r)throw new Error("Missing --focus. Pass one or more project names, comma-separated.");const f=r.split(",").map(i=>i.trim()).filter(Boolean);if(f.length===0)throw new Error("--focus resolved to an empty list. Provide at least one project name.");const u=l(e,s.out??".vis/docker"),{projects:p}=j({focus:f,includeSources:!!s.includeSources,log:m(i=>{o.info(i)},"log"),outDir:u,projectGraph:a,pruneLockfile:s.pruneLockfile!==!1,workspace:c,workspaceRoot:e});o.info(`Scaffolded ${p.length} project(s) into ${u}`),o.info(`Focus closure: ${p.toSorted().join(", ")}`);return}if(n==="prune"){const a=l(e,s.context??".vis/docker"),{removed:r}=x({contextRoot:a,workspace:c,workspaceRoot:e});o.info(`Pruned ${r.length} unfocused project(s)`),r.length>0&&o.debug?.(r.join(`
|
|
2
|
+
`));return}throw new Error(`Unknown subcommand: "${n}". Expected scaffold or prune.`)},"execute");export{$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=Object.defineProperty;var n=(o,r)=>d(o,"name",{value:r,configurable:!0});import{R as m,N as g}from"../packem_shared/pm-runner-
|
|
1
|
+
var d=Object.defineProperty;var n=(o,r)=>d(o,"name",{value:r,configurable:!0});import{R as m,N as g}from"../packem_shared/pm-runner-BzGZmzYs.js";import{o as u}from"../packem_shared/utils-DrNg0XTR.js";var v=Object.defineProperty,k=n((o,r)=>v(o,"name",{value:r,configurable:!0}),"t");const x=k(async({argument:o,logger:r,options:e,visConfig:s,workspaceRoot:t})=>{const a=o;if(!a||a.length===0)throw new Error("No command specified. Usage: vis exec <command> [args...]");const[i,...f]=a,l=t??process.cwd(),p=m(l,{configBackend:s?.install?.backend,configCorepack:s?.install?.corepack}),c=g(p,{args:f,command:i,filter:u(e.filter),parallel:e.parallel||!1,recursive:e.recursive||!1,reverse:e.reverse||!1,shellMode:e.shellMode||!1,workspaceRoot:e.workspaceRoot||!1},l,r);c!==0&&(process.exitCode=c)},"execute");export{x as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var g=Object.defineProperty;var a=(e,i)=>g(e,"name",{value:i,configurable:!0});import{createRequire as _}from"node:module";import{M as n,i as u,$ as p}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{B as $}from"./config.js";import{j}from"./bin.js";const b=_(import.meta.url),c=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,d=a(e=>{if(typeof c<"u"&&c.versions&&c.versions.node){const[i,s]=c.versions.node.split(".").map(Number);if(i>22||i===22&&s>=3||i===20&&s>=16)return c.getBuiltinModule(e)}return b(e)},"__cjs_getBuiltinModule"),{rmSync:y}=d("node:fs"),{homedir:r}=d("node:os"),{createInterface:w}=d("node:readline");var T=Object.defineProperty,m=a((e,i)=>T(e,"name",{value:i,configurable:!0}),"l");const f=j(),h=[n(r(),".zshrc"),n(r(),".zshenv"),n(r(),".bashrc"),n(r(),".bash_profile"),n(r(),".profile"),n(r(),".config","fish","config.fish")],M=m(e=>{const i=[];for(const s of h)if(u(s))try{const l=p(s).split(`
|
|
1
|
+
var g=Object.defineProperty;var a=(e,i)=>g(e,"name",{value:i,configurable:!0});import{createRequire as _}from"node:module";import{M as n,i as u,$ as p}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{B as $}from"./config.js";import{l as j}from"./bin.js";const b=_(import.meta.url),c=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,d=a(e=>{if(typeof c<"u"&&c.versions&&c.versions.node){const[i,s]=c.versions.node.split(".").map(Number);if(i>22||i===22&&s>=3||i===20&&s>=16)return c.getBuiltinModule(e)}return b(e)},"__cjs_getBuiltinModule"),{rmSync:y}=d("node:fs"),{homedir:r}=d("node:os"),{createInterface:w}=d("node:readline");var T=Object.defineProperty,m=a((e,i)=>T(e,"name",{value:i,configurable:!0}),"l");const f=j(),h=[n(r(),".zshrc"),n(r(),".zshenv"),n(r(),".bashrc"),n(r(),".bash_profile"),n(r(),".profile"),n(r(),".config","fish","config.fish")],M=m(e=>{const i=[];for(const s of h)if(u(s))try{const l=p(s).split(`
|
|
2
2
|
`),o=l.filter(t=>!t.includes(".vis/bin")&&!t.includes("VIS_HOME")&&!t.includes("# vis "));o.length!==l.length&&($(s,o.join(`
|
|
3
3
|
`)),i.push(s))}catch{e.warn(`warning: could not clean ${s}`)}return i},"cleanShellProfiles"),R=m(async({logger:e,options:i})=>{if(!u(f)){e.info("vis is not installed (no ~/.vis directory found).");return}e.info("This will remove:"),e.info(` ${f}/`);const s=h.filter(o=>u(o)&&p(o).includes(".vis"));for(const o of s)e.info(` Lines in ${o}`);if(!i.yes){if(!process.stdin.isTTY)throw new Error("Non-interactive terminal. Use --yes to confirm.");const o=w({input:process.stdin,output:process.stdout}),t=await new Promise(v=>{o.question(`
|
|
4
4
|
Type "uninstall" to confirm: `,v)});if(o.close(),t.trim()!=="uninstall"){e.info("Aborted.");return}}const l=M(e);for(const o of l)e.info(`Cleaned ${o}`);try{y(f,{force:!0,recursive:!0}),e.info(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g=Object.defineProperty;var c=(e,a)=>g(e,"name",{value:a,configurable:!0});import{R as d,S as k}from"../packem_shared/pm-runner-BzGZmzYs.js";var u=Object.defineProperty,v=c((e,a)=>u(e,"name",{value:a,configurable:!0}),"t");const x=v(async({argument:e,logger:a,options:r,process:i,visConfig:n,workspaceRoot:t})=>{if(!e||e.length===0)throw new Error("No package specified. Usage: vis info <package> [field...]");const[f,...p]=e,s=t??i.cwd,l=d(s,{configBackend:n?.install?.backend,configCorepack:n?.install?.corepack}),o=k(l,{fields:p,json:r.json||!1,package:f},s,a);o!==0&&o!==1&&(process.exitCode=o)},"execute");export{x as default};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),
|
|
1
|
+
var D=Object.defineProperty;var j=(t,s)=>D(t,"name",{value:s,configurable:!0});import{createRequire as M}from"node:module";import{i as b,M as d,z as P}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{H as v,B as w,j as K}from"./config.js";import{p as e}from"./bin.js";import{A as q}from"../packem_shared/pm-runner-BzGZmzYs.js";import{O as G}from"../packem_shared/build-scripts-3E2pmscY.js";import{N as A}from"../packem_shared/native-config-sync-BOeuyrBj.js";import{E as T}from"../packem_shared/min-release-age-heJgeP7o.js";const N=M(import.meta.url),h=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,C=j(t=>{if(typeof h<"u"&&h.versions&&h.versions.node){const[s,o]=h.versions.node.split(".").map(Number);if(s>22||s===22&&o>=3||s===20&&o>=16)return h.getBuiltinModule(t)}return N(t)},"__cjs_getBuiltinModule"),{execFileSync:I}=C("node:child_process"),{createInterface:F}=C("node:readline");var L=Object.defineProperty,u=j((t,s)=>L(t,"name",{value:s,configurable:!0}),"f");const Y=u(t=>{const s=[];return b(d(t,"turbo.json"))&&s.push("turborepo"),b(d(t,"nx.json"))&&s.push("nx"),b(d(t,".moon"))&&s.push("moon"),s},"detectExistingTools"),E=u((t,s)=>new Promise(o=>{t.question(s,i=>{o(i.trim())})}),"ask"),m=u(async(t,s,o=!0)=>{const i=await E(t,`${s} ${o?"[Y/n]":"[y/N]"} `);return i===""?o:i.toLowerCase()==="y"||i.toLowerCase()==="yes"},"confirm"),k=u((t,s)=>{const o=[],i=Object.entries(s.allowBuilds).filter(([,l])=>l).map(([l])=>` "${l}": true,`).join(`
|
|
2
|
+
`),a=[` installScripts: {
|
|
3
3
|
allow: ${i?`{
|
|
4
4
|
${i}
|
|
5
5
|
}`:"{}"},
|
|
6
|
-
},`];s.minimumReleaseAge!==void 0&&
|
|
6
|
+
},`];s.minimumReleaseAge!==void 0&&a.push(` firstSeen: {
|
|
7
7
|
minutes: ${String(s.minimumReleaseAge)},
|
|
8
8
|
},`);let n=` policies: {
|
|
9
|
-
${
|
|
9
|
+
${a.join(`
|
|
10
10
|
`)}
|
|
11
11
|
},`;return s.enableSocket&&(n+=`
|
|
12
12
|
socket: { enabled: true },`),s.enableDepsDev&&(n+=`
|
|
13
|
-
depsDev: { enabled: true },`),
|
|
13
|
+
depsDev: { enabled: true },`),o.push(` security: {
|
|
14
14
|
${n}
|
|
15
|
-
},`),s.staged&&
|
|
15
|
+
},`),s.staged&&o.push(` staged: {
|
|
16
16
|
"*.{ts,tsx}": "eslint --fix",
|
|
17
17
|
"*.{ts,tsx,js,jsx,json,md}": "prettier --write",
|
|
18
18
|
},`),`import { defineConfig } from "@visulima/vis/config";
|
|
19
19
|
|
|
20
20
|
export default defineConfig({
|
|
21
|
-
${
|
|
21
|
+
${o.join(`
|
|
22
22
|
|
|
23
23
|
`)}
|
|
24
24
|
});
|
|
25
|
-
`},"generateConfigContent"),
|
|
25
|
+
`},"generateConfigContent"),z=u(async(t,s,o)=>{const i=F({input:process.stdin,output:process.stdout});e.info(`
|
|
26
26
|
vis init — interactive setup
|
|
27
|
-
`);const
|
|
28
|
-
`);for(const
|
|
27
|
+
`);const a=await m(i," Enable Socket.dev security scanning?");a&&(e.success(" Socket.dev enabled — scores, alerts, and supply chain data active."),process.env.VIS_SOCKET_TOKEN||e.notice(" Set VIS_SOCKET_TOKEN for a custom API token (optional).")),e.info("");const n=await m(i," Enable Google deps.dev (OpenSSF Scorecard + GHSA advisories)?");n&&e.success(" deps.dev enabled — Scorecard signals and advisories merged into the security report."),e.info("");const l=await m(i," Scan for packages with build scripts?"),g={};if(l){e.info(" Scanning node_modules...");const c=G(t,{});if(c.length>0){e.info(` Found ${String(c.length)} package${c.length===1?"":"s"} with build scripts:
|
|
28
|
+
`);for(const r of c){const f=await m(i,` Allow ${r}?`,!1),_=r.split(" (")[0]??r;g[_]=f,f&&e.success(` ✓ ${_} approved`)}}else e.info(" No packages with build scripts found.")}e.info("");const O=await m(i," Enforce a minimum release age (block freshly-published versions)?");let p;if(O){const c=await E(i,` Minimum age in minutes (default ${String(v)} = 2 days): `),r=c===""?v:Number.parseInt(c,10);p=Number.isFinite(r)&&r>0?r:v,e.success(` minimumReleaseAge: ${String(p)} minutes`)}e.info("");const S=await m(i," Set up pre-commit hooks (lint-staged)?",!1);let y=!1;(s.name==="pnpm"||s.name==="yarn"||s.name==="npm"||s.name==="bun")&&(e.info(""),y=await m(i,` Sync security settings to ${s.name} config?`));const $=Y(t);if($.length>0&&(e.info(""),e.info(` Detected existing tools: ${$.join(", ")}`),await m(i,` Run \`vis migrate\` for ${$.join(", ")}?`,!1))){i.close();const[c,...r]=s.name==="pnpm"?["pnpm","exec"]:s.name==="yarn"?["yarn","exec"]:s.name==="bun"?["bunx"]:["npx"];for(const f of $){e.info(` Migrating from ${f}...`);try{I(c,[...r,"vis","migrate",f],{cwd:t,stdio:"inherit"})}catch{e.warn(` Migration from ${f} had issues — run \`vis migrate ${f}\` manually.`)}}if(b(o))e.success(`Migrated config written to ${o}`);else{const f=k(s.name,{allowBuilds:g,enableDepsDev:n,enableSocket:a,minimumReleaseAge:p,staged:S});w(o,f),e.success(`Created ${o}`)}e.notice(" Run 'vis doctor' to see your project's full health status.");return}i.close(),e.info("");const B=k(s.name,{allowBuilds:g,enableDepsDev:n,enableSocket:a,minimumReleaseAge:p,staged:S});if(w(o,B),e.success(`Created ${o}`),y){const c=Object.fromEntries(Object.entries(g).filter(([,r])=>r));for(const r of A(s.name,t,c))e.success(` ${r}`);for(const r of T(s.name,t,p))e.success(` ${r}`)}e.info(""),e.info(" Setup complete. Your config:");const x=[a&&"Socket.dev",n&&"deps.dev"].filter(Boolean);e.info(` Security: ${x.length>0?`${x.join(" + ")} enabled`:"defaults only"}`),e.info(` Build scripts: ${Object.values(g).filter(Boolean).length} approved`),e.info(` Min age: ${p===void 0?"not enforced":`${String(p)} minutes`}`),e.info(` Git hooks: ${S?"lint-staged configured":"not configured"}`),e.info(` PM sync: ${y?"done":"skipped"}`),e.info(""),e.notice(" Run 'vis doctor' to see your project's full health status."),e.info("")},"runInteractiveInit"),H=u((t,s,o,i)=>{const a=k(s.name,{allowBuilds:{},enableDepsDev:!1,enableSocket:!1,minimumReleaseAge:v,staged:!1});if(w(i,a),e.success(`Created ${i}`),e.info(" Secure defaults are applied automatically by defineConfig()."),o.syncNative){for(const n of A(s.name,t,{}))e.success(` ${n}`);for(const n of T(s.name,t,v))e.success(` ${n}`)}e.info(""),e.notice("Run 'vis doctor' for a full health check, or 'vis init' in a terminal for guided setup.")},"runStaticInit"),R=u((t,s,o)=>{const i=d(t,".."),a=d(s,"node_modules","@visulima","vis","schemas",o),n=P(i,a),l=n===""?`./${o}`:n.split(/[/\\]/u).join("/");return l.startsWith(".")?l:`./${l}`},"buildSchemaRef"),V=u((t,s)=>{const o=R(d(t,"project.json"),s,"project.schema.json"),i=R(d(t,"vis.config.ts"),s,"vis-config.schema.json");e.info(""),e.info("Paste these into your config files to get editor IntelliSense:"),e.info(""),e.info(` project.json → "$schema": "${o}"`),e.info(` vis.config.ts → see ${i} (vis.config.ts is TypeScript; use the import path directly)`),e.info(""),e.notice("For nested project.json files, the `..` depth changes — run `vis migrate nx` to auto-rewrite all of them.")},"printSchemaPaths"),oe=u(async({options:t,workspaceRoot:s})=>{const o=s??process.cwd();if(t.schema){V(o,o);return}const i=q(o),a=K(o);if(a&&!t.force){e.warn(`Config already exists: ${a}`),e.notice("Use --force to overwrite, or edit the existing file.");return}const n=a??d(o,"vis.config.ts");process.stdin.isTTY&&t.interactive!==!1?await z(o,i,n):H(o,i,t,n)},"execute");export{R as buildSchemaRefForTesting,oe as default};
|