@visulima/vis 1.0.0-alpha.3 → 1.0.0-alpha.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/CHANGELOG.md +1128 -24
  2. package/LICENSE.md +11958 -0
  3. package/README.md +344 -20
  4. package/dashboard/dist/index.html +152 -0
  5. package/dist/bin.js +1 -146
  6. package/dist/binx.js +3 -0
  7. package/dist/config/index.d.ts +3154 -0
  8. package/dist/config/index.js +1 -0
  9. package/dist/generate/index.d.ts +157 -0
  10. package/dist/generate/index.js +1 -0
  11. package/dist/packem_chunks/bin.js +1415 -0
  12. package/dist/packem_chunks/bloom-status.js +2 -0
  13. package/dist/packem_chunks/bloom-sync.js +2 -0
  14. package/dist/packem_chunks/cache-attestation.js +1 -0
  15. package/dist/packem_chunks/config.js +19 -0
  16. package/dist/packem_chunks/devtools.js +82 -0
  17. package/dist/packem_chunks/doctor-probe.js +2 -0
  18. package/dist/packem_chunks/fix.js +11 -0
  19. package/dist/packem_chunks/handler.js +1 -0
  20. package/dist/packem_chunks/handler10.js +1 -0
  21. package/dist/packem_chunks/handler11.js +5 -0
  22. package/dist/packem_chunks/handler12.js +1 -0
  23. package/dist/packem_chunks/handler13.js +27 -0
  24. package/dist/packem_chunks/handler14.js +5 -0
  25. package/dist/packem_chunks/handler15.js +1 -0
  26. package/dist/packem_chunks/handler16.js +1 -0
  27. package/dist/packem_chunks/handler17.js +1 -0
  28. package/dist/packem_chunks/handler18.js +1 -0
  29. package/dist/packem_chunks/handler19.js +1 -0
  30. package/dist/packem_chunks/handler2.js +4 -0
  31. package/dist/packem_chunks/handler20.js +5 -0
  32. package/dist/packem_chunks/handler21.js +2 -0
  33. package/dist/packem_chunks/handler22.js +2 -0
  34. package/dist/packem_chunks/handler23.js +1 -0
  35. package/dist/packem_chunks/handler24.js +1 -0
  36. package/dist/packem_chunks/handler25.js +5 -0
  37. package/dist/packem_chunks/handler26.js +1 -0
  38. package/dist/packem_chunks/handler27.js +3 -0
  39. package/dist/packem_chunks/handler28.js +1 -0
  40. package/dist/packem_chunks/handler29.js +7 -0
  41. package/dist/packem_chunks/handler3.js +4 -0
  42. package/dist/packem_chunks/handler30.js +33 -0
  43. package/dist/packem_chunks/handler31.js +3 -0
  44. package/dist/packem_chunks/handler32.js +8 -0
  45. package/dist/packem_chunks/handler33.js +1 -0
  46. package/dist/packem_chunks/handler34.js +5 -0
  47. package/dist/packem_chunks/handler35.js +11 -0
  48. package/dist/packem_chunks/handler36.js +3 -0
  49. package/dist/packem_chunks/handler37.js +22 -0
  50. package/dist/packem_chunks/handler38.js +61 -0
  51. package/dist/packem_chunks/handler39.js +3 -0
  52. package/dist/packem_chunks/handler4.js +6 -0
  53. package/dist/packem_chunks/handler40.js +6 -0
  54. package/dist/packem_chunks/handler41.js +24 -0
  55. package/dist/packem_chunks/handler42.js +153 -0
  56. package/dist/packem_chunks/handler43.js +25 -0
  57. package/dist/packem_chunks/handler44.js +10 -0
  58. package/dist/packem_chunks/handler45.js +708 -0
  59. package/dist/packem_chunks/handler46.js +24 -0
  60. package/dist/packem_chunks/handler47.js +322 -0
  61. package/dist/packem_chunks/handler48.js +48 -0
  62. package/dist/packem_chunks/handler49.js +3 -0
  63. package/dist/packem_chunks/handler5.js +8 -0
  64. package/dist/packem_chunks/handler50.js +27 -0
  65. package/dist/packem_chunks/handler51.js +195 -0
  66. package/dist/packem_chunks/handler52.js +34 -0
  67. package/dist/packem_chunks/handler6.js +1 -0
  68. package/dist/packem_chunks/handler7.js +1 -0
  69. package/dist/packem_chunks/handler8.js +1 -0
  70. package/dist/packem_chunks/handler9.js +1 -0
  71. package/dist/packem_chunks/heal-accept.js +10 -0
  72. package/dist/packem_chunks/heal.js +14 -0
  73. package/dist/packem_chunks/help-command.js +8 -0
  74. package/dist/packem_chunks/index.js +7 -0
  75. package/dist/packem_chunks/keys-refresh.js +4 -0
  76. package/dist/packem_chunks/list.js +3 -0
  77. package/dist/packem_chunks/loader.js +4 -0
  78. package/dist/packem_chunks/loader2.js +1 -0
  79. package/dist/packem_chunks/prune.js +3 -0
  80. package/dist/packem_chunks/run.js +1 -0
  81. package/dist/packem_chunks/status.js +2 -0
  82. package/dist/packem_chunks/sync.js +2 -0
  83. package/dist/packem_chunks/sync2.js +2 -0
  84. package/dist/packem_chunks/tar.js +3 -0
  85. package/dist/packem_chunks/tripwire.js +2 -0
  86. package/dist/packem_chunks/verify-lockfile.js +2 -0
  87. package/dist/packem_shared/Table-3pFgIUZ2-DABgc6rj.js +12 -0
  88. package/dist/packem_shared/_commonjsHelpers-CLblCigl.js +1 -0
  89. package/dist/packem_shared/advisories-CGKZo9Rx.js +1 -0
  90. package/dist/packem_shared/affected-shas-BdnlfiV1.js +1 -0
  91. package/dist/packem_shared/ai-analysis-KP8b5lc0.js +68 -0
  92. package/dist/packem_shared/ai-fix-BkPUHA0z.js +43 -0
  93. package/dist/packem_shared/anolilab-text-CAM_E6uK.js +13 -0
  94. package/dist/packem_shared/applyDefaults-BogleaFi.js +1 -0
  95. package/dist/packem_shared/build-scripts-DE6U8jVq.js +1 -0
  96. package/dist/packem_shared/cyclonedx-BilSFCNY.js +4 -0
  97. package/dist/packem_shared/definePlugin-CWm4Dv_t.js +1 -0
  98. package/dist/packem_shared/dependency-scan-BUbOcMwX.js +1 -0
  99. package/dist/packem_shared/docker-EJiTY0Sz.js +60 -0
  100. package/dist/packem_shared/failure-log-34Wl3npC.js +2 -0
  101. package/dist/packem_shared/giget-CcEy_Elm.js +2 -0
  102. package/dist/packem_shared/glob-D_7bct6p-D8itOHsr.js +1 -0
  103. package/dist/packem_shared/index-BnANMQ7k.js +1 -0
  104. package/dist/packem_shared/index-CMwxZ3Zx.js +30 -0
  105. package/dist/packem_shared/index-DH-5hsrC.js +1 -0
  106. package/dist/packem_shared/license-zZU7aavK.js +1 -0
  107. package/dist/packem_shared/lifecycle-Buigdp7P.js +2 -0
  108. package/dist/packem_shared/lockfile-CrT86D6d.js +1 -0
  109. package/dist/packem_shared/lockfile-Cu2BH6bl.js +1 -0
  110. package/dist/packem_shared/manifests-BzWpKW8F.js +1 -0
  111. package/dist/packem_shared/min-release-age-BPVXwPUg.js +34 -0
  112. package/dist/packem_shared/native-config-sync-BRZZetn3.js +21 -0
  113. package/dist/packem_shared/osv-bloom-0Vu8YRhg.js +2 -0
  114. package/dist/packem_shared/otelPlugin-CJR2T_lk.js +1 -0
  115. package/dist/packem_shared/peer-warnings-EvSJ18gE.js +1 -0
  116. package/dist/packem_shared/pm-runner-DmKT2FqF.js +1 -0
  117. package/dist/packem_shared/provenance-D8vU1u2L.js +1 -0
  118. package/dist/packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js +1 -0
  119. package/dist/packem_shared/registry-keys-E3cZn4FI.js +1 -0
  120. package/dist/packem_shared/resolve-explicit-cPzwdiEE.js +5 -0
  121. package/dist/packem_shared/runtime-check-CilFOqUU.js +1 -0
  122. package/dist/packem_shared/s1ngularity-DBcjspCC.js +1 -0
  123. package/dist/packem_shared/scan-progress-CTVVf9WW.js +2 -0
  124. package/dist/packem_shared/selectors-DkgYFzdq.js +3 -0
  125. package/dist/packem_shared/signatures-ChTfrQvT.js +2 -0
  126. package/dist/packem_shared/spinner-C8xs6QZv.js +1 -0
  127. package/dist/packem_shared/spinners-f91Rbo99-Bjf3NcO0.js +1 -0
  128. package/dist/packem_shared/symbols-CQmER5MT.js +1 -0
  129. package/dist/packem_shared/tabs-xZkm6Y_J.js +1 -0
  130. package/dist/packem_shared/toolchain-DoG6b_G_.js +5 -0
  131. package/dist/packem_shared/typosquats-acxQ7blw.js +1 -0
  132. package/dist/packem_shared/use-measured-height-Lea6TCVD.js +1 -0
  133. package/dist/packem_shared/utils-DrNg0XTR.js +1 -0
  134. package/dist/packem_shared/verify-cLcZwKqe.js +1 -0
  135. package/dist/packem_shared/vis-update-app-BCKzlqj8.js +1 -0
  136. package/dist/packem_shared/watch-DEL0yol9.js +1 -0
  137. package/dist/packem_shared/watch-loop-BpA_pxU9.js +11 -0
  138. package/index.d.ts +436 -0
  139. package/index.js +613 -0
  140. package/package.json +71 -26
  141. package/schemas/project.schema.json +991 -0
  142. package/schemas/vis-config.schema.json +4958 -0
  143. package/skills/vis/SKILL.md +96 -0
  144. package/templates/buildkite-ci/.buildkite/pipeline.yml.tera +85 -0
  145. package/templates/buildkite-ci/template.yml +20 -0
  146. package/dist/ai-analysis.d.ts +0 -40
  147. package/dist/ai-cache.d.ts +0 -21
  148. package/dist/bin.d.ts +0 -1
  149. package/dist/catalog.d.ts +0 -110
  150. package/dist/commands/affected.d.ts +0 -3
  151. package/dist/commands/ai.d.ts +0 -3
  152. package/dist/commands/analyze.d.ts +0 -3
  153. package/dist/commands/check.d.ts +0 -3
  154. package/dist/commands/graph.d.ts +0 -3
  155. package/dist/commands/hook/constants.d.ts +0 -8
  156. package/dist/commands/hook/index.d.ts +0 -3
  157. package/dist/commands/hook/install.d.ts +0 -7
  158. package/dist/commands/hook/migrate.d.ts +0 -27
  159. package/dist/commands/hook/uninstall.d.ts +0 -3
  160. package/dist/commands/migrate/constants.d.ts +0 -12
  161. package/dist/commands/migrate/deps.d.ts +0 -32
  162. package/dist/commands/migrate/index.d.ts +0 -3
  163. package/dist/commands/migrate/json.d.ts +0 -20
  164. package/dist/commands/migrate/lint-staged.d.ts +0 -62
  165. package/dist/commands/migrate/types.d.ts +0 -20
  166. package/dist/commands/run.d.ts +0 -3
  167. package/dist/commands/staged.d.ts +0 -3
  168. package/dist/commands/update.d.ts +0 -3
  169. package/dist/config.d.ts +0 -40
  170. package/dist/config.js +0 -1
  171. package/dist/package-manager.d.ts +0 -23
  172. package/dist/workspace.d.ts +0 -58
@@ -0,0 +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/Table-3pFgIUZ2-DABgc6rj.js";import{p as i}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-0Vu8YRhg.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
+ `);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};
@@ -0,0 +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/Table-3pFgIUZ2-DABgc6rj.js";import{p as n}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-CTVVf9WW.js";import{s as y,D as h}from"../packem_shared/osv-bloom-0Vu8YRhg.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
+ `):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};
@@ -0,0 +1 @@
1
+ var R=Object.defineProperty;var p=(e,t)=>R(e,"name",{value:t,configurable:!0});import{createRequire as I}from"node:module";import{loadOptionalSigstore as h}from"./loader.js";const b=I(import.meta.url),u=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=p(e=>{if(typeof u<"u"&&u.versions&&u.versions.node){const[t,n]=u.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return u.getBuiltinModule(e)}return b(e)},"__cjs_getBuiltinModule"),{createHash:v}=_("node:crypto"),{createReadStream:x}=_("node:fs");var O=Object.defineProperty,s=p((e,t)=>O(e,"name",{value:t,configurable:!0}),"r");const S="https://token.actions.githubusercontent.com",m=s(e=>e.replaceAll(/[$()*+.?[\\\]^{|}]/g,String.raw`\$&`),"escapeRegex"),$=s(e=>{if("github"in e){const{ref:t,repo:n,workflow:r}=e.github;return{issuer:S,sanPattern:`^${m(`https://github.com/${n}/${r}@${t}`)}$`}}return"sanRegex"in e?{issuer:e.oidcIssuer,sanPattern:e.sanRegex}:{issuer:e.oidcIssuer,sanPattern:`^${m(e.san)}$`}},"normalizeExpectedIdentity"),P=s(()=>process.env.CI==="true"||typeof process.env.ACTIONS_ID_TOKEN_REQUEST_URL=="string"||typeof process.env.SIGSTORE_ID_TOKEN=="string","hasAmbientOidc"),w=s(e=>new Promise((t,n)=>{const r=v("sha256"),a=x(e);a.on("error",n),a.on("data",i=>r.update(i)),a.on("end",()=>{t(Buffer.from(r.digest("hex")))})}),"digestFile"),A=1024,T=s(e=>{const{issuer:t,sanPattern:n}=$(e.expectedIdentity),r=new Map,a=s((i,o)=>{let f;try{f=JSON.parse(o)}catch{return Promise.resolve(!1)}return(async()=>{let c;try{c=await w(i)}catch{return!1}const l=`${c.toString("utf8")}:${v("sha256").update(o).digest("hex")}`,g=r.get(l);if(g)return g;const y=(async()=>{try{return await(await h({workspaceRoot:e.workspaceRoot})).verify(f,c,{certificateIdentityURI:n,certificateIssuer:t}),!0}catch(d){return e.onVerifyFailure?.(d instanceof Error?d.message:String(d)),!1}})();return r.size>=A&&r.clear(),r.set(l,y),y})()},"verifyOnce");return{expectedIdentity:e.expectedIdentity,onReject:e.onReject,requireOnDownload:e.requireOnDownload??!1,signArtifact:s(async({archivePath:i})=>{if(!P())return null;const o=await h({workspaceRoot:e.workspaceRoot}),f=await w(i),c=await o.sign(f);return JSON.stringify(c)},"signArtifact"),verifyArtifact:s(({archivePath:i,attestation:o})=>a(i,o),"verifyArtifact")}},"buildCacheAttestationHooks");export{T as buildCacheAttestationHooks,$ as normalizeExpectedIdentity};
@@ -0,0 +1,19 @@
1
+ var po=Object.defineProperty;var v=(e,t)=>po(e,"name",{value:t,configurable:!0});import{createRequire as go}from"node:module";import{n as wn,B as vo,U as jn,l as X,_ as Qr,K as rt,s as $o,M as V,a as On}from"../packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js";import{createJiti as kn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const ho=go(import.meta.url),Ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ir=v(e=>{if(typeof Ue<"u"&&Ue.versions&&Ue.versions.node){const[t,n]=Ue.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ue.getBuiltinModule(e)}return ho(e)},"__cjs_getBuiltinModule"),{createHash:$n}=Ir("node:crypto"),{readdirSync:xn,readFileSync:mo,copyFileSync:yo,unlinkSync:bo}=Ir("node:fs"),{createRequire:tt}=Ir("node:module");var xo=Object.defineProperty,Q=v((e,t)=>xo(e,"name",{value:t,configurable:!0}),"W$2"),wo=Object.defineProperty,A=Q((e,t)=>wo(e,"name",{value:t,configurable:!0}),"y");const jo=tt(import.meta.url),ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Oo=A(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 jo(e)},"__cjs_getBuiltinModule"),{env:be,cwd:En}=ye,{createRequire:xe}=Oo("node:module"),Pn=0,ve=2,An=Symbol("findUpStop");var ko=Object.defineProperty,Eo=A((e,t)=>ko(e,"name",{value:t,configurable:!0}),"t$4"),Po=Object.defineProperty,Ao=Eo((e,t)=>Po(e,"name",{value:t,configurable:!0}),"t"),To=Object.defineProperty,So=Ao((e,t)=>To(e,"name",{value:t,configurable:!0}),"n");const Fr=So(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Co=Object.defineProperty,Mo=A((e,t)=>Co(e,"name",{value:t,configurable:!0}),"i$4"),zo=Object.defineProperty,No=Mo((e,t)=>zo(e,"name",{value:t,configurable:!0}),"r"),_o=Object.defineProperty,Bo=No((e,t)=>_o(e,"name",{value:t,configurable:!0}),"i");const Yr=Bo(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Ro=Object.defineProperty,Do=A((e,t)=>Ro(e,"name",{value:t,configurable:!0}),"i$3"),Io=Object.defineProperty,Tn=Do((e,t)=>Io(e,"name",{value:t,configurable:!0}),"s");const Fo=xe(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wo=Tn(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 Fo(e)},"__cjs_getBuiltinModule"),{lstatSync:en,mkdirSync:Lo}=Wo("node:fs");var Vo=Object.defineProperty,Uo=Tn((e,t)=>Vo(e,"name",{value:t,configurable:!0}),"o");const qo=Uo(e=>{Fr(e);try{const t=en(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Yr(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Lo(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=en(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Yr(n))}'`,{cause:t})}},"ensureDirSync");var Go=Object.defineProperty,Zo=A((e,t)=>Go(e,"name",{value:t,configurable:!0}),"$e$1"),Ho=Object.defineProperty,Wr=Zo((e,t)=>Ho(e,"name",{value:t,configurable:!0}),"W"),Ko=Object.defineProperty,y=Wr((e,t)=>Ko(e,"name",{value:t,configurable:!0}),"u$1");let tn=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(()=>Ve,"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=P(r.children.map(m=>$(m,o,i)).filter(Boolean));if(p?.length){const m=r.children.some(Z=>!Z.regex||!(Z.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"),P=y(r=>Array.from(new Set(r)),"ue"),E=y((r,o,i)=>E.compile(r,i).test(o),"R");E.compile=(r,o)=>{const i=o?.partial??!1,c=M(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=E,q=y((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),se=q,je=y(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),Oe=je,te=y(r=>Array.isArray(r),"j"),B=y(r=>typeof r=="function","_"),ke=y(r=>r.length===0,"he"),Ee=(()=>{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))})(),ht=y(r=>typeof r=="number","de"),mt=y(r=>typeof r=="object"&&r!==null,"xe"),yt=y(r=>r instanceof RegExp,"me"),bt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),vt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),Pe=y(r=>typeof r=="string","A"),z=y(r=>r===void 0,"f"),$t=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"),Ae=y((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=N(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)=>te(r)?xt(r,o):Pe(r)?Te(r,o):wt(r,o),"i"),xt=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(!z(o)&&!c.options.silent){const m=a.slice(f,p),k=B(o)?o(m,a,`${f}`):o;z(k)||c.output.push(k)}c.index=p}return!0}},"we"),wt=y((r,o)=>{if(vt(r))return Te(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return bt(r)&&B(o)&&!Ee(o)?jt(a,o):Ot(a,o)}},"$e"),jt=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}`);z(m)||i.output.push(m)}return i.index=p,!0}else return!1},"Ee"),Ot=y((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!z(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;z(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Te=y((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!z(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;z(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ce=y((r,o,i,c)=>{const a=N(r),f=o>1;return le(ue(Ce(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"),Se=y((r,o)=>ce(r,0,1,o),"L"),re=y((r,o)=>ce(r,0,1/0,o),"$"),kt=y((r,o)=>ce(r,1,1/0,o),"Re"),F=y((r,o)=>{const i=r.map(N);return le(ue(Ce(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(N);return le(ue(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),Ce=y((r,o=!0,i=!1)=>{const c=N(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"),ue=y((r,o)=>{const i=N(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 z(p)||c.output.push(p),!0}else return!1}:i},"B"),le=(()=>{let r=0;return o=>{const i=N(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 H=m.store||(m.store=new Map);if(k.length){for(let L=0,Tr=k.length;L<Tr;L+=2){const Sr=k[L*2],Cr=k[L*2+1];H.set(Sr,Cr)}k.length=0}const C=H.get(p);if(C===!1)return!1;if(ht(C))return a.index=C,!0;if(C)return a.index=C.index,C.output?.length&&a.output.push(...C.output),!0}const Z=a.output.length,Ar=i(a);if(m.indexMax=Math.max(m.indexMax,p),Ar){const H=a.index,C=a.output.length;if(C>Z){const L=a.output.slice(Z,C);k.push(p,{index:H,output:L})}else k.push(p,H);return!0}else return k.push(p,!1),!1}}})(),Me=y(r=>{let o;return i=>(o||(o=N(r())),o(i))},"G"),N=$t(r=>{if(B(r))return ke(r)?Me(r):r;if(Pe(r)||yt(r))return d(r);if(te(r))return F(r);if(mt(r))return S(Object.values(r));throw new Error("Invalid rule")}),R=y(r=>r,"d"),Et=y(r=>typeof r=="string","ke"),Pt=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"),At=y(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),Tt=d(/\\./,R),St=d(/./,R),Ct=d(/\*\*\*+/,"*"),Mt=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),zt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Nt=re(S([Tt,Ct,Mt,zt,St])),_t=Nt,Bt=y(r=>Ae(r,_t,{memoization:!1}).join(""),"Ie"),Rt=Bt,ze="abcdefghijklmnopqrstuvwxyz",Dt=y(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=ze[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Ne=y(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+ze.indexOf(r[i])+1;return o},"V"),fe=y((r,o)=>{if(o<r)return fe(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),It=y((r,o,i)=>fe(r,o).map(c=>String(c).padStart(i,"0")),"qe"),_e=y((r,o)=>fe(Ne(r),Ne(o)).map(Dt),"W"),w=y(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),G=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 G([]);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]}})(),_=y(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Ft=d(/\\./,w),Wt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),Lt=d(/[\\\/]/,_),Vt=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),Ut=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${Ve.compile(o).source}$).*?`)),qt=d(/^(!!)+/),Gt=S([Ut,qt]),Zt=d(/\/(\*\*\/)+/,()=>G([W([_(),w(".+?"),_()]),_()])),Ht=d(/^(\*\*\/)+/,()=>G([w("^"),W([w(".*?"),_()])])),Kt=d(/\/(\*\*)$/,()=>G([W([_(),w(".*?")]),w("$")])),Jt=d(/\*\*/,()=>w(".*?")),Be=S([Zt,Ht,Kt,Jt]),Xt=d(/\*\/(?!\*\*\/|\*$)/,()=>W([w("[^\\\\/]*?"),_()])),Qt=d(/\*/,()=>w("[^\\\\/]*")),Re=S([Xt,Qt]),De=d("?",()=>w("[^\\\\/]")),Yt=d("[",R),er=d("]",R),tr=d(/[!^]/,"^\\\\/"),rr=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),nr=d(/\\./,R),or=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),sr=d(/[\\\/]/,"\\\\/"),ir=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),ar=S([nr,or,sr,rr,ir]),Ie=F([Yt,Se(tr),re(ar),er],r=>w(r.join(""))),cr=d("{","(?:"),ur=d("}",")"),lr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>It(+o,+i,Math.min(o.length,i.length)).join("|")),fr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>_e(o,i).join("|")),pr=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>_e(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),dr=S([lr,fr,pr]),Fe=F([cr,dr,ur],r=>w(r.join(""))),gr=d("{"),hr=d("}"),mr=d(","),yr=d(/\\./,w),br=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),vr=d(/[\\\/]/,_),$r=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),xr=Me(()=>Le),wr=d("",()=>w("(?:)")),jr=kt(S([Be,Re,De,Ie,Fe,xr,yr,br,vr,$r]),W),We=S([jr,wr]),Le=F([gr,Se(F([We,re(F([mr,We]))])),hr],G),Or=re(S([Gt,Be,Re,De,Ie,Fe,Le,Ft,Wt,Lt,Vt]),W),kr=Or,Er=y(r=>Ae(r,kr,{memoization:!1})[0],"kr"),Pr=Er,pe=y((r,o,i)=>pe.compile(r,i).test(o),"N");pe.compile=(()=>{const r=At((i,c)=>se(Pr(Rt(i)),c)),o=Pt((i,c)=>Oe(i.map(a=>r(a,c))));return(i,c)=>Et(i)?r(i,c):o(i,c)})();var Ve=pe;return h(x)})();return e.default||e},"_lazyMatch"),Mr;const Jo=y((e,t)=>(Mr||(Mr=tn(),tn=null),Mr(e,t)),"default");var Xo=Object.defineProperty,Qo=Wr((e,t)=>Xo(e,"name",{value:t,configurable:!0}),"t$1");const Yo=/^[A-Z]:\//i,Y=Qo((e="")=>e&&e.replaceAll("\\","/").replace(Yo,t=>t.toUpperCase()),"normalizeWindowsPath");var es=Object.defineProperty,D=Wr((e,t)=>es(e,"name",{value:t,configurable:!0}),"r");const ts=/^[/\\]{2}/,rs=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Sn=/^[A-Z]:$/i,rn=/^\/([A-Z]:)?$/i,ns=/.(\.[^./]+)$/,os=/^[/\\]|^[a-z]:[/\\]/i,ss=/\/$/,is=D(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Cn=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"),de=D(e=>rs.test(e),"isAbsolute"),Mn=D(function(e){if(e.length===0)return".";e=Y(e);const t=ts.exec(e),n=de(e),s=e.at(-1)==="/";return e=Cn(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Sn.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!de(e)?`/${e}`:e)},"normalize"),zn=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 Mn(t)},"join"),ne=D(function(...e){e=e.map(s=>Y(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:is();!u||u.length===0||(t=`${u}/${t}`,n=de(u))}return t=Cn(t,!n),n&&!de(t)?`/${t}`:t.length>0?t:"."},"resolve");D(function(e){return Y(e)},"toNamespacedPath");const Nn=D(function(e){return ns.exec(Y(e))?.[1]??""},"extname");D(function(e,t){const n=ne(e).replace(rn,"$1").split("/"),s=ne(t).replace(rn,"$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 Lr=D(e=>{const t=Y(e).replace(ss,"").split("/").slice(0,-1);return t.length===1&&Sn.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(de(e)?"/":".")},"dirname");D(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return Y(e.root?ne(...t):t.join("/"))},"format");const as=D((e,t)=>{const n=Y(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename"),_n=D(function(e){const t=os.exec(e)?.[0]?.replaceAll("\\","/")??"",n=as(e),s=Nn(n);return{base:n,dir:Lr(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");D((e,t)=>Jo(t,Mn(e)),"matchesGlob");var cs=Object.defineProperty,ge=A((e,t)=>cs(e,"name",{value:t,configurable:!0}),"n$2"),us=Object.defineProperty,oe=ge((e,t)=>us(e,"name",{value:t,configurable:!0}),"a");const ls=xe(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,fs=oe(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 ls(e)},"__cjs_getBuiltinModule"),{fileURLToPath:ps}=fs("node:url");var ds=Object.defineProperty,$e=oe((e,t)=>ds(e,"name",{value:t,configurable:!0}),"t$1");function we(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}v(we,"Ie");Q(we,"De");A(we,"m$5");ge(we,"d");oe(we,"getDefaultExportFromCjs");$e(we,"getDefaultExportFromCjs");function nt(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}v(nt,"Fe");Q(nt,"mr");A(nt,"h$2");ge(nt,"O");oe(nt,"getDefaultExportFromNamespaceIfPresent");$e(nt,"getDefaultExportFromNamespaceIfPresent");function ot(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}v(ot,"Le");Q(ot,"$r");A(ot,"x");ge(ot,"P");oe(ot,"getDefaultExportFromNamespaceIfNotNamed");$e(ot,"getDefaultExportFromNamespaceIfNotNamed");function st(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=$e(oe(ge(A(Q(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:$e(function(){return e[s]},"get")})}),n}v(st,"Ze");Q(st,"br");A(st,"y$4");ge(st,"_");oe(st,"getAugmentedNamespace");$e(st,"getAugmentedNamespace");var nn,on;function it(){return on||(on=1,nn=["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"]),nn}v(it,"qe");Q(it,"xr");A(it,"w$1");ge(it,"k");oe(it,"requireBinaryExtensions");var gs=it();const hs=we(gs);var ms=Object.defineProperty,ee=oe((e,t)=>ms(e,"name",{value:t,configurable:!0}),"r");const ys=new Set(hs),bs=new Set(["/","\\",void 0]),sn=Symbol.for("pathe:normalizedAlias"),vs=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,$s=ee((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),lt=ee((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),Bn=ee(e=>{if(e[sn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([n],[s])=>$s(n,s)));for(const n in t)for(const s in t)s===n||n.startsWith(s)||t[n].startsWith(s)&&bs.has(t[n][s.length])&&(t[n]=t[s]+t[n].slice(s.length));return Object.defineProperty(t,sn,{enumerable:!1,value:!0}),t},"normalizeAliases");ee((e,t)=>{e=Y(e),t=Bn(t);for(const[n,s]of Object.entries(t)){if(!e.startsWith(n))continue;const u=lt(n)?n.slice(0,-1):n;if(lt(e[u.length]))return zn(s,e.slice(n.length))}return e},"resolveAlias");ee(e=>vs.exec(e)?.[2],"filename");ee((e,t)=>{e=Y(e),t=Bn(t);for(const[n,s]of Object.entries(t).toReversed()){if(!e.startsWith(s))continue;const u=lt(s)?s.slice(0,-1):s;if(lt(e[u.length]))return zn(n,e.slice(s.length))}return e},"reverseResolveAlias");const xs=/^(?:\.?\.[/\\]|\.\.\B)/,ws=/^(?:msys|cygwin)$/;ee(e=>xs.test(e)||e==="..","isRelative");ee(e=>ys.has(Nn(e).slice(1).toLowerCase()),"isBinaryPath");const ae=ee(e=>Y(e instanceof URL?ps(e):e),"toPath");ee(()=>{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:ws.test(e)},"isWindows");var js=Object.defineProperty,Os=A((e,t)=>js(e,"name",{value:t,configurable:!0}),"y$3"),ks=Object.defineProperty,Rn=Os((e,t)=>ks(e,"name",{value:t,configurable:!0}),"a");const Es=xe(import.meta.url),Ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ps=Rn(e=>{if(typeof Ze<"u"&&Ze.versions&&Ze.versions.node){const[t,n]=Ze.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ze.getBuiltinModule(e)}return Es(e)},"__cjs_getBuiltinModule"),{stat:As,lstat:Ts}=Ps("node:fs/promises");var Ss=Object.defineProperty,an=Rn((e,t)=>Ss(e,"name",{value:t,configurable:!0}),"s");const Cs=an(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?ae(t.cwd):process.cwd();let s=ne(n);const{root:u}=_n(s),l=ae(t.stopAt??u),g=ne(s,l),h=t.type??"file",x=an(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?As:Ts;for(;s&&s!==g&&s!==u;){const j=await x(s);for(let $ of j){if($===An)return;if($===void 0)continue;Buffer.isBuffer($)?$=$.toString():$ instanceof URL&&($=ae($));const M=de($)?$:ne(s,$);try{const P=await O(M);if(h==="file"&&P.isFile()||h==="directory"&&P.isDirectory())return M}catch{}}s=Lr(s)}},"findUp");var Ms=Object.defineProperty,zs=A((e,t)=>Ms(e,"name",{value:t,configurable:!0}),"p"),Ns=Object.defineProperty,Dn=zs((e,t)=>Ns(e,"name",{value:t,configurable:!0}),"i");const _s=xe(import.meta.url),He=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Bs=Dn(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 _s(e)},"__cjs_getBuiltinModule"),{statSync:Rs,lstatSync:Ds}=Bs("node:fs");var Is=Object.defineProperty,cn=Dn((e,t)=>Is(e,"name",{value:t,configurable:!0}),"o");const Fs=cn((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?ae(t.cwd):process.cwd();let s=ne(n);const{root:u}=_n(s),l=ae(t.stopAt??u),g=ne(s,l),h=t.type??"file",x=cn(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?Rs:Ds;for(;s&&s!==g&&s!==u;){for(let j of x(s)){if(j===An)return;if(j===void 0)continue;Buffer.isBuffer(j)?j=j.toString():j instanceof URL&&(j=ae(j));const $=de(j)?j:ne(s,j);try{const M=O($);if(h==="file"&&M.isFile()||h==="directory"&&M.isDirectory())return $}catch{}}s=Lr(s)}},"findUpSync");var Ws=Object.defineProperty,In=A((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"t$2"),Ls=Object.defineProperty,Vr=In((e,t)=>Ls(e,"name",{value:t,configurable:!0}),"s");const Vs=xe(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Us=Vr(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 Vs(e)},"__cjs_getBuiltinModule"),{access:qs}=Us("node:fs/promises");var Gs=Object.defineProperty,Zs=Vr((e,t)=>Gs(e,"name",{value:t,configurable:!0}),"o");async function K(e,t=Pn){Fr(e),e=ae(e);try{return await qs(e,t),!0}catch{return!1}}v(K,"F$3");Q(K,"Z");A(K,"i$1");In(K,"d");Vr(K,"m");Zs(K,"isAccessible");var Hs=Object.defineProperty,Fn=A((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"t$1"),Ks=Object.defineProperty,Ur=Fn((e,t)=>Ks(e,"name",{value:t,configurable:!0}),"t");const Js=xe(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xs=Ur(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 Js(e)},"__cjs_getBuiltinModule"),{accessSync:Qs}=Xs("node:fs");var Ys=Object.defineProperty,ei=Ur((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"o");function J(e,t=Pn){Fr(e),e=ae(e);try{return Qs(e,t),!0}catch{return!1}}v(J,"L");Q(J,"H");A(J,"i");Fn(J,"d");Ur(J,"m");ei(J,"isAccessibleSync");var ti=Object.defineProperty,Wn=A((e,t)=>ti(e,"name",{value:t,configurable:!0}),"o"),ri=Object.defineProperty,Ln=Wn((e,t)=>ri(e,"name",{value:t,configurable:!0}),"o"),ni=Object.defineProperty,oi=Ln((e,t)=>ni(e,"name",{value:t,configurable:!0}),"o");let Vn=class extends Error{static{v(this,"tr")}static{Q(this,"Qr")}static{A(this,"s")}static{Wn(this,"u")}static{Ln(this,"n")}static{oi(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 si=Object.defineProperty,ii=A((e,t)=>si(e,"name",{value:t,configurable:!0}),"$e"),ai=Object.defineProperty,qr=ii((e,t)=>ai(e,"name",{value:t,configurable:!0}),"W"),ci=Object.defineProperty,b=qr((e,t)=>ci(e,"name",{value:t,configurable:!0}),"u$1");let un=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(()=>Ve,"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=P(r.children.map(m=>$(m,o,i)).filter(Boolean));if(p?.length){const m=r.children.some(Z=>!Z.regex||!(Z.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"),P=b(r=>Array.from(new Set(r)),"ue"),E=b((r,o,i)=>E.compile(r,i).test(o),"R");E.compile=(r,o)=>{const i=o?.partial??!1,c=M(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=E,q=b((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),se=q,je=b(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),Oe=je,te=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),ke=b(r=>r.length===0,"he"),Ee=(()=>{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))})(),ht=b(r=>typeof r=="number","de"),mt=b(r=>typeof r=="object"&&r!==null,"xe"),yt=b(r=>r instanceof RegExp,"me"),bt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),vt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),Pe=b(r=>typeof r=="string","A"),z=b(r=>r===void 0,"f"),$t=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"),Ae=b((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=N(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)=>te(r)?xt(r,o):Pe(r)?Te(r,o):wt(r,o),"i"),xt=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(!z(o)&&!c.options.silent){const m=a.slice(f,p),k=B(o)?o(m,a,`${f}`):o;z(k)||c.output.push(k)}c.index=p}return!0}},"we"),wt=b((r,o)=>{if(vt(r))return Te(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return bt(r)&&B(o)&&!Ee(o)?jt(a,o):Ot(a,o)}},"$e"),jt=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}`);z(m)||i.output.push(m)}return i.index=p,!0}else return!1},"Ee"),Ot=b((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!z(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;z(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Te=b((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!z(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;z(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ce=b((r,o,i,c)=>{const a=N(r),f=o>1;return le(ue(Ce(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"),Se=b((r,o)=>ce(r,0,1,o),"L"),re=b((r,o)=>ce(r,0,1/0,o),"$"),kt=b((r,o)=>ce(r,1,1/0,o),"Re"),F=b((r,o)=>{const i=r.map(N);return le(ue(Ce(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(N);return le(ue(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),Ce=b((r,o=!0,i=!1)=>{const c=N(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"),ue=b((r,o)=>{const i=N(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 z(p)||c.output.push(p),!0}else return!1}:i},"B"),le=(()=>{let r=0;return o=>{const i=N(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 H=m.store||(m.store=new Map);if(k.length){for(let L=0,Tr=k.length;L<Tr;L+=2){const Sr=k[L*2],Cr=k[L*2+1];H.set(Sr,Cr)}k.length=0}const C=H.get(p);if(C===!1)return!1;if(ht(C))return a.index=C,!0;if(C)return a.index=C.index,C.output?.length&&a.output.push(...C.output),!0}const Z=a.output.length,Ar=i(a);if(m.indexMax=Math.max(m.indexMax,p),Ar){const H=a.index,C=a.output.length;if(C>Z){const L=a.output.slice(Z,C);k.push(p,{index:H,output:L})}else k.push(p,H);return!0}else return k.push(p,!1),!1}}})(),Me=b(r=>{let o;return i=>(o||(o=N(r())),o(i))},"G"),N=$t(r=>{if(B(r))return ke(r)?Me(r):r;if(Pe(r)||yt(r))return d(r);if(te(r))return F(r);if(mt(r))return S(Object.values(r));throw new Error("Invalid rule")}),R=b(r=>r,"d"),Et=b(r=>typeof r=="string","ke"),Pt=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"),At=b(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),Tt=d(/\\./,R),St=d(/./,R),Ct=d(/\*\*\*+/,"*"),Mt=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),zt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Nt=re(S([Tt,Ct,Mt,zt,St])),_t=Nt,Bt=b(r=>Ae(r,_t,{memoization:!1}).join(""),"Ie"),Rt=Bt,ze="abcdefghijklmnopqrstuvwxyz",Dt=b(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=ze[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Ne=b(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+ze.indexOf(r[i])+1;return o},"V"),fe=b((r,o)=>{if(o<r)return fe(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),It=b((r,o,i)=>fe(r,o).map(c=>String(c).padStart(i,"0")),"qe"),_e=b((r,o)=>fe(Ne(r),Ne(o)).map(Dt),"W"),w=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),G=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 G([]);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]}})(),_=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Ft=d(/\\./,w),Wt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),Lt=d(/[\\\/]/,_),Vt=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),Ut=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${Ve.compile(o).source}$).*?`)),qt=d(/^(!!)+/),Gt=S([Ut,qt]),Zt=d(/\/(\*\*\/)+/,()=>G([W([_(),w(".+?"),_()]),_()])),Ht=d(/^(\*\*\/)+/,()=>G([w("^"),W([w(".*?"),_()])])),Kt=d(/\/(\*\*)$/,()=>G([W([_(),w(".*?")]),w("$")])),Jt=d(/\*\*/,()=>w(".*?")),Be=S([Zt,Ht,Kt,Jt]),Xt=d(/\*\/(?!\*\*\/|\*$)/,()=>W([w("[^\\\\/]*?"),_()])),Qt=d(/\*/,()=>w("[^\\\\/]*")),Re=S([Xt,Qt]),De=d("?",()=>w("[^\\\\/]")),Yt=d("[",R),er=d("]",R),tr=d(/[!^]/,"^\\\\/"),rr=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),nr=d(/\\./,R),or=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),sr=d(/[\\\/]/,"\\\\/"),ir=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),ar=S([nr,or,sr,rr,ir]),Ie=F([Yt,Se(tr),re(ar),er],r=>w(r.join(""))),cr=d("{","(?:"),ur=d("}",")"),lr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>It(+o,+i,Math.min(o.length,i.length)).join("|")),fr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>_e(o,i).join("|")),pr=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>_e(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),dr=S([lr,fr,pr]),Fe=F([cr,dr,ur],r=>w(r.join(""))),gr=d("{"),hr=d("}"),mr=d(","),yr=d(/\\./,w),br=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),vr=d(/[\\\/]/,_),$r=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),xr=Me(()=>Le),wr=d("",()=>w("(?:)")),jr=kt(S([Be,Re,De,Ie,Fe,xr,yr,br,vr,$r]),W),We=S([jr,wr]),Le=F([gr,Se(F([We,re(F([mr,We]))])),hr],G),Or=re(S([Gt,Be,Re,De,Ie,Fe,Le,Ft,Wt,Lt,Vt]),W),kr=Or,Er=b(r=>Ae(r,kr,{memoization:!1})[0],"kr"),Pr=Er,pe=b((r,o,i)=>pe.compile(r,i).test(o),"N");pe.compile=(()=>{const r=At((i,c)=>se(Pr(Rt(i)),c)),o=Pt((i,c)=>Oe(i.map(a=>r(a,c))));return(i,c)=>Et(i)?r(i,c):o(i,c)})();var Ve=pe;return h(x)})();return e.default||e},"_lazyMatch"),zr;const ui=b((e,t)=>(zr||(zr=un(),un=null),zr(e,t)),"default");var li=Object.defineProperty,fi=qr((e,t)=>li(e,"name",{value:t,configurable:!0}),"t$1");const pi=/^[A-Z]:\//i,he=fi((e="")=>e&&e.replaceAll("\\","/").replace(pi,t=>t.toUpperCase()),"normalizeWindowsPath");var di=Object.defineProperty,I=qr((e,t)=>di(e,"name",{value:t,configurable:!0}),"r");const gi=/^[/\\]{2}/,hi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Un=/^[A-Z]:$/i,ln=/^\/([A-Z]:)?$/i,mi=/.(\.[^./]+)$/,yi=/^[/\\]|^[a-z]:[/\\]/i,bi=/\/$/,vi=I(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),qn=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"),et=I(e=>hi.test(e),"isAbsolute"),Gn=I(function(e){if(e.length===0)return".";e=he(e);const t=gi.exec(e),n=et(e),s=e.at(-1)==="/";return e=qn(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Un.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!et(e)?`/${e}`:e)},"normalize"),ie=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 Gn(t)},"join"),Br=I(function(...e){e=e.map(s=>he(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:vi();!u||u.length===0||(t=`${u}/${t}`,n=et(u))}return t=qn(t,!n),n&&!et(t)?`/${t}`:t.length>0?t:"."},"resolve");I(function(e){return he(e)},"toNamespacedPath");const $i=I(function(e){return mi.exec(he(e))?.[1]??""},"extname");I(function(e,t){const n=Br(e).replace(ln,"$1").split("/"),s=Br(t).replace(ln,"$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 Gr=I(e=>{const t=he(e).replace(bi,"").split("/").slice(0,-1);return t.length===1&&Un.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(et(e)?"/":".")},"dirname");I(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return he(e.root?Br(...t):t.join("/"))},"format");const xi=I((e,t)=>{const n=he(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename");I(function(e){const t=yi.exec(e)?.[0]?.replaceAll("\\","/")??"",n=xi(e),s=$i(n);return{base:n,dir:Gr(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");I((e,t)=>ui(t,Gn(e)),"matchesGlob");var wi=Object.defineProperty,Zr=A((e,t)=>wi(e,"name",{value:t,configurable:!0}),"a");const ft=Zr((e,t)=>(t?.create&&qo(e),e),"useDirectory");Zr(async(e,t)=>{if(be.CACHE_DIR&&!["0","1","false","true"].includes(be.CACHE_DIR))return ft(ie(be.CACHE_DIR,e),t);const n=await Cs("package.json",{cwd:t?.cwd??En(),type:"file"});if(!n){if(t?.throwError)throw new Vn("No such file or directory found.");return}const s=ie(Gr(n),"node_modules"),u=ie(s,".cache"),l=ie(u,e);if(!(!await K(l,ve)&&await K(l))&&!(!await K(u,ve)&&await K(u))&&!(!await K(s,ve)&&await K(s)))return ft(l,t)},"findCacheDirectory");const ji=Zr((e,t)=>{if(be.CACHE_DIR&&!["0","1","false","true"].includes(be.CACHE_DIR))return ft(ie(be.CACHE_DIR,e),t);const n=Fs("package.json",{cwd:t?.cwd??En(),type:"file"});if(!n){if(t?.throwError)throw new Vn("No such file or directory found.");return}const s=ie(Gr(n),"node_modules"),u=ie(s,".cache"),l=ie(u,e);if(!(!J(l,ve)&&J(l))&&!(!J(u,ve)&&J(u))&&!(!J(s,ve)&&J(s)))return ft(l,t)},"findCacheDirectorySync"),Zn=ji;var Oi=Object.defineProperty,ki=v((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"r$3");const fn=ki(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"r");var Ei=Object.defineProperty,Hn=v((e,t)=>Ei(e,"name",{value:t,configurable:!0}),"s$5");const Pi=tt(import.meta.url),Xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ai=Hn(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 Pi(e)},"u"),{lstatSync:pn,mkdirSync:Ti}=Ai("node:fs"),pt=Hn(e=>{wn(e);try{const t=pn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(fn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Ti(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=pn(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(fn(n))}'`,{cause:t})}},"g");var Si=Object.defineProperty,Kn=v((e,t)=>Si(e,"name",{value:t,configurable:!0}),"x$1"),Ci=Object.defineProperty,Hr=Kn((e,t)=>Ci(e,"name",{value:t,configurable:!0}),"$"),Mi=Object.defineProperty,zi=Hr((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"r$1");const Ni=zi(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),"normalizeLF"),_i=globalThis.process??Object.create(null),dn={versions:{}},gn=new Proxy(_i,{get(e,t){if(t in e)return e[t];if(t in dn)return dn[t]}});var Bi=Object.defineProperty,Ri=Hr((e,t)=>Bi(e,"name",{value:t,configurable:!0}),"b");const Di=Ri((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,P={};if(M)for(let E=0;E<=M;E++){const U=E+g;if(!h)P[U]=!0;else if(E===0){const q=t[U-1]?.length;P[U]=[h,(q??0)-h+1]}else if(E===M)P[U]=[0,O];else{const q=t[U-E]?.length;P[U]=[0,q]}}else h===O?P[g]=h?[h,0]:!0:P[g]=[h,(O??0)-(h??0)];return{end:$,markerLines:P,start:j}},"getMarkerLines");var Ii=Object.defineProperty,ut=Hr((e,t)=>Ii(e,"name",{value:t,configurable:!0}),"t");const Fi=gn.platform==="win32"&&!gn.env?.WT_SESSION?">":"❯",Wi=ut((e,t,n)=>{const s={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...n,color:{gutter:ut(E=>E,"gutter"),marker:ut(E=>E,"marker"),message:ut(E=>E,"message"),...n?.color}},u=typeof t.start.column=="number";let l=Ni(e).split(`
3
+ `);typeof s.tabWidth=="number"&&(l=l.map(E=>E.replaceAll(" "," ".repeat(s.tabWidth))));const{end:g,markerLines:h,start:x}=Di(t,l,s.linesAbove,s.linesBelow),O=String(g).length,{gutter:j,marker:$,message:M}=s.color;let P=l.slice(x,g).map((E,U)=>{const q=x+1+U,se=h[q],je=String(q).padStart(O),Oe=!h[q+1],te=` ${je}${s.showGutter?" |":""}`;if(se){let B="";if(Array.isArray(se)){const ke=E.replaceAll(/[^\t]/g," ").slice(0,Math.max(se[0]-1,0)),Ee=se[1]||1;B=[`
4
+ `,s.prefix+j(te.replaceAll(/\d/g," "))," ",ke,$("^").repeat(Ee)].join(""),Oe&&s.message&&(B+=` ${M(s.message)}`)}return[s.prefix+$(Fi),j(te),E.length>0?` ${E}`:"",B].join("")}return`${s.prefix} ${j(te)}${E.length>0?` ${E}`:""}`}).join(`
5
+ `);return s.message&&!u&&(P=`${s.prefix+" ".repeat(O+1)+s.message}
6
+ ${P}`),P},"codeFrame");var Li=Object.defineProperty,Vi=Kn((e,t)=>Li(e,"name",{value:t,configurable:!0}),"N"),Ui=Object.defineProperty,Kr=Vi((e,t)=>Ui(e,"name",{value:t,configurable:!0}),"l");const hn=Kr((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"),qi=/\n|\r(?!\n)/,Gi=Kr(e=>e.split(qi).reduce((t,n)=>(t.push(t.at(-1)+n.length+1),t),[0]),"getLineStartIndexes"),Zi=Kr((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=Gi(e),g=hn(t,l);return{column:t-l[g]+1,line:g+1}}const u=hn(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var Hi=Object.defineProperty,Ki=v((e,t)=>Hi(e,"name",{value:t,configurable:!0}),"r$2");let Ji=class extends Error{static{v(this,"a")}static{Ki(this,"r")}fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
7
+
8
+ ${this.codeFrame}
9
+ `:""}`}set message(t){this.#e=t}};var Xi=Object.defineProperty,at=v((e,t)=>Xi(e,"name",{value:t,configurable:!0}),"a$2");const Qi=at(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"p"),Yi=at((e,t,n)=>Wi(e,{start:t},{tabWidth:!1,...n}),"m"),ea=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,ta=at((e,t)=>{const n=ea.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),Zi(e,g)},"d"),ra=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,na=at(e=>e.replace(ra,(t,n,s)=>`"${s}"(${Qi(s)})`),"h");function Jn(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=ta(e,u),u=na(u)):u+=" while parsing empty string";const g=new Ji(u);throw g.fileName=n,l&&(g.codeFrame=Yi(e,l,s)),g}v(Jn,"$$1");at(Jn,"$");var oa=Object.defineProperty,sa=v((e,t)=>oa(e,"name",{value:t,configurable:!0}),"c$1");function Jr(e,t,n){typeof t=="object"&&(n=t,t=void 0);const s=vo(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)),Jn(u,t,jn(e),{color:g})}v(Jr,"s$4");sa(Jr,"a");var ia=Object.defineProperty,aa=v((e,t)=>ia(e,"name",{value:t,configurable:!0}),"e$2");const ca=aa(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"e");var ua=Object.defineProperty,la=v((e,t)=>ua(e,"name",{value:t,configurable:!0}),"n$1");const fa=new TextEncoder,pa=la(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return fa.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.")},"r");var da=Object.defineProperty,Xn=v((e,t)=>da(e,"name",{value:t,configurable:!0}),"c");const ga=tt(import.meta.url),Qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ha=Xn(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 ga(e)},"l"),{mkdirSync:ma,writeFileSync:ya,statSync:ba,renameSync:mn,chownSync:va,chmodSync:$a,unlinkSync:xa}=ha("node:fs"),wa=Xn((e,t,n)=>{n={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...n},wn(e),ca(t),e=jn(e);const s=`${e}.tmp`;try{const u=X(e,Qr);if(!u&&n.recursive){const g=rt(e);X(g,Qr)||ma(g,{recursive:!0})}let l;if(ya(s,typeof t=="string"?Buffer.from(t,n.encoding??"utf8"):pa(t),{flag:n.flag}),u&&!n.overwrite&&(l=ba(e),n.chown??={gid:l.gid,uid:l.uid},mn(e,`${e}.bak`)),n.chown)try{va(s,n.chown.uid,n.chown.gid)}catch{}$a(s,l&&!n.mode?l.mode:n.mode??438),mn(s,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{X(s)&&xa(`${e}.tmp`)}},"E");var ja=Object.defineProperty,me=v((e,t)=>ja(e,"name",{value:t,configurable:!0}),"i$2");const Oa=/^(?:( )+|\t+)/,ct="space";function Rr(e,t,n){return e&&t===ct&&n===1}v(Rr,"d$3");me(Rr,"d");function Dr(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(Oa);if(h===null)s=0,u="";else{const x=h[0].length,O=h[1]?ct:"tab";if(Rr(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 E=Math.abs(M);if(Rr(t,O,E))continue;l=Qn(O,E)}const P=n.get(l);n.set(l,P===void 0?[1,0]:[P[0]+j,P[1]+$])}}return n}v(Dr,"h$1");me(Dr,"h");function Qn(e,t){return(e===ct?"s":"t")+String(t)}v(Qn,"x");me(Qn,"w");function Yn(e){const t=e[0]==="s"?ct:"tab",n=Number(e.slice(1));return{type:t,amount:n}}v(Yn,"E$1");me(Yn,"E");function eo(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(eo,"M");me(eo,"v");function to(e,t){return(e===ct?" ":" ").repeat(t)}v(to,"k");me(to,"x");function ro(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=Dr(e,!0);t.size===0&&(t=Dr(e,!1));const n=eo(t);let s,u=0,l="";return n!==void 0&&({type:s,amount:u}=Yn(n),l=to(s,u)),{amount:u,type:s,indent:l}}v(ro,"z$1");me(ro,"M");var ka=Object.defineProperty,no=v((e,t)=>ka(e,"name",{value:t,configurable:!0}),"s$2");const Ea=tt(import.meta.url),Ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Pa=no(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 Ea(e)},"g"),{readFileSync:Aa}=Pa("node:fs"),oo=no((e,t,n={})=>{const{detectIndent:s,indent:u,replacer:l,stringify:g=JSON.stringify,...h}={indent:" ",...n};let x=u,O=`
10
+ `;if(X(e,$o))try{const $=Aa(e,"utf8");if(s){const{indent:M}=ro($);x=M}O=$.endsWith(`
11
+ `)?`
12
+ `:""}catch($){if($.code!=="ENOENT")throw $}const j=g(t,l,x);wa(e,`${j}${O}`,h)},"R");var Ta=Object.defineProperty,Sa=v((e,t)=>Ta(e,"name",{value:t,configurable:!0}),"s$1");class dt extends Error{static{v(this,"VisConfigError")}static{Sa(this,"VisConfigError")}chain;constructor(t,n,s){super(t,s),this.name=this.constructor.name,this.chain=n}}var Ca=Object.defineProperty,Ma=v((e,t)=>Ca(e,"name",{value:t,configurable:!0}),"e");class za extends dt{static{v(this,"VisConfigCycleError")}static{Ma(this,"VisConfigCycleError")}constructor(t,n){const s=[...n,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${s}`,n)}}var Na=Object.defineProperty,_a=v((e,t)=>Na(e,"name",{value:t,configurable:!0}),"s");class so extends dt{static{v(this,"VisConfigDeprecatedKeyError")}static{_a(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 Ba=Object.defineProperty,Ra=v((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"t$1");class yn extends dt{static{v(this,"VisConfigLoadError")}static{Ra(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 Da=Object.defineProperty,io=v((e,t)=>Da(e,"name",{value:t,configurable:!0}),"t");const Ia=io(e=>e.join(" → "),"formatChain");class Nr extends dt{static{v(this,"VisConfigNotFoundError")}static{io(this,"VisConfigNotFoundError")}constructor(t,n,s){const u=n.length>0?n[n.length-1]:"<unknown>",l=s.length>0?`
15
+ Tried:
16
+ ${s.join(`
17
+ `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${l}
18
+ Chain: ${Ia(n)}`,n)}}var Fa=Object.defineProperty,ao=v((e,t)=>Fa(e,"name",{value:t,configurable:!0}),"i$1");const bn="@inherit",Wa=["aliases","dependsOn","inputs","outputs"],La=ao((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(bn))return[...t];const n=[];for(const s of t){if(s===bn){e!==void 0&&n.push(...e);continue}n.push(s)}return n},"mergeArrayWithInherit"),Va=ao((e,t)=>{const n={...e,...t};for(const s of Wa){const u=e?.[s],l=t?.[s],g=La(u,l);g===void 0?delete n[s]:n[s]=g}return n},"mergeTargetWithInherit");var Ua=Object.defineProperty,gt=v((e,t)=>Ua(e,"name",{value:t,configurable:!0}),"o");const qa=gt(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"),Ga=gt(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),Za=gt((e,t,n)=>{if(!n||typeof n!="object")return;const s=qa(n);if(s.length>0)throw new so(e,t,s)},"assertNoDeprecatedConfigKeys"),Ha=gt((e,t,n)=>{if(!n||typeof n!="object")return;const s=Ga(n);if(s.length>0)throw new so(e,t,s)},"assertNoDeprecatedTaskKeys");var Ka=Object.defineProperty,T=v((e,t)=>Ka(e,"name",{value:t,configurable:!0}),"r");const co=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],Ja=new Set(co),uo=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],Xa=new Set(uo),vc=2880,_r={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},Qa=T(e=>{if(!e)return{..._r};const t=_r.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{..._r,...e,policies:s}},"mergeSecurityDefaults"),vn=T(e=>({...e,security:Qa(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),Ya=T(e=>{let t;try{t=xn(e)}catch{return}const n=new Set(t.filter(s=>Ja.has(s)));for(const s of co)if(n.has(s))return V(e,s)},"findVisConfigFile"),ec=T(e=>{let t;try{t=xn(e)}catch{return}const n=new Set(t.filter(s=>Xa.has(s)));for(const s of uo)if(n.has(s))return V(e,s)},"findVisTaskConfigFile"),Xr=T(e=>$n("sha256").update(mo(e)).digest("hex"),"hashFileContents"),tc=T(e=>{const t=$n("sha256"),n=[...e].sort();for(const s of n)t.update(s),t.update(":"),t.update(Xr(s)),t.update(`
19
+ `);return t.digest("hex")},"hashConfigChain"),rc=T(e=>{const t=V(e,"node_modules");if(X(t)){const s=V(t,".cache","vis");return pt(s),V(s,"vis-config-cache.json")}const n=Zn("vis",{create:!0,cwd:e});return n?V(n,"vis-config-cache.json"):void 0},"getConfigCachePath"),nc=T((e,t)=>{if(X(e))try{const n=Jr(e);if(n.hash===t)return n.config}catch{}},"readConfigCache"),oc=T((e,t,n)=>{try{pt(rt(e)),oo(e,{config:n,hash:t})}catch{}},"writeConfigCache"),sc=T(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),ic=T((e,t,n)=>{if(On(e))throw new Nr(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=rt(t),l=V(u,e);if(s.push(l),X(l))return l;throw new Nr(e,[...n,t],s)}try{return tt(t).resolve(e)}catch{throw s.push(`require.resolve("${e}") from ${t}`),new Nr(e,[...n,t],s)}},"resolveExtendsSpecifier"),lo=T(async(e,t,n)=>{const s=Xr(t),u=t.slice(t.lastIndexOf(".")),l=V(rt(t),`.vis-config-tmp-${s}${u}`);yo(t,l);let g;try{g=await e.import(l,{default:!0,try:!0})??{}}catch(h){throw new yn(t,n,h)}finally{try{bo(l)}catch{}}try{return(typeof g=="function"?await g()??{}:g)??{}}catch(h){throw new yn(t,n,h)}},"loadRawConfig"),ac=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]=Va(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"),fo=T(async(e,t,n,s,u,l)=>{if(s.has(t))throw new za(t,n);if(!u.has(t)){s.add(t);try{const g=await lo(e,t,n);Za(t,n,g);const h=sc(g.extends);for(const x of h){const O=ic(x,t,n);await fo(e,O,[...n,t],s,u,l)}u.set(t,g),l.push(t)}finally{s.delete(t)}}},"resolveConfigChain"),$c=T(async(e,t)=>{let n;if(t?.explicitConfigPath){const $=On(t.explicitConfigPath)?t.explicitConfigPath:V(e,t.explicitConfigPath);if(!X($))throw new Error(`Cannot find config file at ${$}`);n=$}else n=Ya(e);if(!n)return vn({});const s=kn(e,{fsCache:!1,moduleCache:!1}),u=new Set,l=new Map,g=[];await fo(s,n,[],u,l,g);const h=tc(g),x=rc(e);if(x){const $=nc(x,h);if($)return $}let O={};for(const $ of g)O=ac(O,l.get($));const j=vn(O);return x&&oc(x,h,j),j},"loadVisConfig"),cc=T(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),uc=T((e,t)=>{const n=V(e,"node_modules"),s=cc(t);if(X(n)){const l=V(n,".cache","vis","task-configs");return pt(l),V(l,`${s}.json`)}const u=Zn("vis",{create:!0,cwd:e});return u?V(u,"task-configs",`${s}.json`):void 0},"getVisTaskCachePath"),lc=T((e,t)=>{if(X(e))try{const n=Jr(e);if(n.hash===t)return n.config}catch{}},"readVisTaskCache"),fc=T((e,t,n)=>{try{pt(rt(e)),oo(e,{config:n,hash:t})}catch{}},"writeVisTaskCache"),xc=T(async(e,t,n)=>{const s=ec(t);if(!s)return;const u=Xr(s),l=uc(e,n);if(l){const O=lc(l,u);if(O)return O}const g=kn(t,{fsCache:!1,moduleCache:!1}),h=await lo(g,s,[]);Ha(s,[],h);const x=h;return l&&fc(l,u,x),x},"loadVisTaskConfig"),wc=T(e=>e,"defineTaskConfig"),jc=T(e=>e,"defineConfig");export{Jn as $,wa as E,ec as G,vc as H,uo as V,wc as a,pt as b,jc as c,oo as d,$c as e,fn as f,ca as g,co as h,pa as i,Ya as j,Va as k,_r as l,vn as m,Zn as p,xc as r,Jr as s,ro as z};