@visulima/vis 1.0.0-alpha.27 → 1.0.0-alpha.28
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 +7 -0
- package/LICENSE.md +3228 -110
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bin.js +468 -364
- 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/devtools.js +82 -0
- package/dist/packem_chunks/doctor-probe.js +1 -1
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler10.js +1 -1
- 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 +1 -1
- 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/handler20.js +1 -1
- package/dist/packem_chunks/handler21.js +3 -3
- package/dist/packem_chunks/handler22.js +1 -1
- package/dist/packem_chunks/handler23.js +2 -2
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler26.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 +6 -6
- package/dist/packem_chunks/handler31.js +2 -2
- package/dist/packem_chunks/handler33.js +1 -1
- package/dist/packem_chunks/handler34.js +4 -4
- package/dist/packem_chunks/handler35.js +2 -2
- package/dist/packem_chunks/handler36.js +1 -1
- package/dist/packem_chunks/handler37.js +4 -4
- package/dist/packem_chunks/handler38.js +2 -2
- package/dist/packem_chunks/handler39.js +5 -5
- package/dist/packem_chunks/handler4.js +5 -5
- package/dist/packem_chunks/handler40.js +18 -18
- package/dist/packem_chunks/handler41.js +1 -1
- package/dist/packem_chunks/handler42.js +25 -10
- package/dist/packem_chunks/handler43.js +10 -25
- package/dist/packem_chunks/handler44.js +11 -11
- package/dist/packem_chunks/handler45.js +15 -15
- package/dist/packem_chunks/handler46.js +19 -19
- package/dist/packem_chunks/handler47.js +16 -16
- package/dist/packem_chunks/handler48.js +3 -3
- package/dist/packem_chunks/handler49.js +12 -12
- package/dist/packem_chunks/handler5.js +7 -7
- package/dist/packem_chunks/handler50.js +70 -71
- package/dist/packem_chunks/handler51.js +23 -23
- 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 +7 -17
- package/dist/packem_chunks/index.js +3 -3
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/list.js +2 -2
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/prune.js +1 -1
- 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/Table-CwC2kW07-EjFLNV0q.js +12 -0
- package/dist/packem_shared/_commonjsHelpers-CLblCigl.js +1 -0
- package/dist/packem_shared/{advisories-xIOdLbAI.js → advisories-BxXiKFbL.js} +1 -1
- package/dist/packem_shared/{ai-analysis-Csn82p17.js → ai-analysis-BnmDFqc8.js} +5 -5
- package/dist/packem_shared/{ai-fix-BlYyz5bI.js → ai-fix-BGbnrWCz.js} +7 -7
- package/dist/packem_shared/{cyclonedx-B3ILsY74.js → cyclonedx-C2k2HmvI.js} +1 -1
- package/dist/packem_shared/{dependency-scan-s2MD0vi-.js → dependency-scan-Bki15Yi-.js} +1 -1
- package/dist/packem_shared/{docker-BynKrOLe.js → docker-k-Sl8b-w.js} +1 -1
- package/dist/packem_shared/{failure-log-B0Uh-65U.js → failure-log-C3bG1bCA.js} +1 -1
- package/dist/packem_shared/index-2r730kXY.js +29 -0
- package/dist/packem_shared/{index-B_KtN1MB.js → index-DBq4TVu5.js} +1 -1
- package/dist/packem_shared/{lifecycle-CJRNbN3x.js → lifecycle-B91p_ra8.js} +2 -2
- package/dist/packem_shared/{lockfile-BG1HvBzH.js → lockfile-DmDfgKaT.js} +1 -1
- package/dist/packem_shared/{min-release-age-aEn0x8Vy.js → min-release-age-B1Jm1_JY.js} +1 -1
- package/dist/packem_shared/{native-config-sync-DdhTLlKL.js → native-config-sync-Cnpj2xcn.js} +6 -6
- package/dist/packem_shared/{osv-bloom-BJhlc_I2.js → osv-bloom-ep8GlDGT.js} +2 -2
- package/dist/packem_shared/pm-runner-COoPLGKi.js +1 -0
- package/dist/packem_shared/{provenance-BuiEsWbI.js → provenance-DbkJRDqt.js} +1 -1
- package/dist/packem_shared/{registry-keys-pemEkRM9.js → registry-keys-SylX07bs.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-RgRrUDZv.js → resolve-explicit-CJ_5wYSu.js} +1 -1
- package/dist/packem_shared/s1ngularity-DlS-4a6K.js +1 -0
- package/dist/packem_shared/scan-progress-CU4ttEHQ.js +2 -0
- package/dist/packem_shared/{signatures-LYMy8OR5.js → signatures-B-1u4t-c.js} +1 -1
- package/dist/packem_shared/spinner-B9ZPv1iT.js +1 -0
- package/dist/packem_shared/spinners-f91Rbo99-Bjf3NcO0.js +1 -0
- package/dist/packem_shared/tabs-C-qFIoUv.js +1 -0
- package/dist/packem_shared/typosquats-BxCOUvTJ.js +1 -0
- package/dist/packem_shared/use-measured-height-kIDCuc76.js +1 -0
- package/dist/packem_shared/vis-update-app-COYmjGKv.js +1 -0
- package/dist/packem_shared/{watch-loop-DLlMLg_J.js → watch-loop-CP318TfG.js} +2 -2
- package/index.js +26 -26
- package/package.json +9 -9
- package/dist/packem_shared/index-efSniSRN.js +0 -29
- package/dist/packem_shared/index.server-B7ETiT4C.js +0 -2
- package/dist/packem_shared/pm-runner-BwX5AL3W.js +0 -1
- package/dist/packem_shared/s1ngularity-Bs9fUf3q.js +0 -1
- package/dist/packem_shared/scan-progress-DjPT66jy.js +0 -2
- package/dist/packem_shared/typosquats-znskIR5j.js +0 -1
- package/dist/packem_shared/use-measured-height-DjYgUOKk.js +0 -1
- package/dist/packem_shared/vis-update-app-qhQPV97i.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/
|
|
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/Table-CwC2kW07-EjFLNV0q.js";import{p as i}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-ep8GlDGT.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/
|
|
1
|
+
var D=Object.defineProperty;var f=(o,t)=>D(o,"name",{value:t,configurable:!0});import{E as d}from"../packem_shared/Table-CwC2kW07-EjFLNV0q.js";import{p as n}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-CU4ttEHQ.js";import{s as y,D as h}from"../packem_shared/osv-bloom-ep8GlDGT.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 co=Object.defineProperty;var m=(e,t)=>co(e,"name",{value:t,configurable:!0});import{createRequire as uo}from"node:module";import{f as nr,$ as mo,U as or,i as B,_ as Bt,K as Ce,s as ho,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 lo=uo(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 lo(e)},"__cjs_getBuiltinModule"),{createHash:tr}=lt("node:crypto"),{readdirSync:rr,readFileSync:fo,copyFileSync:po,unlinkSync:go}=lt("node:fs"),{createRequire:Se}=lt("node:module");var yo=Object.defineProperty,D=m((e,t)=>yo(e,"name",{value:t,configurable:!0}),"O$2"),bo=Object.defineProperty,k=D((e,t)=>bo(e,"name",{value:t,configurable:!0}),"h");const vo=Se(import.meta.url),ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ar=k(e=>{if(typeof ae<"u"&&ae.versions&&ae.versions.node){const[t,r]=ae.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ae.getBuiltinModule(e)}return vo(e)},"__cjs_getBuiltinModule"),{existsSync:ce}=ar("node:fs"),{env:ue,cwd:cr}=ae,{createRequire:pe}=ar("node:module"),ur=0,le=2,lr=Symbol("findUpStop");var $o=Object.defineProperty,wo=k((e,t)=>$o(e,"name",{value:t,configurable:!0}),"t$4"),jo=Object.defineProperty,xo=wo((e,t)=>jo(e,"name",{value:t,configurable:!0}),"t"),Oo=Object.defineProperty,ko=xo((e,t)=>Oo(e,"name",{value:t,configurable:!0}),"n");const ft=ko(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Po=Object.defineProperty,To=k((e,t)=>Po(e,"name",{value:t,configurable:!0}),"i$4"),Eo=Object.defineProperty,So=To((e,t)=>Eo(e,"name",{value:t,configurable:!0}),"r"),Co=Object.defineProperty,Ao=So((e,t)=>Co(e,"name",{value:t,configurable:!0}),"i");const Dt=Ao(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var _o=Object.defineProperty,No=k((e,t)=>_o(e,"name",{value:t,configurable:!0}),"i$3"),Mo=Object.defineProperty,fr=No((e,t)=>Mo(e,"name",{value:t,configurable:!0}),"s");const zo=pe(import.meta.url),be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Bo=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:It,mkdirSync:Do}=Bo("node:fs");var Io=Object.defineProperty,Ro=fr((e,t)=>Io(e,"name",{value:t,configurable:!0}),"o");const Fo=Ro(e=>{ft(e);try{const t=It(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Dt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Do(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=It(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Dt(r))}'`,{cause:t})}},"ensureDirSync");var Wo=Object.defineProperty,Lo=k((e,t)=>Wo(e,"name",{value:t,configurable:!0}),"$e"),Vo=Object.defineProperty,pt=Lo((e,t)=>Vo(e,"name",{value:t,configurable:!0}),"W"),Uo=Object.defineProperty,g=pt((e,t)=>Uo(e,"name",{value:t,configurable:!0}),"u$1");let Rt=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(()=>zt,"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"),re=F,Ye=g(o=>{const s=o.map(l=>l.source).join("|")||"$^",a=o[0]?.flags;return new RegExp(s,a)},"ve"),Qe=Ye,ne=g(o=>Array.isArray(o),"j"),W=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))})(),Ur=g(o=>typeof o=="number","de"),qr=g(o=>typeof o=="object"&&o!==null,"xe"),Kr=g(o=>o instanceof RegExp,"me"),Gr=(()=>{const o=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return s=>o.test(s.source)})(),Jr=(()=>{const o=/^[a-zA-Z0-9_-]+$/;return s=>o.test(s.source)&&!s.flags.includes("i")})(),vt=g(o=>typeof o=="string","A"),U=g(o=>o===void 0,"f"),Hr=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)=>ne(o)?Zr(o,s):vt(o)?wt(o,s):Xr(o,s),"i"),Zr=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(!U(s)&&!l.options.silent){const j=u.slice(p,h),S=W(s)?s(j,u,`${p}`):s;U(S)||l.output.push(S)}l.index=h}return!0}},"we"),Xr=g((o,s)=>{if(Jr(o))return wt(o.source,s);{const a=o.source,l=o.flags.replace(/y|$/,"y"),u=new RegExp(a,l);return Gr(o)&&W(s)&&!tt(s)?Yr(u,s):Qr(u,s)}},"$e"),Yr=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}`);U(j)||a.output.push(j)}return a.index=h,!0}else return!1},"Ee"),Qr=g((o,s)=>a=>{const l=a.index,u=a.input;if(o.lastIndex=l,o.test(u)){const p=o.lastIndex;if(!U(s)&&!a.options.silent){const h=W(s)?s(u.slice(l,p),u,`${l}`):s;U(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(!U(s)&&!a.options.silent){const p=W(s)?s(o,u,`${l}`):s;U(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"),Re=g((o,s)=>rt(o,0,1/0,s),"$"),en=g((o,s)=>rt(o,1,1/0,s),"Re"),oe=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 U(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 ie=0,so=S.length;ie<so;ie+=2){const io=S[ie*2],ao=S[ie*2+1];he.set(io,ao)}S.length=0}const M=he.get(h);if(M===!1)return!1;if(Ur(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,oo=a(u);if(j.indexMax=Math.max(j.indexMax,h),oo){const he=u.index,M=u.output.length;if(M>me){const ie=u.output.slice(me,M);S.push(h,{index:he,output:ie})}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=Hr(o=>{if(W(o))return et(o)?Ot(o):o;if(vt(o)||Kr(o))return b(o);if(ne(o))return oe(o);if(qr(o))return N(Object.values(o));throw new Error("Invalid rule")}),Y=g(o=>o,"d"),tn=g(o=>typeof o=="string","ke"),rn=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"),nn=g(o=>{const s={},a={};return(l,u)=>{const p=u?.partial?a:s;return p[l]??(p[l]=o(l,u))}},"Pe"),on=b(/\\./,Y),sn=b(/./,Y),an=b(/\*\*\*+/,"*"),cn=b(/([^/{[(!])\*\*/,(o,s)=>`${s}*`),un=b(/(^|.)\*\*(?=[^*/)\]}])/,(o,s)=>`${s}*`),ln=Re(N([on,an,cn,un,sn])),fn=ln,pn=g(o=>$t(o,fn,{memoization:!1}).join(""),"Ie"),dn=pn,kt="abcdefghijklmnopqrstuvwxyz",gn=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"),mn=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(gn),"W"),T=g(o=>({partial:!1,regex:new RegExp(o,"s"),children:[]}),"c"),ge=g(o=>({children:o}),"y"),se=(()=>{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"),hn=b(/\\./,T),yn=b(/[$.*+?^(){}[\]\|]/,o=>T(`\\${o}`)),bn=b(/[\\\/]/,K),vn=b(/[^$.*+?^(){}[\]\|\\\/]+/,T),$n=b(/^(?:!!)*!(.*)$/,(o,s)=>T(`(?!^${zt.compile(s).source}$).*?`)),wn=b(/^(!!)+/),jn=N([$n,wn]),xn=b(/\/(\*\*\/)+/,()=>ge([se([K(),T(".+?"),K()]),K()])),On=b(/^(\*\*\/)+/,()=>ge([T("^"),se([T(".*?"),K()])])),kn=b(/\/(\*\*)$/,()=>ge([se([K(),T(".*?")]),T("$")])),Pn=b(/\*\*/,()=>T(".*?")),Et=N([xn,On,kn,Pn]),Tn=b(/\*\/(?!\*\*\/|\*$)/,()=>se([T("[^\\\\/]*?"),K()])),En=b(/\*/,()=>T("[^\\\\/]*")),St=N([Tn,En]),Ct=b("?",()=>T("[^\\\\/]")),Sn=b("[",Y),Cn=b("]",Y),An=b(/[!^]/,"^\\\\/"),_n=b(/[a-z]-[a-z]|[0-9]-[0-9]/i,Y),Nn=b(/\\./,Y),Mn=b(/[$.*+?^(){}[\|]/,o=>`\\${o}`),zn=b(/[\\\/]/,"\\\\/"),Bn=b(/[^$.*+?^(){}[\]\|\\\/]+/,Y),Dn=N([Nn,Mn,zn,_n,Bn]),At=oe([Sn,jt(An),Re(Dn),Cn],o=>T(o.join(""))),In=b("{","(?:"),Rn=b("}",")"),Fn=b(/(\d+)\.\.(\d+)/,(o,s,a)=>mn(+s,+a,Math.min(s.length,a.length)).join("|")),Wn=b(/([a-z]+)\.\.([a-z]+)/,(o,s,a)=>Tt(s,a).join("|")),Ln=b(/([A-Z]+)\.\.([A-Z]+)/,(o,s,a)=>Tt(s.toLowerCase(),a.toLowerCase()).join("|").toUpperCase()),Vn=N([Fn,Wn,Ln]),_t=oe([In,Vn,Rn],o=>T(o.join(""))),Un=b("{"),qn=b("}"),Kn=b(","),Gn=b(/\\./,T),Jn=b(/[$.*+?^(){[\]\|]/,o=>T(`\\${o}`)),Hn=b(/[\\\/]/,K),Zn=b(/[^$.*+?^(){}[\]\|\\\/,]+/,T),Xn=Ot(()=>Mt),Yn=b("",()=>T("(?:)")),Qn=en(N([Et,St,Ct,At,_t,Xn,Gn,Jn,Hn,Zn]),se),Nt=N([Qn,Yn]),Mt=oe([Un,jt(oe([Nt,Re(oe([Kn,Nt]))])),qn],ge),eo=Re(N([jn,Et,St,Ct,At,_t,Mt,hn,yn,bn,vn]),se),to=eo,ro=g(o=>$t(o,to,{memoization:!1})[0],"kr"),no=ro,it=g((o,s,a)=>it.compile(o,a).test(s),"N");it.compile=(()=>{const o=nn((a,l)=>re(no(dn(a)),l)),s=rn((a,l)=>Qe(a.map(u=>o(u,l))));return(a,l)=>tn(a)?o(a,l):s(a,l)})();var zt=it;return d(v)})();return e.default||e},"_lazyMatch"),at;const qo=g((e,t)=>(at||(at=Rt(),Rt=null),at(e,t)),"default");var Ko=Object.defineProperty,Go=pt((e,t)=>Ko(e,"name",{value:t,configurable:!0}),"t$1");const Jo=/^[A-Z]:\//i,I=Go((e="")=>e&&e.replaceAll("\\","/").replace(Jo,t=>t.toUpperCase()),"normalizeWindowsPath");var Ho=Object.defineProperty,C=pt((e,t)=>Ho(e,"name",{value:t,configurable:!0}),"r");const Zo=/^[/\\]{2}/,Xo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,pr=/^[A-Z]:$/i,Ft=/^\/([A-Z]:)?$/i,Yo=/.(\.[^./]+)$/,Qo=/^[/\\]|^[a-z]:[/\\]/i,es=/\/$/,ts=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=>Xo.test(e),"isAbsolute"),gr=C(function(e){if(e.length===0)return".";e=I(e);const t=Zo.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"),z=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"),L=C(function(...e){e=e.map(n=>I(n));let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:ts();!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 I(e)},"toNamespacedPath");const mr=C(function(e){return Yo.exec(I(e))?.[1]??""},"extname");C(function(e,t){const r=L(e).replace(Ft,"$1").split("/"),n=L(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=I(e).replace(es,"").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 I(e.root?L(...t):t.join("/"))},"format");const rs=C((e,t)=>{const r=I(e).split("/").pop();return t&&r.endsWith(t)?r.slice(0,-t.length):r},"basename"),hr=C(function(e){const t=Qo.exec(e)?.[0]?.replaceAll("\\","/")??"",r=rs(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)=>qo(t,gr(e)),"matchesGlob");var ns=Object.defineProperty,ee=k((e,t)=>ns(e,"name",{value:t,configurable:!0}),"n$2"),os=Object.defineProperty,V=ee((e,t)=>os(e,"name",{value:t,configurable:!0}),"a");const ss=pe(import.meta.url),ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,is=V(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 ss(e)},"__cjs_getBuiltinModule"),{fileURLToPath:as}=is("node:url");var cs=Object.defineProperty,fe=V((e,t)=>cs(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");D(de,"de");k(de,"m$4");ee(de,"d");V(de,"getDefaultExportFromCjs");fe(de,"getDefaultExportFromCjs");function _e(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}m(_e,"me");D(_e,"je");k(_e,"h$2");ee(_e,"O");V(_e,"getDefaultExportFromNamespaceIfPresent");fe(_e,"getDefaultExportFromNamespaceIfPresent");function Ne(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}m(Ne,"he");D(Ne,"Oe");k(Ne,"x");ee(Ne,"P");V(Ne,"getDefaultExportFromNamespaceIfNotNamed");fe(Ne,"getDefaultExportFromNamespaceIfNotNamed");function Me(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=fe(V(ee(k(D(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:fe(function(){return e[n]},"get")})}),r}m(Me,"ye");D(Me,"Pe");k(Me,"y$3");ee(Me,"_");V(Me,"getAugmentedNamespace");fe(Me,"getAugmentedNamespace");var Wt,Lt;function ze(){return Lt||(Lt=1,Wt=["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"]),Wt}m(ze,"be");D(ze,"_e");k(ze,"w$1");ee(ze,"k");V(ze,"requireBinaryExtensions");var us=ze();const ls=de(us);var fs=Object.defineProperty,R=V((e,t)=>fs(e,"name",{value:t,configurable:!0}),"r");const ps=new Set(ls),ds=new Set(["/","\\",void 0]),Vt=Symbol.for("pathe:normalizedAlias"),gs=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,ms=R((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),We=R((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),yr=R(e=>{if(e[Vt])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([r],[n])=>ms(r,n)));for(const r in t)for(const n in t)n===r||r.startsWith(n)||t[r].startsWith(n)&&ds.has(t[r][n.length])&&(t[r]=t[n]+t[r].slice(n.length));return Object.defineProperty(t,Vt,{enumerable:!1,value:!0}),t},"normalizeAliases");R((e,t)=>{e=I(e),t=yr(t);for(const[r,n]of Object.entries(t)){if(!e.startsWith(r))continue;const i=We(r)?r.slice(0,-1):r;if(We(e[i.length]))return z(n,e.slice(r.length))}return e},"resolveAlias");R(e=>gs.exec(e)?.[2],"filename");R((e,t)=>{e=I(e),t=yr(t);for(const[r,n]of Object.entries(t).toReversed()){if(!e.startsWith(n))continue;const i=We(n)?n.slice(0,-1):n;if(We(e[i.length]))return z(r,e.slice(n.length))}return e},"reverseResolveAlias");const hs=/^(?:\.?\.[/\\]|\.\.\B)/,ys=/^(?:msys|cygwin)$/;R(e=>hs.test(e)||e==="..","isRelative");R(e=>ps.has(mr(e).slice(1).toLowerCase()),"isBinaryPath");const G=R(e=>I(e instanceof URL?as(e):e),"toPath");R(()=>{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:ys.test(e)},"isWindows");var bs=Object.defineProperty,vs=k((e,t)=>bs(e,"name",{value:t,configurable:!0}),"y$2"),$s=Object.defineProperty,br=vs((e,t)=>$s(e,"name",{value:t,configurable:!0}),"a");const ws=pe(import.meta.url),$e=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,js=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 ws(e)},"__cjs_getBuiltinModule"),{stat:xs,lstat:Os}=js("node:fs/promises");var ks=Object.defineProperty,Ut=br((e,t)=>ks(e,"name",{value:t,configurable:!0}),"s");const Ps=Ut(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?G(t.cwd):process.cwd();let n=L(r);const{root:i}=hr(n),c=G(t.stopAt??i),f=L(n,c),d=t.type??"file",v=Ut(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?xs:Os;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=G(y));const E=Q(y)?y:L(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 Ts=Object.defineProperty,Es=k((e,t)=>Ts(e,"name",{value:t,configurable:!0}),"p"),Ss=Object.defineProperty,vr=Es((e,t)=>Ss(e,"name",{value:t,configurable:!0}),"i");const Cs=pe(import.meta.url),we=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,As=vr(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 Cs(e)},"__cjs_getBuiltinModule"),{statSync:_s,lstatSync:Ns}=As("node:fs");var Ms=Object.defineProperty,qt=vr((e,t)=>Ms(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?G(t.cwd):process.cwd();let n=L(r);const{root:i}=hr(n),c=G(t.stopAt??i),f=L(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?_s:Ns;for(;n&&n!==f&&n!==i;){for(let $ of v(n)){if($===lr)return;if($===void 0)continue;Buffer.isBuffer($)?$=$.toString():$ instanceof URL&&($=G($));const y=Q($)?$:L(n,$);try{const E=w(y);if(d==="file"&&E.isFile()||d==="directory"&&E.isDirectory())return y}catch{}}n=Ae(n)}},"findUpSync");var Bs=Object.defineProperty,$r=k((e,t)=>Bs(e,"name",{value:t,configurable:!0}),"t$2"),Ds=Object.defineProperty,dt=$r((e,t)=>Ds(e,"name",{value:t,configurable:!0}),"s");const Is=pe(import.meta.url),je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Rs=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 Is(e)},"__cjs_getBuiltinModule"),{access:Fs}=Rs("node:fs/promises");var Ws=Object.defineProperty,Ls=dt((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"o");async function J(e,t=ur){ft(e),e=G(e);try{return await Fs(e,t),!0}catch{return!1}}m(J,"I$2");D(J,"V");k(J,"i$1");$r(J,"d");dt(J,"m");Ls(J,"isAccessible");var Vs=Object.defineProperty,wr=k((e,t)=>Vs(e,"name",{value:t,configurable:!0}),"t$1"),Us=Object.defineProperty,gt=wr((e,t)=>Us(e,"name",{value:t,configurable:!0}),"t");const qs=pe(import.meta.url),xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ks=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 qs(e)},"__cjs_getBuiltinModule"),{accessSync:Gs}=Ks("node:fs");var Js=Object.defineProperty,Hs=gt((e,t)=>Js(e,"name",{value:t,configurable:!0}),"o");function H(e,t=ur){ft(e),e=G(e);try{return Gs(e,t),!0}catch{return!1}}m(H,"F$3");D(H,"X");k(H,"i");wr(H,"d");gt(H,"m");Hs(H,"isAccessibleSync");var Zs=Object.defineProperty,jr=k((e,t)=>Zs(e,"name",{value:t,configurable:!0}),"o"),Xs=Object.defineProperty,xr=jr((e,t)=>Xs(e,"name",{value:t,configurable:!0}),"o"),Ys=Object.defineProperty,Qs=xr((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"o");class Or extends Error{static{m(this,"wt")}static{D(this,"$t")}static{k(this,"s")}static{jr(this,"u")}static{xr(this,"n")}static{Qs(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 ei=Object.defineProperty,mt=k((e,t)=>ei(e,"name",{value:t,configurable:!0}),"u");const Le=mt((e,t)=>(t?.create&&Fo(e),e),"useDirectory");mt(async(e,t)=>{if(ue.CACHE_DIR&&!["0","1","false","true"].includes(ue.CACHE_DIR))return Le(z(ue.CACHE_DIR,e),t);const r=await Ps("package.json",{cwd:t?.cwd??cr(),type:"file"});if(!r){if(t?.throwError)throw new Or("No such file or directory found.");return}const n=z(Ae(r),"node_modules"),i=z(n,".cache"),c=z(i,e);if(!(ce(c)&&!await J(c,le))&&!(ce(i)&&!await J(i,le))&&!(ce(n)&&!await J(n,le)))return Le(c,t)},"findCacheDirectory");const ti=mt((e,t)=>{if(ue.CACHE_DIR&&!["0","1","false","true"].includes(ue.CACHE_DIR))return Le(z(ue.CACHE_DIR,e),t);const r=zs("package.json",{cwd:t?.cwd??cr(),type:"file"});if(!r){if(t?.throwError)throw new Or("No such file or directory found.");return}const n=z(Ae(r),"node_modules"),i=z(n,".cache"),c=z(i,e);if(!(ce(c)&&!H(c,le))&&!(ce(i)&&!H(i,le))&&!(ce(n)&&!H(n,le)))return Le(c,t)},"findCacheDirectorySync"),kr=ti;var ri=Object.defineProperty,ni=m((e,t)=>ri(e,"name",{value:t,configurable:!0}),"i$7"),oi=Object.defineProperty,si=ni((e,t)=>oi(e,"name",{value:t,configurable:!0}),"r"),ii=Object.defineProperty,ai=si((e,t)=>ii(e,"name",{value:t,configurable:!0}),"i");const Kt=ai(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var ci=Object.defineProperty,ui=m((e,t)=>ci(e,"name",{value:t,configurable:!0}),"i$6"),li=Object.defineProperty,Pr=ui((e,t)=>li(e,"name",{value:t,configurable:!0}),"s");const fi=Se(import.meta.url),Oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,pi=Pr(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 fi(e)},"__cjs_getBuiltinModule"),{lstatSync:Gt,mkdirSync:di}=pi("node:fs");var gi=Object.defineProperty,mi=Pr((e,t)=>gi(e,"name",{value:t,configurable:!0}),"o");const Ve=mi(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{di(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 hi=Object.defineProperty,yi=m((e,t)=>hi(e,"name",{value:t,configurable:!0}),"x$2"),bi=Object.defineProperty,Tr=yi((e,t)=>bi(e,"name",{value:t,configurable:!0}),"$"),vi=Object.defineProperty,$i=Tr((e,t)=>vi(e,"name",{value:t,configurable:!0}),"A"),wi=Object.defineProperty,ht=$i((e,t)=>wi(e,"name",{value:t,configurable:!0}),"$"),ji=Object.defineProperty,xi=ht((e,t)=>ji(e,"name",{value:t,configurable:!0}),"r$1");const Oi=xi(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
2
|
-
`),"normalizeLF"),
|
|
3
|
-
`);typeof
|
|
4
|
-
`,
|
|
5
|
-
`);return
|
|
6
|
-
${
|
|
1
|
+
var ko=Object.defineProperty;var v=(e,t)=>ko(e,"name",{value:t,configurable:!0});import{createRequire as Po}from"node:module";import{f as Cn,$ as Co,U as Mn,i as J,_ as cn,K as at,s as Mo,M as q,a as _n}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{createJiti as zn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const Eo=Po(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Jr=v(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 Eo(e)},"__cjs_getBuiltinModule"),{createHash:Tn}=Jr("node:crypto"),{readdirSync:Sn,readFileSync:Ao,copyFileSync:To,unlinkSync:So}=Jr("node:fs"),{createRequire:it}=Jr("node:module");var _o=Object.defineProperty,H=v((e,t)=>_o(e,"name",{value:t,configurable:!0}),"L"),zo=Object.defineProperty,A=H((e,t)=>zo(e,"name",{value:t,configurable:!0}),"y");const No=it(import.meta.url),be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Nn=A(e=>{if(typeof be<"u"&&be.versions&&be.versions.node){const[t,n]=be.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return be.getBuiltinModule(e)}return No(e)},"__cjs_getBuiltinModule"),{existsSync:ve}=Nn("node:fs"),{env:$e,cwd:Bn}=be,{createRequire:Oe}=Nn("node:module"),Rn=0,xe=2,In=Symbol("findUpStop");var Bo=Object.defineProperty,Ro=A((e,t)=>Bo(e,"name",{value:t,configurable:!0}),"t$4"),Io=Object.defineProperty,Do=Ro((e,t)=>Io(e,"name",{value:t,configurable:!0}),"t"),Fo=Object.defineProperty,Wo=Do((e,t)=>Fo(e,"name",{value:t,configurable:!0}),"n");const Hr=Wo(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Lo=Object.defineProperty,qo=A((e,t)=>Lo(e,"name",{value:t,configurable:!0}),"i$4"),Uo=Object.defineProperty,Vo=qo((e,t)=>Uo(e,"name",{value:t,configurable:!0}),"r"),Zo=Object.defineProperty,Ko=Vo((e,t)=>Zo(e,"name",{value:t,configurable:!0}),"i");const un=Ko(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Go=Object.defineProperty,Jo=A((e,t)=>Go(e,"name",{value:t,configurable:!0}),"i$3"),Ho=Object.defineProperty,Dn=Jo((e,t)=>Ho(e,"name",{value:t,configurable:!0}),"s");const Xo=Oe(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Yo=Dn(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 Xo(e)},"__cjs_getBuiltinModule"),{lstatSync:ln,mkdirSync:Qo}=Yo("node:fs");var es=Object.defineProperty,ts=Dn((e,t)=>es(e,"name",{value:t,configurable:!0}),"o");const rs=ts(e=>{Hr(e);try{const t=ln(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(un(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=ln(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(un(n))}'`,{cause:t})}},"ensureDirSync");var ns=Object.defineProperty,os=A((e,t)=>ns(e,"name",{value:t,configurable:!0}),"$e$1"),ss=Object.defineProperty,Xr=os((e,t)=>ss(e,"name",{value:t,configurable:!0}),"W"),is=Object.defineProperty,y=Xr((e,t)=>is(e,"name",{value:t,configurable:!0}),"u$1");let fn=y(()=>{var e=(()=>{var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=y((r,o)=>{for(var i in o)t(r,i,{get:o[i],enumerable:!0})},"ne"),g=y((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:y(()=>o[a],"get"),enumerable:!(c=n(o,a))||c.enumerable});return r},"ae"),h=y(r=>g(t({},"__esModule",{value:!0}),r),"oe"),x={};l(x,{zeptomatch:y(()=>Ze,"zeptomatch")});var O=y(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,m=f.length;p<m;p++)i.push(f[p])}return Array.from(o)},"M"),j=y(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"),$=y((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(m=>$(m,o,i)).filter(Boolean));if(p?.length){const m=r.children.some(K=>!K.regex||!(K.partial??o)),k=p.length>1||a&&(!f.length||m);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),M=y((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=$(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=y(r=>Array.from(new Set(r)),"ue"),P=y((r,o,i)=>P.compile(r,i).test(o),"R");P.compile=(r,o)=>{const i=o?.partial??!1,c=M(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,V=y((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ne=V,Pe=y(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),Ee=Pe,Q=y(r=>Array.isArray(r),"j"),B=y(r=>typeof r=="function","_"),Ae=y(r=>r.length===0,"he"),Te=(()=>{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))})(),Et=y(r=>typeof r=="number","de"),At=y(r=>typeof r=="object"&&r!==null,"xe"),Tt=y(r=>r instanceof RegExp,"me"),St=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ct=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),Se=y(r=>typeof r=="string","A"),_=y(r=>r===void 0,"f"),Mt=y(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"),Ce=y((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=y((r,o)=>Q(r)?_t(r,o):Se(r)?Me(r,o):zt(r,o),"i"),_t=y((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 m=a.slice(f,p),k=B(o)?o(m,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),zt=y((r,o)=>{if(Ct(r))return Me(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return St(r)&&B(o)&&!Te(o)?Nt(a,o):Bt(a,o)}},"$e"),Nt=y((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 m=o(...f,a,`${c}`);_(m)||i.output.push(m)}return i.index=p,!0}else return!1},"Ee"),Bt=y((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"),Me=y((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"),ue=y((r,o,i,c)=>{const a=z(r),f=o>1;return fe(le(ze(p=>{let m=0;for(;m<i;){const k=p.index;if(!a(p)||(m+=1,p.index===k))break}return m>=o},f),c))},"k"),_e=y((r,o)=>ue(r,0,1,o),"L"),ee=y((r,o)=>ue(r,0,1/0,o),"$"),Rt=y((r,o)=>ue(r,1,1/0,o),"Re"),F=y((r,o)=>{const i=r.map(z);return fe(le(ze(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),S=y((r,o)=>{const i=r.map(z);return fe(le(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),ze=y((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,m=c(a);return!m&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),le=y((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"),fe=(()=>{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,m=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=m.queue;if(p<=m.indexMax){const G=m.store||(m.store=new Map);if(k.length){for(let L=0,Wr=k.length;L<Wr;L+=2){const Lr=k[L*2],qr=k[L*2+1];G.set(Lr,qr)}k.length=0}const C=G.get(p);if(C===!1)return!1;if(Et(C))return a.index=C,!0;if(C)return a.index=C.index,C.output?.length&&a.output.push(...C.output),!0}const K=a.output.length,Fr=i(a);if(m.indexMax=Math.max(m.indexMax,p),Fr){const G=a.index,C=a.output.length;if(C>K){const L=a.output.slice(K,C);k.push(p,{index:G,output:L})}else k.push(p,G);return!0}else return k.push(p,!1),!1}}})(),Ne=y(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=Mt(r=>{if(B(r))return Ae(r)?Ne(r):r;if(Se(r)||Tt(r))return d(r);if(Q(r))return F(r);if(At(r))return S(Object.values(r));throw new Error("Invalid rule")}),R=y(r=>r,"d"),It=y(r=>typeof r=="string","ke"),Dt=y(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 m=r(c,a);return f.set(c,m),m}},"Be"),Ft=y(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),Wt=d(/\\./,R),Lt=d(/./,R),qt=d(/\*\*\*+/,"*"),Ut=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),Vt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Zt=ee(S([Wt,qt,Ut,Vt,Lt])),Kt=Zt,Gt=y(r=>Ce(r,Kt,{memoization:!1}).join(""),"Ie"),Jt=Gt,Be="abcdefghijklmnopqrstuvwxyz",Ht=y(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Be[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Re=y(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Be.indexOf(r[i])+1;return o},"V"),pe=y((r,o)=>{if(o<r)return pe(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Xt=y((r,o,i)=>pe(r,o).map(c=>String(c).padStart(i,"0")),"qe"),Ie=y((r,o)=>pe(Re(r),Re(o)).map(Ht),"W"),w=y(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=y(r=>({children:r}),"y"),W=(()=>{const r=y((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=y(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Yt=d(/\\./,w),Qt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),er=d(/[\\\/]/,N),tr=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),rr=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${Ze.compile(o).source}$).*?`)),nr=d(/^(!!)+/),or=S([rr,nr]),sr=d(/\/(\*\*\/)+/,()=>Z([W([N(),w(".+?"),N()]),N()])),ir=d(/^(\*\*\/)+/,()=>Z([w("^"),W([w(".*?"),N()])])),ar=d(/\/(\*\*)$/,()=>Z([W([N(),w(".*?")]),w("$")])),cr=d(/\*\*/,()=>w(".*?")),De=S([sr,ir,ar,cr]),ur=d(/\*\/(?!\*\*\/|\*$)/,()=>W([w("[^\\\\/]*?"),N()])),lr=d(/\*/,()=>w("[^\\\\/]*")),Fe=S([ur,lr]),We=d("?",()=>w("[^\\\\/]")),fr=d("[",R),pr=d("]",R),dr=d(/[!^]/,"^\\\\/"),gr=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),hr=d(/\\./,R),mr=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),yr=d(/[\\\/]/,"\\\\/"),br=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),vr=S([hr,mr,yr,gr,br]),Le=F([fr,_e(dr),ee(vr),pr],r=>w(r.join(""))),$r=d("{","(?:"),xr=d("}",")"),wr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Xt(+o,+i,Math.min(o.length,i.length)).join("|")),jr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>Ie(o,i).join("|")),Or=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>Ie(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),kr=S([wr,jr,Or]),qe=F([$r,kr,xr],r=>w(r.join(""))),Pr=d("{"),Er=d("}"),Ar=d(","),Tr=d(/\\./,w),Sr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Cr=d(/[\\\/]/,N),Mr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),_r=Ne(()=>Ve),zr=d("",()=>w("(?:)")),Nr=Rt(S([De,Fe,We,Le,qe,_r,Tr,Sr,Cr,Mr]),W),Ue=S([Nr,zr]),Ve=F([Pr,_e(F([Ue,ee(F([Ar,Ue]))])),Er],Z),Br=ee(S([or,De,Fe,We,Le,qe,Ve,Yt,Qt,er,tr]),W),Rr=Br,Ir=y(r=>Ce(r,Rr,{memoization:!1})[0],"kr"),Dr=Ir,de=y((r,o,i)=>de.compile(r,i).test(o),"N");de.compile=(()=>{const r=Ft((i,c)=>ne(Dr(Jt(i)),c)),o=Dt((i,c)=>Ee(i.map(a=>r(a,c))));return(i,c)=>It(i)?r(i,c):o(i,c)})();var Ze=de;return h(x)})();return e.default||e},"_lazyMatch"),Ur;const as=y((e,t)=>(Ur||(Ur=fn(),fn=null),Ur(e,t)),"default");var cs=Object.defineProperty,us=Xr((e,t)=>cs(e,"name",{value:t,configurable:!0}),"t$1");const ls=/^[A-Z]:\//i,X=us((e="")=>e&&e.replaceAll("\\","/").replace(ls,t=>t.toUpperCase()),"normalizeWindowsPath");var fs=Object.defineProperty,I=Xr((e,t)=>fs(e,"name",{value:t,configurable:!0}),"r");const ps=/^[/\\]{2}/,ds=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Fn=/^[A-Z]:$/i,pn=/^\/([A-Z]:)?$/i,gs=/.(\.[^./]+)$/,hs=/^[/\\]|^[a-z]:[/\\]/i,ms=/\/$/,ys=I(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Wn=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 x=n.lastIndexOf("/");x===-1?(n="",s=0):(n=n.slice(0,x),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"),ge=I(e=>ds.test(e),"isAbsolute"),Ln=I(function(e){if(e.length===0)return".";e=X(e);const t=ps.exec(e),n=ge(e),s=e.at(-1)==="/";return e=Wn(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Fn.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!ge(e)?`/${e}`:e)},"normalize"),qn=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 Ln(t)},"join"),te=I(function(...e){e=e.map(s=>X(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:ys();!u||u.length===0||(t=`${u}/${t}`,n=ge(u))}return t=Wn(t,!n),n&&!ge(t)?`/${t}`:t.length>0?t:"."},"resolve");I(function(e){return X(e)},"toNamespacedPath");const Un=I(function(e){return gs.exec(X(e))?.[1]??""},"extname");I(function(e,t){const n=te(e).replace(pn,"$1").split("/"),s=te(t).replace(pn,"$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 Yr=I(e=>{const t=X(e).replace(ms,"").split("/").slice(0,-1);return t.length===1&&Fn.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(ge(e)?"/":".")},"dirname");I(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return X(e.root?te(...t):t.join("/"))},"format");const bs=I((e,t)=>{const n=X(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename"),Vn=I(function(e){const t=hs.exec(e)?.[0]?.replaceAll("\\","/")??"",n=bs(e),s=Un(n);return{base:n,dir:Yr(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");I((e,t)=>as(t,Ln(e)),"matchesGlob");var vs=Object.defineProperty,he=A((e,t)=>vs(e,"name",{value:t,configurable:!0}),"n$2"),$s=Object.defineProperty,re=he((e,t)=>$s(e,"name",{value:t,configurable:!0}),"a");const xs=Oe(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ws=re(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 xs(e)},"__cjs_getBuiltinModule"),{fileURLToPath:js}=ws("node:url");var Os=Object.defineProperty,we=re((e,t)=>Os(e,"name",{value:t,configurable:!0}),"t$1");function ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}v(ke,"De");H(ke,"Fe");A(ke,"m$5");he(ke,"d");re(ke,"getDefaultExportFromCjs");we(ke,"getDefaultExportFromCjs");function ct(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}v(ct,"Fe");H(ct,"$r");A(ct,"h");he(ct,"O");re(ct,"getDefaultExportFromNamespaceIfPresent");we(ct,"getDefaultExportFromNamespaceIfPresent");function ut(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}v(ut,"Ze");H(ut,"br");A(ut,"x");he(ut,"P");re(ut,"getDefaultExportFromNamespaceIfNotNamed");we(ut,"getDefaultExportFromNamespaceIfNotNamed");function lt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=we(re(he(A(H(v(function s(){var u=!1;try{u=this instanceof s}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"l"),"l"),"a"),"s"),"a"),"a");n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var u=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:we(function(){return e[s]},"get")})}),n}v(lt,"qe");H(lt,"xr");A(lt,"y$2");he(lt,"_");re(lt,"getAugmentedNamespace");we(lt,"getAugmentedNamespace");var dn,gn;function ft(){return gn||(gn=1,dn=["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"]),dn}v(ft,"Ue");H(ft,"yr");A(ft,"w$1");he(ft,"k");re(ft,"requireBinaryExtensions");var ks=ft();const Ps=ke(ks);var Es=Object.defineProperty,Y=re((e,t)=>Es(e,"name",{value:t,configurable:!0}),"r");const As=new Set(Ps),Ts=new Set(["/","\\",void 0]),hn=Symbol.for("pathe:normalizedAlias"),Ss=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Cs=Y((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),mt=Y((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),Zn=Y(e=>{if(e[hn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([n],[s])=>Cs(n,s)));for(const n in t)for(const s in t)s===n||n.startsWith(s)||t[n].startsWith(s)&&Ts.has(t[n][s.length])&&(t[n]=t[s]+t[n].slice(s.length));return Object.defineProperty(t,hn,{enumerable:!1,value:!0}),t},"normalizeAliases");Y((e,t)=>{e=X(e),t=Zn(t);for(const[n,s]of Object.entries(t)){if(!e.startsWith(n))continue;const u=mt(n)?n.slice(0,-1):n;if(mt(e[u.length]))return qn(s,e.slice(n.length))}return e},"resolveAlias");Y(e=>Ss.exec(e)?.[2],"filename");Y((e,t)=>{e=X(e),t=Zn(t);for(const[n,s]of Object.entries(t).toReversed()){if(!e.startsWith(s))continue;const u=mt(s)?s.slice(0,-1):s;if(mt(e[u.length]))return qn(n,e.slice(s.length))}return e},"reverseResolveAlias");const Ms=/^(?:\.?\.[/\\]|\.\.\B)/,_s=/^(?:msys|cygwin)$/;Y(e=>Ms.test(e)||e==="..","isRelative");Y(e=>As.has(Un(e).slice(1).toLowerCase()),"isBinaryPath");const je=Y(e=>X(e instanceof URL?js(e):e),"toPath");Y(()=>{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:_s.test(e)},"isWindows");var zs=Object.defineProperty,Ns=A((e,t)=>zs(e,"name",{value:t,configurable:!0}),"p"),Bs=Object.defineProperty,Kn=Ns((e,t)=>Bs(e,"name",{value:t,configurable:!0}),"a");const Rs=Oe(import.meta.url),He=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Gn=Kn(e=>{if(typeof He<"u"&&He.versions&&He.versions.node){const[t,n]=He.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return He.getBuiltinModule(e)}return Rs(e)},"__cjs_getBuiltinModule"),{stat:Is,lstat:Ds}=Gn("node:fs/promises"),{fileURLToPath:Fs}=Gn("node:url");var Ws=Object.defineProperty,mn=Kn((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"n");const Ls=mn(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?je(t.cwd):process.cwd();let s=te(n);const{root:u}=Vn(s),l=je(t.stopAt??u),g=te(s,l),h=t.type??"file",x=mn(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?Is:Ds;for(;s&&s!==g&&s!==u;){const j=await x(s);for(let $ of j){if($===In)return;if($===void 0)continue;Buffer.isBuffer($)?$=$.toString():$ instanceof URL&&($=Fs($));const M=ge($)?$:te(s,$);try{const E=await O(M);if(h==="file"&&E.isFile()||h==="directory"&&E.isDirectory())return M}catch{}}s=Yr(s)}},"findUp");var qs=Object.defineProperty,Us=A((e,t)=>qs(e,"name",{value:t,configurable:!0}),"u$3"),Vs=Object.defineProperty,Jn=Us((e,t)=>Vs(e,"name",{value:t,configurable:!0}),"i");const Zs=Oe(import.meta.url),Xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Hn=Jn(e=>{if(typeof Xe<"u"&&Xe.versions&&Xe.versions.node){const[t,n]=Xe.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Xe.getBuiltinModule(e)}return Zs(e)},"__cjs_getBuiltinModule"),{statSync:Ks,lstatSync:Gs}=Hn("node:fs"),{fileURLToPath:Js}=Hn("node:url");var Hs=Object.defineProperty,yn=Jn((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"o");const Xs=yn((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?je(t.cwd):process.cwd();let s=te(n);const{root:u}=Vn(s),l=je(t.stopAt??u),g=te(s,l),h=t.type??"file",x=yn(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?Ks:Gs;for(;s&&s!==g&&s!==u;){for(let j of x(s)){if(j===In)return;if(j===void 0)continue;Buffer.isBuffer(j)?j=j.toString():j instanceof URL&&(j=Js(j));const $=ge(j)?j:te(s,j);try{const M=O($);if(h==="file"&&M.isFile()||h==="directory"&&M.isDirectory())return $}catch{}}s=Yr(s)}},"findUpSync");var Ys=Object.defineProperty,Xn=A((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"t$2"),Qs=Object.defineProperty,Qr=Xn((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"s");const ei=Oe(import.meta.url),Ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ti=Qr(e=>{if(typeof Ye<"u"&&Ye.versions&&Ye.versions.node){const[t,n]=Ye.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ye.getBuiltinModule(e)}return ei(e)},"__cjs_getBuiltinModule"),{access:ri}=ti("node:fs/promises");var ni=Object.defineProperty,oi=Qr((e,t)=>ni(e,"name",{value:t,configurable:!0}),"o");async function se(e,t=Rn){Hr(e),e=je(e);try{return await ri(e,t),!0}catch{return!1}}v(se,"te");H(se,"ue");A(se,"i$1");Xn(se,"d");Qr(se,"m");oi(se,"isAccessible");var si=Object.defineProperty,Yn=A((e,t)=>si(e,"name",{value:t,configurable:!0}),"t$1"),ii=Object.defineProperty,en=Yn((e,t)=>ii(e,"name",{value:t,configurable:!0}),"t");const ai=Oe(import.meta.url),Qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ci=en(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 ai(e)},"__cjs_getBuiltinModule"),{accessSync:ui}=ci("node:fs");var li=Object.defineProperty,fi=en((e,t)=>li(e,"name",{value:t,configurable:!0}),"o");function ie(e,t=Rn){Hr(e),e=je(e);try{return ui(e,t),!0}catch{return!1}}v(ie,"ne");H(ie,"le");A(ie,"i");Yn(ie,"d");en(ie,"m");fi(ie,"isAccessibleSync");var pi=Object.defineProperty,Qn=A((e,t)=>pi(e,"name",{value:t,configurable:!0}),"o"),di=Object.defineProperty,eo=Qn((e,t)=>di(e,"name",{value:t,configurable:!0}),"o"),gi=Object.defineProperty,hi=eo((e,t)=>gi(e,"name",{value:t,configurable:!0}),"o");let to=class extends Error{static{v(this,"ir")}static{H(this,"nn")}static{A(this,"s")}static{Qn(this,"u")}static{eo(this,"n")}static{hi(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 mi=Object.defineProperty,yi=A((e,t)=>mi(e,"name",{value:t,configurable:!0}),"$e"),bi=Object.defineProperty,tn=yi((e,t)=>bi(e,"name",{value:t,configurable:!0}),"W"),vi=Object.defineProperty,b=tn((e,t)=>vi(e,"name",{value:t,configurable:!0}),"u$1");let bn=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"),x={};l(x,{zeptomatch:b(()=>Ze,"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,m=f.length;p<m;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"),$=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(m=>$(m,o,i)).filter(Boolean));if(p?.length){const m=r.children.some(K=>!K.regex||!(K.partial??o)),k=p.length>1||a&&(!f.length||m);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),M=b((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=$(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=M(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,V=b((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ne=V,Pe=b(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),Ee=Pe,Q=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),Ae=b(r=>r.length===0,"he"),Te=(()=>{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))})(),Et=b(r=>typeof r=="number","de"),At=b(r=>typeof r=="object"&&r!==null,"xe"),Tt=b(r=>r instanceof RegExp,"me"),St=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ct=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),Se=b(r=>typeof r=="string","A"),_=b(r=>r===void 0,"f"),Mt=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"),Ce=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)=>Q(r)?_t(r,o):Se(r)?Me(r,o):zt(r,o),"i"),_t=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 m=a.slice(f,p),k=B(o)?o(m,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),zt=b((r,o)=>{if(Ct(r))return Me(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return St(r)&&B(o)&&!Te(o)?Nt(a,o):Bt(a,o)}},"$e"),Nt=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 m=o(...f,a,`${c}`);_(m)||i.output.push(m)}return i.index=p,!0}else return!1},"Ee"),Bt=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"),Me=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"),ue=b((r,o,i,c)=>{const a=z(r),f=o>1;return fe(le(ze(p=>{let m=0;for(;m<i;){const k=p.index;if(!a(p)||(m+=1,p.index===k))break}return m>=o},f),c))},"k"),_e=b((r,o)=>ue(r,0,1,o),"L"),ee=b((r,o)=>ue(r,0,1/0,o),"$"),Rt=b((r,o)=>ue(r,1,1/0,o),"Re"),F=b((r,o)=>{const i=r.map(z);return fe(le(ze(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),S=b((r,o)=>{const i=r.map(z);return fe(le(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),ze=b((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,m=c(a);return!m&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),le=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"),fe=(()=>{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,m=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=m.queue;if(p<=m.indexMax){const G=m.store||(m.store=new Map);if(k.length){for(let L=0,Wr=k.length;L<Wr;L+=2){const Lr=k[L*2],qr=k[L*2+1];G.set(Lr,qr)}k.length=0}const C=G.get(p);if(C===!1)return!1;if(Et(C))return a.index=C,!0;if(C)return a.index=C.index,C.output?.length&&a.output.push(...C.output),!0}const K=a.output.length,Fr=i(a);if(m.indexMax=Math.max(m.indexMax,p),Fr){const G=a.index,C=a.output.length;if(C>K){const L=a.output.slice(K,C);k.push(p,{index:G,output:L})}else k.push(p,G);return!0}else return k.push(p,!1),!1}}})(),Ne=b(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=Mt(r=>{if(B(r))return Ae(r)?Ne(r):r;if(Se(r)||Tt(r))return d(r);if(Q(r))return F(r);if(At(r))return S(Object.values(r));throw new Error("Invalid rule")}),R=b(r=>r,"d"),It=b(r=>typeof r=="string","ke"),Dt=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 m=r(c,a);return f.set(c,m),m}},"Be"),Ft=b(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),Wt=d(/\\./,R),Lt=d(/./,R),qt=d(/\*\*\*+/,"*"),Ut=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),Vt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Zt=ee(S([Wt,qt,Ut,Vt,Lt])),Kt=Zt,Gt=b(r=>Ce(r,Kt,{memoization:!1}).join(""),"Ie"),Jt=Gt,Be="abcdefghijklmnopqrstuvwxyz",Ht=b(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Be[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Re=b(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Be.indexOf(r[i])+1;return o},"V"),pe=b((r,o)=>{if(o<r)return pe(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Xt=b((r,o,i)=>pe(r,o).map(c=>String(c).padStart(i,"0")),"qe"),Ie=b((r,o)=>pe(Re(r),Re(o)).map(Ht),"W"),w=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=b(r=>({children:r}),"y"),W=(()=>{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"),Yt=d(/\\./,w),Qt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),er=d(/[\\\/]/,N),tr=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),rr=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${Ze.compile(o).source}$).*?`)),nr=d(/^(!!)+/),or=S([rr,nr]),sr=d(/\/(\*\*\/)+/,()=>Z([W([N(),w(".+?"),N()]),N()])),ir=d(/^(\*\*\/)+/,()=>Z([w("^"),W([w(".*?"),N()])])),ar=d(/\/(\*\*)$/,()=>Z([W([N(),w(".*?")]),w("$")])),cr=d(/\*\*/,()=>w(".*?")),De=S([sr,ir,ar,cr]),ur=d(/\*\/(?!\*\*\/|\*$)/,()=>W([w("[^\\\\/]*?"),N()])),lr=d(/\*/,()=>w("[^\\\\/]*")),Fe=S([ur,lr]),We=d("?",()=>w("[^\\\\/]")),fr=d("[",R),pr=d("]",R),dr=d(/[!^]/,"^\\\\/"),gr=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),hr=d(/\\./,R),mr=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),yr=d(/[\\\/]/,"\\\\/"),br=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),vr=S([hr,mr,yr,gr,br]),Le=F([fr,_e(dr),ee(vr),pr],r=>w(r.join(""))),$r=d("{","(?:"),xr=d("}",")"),wr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Xt(+o,+i,Math.min(o.length,i.length)).join("|")),jr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>Ie(o,i).join("|")),Or=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>Ie(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),kr=S([wr,jr,Or]),qe=F([$r,kr,xr],r=>w(r.join(""))),Pr=d("{"),Er=d("}"),Ar=d(","),Tr=d(/\\./,w),Sr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Cr=d(/[\\\/]/,N),Mr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),_r=Ne(()=>Ve),zr=d("",()=>w("(?:)")),Nr=Rt(S([De,Fe,We,Le,qe,_r,Tr,Sr,Cr,Mr]),W),Ue=S([Nr,zr]),Ve=F([Pr,_e(F([Ue,ee(F([Ar,Ue]))])),Er],Z),Br=ee(S([or,De,Fe,We,Le,qe,Ve,Yt,Qt,er,tr]),W),Rr=Br,Ir=b(r=>Ce(r,Rr,{memoization:!1})[0],"kr"),Dr=Ir,de=b((r,o,i)=>de.compile(r,i).test(o),"N");de.compile=(()=>{const r=Ft((i,c)=>ne(Dr(Jt(i)),c)),o=Dt((i,c)=>Ee(i.map(a=>r(a,c))));return(i,c)=>It(i)?r(i,c):o(i,c)})();var Ze=de;return h(x)})();return e.default||e},"_lazyMatch"),Vr;const $i=b((e,t)=>(Vr||(Vr=bn(),bn=null),Vr(e,t)),"default");var xi=Object.defineProperty,wi=tn((e,t)=>xi(e,"name",{value:t,configurable:!0}),"t$1");const ji=/^[A-Z]:\//i,me=wi((e="")=>e&&e.replaceAll("\\","/").replace(ji,t=>t.toUpperCase()),"normalizeWindowsPath");var Oi=Object.defineProperty,D=tn((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"r");const ki=/^[/\\]{2}/,Pi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,ro=/^[A-Z]:$/i,vn=/^\/([A-Z]:)?$/i,Ei=/.(\.[^./]+)$/,Ai=/^[/\\]|^[a-z]:[/\\]/i,Ti=/\/$/,Si=D(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),no=D((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 x=n.lastIndexOf("/");x===-1?(n="",s=0):(n=n.slice(0,x),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"),nt=D(e=>Pi.test(e),"isAbsolute"),oo=D(function(e){if(e.length===0)return".";e=me(e);const t=ki.exec(e),n=nt(e),s=e.at(-1)==="/";return e=no(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),ro.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!nt(e)?`/${e}`:e)},"normalize"),oe=D((...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 oo(t)},"join"),Gr=D(function(...e){e=e.map(s=>me(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:Si();!u||u.length===0||(t=`${u}/${t}`,n=nt(u))}return t=no(t,!n),n&&!nt(t)?`/${t}`:t.length>0?t:"."},"resolve");D(function(e){return me(e)},"toNamespacedPath");const Ci=D(function(e){return Ei.exec(me(e))?.[1]??""},"extname");D(function(e,t){const n=Gr(e).replace(vn,"$1").split("/"),s=Gr(t).replace(vn,"$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 rn=D(e=>{const t=me(e).replace(Ti,"").split("/").slice(0,-1);return t.length===1&&ro.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(nt(e)?"/":".")},"dirname");D(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return me(e.root?Gr(...t):t.join("/"))},"format");const Mi=D((e,t)=>{const n=me(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename");D(function(e){const t=Ai.exec(e)?.[0]?.replaceAll("\\","/")??"",n=Mi(e),s=Ci(n);return{base:n,dir:rn(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");D((e,t)=>$i(t,oo(e)),"matchesGlob");var _i=Object.defineProperty,nn=A((e,t)=>_i(e,"name",{value:t,configurable:!0}),"u");const yt=nn((e,t)=>(t?.create&&rs(e),e),"useDirectory");nn(async(e,t)=>{if($e.CACHE_DIR&&!["0","1","false","true"].includes($e.CACHE_DIR))return yt(oe($e.CACHE_DIR,e),t);const n=await Ls("package.json",{cwd:t?.cwd??Bn(),type:"file"});if(!n){if(t?.throwError)throw new to("No such file or directory found.");return}const s=oe(rn(n),"node_modules"),u=oe(s,".cache"),l=oe(u,e);if(!(ve(l)&&!await se(l,xe))&&!(ve(u)&&!await se(u,xe))&&!(ve(s)&&!await se(s,xe)))return yt(l,t)},"findCacheDirectory");const zi=nn((e,t)=>{if($e.CACHE_DIR&&!["0","1","false","true"].includes($e.CACHE_DIR))return yt(oe($e.CACHE_DIR,e),t);const n=Xs("package.json",{cwd:t?.cwd??Bn(),type:"file"});if(!n){if(t?.throwError)throw new to("No such file or directory found.");return}const s=oe(rn(n),"node_modules"),u=oe(s,".cache"),l=oe(u,e);if(!(ve(l)&&!ie(l,xe))&&!(ve(u)&&!ie(u,xe))&&!(ve(s)&&!ie(s,xe)))return yt(l,t)},"findCacheDirectorySync"),so=zi;var Ni=Object.defineProperty,Bi=v((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"i$7"),Ri=Object.defineProperty,Ii=Bi((e,t)=>Ri(e,"name",{value:t,configurable:!0}),"r"),Di=Object.defineProperty,Fi=Ii((e,t)=>Di(e,"name",{value:t,configurable:!0}),"i");const $n=Fi(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Wi=Object.defineProperty,Li=v((e,t)=>Wi(e,"name",{value:t,configurable:!0}),"i$6"),qi=Object.defineProperty,io=Li((e,t)=>qi(e,"name",{value:t,configurable:!0}),"s");const Ui=it(import.meta.url),et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vi=io(e=>{if(typeof et<"u"&&et.versions&&et.versions.node){const[t,n]=et.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return et.getBuiltinModule(e)}return Ui(e)},"__cjs_getBuiltinModule"),{lstatSync:xn,mkdirSync:Zi}=Vi("node:fs");var Ki=Object.defineProperty,Gi=io((e,t)=>Ki(e,"name",{value:t,configurable:!0}),"o");const bt=Gi(e=>{Cn(e);try{const t=xn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String($n(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Zi(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=xn(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String($n(n))}'`,{cause:t})}},"ensureDirSync");var Ji=Object.defineProperty,Hi=v((e,t)=>Ji(e,"name",{value:t,configurable:!0}),"x$2"),Xi=Object.defineProperty,ao=Hi((e,t)=>Xi(e,"name",{value:t,configurable:!0}),"$"),Yi=Object.defineProperty,Qi=ao((e,t)=>Yi(e,"name",{value:t,configurable:!0}),"A"),ea=Object.defineProperty,on=Qi((e,t)=>ea(e,"name",{value:t,configurable:!0}),"$"),ta=Object.defineProperty,ra=on((e,t)=>ta(e,"name",{value:t,configurable:!0}),"r$1");const na=ra(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
2
|
+
`),"normalizeLF"),oa=globalThis.process??Object.create(null),wn={versions:{}},jn=new Proxy(oa,{get(e,t){if(t in e)return e[t];if(t in wn)return wn[t]}});var sa=Object.defineProperty,ia=on((e,t)=>sa(e,"name",{value:t,configurable:!0}),"b");const aa=ia((e,t,n,s)=>{const u={column:0,line:-1,...e.start},l={...u,...e.end},g=u.line,h=u.column,x=l.line,O=l.column;let j=Math.max(g-(n+1),0),$=Math.min(t.length,x+s);g===-1&&(j=0),x===-1&&($=t.length);const M=x-g,E={};if(M)for(let P=0;P<=M;P++){const U=P+g;if(!h)E[U]=!0;else if(P===0){const V=t[U-1]?.length;E[U]=[h,(V??0)-h+1]}else if(P===M)E[U]=[0,O];else{const V=t[U-P]?.length;E[U]=[0,V]}}else h===O?E[g]=h?[h,0]:!0:E[g]=[h,(O??0)-(h??0)];return{end:$,markerLines:E,start:j}},"getMarkerLines");var ca=Object.defineProperty,ht=on((e,t)=>ca(e,"name",{value:t,configurable:!0}),"t");const ua=jn.platform==="win32"&&!jn.env?.WT_SESSION?">":"❯",la=ht((e,t,n)=>{const s={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...n,color:{gutter:ht(P=>P,"gutter"),marker:ht(P=>P,"marker"),message:ht(P=>P,"message"),...n?.color}},u=typeof t.start.column=="number";let l=na(e).split(`
|
|
3
|
+
`);typeof s.tabWidth=="number"&&(l=l.map(P=>P.replaceAll(" "," ".repeat(s.tabWidth))));const{end:g,markerLines:h,start:x}=aa(t,l,s.linesAbove,s.linesBelow),O=String(g).length,{gutter:j,marker:$,message:M}=s.color;let E=l.slice(x,g).map((P,U)=>{const V=x+1+U,ne=h[V],Pe=` ${String(V)}`.slice(-O),Ee=!h[V+1],Q=` ${Pe}${s.showGutter?" |":""}`;if(ne){let B="";if(Array.isArray(ne)){const Ae=P.replaceAll(/[^\t]/g," ").slice(0,Math.max(ne[0]-1,0)),Te=ne[1]||1;B=[`
|
|
4
|
+
`,s.prefix+j(Q.replaceAll(/\d/g," "))," ",Ae,$("^").repeat(Te)].join(""),Ee&&s.message&&(B+=` ${M(s.message)}`)}return[s.prefix+$(ua),j(Q),P.length>0?` ${P}`:"",B].join("")}return`${s.prefix} ${j(Q)}${P.length>0?` ${P}`:""}`}).join(`
|
|
5
|
+
`);return s.message&&!u&&(E=`${s.prefix+" ".repeat(O+1)+s.message}
|
|
6
|
+
${E}`),E},"codeFrame");var fa=Object.defineProperty,pa=ao((e,t)=>fa(e,"name",{value:t,configurable:!0}),"s"),da=Object.defineProperty,ga=pa((e,t)=>da(e,"name",{value:t,configurable:!0}),"o"),ha=Object.defineProperty,sn=ga((e,t)=>ha(e,"name",{value:t,configurable:!0}),"l");const On=sn((e,t)=>{let n=0,s=t.length-2;for(;n<s;){const u=n+(s-n>>1);if(e<t[u])s=u-1;else if(e>=t[u+1])n=u+1;else{n=u;break}}return n},"binarySearch"),ma=/\n|\r(?!\n)/,ya=sn(e=>e.split(ma).reduce((t,n)=>(t.push(t.at(-1)+n.length+1),t),[0]),"getLineStartIndexes"),ba=sn((e,t,n)=>{const s=n?.skipChecks??!1;if(!s&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!s&&(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 l=ya(e),g=On(t,l);return{column:t-l[g]+1,line:g+1}}const u=On(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var va=Object.defineProperty,co=v((e,t)=>va(e,"name",{value:t,configurable:!0}),"t$6"),$a=Object.defineProperty,uo=co((e,t)=>$a(e,"name",{value:t,configurable:!0}),"t"),xa=Object.defineProperty,wa=uo((e,t)=>xa(e,"name",{value:t,configurable:!0}),"i");let ja=class extends Error{static{v(this,"m")}static{co(this,"m")}static{uo(this,"t")}static{wa(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 Oa=Object.defineProperty,lo=v((e,t)=>Oa(e,"name",{value:t,configurable:!0}),"u$3"),ka=Object.defineProperty,fo=lo((e,t)=>ka(e,"name",{value:t,configurable:!0}),"s"),Pa=Object.defineProperty,pt=fo((e,t)=>Pa(e,"name",{value:t,configurable:!0}),"a");const Ea=pt(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Aa=pt((e,t,n)=>la(e,{start:t},{tabWidth:!1,...n}),"generateCodeFrame"),Ta=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Sa=pt((e,t)=>{const n=Ta.exec(t);if(!n)return;const[,s,u,l]=n;if(u&&l)return{column:Number(l),line:Number(u)};let g=Number(s);return g===e.length&&(g=e.length-1),ba(e,g)},"getErrorLocation"),Ca=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Ma=pt(e=>e.replace(Ca,(t,n,s)=>`"${s}"(${Ea(s)})`),"addCodePointToUnexpectedToken");function vt(e,t,n,s){typeof t=="string"&&(typeof n=="object"&&(s=n),n=t,t=void 0);let u;try{return JSON.parse(e,t)}catch(h){u=h.message}let l;e?(l=Sa(e,u),u=Ma(u)):u+=" while parsing empty string";const g=new ja(u);throw g.fileName=n,l&&(g.codeFrame=Aa(e,l,s)),g}v(vt,"d$5");lo(vt,"w");fo(vt,"E");pt(vt,"parseJson");var _a=Object.defineProperty,po=v((e,t)=>_a(e,"name",{value:t,configurable:!0}),"t$5"),za=Object.defineProperty,go=po((e,t)=>za(e,"name",{value:t,configurable:!0}),"t"),Na=Object.defineProperty,Ba=go((e,t)=>Na(e,"name",{value:t,configurable:!0}),"r");function dt(e,t,n){typeof t=="object"&&(n=t,t=void 0);const s=Co(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(s);const{beforeParse:l,color:g}=n??{};return typeof l=="function"&&(u=l(u)),vt(u,t,Mn(e),{color:g})}v(dt,"n$3");po(dt,"s");go(dt,"J");Ba(dt,"readJsonSync");var Ra=Object.defineProperty,Ia=v((e,t)=>Ra(e,"name",{value:t,configurable:!0}),"a$3"),Da=Object.defineProperty,Fa=Ia((e,t)=>Da(e,"name",{value:t,configurable:!0}),"t"),Wa=Object.defineProperty,La=Fa((e,t)=>Wa(e,"name",{value:t,configurable:!0}),"e");const qa=La(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 Ua=Object.defineProperty,Va=v((e,t)=>Ua(e,"name",{value:t,configurable:!0}),"t$3"),Za=Object.defineProperty,Ka=Va((e,t)=>Za(e,"name",{value:t,configurable:!0}),"r"),Ga=Object.defineProperty,Ja=Ka((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"f");const Ha=new TextEncoder,Xa=Ja(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return Ha.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 Ya=Object.defineProperty,Qa=v((e,t)=>Ya(e,"name",{value:t,configurable:!0}),"m$1"),ec=Object.defineProperty,ho=Qa((e,t)=>ec(e,"name",{value:t,configurable:!0}),"s");const tc=it(import.meta.url),tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,rc=ho(e=>{if(typeof tt<"u"&&tt.versions&&tt.versions.node){const[t,n]=tt.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return tt.getBuiltinModule(e)}return tc(e)},"__cjs_getBuiltinModule"),{mkdirSync:nc,writeFileSync:oc,statSync:sc,renameSync:kn,chownSync:ic,chmodSync:ac,unlinkSync:cc}=rc("node:fs");var uc=Object.defineProperty,lc=ho((e,t)=>uc(e,"name",{value:t,configurable:!0}),"f");const fc=lc((e,t,n)=>{n={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...n},Cn(e),qa(t),e=Mn(e);const s=`${e}.tmp`;try{const u=J(e,cn);if(!u&&n.recursive){const g=at(e);J(g,cn)||nc(g,{recursive:!0})}let l;if(oc(s,Xa(t),{encoding:n.encoding,flag:n.flag}),u&&!n.overwrite&&(l=sc(e),n.chown??={gid:l.gid,uid:l.uid},kn(e,`${e}.bak`)),n.chown)try{ic(s,n.chown.uid,n.chown.gid)}catch{}ac(s,l&&!n.mode?l.mode:n.mode??438),kn(s,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{J(s)&&cc(`${e}.tmp`)}},"writeFileSync");var pc=Object.defineProperty,ae=v((e,t)=>pc(e,"name",{value:t,configurable:!0}),"i$2"),dc=Object.defineProperty,ce=ae((e,t)=>dc(e,"name",{value:t,configurable:!0}),"s"),gc=Object.defineProperty,ye=ce((e,t)=>gc(e,"name",{value:t,configurable:!0}),"i");const hc=/^(?:( )+|\t+)/,gt="space";function ot(e,t,n){return e&&t===gt&&n===1}v(ot,"d$3");ae(ot,"g");ce(ot,"I");ye(ot,"shouldIgnoreSingleSpace");function st(e,t){const n=new Map;let s=0,u,l;for(const g of e.split(/\n/g)){if(!g)continue;const h=g.match(hc);if(h===null)s=0,u="";else{const x=h[0].length,O=h[1]?gt:"tab";if(ot(t,O,x))continue;O!==u&&(s=0),u=O;let j=1,$=0;const M=x-s;if(s=x,M===0)j=0,$=1;else{const P=Math.abs(M);if(ot(t,O,P))continue;l=$t(O,P)}const E=n.get(l);n.set(l,E===void 0?[1,0]:[E[0]+j,E[1]+$])}}return n}v(st,"p");ae(st,"y");ce(st,"h");ye(st,"makeIndentsMap");function $t(e,t){return(e===gt?"s":"t")+String(t)}v($t,"b$1");ae($t,"v");ce($t,"m");ye($t,"encodeIndentsKey");function xt(e){const t=e[0]==="s"?gt:"tab",n=Number(e.slice(1));return{type:t,amount:n}}v(xt,"v");ae(xt,"M");ce(xt,"_");ye(xt,"decodeIndentsKey");function wt(e){let t,n=0,s=0;for(const[u,[l,g]]of e)(l>n||l===n&&g>s)&&(n=l,s=g,t=u);return t}v(wt,"I");ae(wt,"S");ce(wt,"k");ye(wt,"getMostUsedKey");function jt(e,t){return(e===gt?" ":" ").repeat(t)}v(jt,"h$1");ae(jt,"k");ce(jt,"D");ye(jt,"makeIndentString");function Ot(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=st(e,!0);t.size===0&&(t=st(e,!1));const n=wt(t);let s,u=0,l="";return n!==void 0&&({type:s,amount:u}=xt(n),l=jt(s,u)),{amount:u,type:s,indent:l}}v(Ot,"M");ae(Ot,"x");ce(Ot,"C");ye(Ot,"detectIndent");var mc=Object.defineProperty,yc=v((e,t)=>mc(e,"name",{value:t,configurable:!0}),"a$1"),bc=Object.defineProperty,mo=yc((e,t)=>bc(e,"name",{value:t,configurable:!0}),"i");const vc=it(import.meta.url),rt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$c=mo(e=>{if(typeof rt<"u"&&rt.versions&&rt.versions.node){const[t,n]=rt.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return rt.getBuiltinModule(e)}return vc(e)},"__cjs_getBuiltinModule"),{readFileSync:xc}=$c("node:fs");var wc=Object.defineProperty,jc=mo((e,t)=>wc(e,"name",{value:t,configurable:!0}),"r");const yo=jc((e,t,n={})=>{const{detectIndent:s,indent:u,replacer:l,stringify:g=JSON.stringify,...h}={indent:" ",...n};let x=u,O=`
|
|
10
|
+
`;if(J(e,Mo))try{const $=xc(e,"utf8");if(s){const{indent:M}=Ot($);x=M}O=$.endsWith(`
|
|
11
11
|
`)?`
|
|
12
|
-
`:""}catch(
|
|
13
|
-
`),
|
|
14
|
-
Chain: ${
|
|
12
|
+
`:""}catch($){if($.code!=="ENOENT")throw $}const j=g(t,l,x);fc(e,`${j}${O}`,h)},"writeJsonSync");var Oc=Object.defineProperty,kc=v((e,t)=>Oc(e,"name",{value:t,configurable:!0}),"s$1");class kt extends Error{static{v(this,"VisConfigError")}static{kc(this,"VisConfigError")}chain;constructor(t,n,s){super(t,s),this.name=this.constructor.name,this.chain=n}}var Pc=Object.defineProperty,Ec=v((e,t)=>Pc(e,"name",{value:t,configurable:!0}),"e");class Ac extends kt{static{v(this,"VisConfigCycleError")}static{Ec(this,"VisConfigCycleError")}constructor(t,n){const s=[...n,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${s}`,n)}}var Tc=Object.defineProperty,Sc=v((e,t)=>Tc(e,"name",{value:t,configurable:!0}),"s");class bo extends kt{static{v(this,"VisConfigDeprecatedKeyError")}static{Sc(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,n,s){const u=[`${t} uses removed keys.`,""];for(const l of s){const g=l.location?` (at ${l.location})`:"";u.push(` • ${l.name}${g} → renamed to \`${l.renamedTo}\``);for(const h of l.children??[])u.push(` ↳ ${h.name} → renamed to \`${h.renamedTo}\``)}u.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(u.join(`
|
|
13
|
+
`),n),this.filePath=t,this.removedKeys=s}}var Cc=Object.defineProperty,Mc=v((e,t)=>Cc(e,"name",{value:t,configurable:!0}),"t$1");class Pn extends kt{static{v(this,"VisConfigLoadError")}static{Mc(this,"VisConfigLoadError")}constructor(t,n,s){const u=s instanceof Error?s.message:String(s),l=n.length>0?`
|
|
14
|
+
Chain: ${n.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${l}`,n,{cause:s})}}var _c=Object.defineProperty,vo=v((e,t)=>_c(e,"name",{value:t,configurable:!0}),"t");const zc=vo(e=>e.join(" → "),"formatChain");class Zr extends kt{static{v(this,"VisConfigNotFoundError")}static{vo(this,"VisConfigNotFoundError")}constructor(t,n,s){const u=n.length>0?n[n.length-1]:"<unknown>",l=s.length>0?`
|
|
15
15
|
Tried:
|
|
16
|
-
${
|
|
17
|
-
`)}`:"";super(`Cannot resolve "${t}" extended from ${
|
|
18
|
-
Chain: ${
|
|
19
|
-
`);return t.digest("hex")},"hashConfigChain"),
|
|
16
|
+
${s.join(`
|
|
17
|
+
`)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${l}
|
|
18
|
+
Chain: ${zc(n)}`,n)}}var Nc=Object.defineProperty,$o=v((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"i$1");const En="@inherit",Bc=["aliases","dependsOn","inputs","outputs"],Rc=$o((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(En))return[...t];const n=[];for(const s of t){if(s===En){e!==void 0&&n.push(...e);continue}n.push(s)}return n},"mergeArrayWithInherit"),Ic=$o((e,t)=>{const n={...e,...t};for(const s of Bc){const u=e?.[s],l=t?.[s],g=Rc(u,l);g===void 0?delete n[s]:n[s]=g}return n},"mergeTargetWithInherit");var Dc=Object.defineProperty,Pt=v((e,t)=>Dc(e,"name",{value:t,configurable:!0}),"o");const Fc=Pt(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:n}=e,s=[];if(Array.isArray(n))for(const[u,l]of n.entries())l&&typeof l=="object"&&(Object.hasOwn(l,"scope")&&s.push({location:`taskDefaults[${u}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(l,"targets")&&s.push({location:`taskDefaults[${u}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:s.length>0?s:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[n,s]of e.scopedTasks.entries())s&&typeof s=="object"&&(Object.hasOwn(s,"scope")&&t.push({location:`scopedTasks[${n}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(s,"targets")&&t.push({location:`scopedTasks[${n}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),Wc=Pt(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),Lc=Pt((e,t,n)=>{if(!n||typeof n!="object")return;const s=Fc(n);if(s.length>0)throw new bo(e,t,s)},"assertNoDeprecatedConfigKeys"),qc=Pt((e,t,n)=>{if(!n||typeof n!="object")return;const s=Wc(n);if(s.length>0)throw new bo(e,t,s)},"assertNoDeprecatedTaskKeys");var Uc=Object.defineProperty,T=v((e,t)=>Uc(e,"name",{value:t,configurable:!0}),"r");const xo=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],Vc=new Set(xo),wo=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],Zc=new Set(wo),gu=2880,Kr={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},Kc=T(e=>{if(!e)return{...Kr};const t=Kr.policies??{},n=e.policies??{},s={...t,...n};for(const u of Object.keys(t)){const l=t[u],g=n[u];l!==void 0&&g!==void 0&&(s[u]={...l,...g})}return{...Kr,...e,policies:s}},"mergeSecurityDefaults"),An=T(e=>({...e,security:Kc(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),Gc=T(e=>{let t;try{t=Sn(e)}catch{return}const n=new Set(t.filter(s=>Vc.has(s)));for(const s of xo)if(n.has(s))return q(e,s)},"findVisConfigFile"),Jc=T(e=>{let t;try{t=Sn(e)}catch{return}const n=new Set(t.filter(s=>Zc.has(s)));for(const s of wo)if(n.has(s))return q(e,s)},"findVisTaskConfigFile"),an=T(e=>Tn("sha256").update(Ao(e)).digest("hex"),"hashFileContents"),Hc=T(e=>{const t=Tn("sha256"),n=[...e].sort();for(const s of n)t.update(s),t.update(":"),t.update(an(s)),t.update(`
|
|
19
|
+
`);return t.digest("hex")},"hashConfigChain"),Xc=T(e=>{const t=q(e,"node_modules");if(J(t)){const s=q(t,".cache","vis");return bt(s),q(s,"vis-config-cache.json")}const n=so("vis",{create:!0,cwd:e});return n?q(n,"vis-config-cache.json"):void 0},"getConfigCachePath"),Yc=T((e,t)=>{if(J(e))try{const n=dt(e);if(n.hash===t)return n.config}catch{}},"readConfigCache"),Qc=T((e,t,n)=>{try{bt(at(e)),yo(e,{config:n,hash:t})}catch{}},"writeConfigCache"),eu=T(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),tu=T((e,t,n)=>{if(_n(e))throw new Zr(e,[...n,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const s=[];if(e.startsWith("./")||e.startsWith("../")){const u=at(t),l=q(u,e);if(s.push(l),J(l))return l;throw new Zr(e,[...n,t],s)}try{return it(t).resolve(e)}catch{throw s.push(`require.resolve("${e}") from ${t}`),new Zr(e,[...n,t],s)}},"resolveExtendsSpecifier"),jo=T(async(e,t,n)=>{const s=an(t),u=t.slice(t.lastIndexOf(".")),l=q(at(t),`.vis-config-tmp-${s}${u}`);To(t,l);let g;try{g=await e.import(l,{default:!0,try:!0})??{}}catch(h){throw new Pn(t,n,h)}finally{try{So(l)}catch{}}try{return(typeof g=="function"?await g()??{}:g)??{}}catch(h){throw new Pn(t,n,h)}},"loadRawConfig"),ru=T((e,t)=>{const n={...e,...t};if(e.tasks||t.tasks){const s=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),u={};for(const l of s)u[l]=Ic(e.tasks?.[l],t.tasks?.[l]);n.tasks=u}if((e.scopedTasks||t.scopedTasks)&&(n.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(n.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(n.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const s=e.security?.policies??{},u=t.security?.policies??{},l={...s,...u};for(const g of Object.keys(s)){const h=s[g],x=u[g];h!==void 0&&x!==void 0&&(l[g]={...h,...x})}n.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:l}}return(e.update||t.update)&&(n.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(n.taskRunner={...e.taskRunner,...t.taskRunner}),delete n.extends,n},"mergeVisConfigs"),Oo=T(async(e,t,n,s,u,l)=>{if(s.has(t))throw new Ac(t,n);if(!u.has(t)){s.add(t);try{const g=await jo(e,t,n);Lc(t,n,g);const h=eu(g.extends);for(const x of h){const O=tu(x,t,n);await Oo(e,O,[...n,t],s,u,l)}u.set(t,g),l.push(t)}finally{s.delete(t)}}},"resolveConfigChain"),hu=T(async(e,t)=>{let n;if(t?.explicitConfigPath){const $=_n(t.explicitConfigPath)?t.explicitConfigPath:q(e,t.explicitConfigPath);if(!J($))throw new Error(`Cannot find config file at ${$}`);n=$}else n=Gc(e);if(!n)return An({});const s=zn(e,{fsCache:!1,moduleCache:!1}),u=new Set,l=new Map,g=[];await Oo(s,n,[],u,l,g);const h=Hc(g),x=Xc(e);if(x){const $=Yc(x,h);if($)return $}let O={};for(const $ of g)O=ru(O,l.get($));const j=An(O);return x&&Qc(x,h,j),j},"loadVisConfig"),nu=T(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),ou=T((e,t)=>{const n=q(e,"node_modules"),s=nu(t);if(J(n)){const l=q(n,".cache","vis","task-configs");return bt(l),q(l,`${s}.json`)}const u=so("vis",{create:!0,cwd:e});return u?q(u,"task-configs",`${s}.json`):void 0},"getVisTaskCachePath"),su=T((e,t)=>{if(J(e))try{const n=dt(e);if(n.hash===t)return n.config}catch{}},"readVisTaskCache"),iu=T((e,t,n)=>{try{bt(at(e)),yo(e,{config:n,hash:t})}catch{}},"writeVisTaskCache"),mu=T(async(e,t,n)=>{const s=Jc(t);if(!s)return;const u=an(s),l=ou(e,n);if(l){const O=su(l,u);if(O)return O}const g=zn(t,{fsCache:!1,moduleCache:!1}),h=await jo(g,s,[]);qc(s,[],h);const x=h;return l&&iu(l,u,x),x},"loadVisTaskConfig"),yu=T(e=>e,"defineTaskConfig"),bu=T(e=>e,"defineConfig");export{fc as B,Jc as G,gu as H,Ot as M,wo as V,yu as a,so as b,bu as c,bt as d,hu as e,$n as f,vt as g,xo as h,Xa as i,Gc as j,Ic as k,Kr as l,An as m,dt as n,mu as r,qa as s,yo as w};
|