@visulima/vis 1.0.0-alpha.21 → 1.0.0-alpha.23

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 (139) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/LICENSE.md +204 -9
  3. package/README.md +21 -4
  4. package/dashboard/dist/index.html +152 -0
  5. package/dist/bin.js +1 -1
  6. package/dist/binx.js +3 -0
  7. package/dist/config/index.d.ts +208 -28
  8. package/dist/config/index.js +1 -1
  9. package/dist/packem_chunks/bin.js +360 -354
  10. package/dist/packem_chunks/bloom-status.js +2 -0
  11. package/dist/packem_chunks/bloom-sync.js +2 -0
  12. package/dist/packem_chunks/cache-attestation.js +1 -0
  13. package/dist/packem_chunks/config.js +15 -15
  14. package/dist/packem_chunks/doctor-probe.js +2 -2
  15. package/dist/packem_chunks/fix.js +3 -3
  16. package/dist/packem_chunks/handler.js +1 -1
  17. package/dist/packem_chunks/handler10.js +2 -1
  18. package/dist/packem_chunks/handler11.js +1 -5
  19. package/dist/packem_chunks/handler12.js +5 -1
  20. package/dist/packem_chunks/handler13.js +1 -27
  21. package/dist/packem_chunks/handler14.js +28 -5
  22. package/dist/packem_chunks/handler15.js +5 -1
  23. package/dist/packem_chunks/handler16.js +1 -1
  24. package/dist/packem_chunks/handler17.js +1 -1
  25. package/dist/packem_chunks/handler18.js +1 -1
  26. package/dist/packem_chunks/handler19.js +1 -1
  27. package/dist/packem_chunks/handler2.js +4 -2
  28. package/dist/packem_chunks/handler20.js +1 -5
  29. package/dist/packem_chunks/handler21.js +5 -2
  30. package/dist/packem_chunks/handler22.js +2 -2
  31. package/dist/packem_chunks/handler23.js +2 -18
  32. package/dist/packem_chunks/handler24.js +1 -1
  33. package/dist/packem_chunks/handler25.js +1 -1
  34. package/dist/packem_chunks/handler26.js +5 -5
  35. package/dist/packem_chunks/handler27.js +1 -1
  36. package/dist/packem_chunks/handler28.js +1 -1
  37. package/dist/packem_chunks/handler29.js +1 -1
  38. package/dist/packem_chunks/handler3.js +4 -4
  39. package/dist/packem_chunks/handler30.js +3 -3
  40. package/dist/packem_chunks/handler31.js +4 -4
  41. package/dist/packem_chunks/handler32.js +3 -3
  42. package/dist/packem_chunks/handler33.js +1 -1
  43. package/dist/packem_chunks/handler34.js +24 -24
  44. package/dist/packem_chunks/handler35.js +5 -3
  45. package/dist/packem_chunks/handler36.js +21 -6
  46. package/dist/packem_chunks/handler37.js +60 -21
  47. package/dist/packem_chunks/handler38.js +6 -428
  48. package/dist/packem_chunks/handler39.js +708 -6
  49. package/dist/packem_chunks/handler4.js +6 -8
  50. package/dist/packem_chunks/handler40.js +11 -11
  51. package/dist/packem_chunks/handler41.js +286 -10
  52. package/dist/packem_chunks/handler42.js +11 -11
  53. package/dist/packem_chunks/handler43.js +10 -25
  54. package/dist/packem_chunks/handler44.js +25 -24
  55. package/dist/packem_chunks/handler45.js +23 -212
  56. package/dist/packem_chunks/handler46.js +2 -2
  57. package/dist/packem_chunks/handler47.js +1 -1
  58. package/dist/packem_chunks/handler48.js +53 -46
  59. package/dist/packem_chunks/handler49.js +6 -6
  60. package/dist/packem_chunks/handler5.js +8 -1
  61. package/dist/packem_chunks/handler6.js +1 -1
  62. package/dist/packem_chunks/handler7.js +1 -1
  63. package/dist/packem_chunks/handler8.js +1 -1
  64. package/dist/packem_chunks/handler9.js +1 -2
  65. package/dist/packem_chunks/heal-accept.js +4 -4
  66. package/dist/packem_chunks/heal.js +1 -1
  67. package/dist/packem_chunks/help-command.js +16 -16
  68. package/dist/packem_chunks/index.js +2 -2
  69. package/dist/packem_chunks/keys-refresh.js +1 -1
  70. package/dist/packem_chunks/list.js +2 -2
  71. package/dist/packem_chunks/loader.js +4 -1
  72. package/dist/packem_chunks/loader2.js +1 -0
  73. package/dist/packem_chunks/prune.js +1 -1
  74. package/dist/packem_chunks/run.js +1 -1
  75. package/dist/packem_chunks/status.js +2 -2
  76. package/dist/packem_chunks/sync.js +2 -2
  77. package/dist/packem_chunks/sync2.js +2 -2
  78. package/dist/packem_chunks/tripwire.js +2 -2
  79. package/dist/packem_chunks/verify-lockfile.js +2 -0
  80. package/dist/packem_shared/{advisories-DsynpacV.js → advisories-U1QKY_tg.js} +1 -1
  81. package/dist/packem_shared/{ai-analysis-uYuTIIXi.js → ai-analysis-B8pDCOuT.js} +2 -2
  82. package/dist/packem_shared/ai-fix-DiGSrGKv.js +43 -0
  83. package/dist/packem_shared/anolilab-text-CAM_E6uK.js +13 -0
  84. package/dist/packem_shared/applyDefaults-KxZkvlp3.js +1 -0
  85. package/dist/packem_shared/build-scripts-3E2pmscY.js +1 -0
  86. package/dist/packem_shared/cyclonedx-B293T7R0.js +4 -0
  87. package/dist/packem_shared/dependency-scan-BbtivycX.js +1 -0
  88. package/dist/packem_shared/docker-BhBBfWfc.js +60 -0
  89. package/dist/packem_shared/failure-log-B0Uh-65U.js +2 -0
  90. package/dist/packem_shared/index-C1w1GXdS.js +1 -0
  91. package/dist/packem_shared/index-CZX_II5N.js +29 -0
  92. package/dist/packem_shared/index.server-B7ETiT4C.js +2 -0
  93. package/dist/packem_shared/license-zZU7aavK.js +1 -0
  94. package/dist/packem_shared/{lifecycle-Dv3nAtoD.js → lifecycle-wRE7ymVc.js} +2 -2
  95. package/dist/packem_shared/{lockfile-C5DYMHVq.js → lockfile-CQLFNyVa.js} +1 -1
  96. package/dist/packem_shared/manifests-Z3spBpxv.js +1 -0
  97. package/dist/packem_shared/{min-release-age-BFozFonQ.js → min-release-age-Cz6HbF-I.js} +2 -2
  98. package/dist/packem_shared/{native-config-sync-Dvi1g2nQ.js → native-config-sync-BOeuyrBj.js} +5 -5
  99. package/dist/packem_shared/osv-bloom-CyCDpXBl.js +2 -0
  100. package/dist/packem_shared/pm-runner-CVliR6Ie.js +1 -0
  101. package/dist/packem_shared/provenance-BcldGs02.js +1 -0
  102. package/dist/packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js +1 -0
  103. package/dist/packem_shared/registry-keys-pemEkRM9.js +1 -0
  104. package/dist/packem_shared/resolve-explicit-2G-2HWtR.js +5 -0
  105. package/dist/packem_shared/runtime-check-DgXsKCsv.js +1 -0
  106. package/dist/packem_shared/s1ngularity-Boxkax0D.js +1 -0
  107. package/dist/packem_shared/scan-progress-EbvmIh4i.js +2 -0
  108. package/dist/packem_shared/{selectors-B2ISH581.js → selectors-BE2BCnTR.js} +1 -1
  109. package/dist/packem_shared/signatures-SO-fyExV.js +2 -0
  110. package/dist/packem_shared/toolchain-Jx2lkAYy.js +5 -0
  111. package/dist/packem_shared/typosquats-CioMnpnb.js +1 -0
  112. package/dist/packem_shared/verify-C8EAHql6.js +1 -0
  113. package/dist/packem_shared/{vis-update-app-CFrlJ3mW.js → vis-update-app-BWA1kA1q.js} +1 -1
  114. package/index.d.ts +78 -0
  115. package/index.js +57 -53
  116. package/package.json +34 -13
  117. package/schemas/project.schema.json +37 -7
  118. package/schemas/vis-config.schema.json +2395 -1996
  119. package/dist/packem_shared/ai-cache-DuwHYx2O.js +0 -1
  120. package/dist/packem_shared/ai-fix-DzrA-dVz.js +0 -43
  121. package/dist/packem_shared/applyDefaults-BOVDw1jD.js +0 -1
  122. package/dist/packem_shared/build-scripts-DsWMSWDs.js +0 -1
  123. package/dist/packem_shared/cache-directory-DQak1Vjc.js +0 -1
  124. package/dist/packem_shared/cyclonedx-CiHXuG8M.js +0 -4
  125. package/dist/packem_shared/dependency-scan-DC3nAFHS.js +0 -1
  126. package/dist/packem_shared/docker-B-CIN_nj.js +0 -60
  127. package/dist/packem_shared/failure-log-C3LEMmkq.js +0 -2
  128. package/dist/packem_shared/flakiness-Dq6K4ymq.js +0 -1
  129. package/dist/packem_shared/manifests-B0fMp872.js +0 -1
  130. package/dist/packem_shared/registry-keys-CewRFW0e.js +0 -1
  131. package/dist/packem_shared/resolve-explicit-CC4Kifk5.js +0 -5
  132. package/dist/packem_shared/run-summary-utils-BaBGP3bo.js +0 -1
  133. package/dist/packem_shared/runtime-check-BusAwPb2.js +0 -1
  134. package/dist/packem_shared/scan-progress-CMynp3eA.js +0 -2
  135. package/dist/packem_shared/signatures-5ZdjJ2Pu.js +0 -2
  136. package/dist/packem_shared/toolchain-Cc3cwyLP.js +0 -5
  137. package/dist/packem_shared/typosquats-BCeR-sLf.js +0 -1
  138. package/dist/packem_shared/verify-07kUNTuP.js +0 -1
  139. package/dist/packem_shared/xxh3-DrAUNq4n.js +0 -1
@@ -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/index.server-B7ETiT4C.js";import{p as i}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-CyCDpXBl.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/index.server-B7ETiT4C.js";import{p as n}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-EbvmIh4i.js";import{s as y,D as h}from"../packem_shared/osv-bloom-CyCDpXBl.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};
@@ -1,19 +1,19 @@
1
- var ts=Object.defineProperty;var $=(e,t)=>ts(e,"name",{value:t,configurable:!0});import{createRequire as rs}from"node:module";import{createJiti as Yn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const ns=rs(import.meta.url),hr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cn=$(e=>{if(typeof hr<"u"&&hr.versions&&hr.versions.node){const[t,o]=hr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return hr.getBuiltinModule(e)}return ns(e)},"__cjs_getBuiltinModule"),{createHash:Hn}=cn("node:crypto"),{readdirSync:Xn,readFileSync:os,copyFileSync:ss,unlinkSync:is}=cn("node:fs"),{createRequire:ze}=cn("node:module");var as=Object.defineProperty,Je=$((e,t)=>as(e,"name",{value:t,configurable:!0}),"K$3"),cs=Object.defineProperty,W=Je((e,t)=>cs(e,"name",{value:t,configurable:!0}),"E");const ls=ze(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qn=W(e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,o]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return qe.getBuiltinModule(e)}return ls(e)},"__cjs_getBuiltinModule"),{existsSync:Ue}=Qn("node:fs"),{env:Ze,cwd:eo}=qe,{createRequire:He}=Qn("node:module"),to=0,Ve=2,ro=Symbol("findUpStop");var us=Object.defineProperty,fs=W((e,t)=>us(e,"name",{value:t,configurable:!0}),"t$4"),ps=Object.defineProperty,ds=fs((e,t)=>ps(e,"name",{value:t,configurable:!0}),"t"),gs=Object.defineProperty,hs=ds((e,t)=>gs(e,"name",{value:t,configurable:!0}),"n");const ln=hs(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ms=Object.defineProperty,bs=W((e,t)=>ms(e,"name",{value:t,configurable:!0}),"i$4"),ys=Object.defineProperty,$s=bs((e,t)=>ys(e,"name",{value:t,configurable:!0}),"r"),vs=Object.defineProperty,xs=$s((e,t)=>vs(e,"name",{value:t,configurable:!0}),"i");const kn=xs(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var ws=Object.defineProperty,js=W((e,t)=>ws(e,"name",{value:t,configurable:!0}),"i$3"),Os=Object.defineProperty,no=js((e,t)=>Os(e,"name",{value:t,configurable:!0}),"s");const ks=He(import.meta.url),mr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ps=no(e=>{if(typeof mr<"u"&&mr.versions&&mr.versions.node){const[t,o]=mr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return mr.getBuiltinModule(e)}return ks(e)},"__cjs_getBuiltinModule"),{lstatSync:Pn,mkdirSync:Es}=Ps("node:fs");var As=Object.defineProperty,Ss=no((e,t)=>As(e,"name",{value:t,configurable:!0}),"o");const Ts=Ss(e=>{ln(e);try{const t=Pn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(kn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Es(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Pn(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(kn(o))}'`,{cause:t})}},"ensureDirSync");var zs=Object.defineProperty,b=W((e,t)=>zs(e,"name",{value:t,configurable:!0}),"s$6");let En=b(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=b((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=b((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:b(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=b(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:b(()=>Ee,"zeptomatch")});var P=b(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=b(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=b((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=b((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=b(r=>Array.from(new Set(r)),"ue"),E=b((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=b((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=b(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),Re=b(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=b(r=>typeof r=="number","de"),Qe=b(r=>typeof r=="object"&&r!==null,"xe"),et=b(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=b(r=>typeof r=="string","A"),T=b(r=>r===void 0,"f"),nt=b(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=b((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=b((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=b((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=b((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=b((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=b((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=b((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=b((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=b((r,n)=>ee(r,0,1,n),"L"),K=b((r,n)=>ee(r,0,1/0,n),"$"),ct=b((r,n)=>ee(r,1,1/0,n),"Re"),I=b((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=b((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=b((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=b((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=b(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=b(r=>r,"d"),lt=b(r=>typeof r=="string","ke"),ut=b(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=b(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=b(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=b(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=b(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=b((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=b((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=b((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=b(r=>({children:r}),"y"),D=(()=>{const r=b((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=b(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=b((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),Yr;const Ms=b((e,t)=>(Yr||(Yr=En(),En=null),Yr(e,t)),"zeptomatch"),Cs=/^[A-Z]:\//i,ie=b((e="")=>e&&e.replaceAll("\\","/").replace(Cs,t=>t.toUpperCase()),"normalizeWindowsPath"),_s=/^[/\\]{2}/,Ns=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,oo=/^[A-Z]:$/i,An=/^\/([A-Z]:)?$/i,Rs=/.(\.[^./]+)$/,Bs=/^[/\\]|^[a-z]:[/\\]/i,Is=/\/$/,Ds=b(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),so=b((e,t)=>{let o="",i=0,u=-1,f=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||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),Ie=b(e=>Ns.test(e),"isAbsolute"),io=b(function(e){if(e.length===0)return".";e=ie(e);const t=_s.exec(e),o=Ie(e),i=e.at(-1)==="/";return e=so(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),oo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Ie(e)?`/${e}`:e)},"normalize"),ao=b((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return io(t)},"join"),le=b(function(...e){e=e.map(i=>ie(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Ds();!u||u.length===0||(t=`${u}/${t}`,o=Ie(u))}return t=so(t,!o),o&&!Ie(t)?`/${t}`:t.length>0?t:"."},"resolve");b(function(e){return ie(e)},"toNamespacedPath");const co=b(function(e){return Rs.exec(ie(e))?.[1]??""},"extname");b(function(e,t){const o=le(e).replace(An,"$1").split("/"),i=le(t).replace(An,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative");const un=b(e=>{const t=ie(e).replace(Is,"").split("/").slice(0,-1);return t.length===1&&oo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ie(e)?"/":".")},"dirname");b(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ie(e.root?le(...t):t.join("/"))},"format");const Fs=b((e,t)=>{const o=ie(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),lo=b(function(e){const t=Bs.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Fs(e),i=co(o);return{base:o,dir:un(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");b((e,t)=>Ms(t,io(e)),"matchesGlob");var Ws=Object.defineProperty,Y=W((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"i$2");const Ls=He(import.meta.url),br=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qs=Y(e=>{if(typeof br<"u"&&br.versions&&br.versions.node){const[t,o]=br.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return br.getBuiltinModule(e)}return Ls(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Us}=qs("node:url");function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(Ir,"dn$1");Je(Ir,"Nr");W(Ir,"w$1");Y(Ir,"getDefaultExportFromCjs");var Sn,Tn;function Dr(){return Tn||(Tn=1,Sn=["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"]),Sn}$(Dr,"gn$1");Je(Dr,"Dr");W(Dr,"y$2");Y(Dr,"requireBinaryExtensions");var Zs=Dr();const Vs=Ir(Zs),Gs=new Set(Vs),Ks=new Set(["/","\\",void 0]),zn=Symbol.for("pathe:normalizedAlias"),Js=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Hs=Y((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Nr=Y((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),uo=Y(e=>{if(e[zn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[i])=>Hs(o,i)));for(const o in t)for(const i in t)i===o||o.startsWith(i)||t[o].startsWith(i)&&Ks.has(t[o][i.length])&&(t[o]=t[i]+t[o].slice(i.length));return Object.defineProperty(t,zn,{enumerable:!1,value:!0}),t},"normalizeAliases");Y((e,t)=>{e=ie(e),t=uo(t);for(const[o,i]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Nr(o)?o.slice(0,-1):o;if(Nr(e[u.length]))return ao(i,e.slice(o.length))}return e},"resolveAlias");Y(e=>Js.exec(e)?.[2],"filename");Y((e,t)=>{e=ie(e),t=uo(t);for(const[o,i]of Object.entries(t).toReversed()){if(!e.startsWith(i))continue;const u=Nr(i)?i.slice(0,-1):i;if(Nr(e[u.length]))return ao(o,e.slice(i.length))}return e},"reverseResolveAlias");const Xs=/^(?:\.?\.[/\\]|\.\.\B)/,Ys=/^(?:msys|cygwin)$/;Y(e=>Xs.test(e)||e==="..","isRelative");Y(e=>Gs.has(co(e).slice(1).toLowerCase()),"isBinaryPath");const Ge=Y(e=>ie(e instanceof URL?Us(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:Ys.test(e)},"isWindows");var Qs=Object.defineProperty,ei=W((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"p"),ti=Object.defineProperty,fo=ei((e,t)=>ti(e,"name",{value:t,configurable:!0}),"a");const ri=He(import.meta.url),yr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,po=fo(e=>{if(typeof yr<"u"&&yr.versions&&yr.versions.node){const[t,o]=yr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return yr.getBuiltinModule(e)}return ri(e)},"__cjs_getBuiltinModule"),{stat:ni,lstat:oi}=po("node:fs/promises"),{fileURLToPath:si}=po("node:url");var ii=Object.defineProperty,Mn=fo((e,t)=>ii(e,"name",{value:t,configurable:!0}),"n");const ai=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 o=t.cwd?Ge(t.cwd):process.cwd();let i=le(o);const{root:u}=lo(i),f=Ge(t.stopAt??u),g=le(i,f),h=t.type??"file",w=Mn(async function(k){return typeof e=="function"?[await e(k)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const P=t.allowSymlinks?ni:oi;for(;i&&i!==g&&i!==u;){const k=await w(i);for(let O of k){if(O===ro)return;if(O===void 0)continue;Buffer.isBuffer(O)?O=O.toString():O instanceof URL&&(O=si(O));const N=Ie(O)?O:le(i,O);try{const C=await P(N);if(h==="file"&&C.isFile()||h==="directory"&&C.isDirectory())return N}catch{}}i=un(i)}},"findUp");var ci=Object.defineProperty,li=W((e,t)=>ci(e,"name",{value:t,configurable:!0}),"u$3"),ui=Object.defineProperty,go=li((e,t)=>ui(e,"name",{value:t,configurable:!0}),"i");const fi=He(import.meta.url),$r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ho=go(e=>{if(typeof $r<"u"&&$r.versions&&$r.versions.node){const[t,o]=$r.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return $r.getBuiltinModule(e)}return fi(e)},"__cjs_getBuiltinModule"),{statSync:pi,lstatSync:di}=ho("node:fs"),{fileURLToPath:gi}=ho("node:url");var hi=Object.defineProperty,Cn=go((e,t)=>hi(e,"name",{value:t,configurable:!0}),"o");const mi=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 o=t.cwd?Ge(t.cwd):process.cwd();let i=le(o);const{root:u}=lo(i),f=Ge(t.stopAt??u),g=le(i,f),h=t.type??"file",w=Cn(function(k){return typeof e=="function"?[e(k)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const P=t.allowSymlinks?pi:di;for(;i&&i!==g&&i!==u;){for(let k of w(i)){if(k===ro)return;if(k===void 0)continue;Buffer.isBuffer(k)?k=k.toString():k instanceof URL&&(k=gi(k));const O=Ie(k)?k:le(i,k);try{const N=P(O);if(h==="file"&&N.isFile()||h==="directory"&&N.isDirectory())return O}catch{}}i=un(i)}},"findUpSync");var bi=Object.defineProperty,mo=W((e,t)=>bi(e,"name",{value:t,configurable:!0}),"t$2"),yi=Object.defineProperty,fn=mo((e,t)=>yi(e,"name",{value:t,configurable:!0}),"s");const $i=He(import.meta.url),vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vi=fn(e=>{if(typeof vr<"u"&&vr.versions&&vr.versions.node){const[t,o]=vr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return vr.getBuiltinModule(e)}return $i(e)},"__cjs_getBuiltinModule"),{access:xi}=vi("node:fs/promises");var wi=Object.defineProperty,ji=fn((e,t)=>wi(e,"name",{value:t,configurable:!0}),"o");async function Se(e,t=to){ln(e),e=Ge(e);try{return await xi(e,t),!0}catch{return!1}}$(Se,"Q$3");Je(Se,"se");W(Se,"i$1");mo(Se,"d");fn(Se,"m");ji(Se,"isAccessible");var Oi=Object.defineProperty,bo=W((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"t$1"),ki=Object.defineProperty,pn=bo((e,t)=>ki(e,"name",{value:t,configurable:!0}),"t");const Pi=He(import.meta.url),xr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ei=pn(e=>{if(typeof xr<"u"&&xr.versions&&xr.versions.node){const[t,o]=xr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return xr.getBuiltinModule(e)}return Pi(e)},"__cjs_getBuiltinModule"),{accessSync:Ai}=Ei("node:fs");var Si=Object.defineProperty,Ti=pn((e,t)=>Si(e,"name",{value:t,configurable:!0}),"o");function Te(e,t=to){ln(e),e=Ge(e);try{return Ai(e,t),!0}catch{return!1}}$(Te,"ee$1");Je(Te,"ie");W(Te,"i");bo(Te,"d");pn(Te,"m");Ti(Te,"isAccessibleSync");var zi=Object.defineProperty,yo=W((e,t)=>zi(e,"name",{value:t,configurable:!0}),"o"),Mi=Object.defineProperty,$o=yo((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"o"),Ci=Object.defineProperty,_i=$o((e,t)=>Ci(e,"name",{value:t,configurable:!0}),"o");let vo=class extends Error{static{$(this,"Jn")}static{Je(this,"Xr")}static{W(this,"s")}static{yo(this,"u")}static{$o(this,"n")}static{_i(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 Ni=Object.defineProperty,Ri=W((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"$e"),Bi=Object.defineProperty,dn=Ri((e,t)=>Bi(e,"name",{value:t,configurable:!0}),"W"),Ii=Object.defineProperty,v=dn((e,t)=>Ii(e,"name",{value:t,configurable:!0}),"u$1");let _n=v(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=v((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=v((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:v(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=v(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:v(()=>Ee,"zeptomatch")});var P=v(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=v(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=v((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=v((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=v(r=>Array.from(new Set(r)),"ue"),E=v((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=v((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=v(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=v(r=>Array.isArray(r),"j"),B=v(r=>typeof r=="function","_"),Re=v(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=v(r=>typeof r=="number","de"),Qe=v(r=>typeof r=="object"&&r!==null,"xe"),et=v(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=v(r=>typeof r=="string","A"),T=v(r=>r===void 0,"f"),nt=v(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=v((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=v((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=v((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=v((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=v((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=v((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=v((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=v((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=v((r,n)=>ee(r,0,1,n),"L"),K=v((r,n)=>ee(r,0,1/0,n),"$"),ct=v((r,n)=>ee(r,1,1/0,n),"Re"),I=v((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=v((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=v((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=v((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=v(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=v(r=>r,"d"),lt=v(r=>typeof r=="string","ke"),ut=v(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=v(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=v(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=v(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=v(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=v((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=v((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=v((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=v(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=v(r=>({children:r}),"y"),D=(()=>{const r=v((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=v(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=v(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=v((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),Qr;const Di=v((e,t)=>(Qr||(Qr=_n(),_n=null),Qr(e,t)),"default");var Fi=Object.defineProperty,Wi=dn((e,t)=>Fi(e,"name",{value:t,configurable:!0}),"t$1");const Li=/^[A-Z]:\//i,Fe=Wi((e="")=>e&&e.replaceAll("\\","/").replace(Li,t=>t.toUpperCase()),"normalizeWindowsPath");var qi=Object.defineProperty,J=dn((e,t)=>qi(e,"name",{value:t,configurable:!0}),"r");const Ui=/^[/\\]{2}/,Zi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,xo=/^[A-Z]:$/i,Nn=/^\/([A-Z]:)?$/i,Vi=/.(\.[^./]+)$/,Gi=/^[/\\]|^[a-z]:[/\\]/i,Ki=/\/$/,Ji=J(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),wo=J((e,t)=>{let o="",i=0,u=-1,f=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||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),Ar=J(e=>Zi.test(e),"isAbsolute"),jo=J(function(e){if(e.length===0)return".";e=Fe(e);const t=Ui.exec(e),o=Ar(e),i=e.at(-1)==="/";return e=wo(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),xo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Ar(e)?`/${e}`:e)},"normalize"),Ae=J((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return jo(t)},"join"),nn=J(function(...e){e=e.map(i=>Fe(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Ji();!u||u.length===0||(t=`${u}/${t}`,o=Ar(u))}return t=wo(t,!o),o&&!Ar(t)?`/${t}`:t.length>0?t:"."},"resolve");J(function(e){return Fe(e)},"toNamespacedPath");const Hi=J(function(e){return Vi.exec(Fe(e))?.[1]??""},"extname");J(function(e,t){const o=nn(e).replace(Nn,"$1").split("/"),i=nn(t).replace(Nn,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative");const gn=J(e=>{const t=Fe(e).replace(Ki,"").split("/").slice(0,-1);return t.length===1&&xo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ar(e)?"/":".")},"dirname");J(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return Fe(e.root?nn(...t):t.join("/"))},"format");const Xi=J((e,t)=>{const o=Fe(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename");J(function(e){const t=Gi.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Xi(e),i=Hi(o);return{base:o,dir:gn(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");J((e,t)=>Di(t,jo(e)),"matchesGlob");var Yi=Object.defineProperty,hn=W((e,t)=>Yi(e,"name",{value:t,configurable:!0}),"u");const Rr=hn((e,t)=>(t?.create&&Ts(e),e),"useDirectory");hn(async(e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Rr(Ae(Ze.CACHE_DIR,e),t);const o=await ai("package.json",{cwd:t?.cwd??eo(),type:"file"});if(!o){if(t?.throwError)throw new vo("No such file or directory found.");return}const i=Ae(gn(o),"node_modules"),u=Ae(i,".cache"),f=Ae(u,e);if(!(Ue(f)&&!await Se(f,Ve))&&!(Ue(u)&&!await Se(u,Ve))&&!(Ue(i)&&!await Se(i,Ve)))return Rr(f,t)},"findCacheDirectory");const Qi=hn((e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Rr(Ae(Ze.CACHE_DIR,e),t);const o=mi("package.json",{cwd:t?.cwd??eo(),type:"file"});if(!o){if(t?.throwError)throw new vo("No such file or directory found.");return}const i=Ae(gn(o),"node_modules"),u=Ae(i,".cache"),f=Ae(u,e);if(!(Ue(f)&&!Te(f,Ve))&&!(Ue(u)&&!Te(u,Ve))&&!(Ue(i)&&!Te(i,Ve)))return Rr(f,t)},"findCacheDirectorySync"),Oo=Qi,on=0,ko=4,Ru=Symbol("findUpStop"),Bu=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var ea=Object.defineProperty,ta=$((e,t)=>ea(e,"name",{value:t,configurable:!0}),"t$a"),ra=Object.defineProperty,na=ta((e,t)=>ra(e,"name",{value:t,configurable:!0}),"t"),oa=Object.defineProperty,sa=na((e,t)=>oa(e,"name",{value:t,configurable:!0}),"n");const Fr=sa(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ia=Object.defineProperty,aa=$((e,t)=>ia(e,"name",{value:t,configurable:!0}),"i$a"),ca=Object.defineProperty,la=aa((e,t)=>ca(e,"name",{value:t,configurable:!0}),"r"),ua=Object.defineProperty,fa=la((e,t)=>ua(e,"name",{value:t,configurable:!0}),"i");const Rn=fa(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var pa=Object.defineProperty,da=$((e,t)=>pa(e,"name",{value:t,configurable:!0}),"i$9"),ga=Object.defineProperty,Po=da((e,t)=>ga(e,"name",{value:t,configurable:!0}),"s");const ha=ze(import.meta.url),wr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ma=Po(e=>{if(typeof wr<"u"&&wr.versions&&wr.versions.node){const[t,o]=wr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return wr.getBuiltinModule(e)}return ha(e)},"__cjs_getBuiltinModule"),{lstatSync:Bn,mkdirSync:ba}=ma("node:fs");var ya=Object.defineProperty,$a=Po((e,t)=>ya(e,"name",{value:t,configurable:!0}),"o");const Wr=$a(e=>{Fr(e);try{const t=Bn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Rn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{ba(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Bn(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Rn(o))}'`,{cause:t})}},"ensureDirSync");var va=Object.defineProperty,xa=$((e,t)=>va(e,"name",{value:t,configurable:!0}),"$e"),wa=Object.defineProperty,mn=xa((e,t)=>wa(e,"name",{value:t,configurable:!0}),"W"),ja=Object.defineProperty,x=mn((e,t)=>ja(e,"name",{value:t,configurable:!0}),"u$1");let In=x(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=x((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=x((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:x(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=x(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:x(()=>Ee,"zeptomatch")});var P=x(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=x(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=x((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=x((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=x(r=>Array.from(new Set(r)),"ue"),E=x((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=x((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=x(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=x(r=>Array.isArray(r),"j"),B=x(r=>typeof r=="function","_"),Re=x(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=x(r=>typeof r=="number","de"),Qe=x(r=>typeof r=="object"&&r!==null,"xe"),et=x(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=x(r=>typeof r=="string","A"),T=x(r=>r===void 0,"f"),nt=x(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=x((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=x((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=x((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=x((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=x((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=x((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=x((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=x((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=x((r,n)=>ee(r,0,1,n),"L"),K=x((r,n)=>ee(r,0,1/0,n),"$"),ct=x((r,n)=>ee(r,1,1/0,n),"Re"),I=x((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=x((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=x((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=x((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=x(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=x(r=>r,"d"),lt=x(r=>typeof r=="string","ke"),ut=x(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=x(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=x(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=x(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=x(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=x((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=x((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=x((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=x(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=x(r=>({children:r}),"y"),D=(()=>{const r=x((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=x(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=x(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=x((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),en;const Oa=x((e,t)=>(en||(en=In(),In=null),en(e,t)),"default");var ka=Object.defineProperty,Pa=mn((e,t)=>ka(e,"name",{value:t,configurable:!0}),"t$1");const Ea=/^[A-Z]:\//i,ae=Pa((e="")=>e&&e.replaceAll("\\","/").replace(Ea,t=>t.toUpperCase()),"normalizeWindowsPath");var Aa=Object.defineProperty,H=mn((e,t)=>Aa(e,"name",{value:t,configurable:!0}),"r");const Sa=/^[/\\]{2}/,Ta=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Eo=/^[A-Z]:$/i,Dn=/^\/([A-Z]:)?$/i,za=/.(\.[^./]+)$/,Ma=/^[/\\]|^[a-z]:[/\\]/i,Ca=/\/$/,_a=/^win/i,Na=H(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Iu="/",Du=_a.test(globalThis.process?.platform??"")?";":":",Ao=H((e,t)=>{let o="",i=0,u=-1,f=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||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),De=H(e=>Ta.test(e),"isAbsolute"),So=H(function(e){if(e.length===0)return".";e=ae(e);const t=Sa.exec(e),o=De(e),i=e.at(-1)==="/";return e=Ao(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),Eo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!De(e)?`/${e}`:e)},"normalize"),Z=H((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return So(t)},"join"),sn=H(function(...e){e=e.map(i=>ae(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Na();!u||u.length===0||(t=`${u}/${t}`,o=De(u))}return t=Ao(t,!o),o&&!De(t)?`/${t}`:t.length>0?t:"."},"resolve");H(function(e){return ae(e)},"toNamespacedPath");const To=H(function(e){return za.exec(ae(e))?.[1]??""},"extname"),Fu=H(function(e,t){const o=sn(e).replace(Dn,"$1").split("/"),i=sn(t).replace(Dn,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative"),Xe=H(e=>{const t=ae(e).replace(Ca,"").split("/").slice(0,-1);return t.length===1&&Eo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(De(e)?"/":".")},"dirname");H(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ae(e.root?sn(...t):t.join("/"))},"format");const Ra=H((e,t)=>{const o=ae(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),Wu=H(function(e){const t=Ma.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Ra(e),i=To(o);return{base:o,dir:Xe(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");H((e,t)=>Oa(t,So(e)),"matchesGlob");var Ba=Object.defineProperty,We=$((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"n$5"),Ia=Object.defineProperty,ue=We((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"a");const Da=ze(import.meta.url),jr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fa=ue(e=>{if(typeof jr<"u"&&jr.versions&&jr.versions.node){const[t,o]=jr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return jr.getBuiltinModule(e)}return Da(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Wa}=Fa("node:url");var La=Object.defineProperty,Ke=ue((e,t)=>La(e,"name",{value:t,configurable:!0}),"t$1");function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(Lr,"m$4");We(Lr,"d");ue(Lr,"getDefaultExportFromCjs");Ke(Lr,"getDefaultExportFromCjs");function bn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(bn,"h$3");We(bn,"O");ue(bn,"getDefaultExportFromNamespaceIfPresent");Ke(bn,"getDefaultExportFromNamespaceIfPresent");function yn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}$(yn,"x$3");We(yn,"P");ue(yn,"getDefaultExportFromNamespaceIfNotNamed");Ke(yn,"getDefaultExportFromNamespaceIfNotNamed");function $n(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var o=Ke(ue(We($(function i(){var u=!1;try{u=this instanceof i}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a"),"s"),"a"),"a");o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var u=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,u.get?u:{enumerable:!0,get:Ke(function(){return e[i]},"get")})}),o}$($n,"y$4");We($n,"_");ue($n,"getAugmentedNamespace");Ke($n,"getAugmentedNamespace");var Fn,Wn;function vn(){return Wn||(Wn=1,Fn=["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"]),Fn}$(vn,"w$3");We(vn,"k");ue(vn,"requireBinaryExtensions");var qa=vn();const Ua=Lr(qa);var Za=Object.defineProperty,ce=ue((e,t)=>Za(e,"name",{value:t,configurable:!0}),"r");const Va=new Set(Ua),Ga=new Set(["/","\\",void 0]),Ln=Symbol.for("pathe:normalizedAlias"),Ka=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Ja=ce((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Br=ce((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),zo=ce(e=>{if(e[Ln])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[i])=>Ja(o,i)));for(const o in t)for(const i in t)i===o||o.startsWith(i)||t[o].startsWith(i)&&Ga.has(t[o][i.length])&&(t[o]=t[i]+t[o].slice(i.length));return Object.defineProperty(t,Ln,{enumerable:!1,value:!0}),t},"normalizeAliases");ce((e,t)=>{e=ae(e),t=zo(t);for(const[o,i]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Br(o)?o.slice(0,-1):o;if(Br(e[u.length]))return Z(i,e.slice(o.length))}return e},"resolveAlias");ce(e=>Ka.exec(e)?.[2],"filename");ce((e,t)=>{e=ae(e),t=zo(t);for(const[o,i]of Object.entries(t).toReversed()){if(!e.startsWith(i))continue;const u=Br(i)?i.slice(0,-1):i;if(Br(e[u.length]))return Z(o,e.slice(i.length))}return e},"reverseResolveAlias");const Ha=/^(?:\.?\.[/\\]|\.\.\B)/,Xa=/^(?:msys|cygwin)$/;ce(e=>Ha.test(e)||e==="..","isRelative");ce(e=>Va.has(To(e).slice(1).toLowerCase()),"isBinaryPath");const qr=ce(e=>ae(e instanceof URL?Wa(e):e),"toPath");ce(()=>{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:Xa.test(e)},"isWindows");var Ya=Object.defineProperty,Mo=$((e,t)=>Ya(e,"name",{value:t,configurable:!0}),"t$8"),Qa=Object.defineProperty,xn=Mo((e,t)=>Qa(e,"name",{value:t,configurable:!0}),"t");const ec=ze(import.meta.url),Or=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tc=xn(e=>{if(typeof Or<"u"&&Or.versions&&Or.versions.node){const[t,o]=Or.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Or.getBuiltinModule(e)}return ec(e)},"__cjs_getBuiltinModule"),{accessSync:rc}=tc("node:fs");var nc=Object.defineProperty,oc=xn((e,t)=>nc(e,"name",{value:t,configurable:!0}),"o");function V(e,t=on){Fr(e),e=qr(e);try{return rc(e,t),!0}catch{return!1}}$(V,"i$7");Mo(V,"d");xn(V,"m");oc(V,"isAccessibleSync");var sc=Object.defineProperty,Co=$((e,t)=>sc(e,"name",{value:t,configurable:!0}),"t$7"),ic=Object.defineProperty,_o=Co((e,t)=>ic(e,"name",{value:t,configurable:!0}),"t"),ac=Object.defineProperty,cc=_o((e,t)=>ac(e,"name",{value:t,configurable:!0}),"o");let qn=class extends Error{static{$(this,"c")}static{Co(this,"i")}static{_o(this,"n")}static{cc(this,"PermissionError")}constructor(t){super(`EPERM: Operation not permitted, ${t}`)}get code(){return"EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}};var lc=Object.defineProperty,uc=$((e,t)=>lc(e,"name",{value:t,configurable:!0}),"a$5"),fc=Object.defineProperty,No=uc((e,t)=>fc(e,"name",{value:t,configurable:!0}),"i");const pc=ze(import.meta.url),kr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ro=No(e=>{if(typeof kr<"u"&&kr.versions&&kr.versions.node){const[t,o]=kr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return kr.getBuiltinModule(e)}return pc(e)},"__cjs_getBuiltinModule"),{readFileSync:dc}=Ro("node:fs"),{unzipSync:gc,brotliDecompressSync:hc}=Ro("node:zlib");var mc=Object.defineProperty,Bo=No((e,t)=>mc(e,"name",{value:t,configurable:!0}),"r");const bc={brotli:hc,gzip:gc,none:Bo(e=>e,"none")},yc=Bo((e,t)=>{if(Fr(e),e=qr(e),!V(e))throw new qn(`unable to read the non-accessible file: ${e}`);if(!V(e,ko))throw new qn(`invalid access to read file at: ${e}`);const{buffer:o,compression:i,encoding:u,flag:f}=t??{},g=dc(e,f?{encoding:u,flag:f}:{encoding:u}),h=bc[i??"none"],w=h(g);return o?w:w.toString()},"readFileSync");var $c=Object.defineProperty,vc=$((e,t)=>$c(e,"name",{value:t,configurable:!0}),"x$2"),xc=Object.defineProperty,Io=vc((e,t)=>xc(e,"name",{value:t,configurable:!0}),"$"),wc=Object.defineProperty,jc=Io((e,t)=>wc(e,"name",{value:t,configurable:!0}),"A"),Oc=Object.defineProperty,wn=jc((e,t)=>Oc(e,"name",{value:t,configurable:!0}),"$"),kc=Object.defineProperty,Pc=wn((e,t)=>kc(e,"name",{value:t,configurable:!0}),"r$1");const Ec=Pc(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
- `),"normalizeLF"),Ac=globalThis.process??Object.create(null),Un={versions:{}},Zn=new Proxy(Ac,{get(e,t){if(t in e)return e[t];if(t in Un)return Un[t]}});var Sc=Object.defineProperty,Tc=wn((e,t)=>Sc(e,"name",{value:t,configurable:!0}),"b");const zc=Tc((e,t,o,i)=>{const u={column:0,line:-1,...e.start},f={...u,...e.end},g=u.line,h=u.column,w=f.line,P=f.column;let k=Math.max(g-(o+1),0),O=Math.min(t.length,w+i);g===-1&&(k=0),w===-1&&(O=t.length);const N=w-g,C={};if(N)for(let E=0;E<=N;E++){const G=E+g;if(!h)C[G]=!0;else if(E===0){const X=t[G-1]?.length;C[G]=[h,(X??0)-h+1]}else if(E===N)C[G]=[0,P];else{const X=t[G-E]?.length;C[G]=[0,X]}}else h===P?C[g]=h?[h,0]:!0:C[g]=[h,(P??0)-(h??0)];return{end:O,markerLines:C,start:k}},"getMarkerLines");var Mc=Object.defineProperty,_r=wn((e,t)=>Mc(e,"name",{value:t,configurable:!0}),"t");const Cc=Zn.platform==="win32"&&!Zn.env?.WT_SESSION?">":"❯",_c=_r((e,t,o)=>{const i={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...o,color:{gutter:_r(E=>E,"gutter"),marker:_r(E=>E,"marker"),message:_r(E=>E,"message"),...o?.color}},u=typeof t.start.column=="number";let f=Ec(e).split(`
3
- `);typeof i.tabWidth=="number"&&(f=f.map(E=>E.replaceAll(" "," ".repeat(i.tabWidth))));const{end:g,markerLines:h,start:w}=zc(t,f,i.linesAbove,i.linesBelow),P=String(g).length,{gutter:k,marker:O,message:N}=i.color;let C=f.slice(w,g).map((E,G)=>{const X=w+1+G,se=h[X],_e=` ${String(X)}`.slice(-P),Ne=!h[X+1],Q=` ${_e}${i.showGutter?" |":""}`;if(se){let B="";if(Array.isArray(se)){const Re=E.replaceAll(/[^\t]/g," ").slice(0,Math.max(se[0]-1,0)),Be=se[1]||1;B=[`
4
- `,i.prefix+k(Q.replaceAll(/\d/g," "))," ",Re,O("^").repeat(Be)].join(""),Ne&&i.message&&(B+=` ${N(i.message)}`)}return[i.prefix+O(Cc),k(Q),E.length>0?` ${E}`:"",B].join("")}return`${i.prefix} ${k(Q)}${E.length>0?` ${E}`:""}`}).join(`
5
- `);return i.message&&!u&&(C=`${i.prefix+" ".repeat(P+1)+i.message}
6
- ${C}`),C},"codeFrame");var Nc=Object.defineProperty,Rc=Io((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"s"),Bc=Object.defineProperty,Ic=Rc((e,t)=>Bc(e,"name",{value:t,configurable:!0}),"o"),Dc=Object.defineProperty,jn=Ic((e,t)=>Dc(e,"name",{value:t,configurable:!0}),"l");const Vn=jn((e,t)=>{let o=0,i=t.length-2;for(;o<i;){const u=o+(i-o>>1);if(e<t[u])i=u-1;else if(e>=t[u+1])o=u+1;else{o=u;break}}return o},"binarySearch"),Fc=/\n|\r(?!\n)/,Wc=jn(e=>e.split(Fc).reduce((t,o)=>(t.push(t.at(-1)+o.length+1),t),[0]),"getLineStartIndexes"),Lc=jn((e,t,o)=>{const i=o?.skipChecks??!1;if(!i&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!i&&(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 f=Wc(e),g=Vn(t,f);return{column:t-f[g]+1,line:g+1}}const u=Vn(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var qc=Object.defineProperty,Do=$((e,t)=>qc(e,"name",{value:t,configurable:!0}),"t$6"),Uc=Object.defineProperty,Fo=Do((e,t)=>Uc(e,"name",{value:t,configurable:!0}),"t"),Zc=Object.defineProperty,Vc=Fo((e,t)=>Zc(e,"name",{value:t,configurable:!0}),"i");let Gc=class extends Error{static{$(this,"m")}static{Do(this,"m")}static{Fo(this,"t")}static{Vc(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?`
1
+ var yo=Object.defineProperty;var x=(e,t)=>yo(e,"name",{value:t,configurable:!0});import{createRequire as bo}from"node:module";import{f as jn,$ as jo,U as On,i as J,_ as Qr,K as rt,s as Oo,M as L,a as kn}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{createJiti as Pn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const vo=bo(import.meta.url),Le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Lr=x(e=>{if(typeof Le<"u"&&Le.versions&&Le.versions.node){const[t,n]=Le.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Le.getBuiltinModule(e)}return vo(e)},"__cjs_getBuiltinModule"),{createHash:xn}=Lr("node:crypto"),{readdirSync:wn,readFileSync:$o,copyFileSync:xo,unlinkSync:wo}=Lr("node:fs"),{createRequire:tt}=Lr("node:module");var ko=Object.defineProperty,ve=x((e,t)=>ko(e,"name",{value:t,configurable:!0}),"K$2"),Po=Object.defineProperty,M=ve((e,t)=>Po(e,"name",{value:t,configurable:!0}),"E");const Eo=tt(import.meta.url),ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,En=M(e=>{if(typeof ge<"u"&&ge.versions&&ge.versions.node){const[t,n]=ge.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return ge.getBuiltinModule(e)}return Eo(e)},"__cjs_getBuiltinModule"),{existsSync:he}=En("node:fs"),{env:me,cwd:Tn}=ge,{createRequire:$e}=En("node:module"),An=0,ye=2,Sn=Symbol("findUpStop");var To=Object.defineProperty,Ao=M((e,t)=>To(e,"name",{value:t,configurable:!0}),"t$4"),So=Object.defineProperty,Co=Ao((e,t)=>So(e,"name",{value:t,configurable:!0}),"t"),Mo=Object.defineProperty,_o=Co((e,t)=>Mo(e,"name",{value:t,configurable:!0}),"n");const Vr=_o(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var zo=Object.defineProperty,No=M((e,t)=>zo(e,"name",{value:t,configurable:!0}),"i$4"),Bo=Object.defineProperty,Ro=No((e,t)=>Bo(e,"name",{value:t,configurable:!0}),"r"),Io=Object.defineProperty,Do=Ro((e,t)=>Io(e,"name",{value:t,configurable:!0}),"i");const en=Do(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Fo=Object.defineProperty,Wo=M((e,t)=>Fo(e,"name",{value:t,configurable:!0}),"i$3"),Lo=Object.defineProperty,Cn=Wo((e,t)=>Lo(e,"name",{value:t,configurable:!0}),"s");const Vo=$e(import.meta.url),Ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Uo=Cn(e=>{if(typeof Ve<"u"&&Ve.versions&&Ve.versions.node){const[t,n]=Ve.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ve.getBuiltinModule(e)}return Vo(e)},"__cjs_getBuiltinModule"),{lstatSync:tn,mkdirSync:qo}=Uo("node:fs");var Zo=Object.defineProperty,Go=Cn((e,t)=>Zo(e,"name",{value:t,configurable:!0}),"o");const Ko=Go(e=>{Vr(e);try{const t=tn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(en(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{qo(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=tn(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(en(n))}'`,{cause:t})}},"ensureDirSync");var Jo=Object.defineProperty,m=M((e,t)=>Jo(e,"name",{value:t,configurable:!0}),"s$6");let rn=m(()=>{var e=(()=>{var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=m((r,o)=>{for(var i in o)t(r,i,{get:o[i],enumerable:!0})},"ne"),g=m((r,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(r,a)&&a!==i&&t(r,a,{get:m(()=>o[a],"get"),enumerable:!(c=n(o,a))||c.enumerable});return r},"ae"),h=m(r=>g(t({},"__esModule",{value:!0}),r),"oe"),$={};l($,{zeptomatch:m(()=>We,"zeptomatch")});var O=m(r=>{const o=new Set,i=[r];for(let c=0;c<i.length;c++){const a=i[c];if(o.has(a))continue;o.add(a);const{children:f}=a;if(f?.length)for(let p=0,y=f.length;p<y;p++)i.push(f[p])}return Array.from(o)},"M"),j=m(r=>{let o="";const i=O(r);for(let c=0,a=i.length;c<a;c++){const f=i[c];if(!f.regex)continue;const p=f.regex.flags;if(o||(o=p),o!==p)throw new Error(`Inconsistent RegExp flags used: "${o}" and "${p}"`)}return o},"se"),v=m((r,o,i)=>{const c=i.get(r);if(c!==void 0)return c;const a=r.partial??o;let f="";if(r.regex&&(f+=a?"(?:$|":"",f+=r.regex.source),r.children?.length){const p=E(r.children.map(y=>v(y,o,i)).filter(Boolean));if(p?.length){const y=r.children.some(G=>!G.regex||!(G.partial??o)),k=p.length>1||a&&(!f.length||y);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),C=m((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=v(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=m(r=>Array.from(new Set(r)),"ue"),P=m((r,o,i)=>P.compile(r,i).test(o),"R");P.compile=(r,o)=>{const i=o?.partial??!1,c=C(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,q=m((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ee=q,xe=m(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),we=xe,X=m(r=>Array.isArray(r),"j"),B=m(r=>typeof r=="function","_"),je=m(r=>r.length===0,"he"),Oe=(()=>{const{toString:r}=Function.prototype,o=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return i=>(i.length===0||i.length===1)&&o.test(r.call(i))})(),$t=m(r=>typeof r=="number","de"),xt=m(r=>typeof r=="object"&&r!==null,"xe"),wt=m(r=>r instanceof RegExp,"me"),jt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ot=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),ke=m(r=>typeof r=="string","A"),_=m(r=>r===void 0,"f"),kt=m(r=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=r(i);return o.set(i,a),a}},"ye"),Pe=m((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=z(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),d=m((r,o)=>X(r)?Pt(r,o):ke(r)?Ee(r,o):Et(r,o),"i"),Pt=m((r,o)=>{const i={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);i[a]=!0}return c=>{const a=c.input;let f=c.index,p=f;for(;p<a.length&&a.charCodeAt(p)in i;)p+=1;if(p>f){if(!_(o)&&!c.options.silent){const y=a.slice(f,p),k=B(o)?o(y,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),Et=m((r,o)=>{if(Ot(r))return Ee(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return jt(r)&&B(o)&&!Oe(o)?Tt(a,o):At(a,o)}},"$e"),Tt=m((r,o)=>i=>{const c=i.index,a=i.input;r.lastIndex=c;const f=r.exec(a);if(f){const p=r.lastIndex;if(!i.options.silent){const y=o(...f,a,`${c}`);_(y)||i.output.push(y)}return i.index=p,!0}else return!1},"Ee"),At=m((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!_(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;_(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Ee=m((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!_(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;_(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ie=m((r,o,i,c)=>{const a=z(r),f=o>1;return ce(ae(Ae(p=>{let y=0;for(;y<i;){const k=p.index;if(!a(p)||(y+=1,p.index===k))break}return y>=o},f),c))},"k"),Te=m((r,o)=>ie(r,0,1,o),"L"),Y=m((r,o)=>ie(r,0,1/0,o),"$"),St=m((r,o)=>ie(r,1,1/0,o),"Re"),D=m((r,o)=>{const i=r.map(z);return ce(ae(Ae(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),A=m((r,o)=>{const i=r.map(z);return ce(ae(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),Ae=m((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,y=c(a);return!y&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!y||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),y}:c},"q"),ae=m((r,o)=>{const i=z(r);return o?c=>{if(c.options.silent)return i(c);const a=c.output.length;if(i(c)){const f=c.output.splice(a,1/0),p=o(f);return _(p)||c.output.push(p),!0}else return!1}:i},"B"),ce=(()=>{let r=0;return o=>{const i=z(o),c=r+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,y=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=y.queue;if(p<=y.indexMax){const K=y.store||(y.store=new Map);if(k.length){for(let W=0,zr=k.length;W<zr;W+=2){const Nr=k[W*2],Br=k[W*2+1];K.set(Nr,Br)}k.length=0}const S=K.get(p);if(S===!1)return!1;if($t(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const G=a.output.length,_r=i(a);if(y.indexMax=Math.max(y.indexMax,p),_r){const K=a.index,S=a.output.length;if(S>G){const W=a.output.slice(G,S);k.push(p,{index:K,output:W})}else k.push(p,K);return!0}else return k.push(p,!1),!1}}})(),Se=m(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=kt(r=>{if(B(r))return je(r)?Se(r):r;if(ke(r)||wt(r))return d(r);if(X(r))return D(r);if(xt(r))return A(Object.values(r));throw new Error("Invalid rule")}),R=m(r=>r,"d"),Ct=m(r=>typeof r=="string","ke"),Mt=m(r=>{const o=new WeakMap,i=new WeakMap;return(c,a)=>{const f=a?.partial?i:o,p=f.get(c);if(p!==void 0)return p;const y=r(c,a);return f.set(c,y),y}},"Be"),_t=m(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),zt=d(/\\./,R),Nt=d(/./,R),Bt=d(/\*\*\*+/,"*"),Rt=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),It=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Dt=Y(A([zt,Bt,Rt,It,Nt])),Ft=Dt,Wt=m(r=>Pe(r,Ft,{memoization:!1}).join(""),"Ie"),Lt=Wt,Ce="abcdefghijklmnopqrstuvwxyz",Vt=m(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Ce[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Me=m(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Ce.indexOf(r[i])+1;return o},"V"),ue=m((r,o)=>{if(o<r)return ue(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Ut=m((r,o,i)=>ue(r,o).map(c=>String(c).padStart(i,"0")),"qe"),_e=m((r,o)=>ue(Me(r),Me(o)).map(Vt),"W"),w=m(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=m(r=>({children:r}),"y"),F=(()=>{const r=m((o,i,c)=>{if(c.has(o))return;c.add(o);const{children:a}=o;if(!a.length)a.push(i);else for(let f=0,p=a.length;f<p;f++)r(a[f],i,c)},"e");return o=>{if(!o.length)return Z([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];r(a,f,c)}return o[0]}})(),N=m(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),qt=d(/\\./,w),Zt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),Gt=d(/[\\\/]/,N),Kt=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),Jt=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${We.compile(o).source}$).*?`)),Ht=d(/^(!!)+/),Xt=A([Jt,Ht]),Yt=d(/\/(\*\*\/)+/,()=>Z([F([N(),w(".+?"),N()]),N()])),Qt=d(/^(\*\*\/)+/,()=>Z([w("^"),F([w(".*?"),N()])])),er=d(/\/(\*\*)$/,()=>Z([F([N(),w(".*?")]),w("$")])),tr=d(/\*\*/,()=>w(".*?")),ze=A([Yt,Qt,er,tr]),rr=d(/\*\/(?!\*\*\/|\*$)/,()=>F([w("[^\\\\/]*?"),N()])),nr=d(/\*/,()=>w("[^\\\\/]*")),Ne=A([rr,nr]),Be=d("?",()=>w("[^\\\\/]")),or=d("[",R),sr=d("]",R),ir=d(/[!^]/,"^\\\\/"),ar=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),cr=d(/\\./,R),ur=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),lr=d(/[\\\/]/,"\\\\/"),fr=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),pr=A([cr,ur,lr,ar,fr]),Re=D([or,Te(ir),Y(pr),sr],r=>w(r.join(""))),dr=d("{","(?:"),gr=d("}",")"),hr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Ut(+o,+i,Math.min(o.length,i.length)).join("|")),mr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>_e(o,i).join("|")),yr=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>_e(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),br=A([hr,mr,yr]),Ie=D([dr,br,gr],r=>w(r.join(""))),vr=d("{"),$r=d("}"),xr=d(","),wr=d(/\\./,w),jr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Or=d(/[\\\/]/,N),kr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),Pr=Se(()=>Fe),Er=d("",()=>w("(?:)")),Tr=St(A([ze,Ne,Be,Re,Ie,Pr,wr,jr,Or,kr]),F),De=A([Tr,Er]),Fe=D([vr,Te(D([De,Y(D([xr,De]))])),$r],Z),Ar=Y(A([Xt,ze,Ne,Be,Re,Ie,Fe,qt,Zt,Gt,Kt]),F),Sr=Ar,Cr=m(r=>Pe(r,Sr,{memoization:!1})[0],"kr"),Mr=Cr,le=m((r,o,i)=>le.compile(r,i).test(o),"N");le.compile=(()=>{const r=_t((i,c)=>ee(Mr(Lt(i)),c)),o=Mt((i,c)=>we(i.map(a=>r(a,c))));return(i,c)=>Ct(i)?r(i,c):o(i,c)})();var We=le;return h($)})();return e.default||e},"_lazyMatch"),Rr;const Ho=m((e,t)=>(Rr||(Rr=rn(),rn=null),Rr(e,t)),"zeptomatch"),Xo=/^[A-Z]:\//i,H=m((e="")=>e&&e.replaceAll("\\","/").replace(Xo,t=>t.toUpperCase()),"normalizeWindowsPath"),Yo=/^[/\\]{2}/,Qo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Mn=/^[A-Z]:$/i,nn=/^\/([A-Z]:)?$/i,es=/.(\.[^./]+)$/,ts=/^[/\\]|^[a-z]:[/\\]/i,rs=/\/$/,ns=m(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),_n=m((e,t)=>{let n="",s=0,u=-1,l=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||l===1))if(l===2){if(n.length<2||s!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const $=n.lastIndexOf("/");$===-1?(n="",s=0):(n=n.slice(0,$),s=n.length-1-n.lastIndexOf("/")),u=h,l=0;continue}else if(n.length>0){n="",s=0,u=h,l=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(u+1,h)}`:n=e.slice(u+1,h),s=h-u-1;u=h,l=0}else g==="."&&l!==-1?++l:l=-1}return n},"normalizeString"),fe=m(e=>Qo.test(e),"isAbsolute"),zn=m(function(e){if(e.length===0)return".";e=H(e);const t=Yo.exec(e),n=fe(e),s=e.at(-1)==="/";return e=_n(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Mn.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!fe(e)?`/${e}`:e)},"normalize"),Nn=m((...e)=>{let t="";for(const n of e)if(n)if(t.length>0){const s=t.at(-1)==="/",u=n[0]==="/";s&&u?t+=n.slice(1):t+=s||u?n:`/${n}`}else t+=n;return zn(t)},"join"),Q=m(function(...e){e=e.map(s=>H(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:ns();!u||u.length===0||(t=`${u}/${t}`,n=fe(u))}return t=_n(t,!n),n&&!fe(t)?`/${t}`:t.length>0?t:"."},"resolve");m(function(e){return H(e)},"toNamespacedPath");const Bn=m(function(e){return es.exec(H(e))?.[1]??""},"extname");m(function(e,t){const n=Q(e).replace(nn,"$1").split("/"),s=Q(t).replace(nn,"$1").split("/");if(s[0][1]===":"&&n[0][1]===":"&&n[0]!==s[0])return s.join("/");const u=[...n];for(const l of u){if(s[0]!==l)break;n.shift(),s.shift()}return[...n.map(()=>".."),...s].join("/")},"relative");const Ur=m(e=>{const t=H(e).replace(rs,"").split("/").slice(0,-1);return t.length===1&&Mn.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(fe(e)?"/":".")},"dirname");m(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return H(e.root?Q(...t):t.join("/"))},"format");const os=m((e,t)=>{const n=H(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename"),Rn=m(function(e){const t=ts.exec(e)?.[0]?.replaceAll("\\","/")??"",n=os(e),s=Bn(n);return{base:n,dir:Ur(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");m((e,t)=>Ho(t,zn(e)),"matchesGlob");var ss=Object.defineProperty,V=M((e,t)=>ss(e,"name",{value:t,configurable:!0}),"i$2");const is=$e(import.meta.url),Ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,as=V(e=>{if(typeof Ue<"u"&&Ue.versions&&Ue.versions.node){const[t,n]=Ue.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ue.getBuiltinModule(e)}return is(e)},"__cjs_getBuiltinModule"),{fileURLToPath:cs}=as("node:url");function ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(ut,"dn");ve(ut,"Nr");M(ut,"w$1");V(ut,"getDefaultExportFromCjs");var on,sn;function lt(){return sn||(sn=1,on=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),on}x(lt,"gn");ve(lt,"Dr");M(lt,"y$2");V(lt,"requireBinaryExtensions");var us=lt();const ls=ut(us),fs=new Set(ls),ps=new Set(["/","\\",void 0]),an=Symbol.for("pathe:normalizedAlias"),ds=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,gs=V((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),at=V((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),In=V(e=>{if(e[an])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([n],[s])=>gs(n,s)));for(const n in t)for(const s in t)s===n||n.startsWith(s)||t[n].startsWith(s)&&ps.has(t[n][s.length])&&(t[n]=t[s]+t[n].slice(s.length));return Object.defineProperty(t,an,{enumerable:!1,value:!0}),t},"normalizeAliases");V((e,t)=>{e=H(e),t=In(t);for(const[n,s]of Object.entries(t)){if(!e.startsWith(n))continue;const u=at(n)?n.slice(0,-1):n;if(at(e[u.length]))return Nn(s,e.slice(n.length))}return e},"resolveAlias");V(e=>ds.exec(e)?.[2],"filename");V((e,t)=>{e=H(e),t=In(t);for(const[n,s]of Object.entries(t).toReversed()){if(!e.startsWith(s))continue;const u=at(s)?s.slice(0,-1):s;if(at(e[u.length]))return Nn(n,e.slice(s.length))}return e},"reverseResolveAlias");const hs=/^(?:\.?\.[/\\]|\.\.\B)/,ms=/^(?:msys|cygwin)$/;V(e=>hs.test(e)||e==="..","isRelative");V(e=>fs.has(Bn(e).slice(1).toLowerCase()),"isBinaryPath");const be=V(e=>H(e instanceof URL?cs(e):e),"toPath");V(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:ms.test(e)},"isWindows");var ys=Object.defineProperty,bs=M((e,t)=>ys(e,"name",{value:t,configurable:!0}),"p"),vs=Object.defineProperty,Dn=bs((e,t)=>vs(e,"name",{value:t,configurable:!0}),"a");const $s=$e(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fn=Dn(e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,n]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return qe.getBuiltinModule(e)}return $s(e)},"__cjs_getBuiltinModule"),{stat:xs,lstat:ws}=Fn("node:fs/promises"),{fileURLToPath:js}=Fn("node:url");var Os=Object.defineProperty,cn=Dn((e,t)=>Os(e,"name",{value:t,configurable:!0}),"n");const ks=cn(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const n=t.cwd?be(t.cwd):process.cwd();let s=Q(n);const{root:u}=Rn(s),l=be(t.stopAt??u),g=Q(s,l),h=t.type??"file",$=cn(async function(j){return typeof e=="function"?[await e(j)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const O=t.allowSymlinks?xs:ws;for(;s&&s!==g&&s!==u;){const j=await $(s);for(let v of j){if(v===Sn)return;if(v===void 0)continue;Buffer.isBuffer(v)?v=v.toString():v instanceof URL&&(v=js(v));const C=fe(v)?v:Q(s,v);try{const E=await O(C);if(h==="file"&&E.isFile()||h==="directory"&&E.isDirectory())return C}catch{}}s=Ur(s)}},"findUp");var Ps=Object.defineProperty,Es=M((e,t)=>Ps(e,"name",{value:t,configurable:!0}),"u$3"),Ts=Object.defineProperty,Wn=Es((e,t)=>Ts(e,"name",{value:t,configurable:!0}),"i");const As=$e(import.meta.url),Ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ln=Wn(e=>{if(typeof Ze<"u"&&Ze.versions&&Ze.versions.node){const[t,n]=Ze.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ze.getBuiltinModule(e)}return As(e)},"__cjs_getBuiltinModule"),{statSync:Ss,lstatSync:Cs}=Ln("node:fs"),{fileURLToPath:Ms}=Ln("node:url");var _s=Object.defineProperty,un=Wn((e,t)=>_s(e,"name",{value:t,configurable:!0}),"o");const zs=un((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const n=t.cwd?be(t.cwd):process.cwd();let s=Q(n);const{root:u}=Rn(s),l=be(t.stopAt??u),g=Q(s,l),h=t.type??"file",$=un(function(j){return typeof e=="function"?[e(j)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const O=t.allowSymlinks?Ss:Cs;for(;s&&s!==g&&s!==u;){for(let j of $(s)){if(j===Sn)return;if(j===void 0)continue;Buffer.isBuffer(j)?j=j.toString():j instanceof URL&&(j=Ms(j));const v=fe(j)?j:Q(s,j);try{const C=O(v);if(h==="file"&&C.isFile()||h==="directory"&&C.isDirectory())return v}catch{}}s=Ur(s)}},"findUpSync");var Ns=Object.defineProperty,Vn=M((e,t)=>Ns(e,"name",{value:t,configurable:!0}),"t$2"),Bs=Object.defineProperty,qr=Vn((e,t)=>Bs(e,"name",{value:t,configurable:!0}),"s");const Rs=$e(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Is=qr(e=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[t,n]=Ge.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ge.getBuiltinModule(e)}return Rs(e)},"__cjs_getBuiltinModule"),{access:Ds}=Is("node:fs/promises");var Fs=Object.defineProperty,Ws=qr((e,t)=>Fs(e,"name",{value:t,configurable:!0}),"o");async function re(e,t=An){Vr(e),e=be(e);try{return await Ds(e,t),!0}catch{return!1}}x(re,"Q$2");ve(re,"se");M(re,"i$1");Vn(re,"d");qr(re,"m");Ws(re,"isAccessible");var Ls=Object.defineProperty,Un=M((e,t)=>Ls(e,"name",{value:t,configurable:!0}),"t$1"),Vs=Object.defineProperty,Zr=Un((e,t)=>Vs(e,"name",{value:t,configurable:!0}),"t");const Us=$e(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qs=Zr(e=>{if(typeof Ke<"u"&&Ke.versions&&Ke.versions.node){const[t,n]=Ke.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ke.getBuiltinModule(e)}return Us(e)},"__cjs_getBuiltinModule"),{accessSync:Zs}=qs("node:fs");var Gs=Object.defineProperty,Ks=Zr((e,t)=>Gs(e,"name",{value:t,configurable:!0}),"o");function ne(e,t=An){Vr(e),e=be(e);try{return Zs(e,t),!0}catch{return!1}}x(ne,"ee$1");ve(ne,"ie");M(ne,"i");Un(ne,"d");Zr(ne,"m");Ks(ne,"isAccessibleSync");var Js=Object.defineProperty,qn=M((e,t)=>Js(e,"name",{value:t,configurable:!0}),"o"),Hs=Object.defineProperty,Zn=qn((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"o"),Xs=Object.defineProperty,Ys=Zn((e,t)=>Xs(e,"name",{value:t,configurable:!0}),"o");let Gn=class extends Error{static{x(this,"Jn")}static{ve(this,"Xr")}static{M(this,"s")}static{qn(this,"u")}static{Zn(this,"n")}static{Ys(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var Qs=Object.defineProperty,ei=M((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"$e"),ti=Object.defineProperty,Gr=ei((e,t)=>ti(e,"name",{value:t,configurable:!0}),"W"),ri=Object.defineProperty,b=Gr((e,t)=>ri(e,"name",{value:t,configurable:!0}),"u$1");let ln=b(()=>{var e=(()=>{var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=b((r,o)=>{for(var i in o)t(r,i,{get:o[i],enumerable:!0})},"ne"),g=b((r,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(r,a)&&a!==i&&t(r,a,{get:b(()=>o[a],"get"),enumerable:!(c=n(o,a))||c.enumerable});return r},"ae"),h=b(r=>g(t({},"__esModule",{value:!0}),r),"oe"),$={};l($,{zeptomatch:b(()=>We,"zeptomatch")});var O=b(r=>{const o=new Set,i=[r];for(let c=0;c<i.length;c++){const a=i[c];if(o.has(a))continue;o.add(a);const{children:f}=a;if(f?.length)for(let p=0,y=f.length;p<y;p++)i.push(f[p])}return Array.from(o)},"M"),j=b(r=>{let o="";const i=O(r);for(let c=0,a=i.length;c<a;c++){const f=i[c];if(!f.regex)continue;const p=f.regex.flags;if(o||(o=p),o!==p)throw new Error(`Inconsistent RegExp flags used: "${o}" and "${p}"`)}return o},"se"),v=b((r,o,i)=>{const c=i.get(r);if(c!==void 0)return c;const a=r.partial??o;let f="";if(r.regex&&(f+=a?"(?:$|":"",f+=r.regex.source),r.children?.length){const p=E(r.children.map(y=>v(y,o,i)).filter(Boolean));if(p?.length){const y=r.children.some(G=>!G.regex||!(G.partial??o)),k=p.length>1||a&&(!f.length||y);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),C=b((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=v(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=b(r=>Array.from(new Set(r)),"ue"),P=b((r,o,i)=>P.compile(r,i).test(o),"R");P.compile=(r,o)=>{const i=o?.partial??!1,c=C(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,q=b((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ee=q,xe=b(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),we=xe,X=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),je=b(r=>r.length===0,"he"),Oe=(()=>{const{toString:r}=Function.prototype,o=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return i=>(i.length===0||i.length===1)&&o.test(r.call(i))})(),$t=b(r=>typeof r=="number","de"),xt=b(r=>typeof r=="object"&&r!==null,"xe"),wt=b(r=>r instanceof RegExp,"me"),jt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ot=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),ke=b(r=>typeof r=="string","A"),_=b(r=>r===void 0,"f"),kt=b(r=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=r(i);return o.set(i,a),a}},"ye"),Pe=b((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=z(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),d=b((r,o)=>X(r)?Pt(r,o):ke(r)?Ee(r,o):Et(r,o),"i"),Pt=b((r,o)=>{const i={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);i[a]=!0}return c=>{const a=c.input;let f=c.index,p=f;for(;p<a.length&&a.charCodeAt(p)in i;)p+=1;if(p>f){if(!_(o)&&!c.options.silent){const y=a.slice(f,p),k=B(o)?o(y,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),Et=b((r,o)=>{if(Ot(r))return Ee(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return jt(r)&&B(o)&&!Oe(o)?Tt(a,o):At(a,o)}},"$e"),Tt=b((r,o)=>i=>{const c=i.index,a=i.input;r.lastIndex=c;const f=r.exec(a);if(f){const p=r.lastIndex;if(!i.options.silent){const y=o(...f,a,`${c}`);_(y)||i.output.push(y)}return i.index=p,!0}else return!1},"Ee"),At=b((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!_(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;_(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Ee=b((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!_(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;_(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ie=b((r,o,i,c)=>{const a=z(r),f=o>1;return ce(ae(Ae(p=>{let y=0;for(;y<i;){const k=p.index;if(!a(p)||(y+=1,p.index===k))break}return y>=o},f),c))},"k"),Te=b((r,o)=>ie(r,0,1,o),"L"),Y=b((r,o)=>ie(r,0,1/0,o),"$"),St=b((r,o)=>ie(r,1,1/0,o),"Re"),D=b((r,o)=>{const i=r.map(z);return ce(ae(Ae(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),A=b((r,o)=>{const i=r.map(z);return ce(ae(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),Ae=b((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,y=c(a);return!y&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!y||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),y}:c},"q"),ae=b((r,o)=>{const i=z(r);return o?c=>{if(c.options.silent)return i(c);const a=c.output.length;if(i(c)){const f=c.output.splice(a,1/0),p=o(f);return _(p)||c.output.push(p),!0}else return!1}:i},"B"),ce=(()=>{let r=0;return o=>{const i=z(o),c=r+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,y=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=y.queue;if(p<=y.indexMax){const K=y.store||(y.store=new Map);if(k.length){for(let W=0,zr=k.length;W<zr;W+=2){const Nr=k[W*2],Br=k[W*2+1];K.set(Nr,Br)}k.length=0}const S=K.get(p);if(S===!1)return!1;if($t(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const G=a.output.length,_r=i(a);if(y.indexMax=Math.max(y.indexMax,p),_r){const K=a.index,S=a.output.length;if(S>G){const W=a.output.slice(G,S);k.push(p,{index:K,output:W})}else k.push(p,K);return!0}else return k.push(p,!1),!1}}})(),Se=b(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=kt(r=>{if(B(r))return je(r)?Se(r):r;if(ke(r)||wt(r))return d(r);if(X(r))return D(r);if(xt(r))return A(Object.values(r));throw new Error("Invalid rule")}),R=b(r=>r,"d"),Ct=b(r=>typeof r=="string","ke"),Mt=b(r=>{const o=new WeakMap,i=new WeakMap;return(c,a)=>{const f=a?.partial?i:o,p=f.get(c);if(p!==void 0)return p;const y=r(c,a);return f.set(c,y),y}},"Be"),_t=b(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),zt=d(/\\./,R),Nt=d(/./,R),Bt=d(/\*\*\*+/,"*"),Rt=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),It=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Dt=Y(A([zt,Bt,Rt,It,Nt])),Ft=Dt,Wt=b(r=>Pe(r,Ft,{memoization:!1}).join(""),"Ie"),Lt=Wt,Ce="abcdefghijklmnopqrstuvwxyz",Vt=b(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Ce[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Me=b(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Ce.indexOf(r[i])+1;return o},"V"),ue=b((r,o)=>{if(o<r)return ue(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Ut=b((r,o,i)=>ue(r,o).map(c=>String(c).padStart(i,"0")),"qe"),_e=b((r,o)=>ue(Me(r),Me(o)).map(Vt),"W"),w=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=b(r=>({children:r}),"y"),F=(()=>{const r=b((o,i,c)=>{if(c.has(o))return;c.add(o);const{children:a}=o;if(!a.length)a.push(i);else for(let f=0,p=a.length;f<p;f++)r(a[f],i,c)},"e");return o=>{if(!o.length)return Z([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];r(a,f,c)}return o[0]}})(),N=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),qt=d(/\\./,w),Zt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),Gt=d(/[\\\/]/,N),Kt=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),Jt=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${We.compile(o).source}$).*?`)),Ht=d(/^(!!)+/),Xt=A([Jt,Ht]),Yt=d(/\/(\*\*\/)+/,()=>Z([F([N(),w(".+?"),N()]),N()])),Qt=d(/^(\*\*\/)+/,()=>Z([w("^"),F([w(".*?"),N()])])),er=d(/\/(\*\*)$/,()=>Z([F([N(),w(".*?")]),w("$")])),tr=d(/\*\*/,()=>w(".*?")),ze=A([Yt,Qt,er,tr]),rr=d(/\*\/(?!\*\*\/|\*$)/,()=>F([w("[^\\\\/]*?"),N()])),nr=d(/\*/,()=>w("[^\\\\/]*")),Ne=A([rr,nr]),Be=d("?",()=>w("[^\\\\/]")),or=d("[",R),sr=d("]",R),ir=d(/[!^]/,"^\\\\/"),ar=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),cr=d(/\\./,R),ur=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),lr=d(/[\\\/]/,"\\\\/"),fr=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),pr=A([cr,ur,lr,ar,fr]),Re=D([or,Te(ir),Y(pr),sr],r=>w(r.join(""))),dr=d("{","(?:"),gr=d("}",")"),hr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Ut(+o,+i,Math.min(o.length,i.length)).join("|")),mr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>_e(o,i).join("|")),yr=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>_e(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),br=A([hr,mr,yr]),Ie=D([dr,br,gr],r=>w(r.join(""))),vr=d("{"),$r=d("}"),xr=d(","),wr=d(/\\./,w),jr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Or=d(/[\\\/]/,N),kr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),Pr=Se(()=>Fe),Er=d("",()=>w("(?:)")),Tr=St(A([ze,Ne,Be,Re,Ie,Pr,wr,jr,Or,kr]),F),De=A([Tr,Er]),Fe=D([vr,Te(D([De,Y(D([xr,De]))])),$r],Z),Ar=Y(A([Xt,ze,Ne,Be,Re,Ie,Fe,qt,Zt,Gt,Kt]),F),Sr=Ar,Cr=b(r=>Pe(r,Sr,{memoization:!1})[0],"kr"),Mr=Cr,le=b((r,o,i)=>le.compile(r,i).test(o),"N");le.compile=(()=>{const r=_t((i,c)=>ee(Mr(Lt(i)),c)),o=Mt((i,c)=>we(i.map(a=>r(a,c))));return(i,c)=>Ct(i)?r(i,c):o(i,c)})();var We=le;return h($)})();return e.default||e},"_lazyMatch"),Ir;const ni=b((e,t)=>(Ir||(Ir=ln(),ln=null),Ir(e,t)),"default");var oi=Object.defineProperty,si=Gr((e,t)=>oi(e,"name",{value:t,configurable:!0}),"t$1");const ii=/^[A-Z]:\//i,pe=si((e="")=>e&&e.replaceAll("\\","/").replace(ii,t=>t.toUpperCase()),"normalizeWindowsPath");var ai=Object.defineProperty,I=Gr((e,t)=>ai(e,"name",{value:t,configurable:!0}),"r");const ci=/^[/\\]{2}/,ui=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Kn=/^[A-Z]:$/i,fn=/^\/([A-Z]:)?$/i,li=/.(\.[^./]+)$/,fi=/^[/\\]|^[a-z]:[/\\]/i,pi=/\/$/,di=I(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Jn=I((e,t)=>{let n="",s=0,u=-1,l=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||l===1))if(l===2){if(n.length<2||s!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const $=n.lastIndexOf("/");$===-1?(n="",s=0):(n=n.slice(0,$),s=n.length-1-n.lastIndexOf("/")),u=h,l=0;continue}else if(n.length>0){n="",s=0,u=h,l=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(u+1,h)}`:n=e.slice(u+1,h),s=h-u-1;u=h,l=0}else g==="."&&l!==-1?++l:l=-1}return n},"normalizeString"),Ye=I(e=>ui.test(e),"isAbsolute"),Hn=I(function(e){if(e.length===0)return".";e=pe(e);const t=ci.exec(e),n=Ye(e),s=e.at(-1)==="/";return e=Jn(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Kn.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!Ye(e)?`/${e}`:e)},"normalize"),te=I((...e)=>{let t="";for(const n of e)if(n)if(t.length>0){const s=t.at(-1)==="/",u=n[0]==="/";s&&u?t+=n.slice(1):t+=s||u?n:`/${n}`}else t+=n;return Hn(t)},"join"),Wr=I(function(...e){e=e.map(s=>pe(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:di();!u||u.length===0||(t=`${u}/${t}`,n=Ye(u))}return t=Jn(t,!n),n&&!Ye(t)?`/${t}`:t.length>0?t:"."},"resolve");I(function(e){return pe(e)},"toNamespacedPath");const gi=I(function(e){return li.exec(pe(e))?.[1]??""},"extname");I(function(e,t){const n=Wr(e).replace(fn,"$1").split("/"),s=Wr(t).replace(fn,"$1").split("/");if(s[0][1]===":"&&n[0][1]===":"&&n[0]!==s[0])return s.join("/");const u=[...n];for(const l of u){if(s[0]!==l)break;n.shift(),s.shift()}return[...n.map(()=>".."),...s].join("/")},"relative");const Kr=I(e=>{const t=pe(e).replace(pi,"").split("/").slice(0,-1);return t.length===1&&Kn.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ye(e)?"/":".")},"dirname");I(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return pe(e.root?Wr(...t):t.join("/"))},"format");const hi=I((e,t)=>{const n=pe(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename");I(function(e){const t=fi.exec(e)?.[0]?.replaceAll("\\","/")??"",n=hi(e),s=gi(n);return{base:n,dir:Kr(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");I((e,t)=>ni(t,Hn(e)),"matchesGlob");var mi=Object.defineProperty,Jr=M((e,t)=>mi(e,"name",{value:t,configurable:!0}),"u");const ct=Jr((e,t)=>(t?.create&&Ko(e),e),"useDirectory");Jr(async(e,t)=>{if(me.CACHE_DIR&&!["0","1","false","true"].includes(me.CACHE_DIR))return ct(te(me.CACHE_DIR,e),t);const n=await ks("package.json",{cwd:t?.cwd??Tn(),type:"file"});if(!n){if(t?.throwError)throw new Gn("No such file or directory found.");return}const s=te(Kr(n),"node_modules"),u=te(s,".cache"),l=te(u,e);if(!(he(l)&&!await re(l,ye))&&!(he(u)&&!await re(u,ye))&&!(he(s)&&!await re(s,ye)))return ct(l,t)},"findCacheDirectory");const yi=Jr((e,t)=>{if(me.CACHE_DIR&&!["0","1","false","true"].includes(me.CACHE_DIR))return ct(te(me.CACHE_DIR,e),t);const n=zs("package.json",{cwd:t?.cwd??Tn(),type:"file"});if(!n){if(t?.throwError)throw new Gn("No such file or directory found.");return}const s=te(Kr(n),"node_modules"),u=te(s,".cache"),l=te(u,e);if(!(he(l)&&!ne(l,ye))&&!(he(u)&&!ne(u,ye))&&!(he(s)&&!ne(s,ye)))return ct(l,t)},"findCacheDirectorySync"),Xn=yi;var bi=Object.defineProperty,vi=x((e,t)=>bi(e,"name",{value:t,configurable:!0}),"i$7"),$i=Object.defineProperty,xi=vi((e,t)=>$i(e,"name",{value:t,configurable:!0}),"r"),wi=Object.defineProperty,ji=xi((e,t)=>wi(e,"name",{value:t,configurable:!0}),"i");const pn=ji(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Oi=Object.defineProperty,ki=x((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"i$6"),Pi=Object.defineProperty,Yn=ki((e,t)=>Pi(e,"name",{value:t,configurable:!0}),"s");const Ei=tt(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ti=Yn(e=>{if(typeof Je<"u"&&Je.versions&&Je.versions.node){const[t,n]=Je.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Je.getBuiltinModule(e)}return Ei(e)},"__cjs_getBuiltinModule"),{lstatSync:dn,mkdirSync:Ai}=Ti("node:fs");var Si=Object.defineProperty,Ci=Yn((e,t)=>Si(e,"name",{value:t,configurable:!0}),"o");const ft=Ci(e=>{jn(e);try{const t=dn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(pn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Ai(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=dn(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(pn(n))}'`,{cause:t})}},"ensureDirSync");var Mi=Object.defineProperty,_i=x((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"x$2"),zi=Object.defineProperty,Qn=_i((e,t)=>zi(e,"name",{value:t,configurable:!0}),"$"),Ni=Object.defineProperty,Bi=Qn((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"A"),Ri=Object.defineProperty,Hr=Bi((e,t)=>Ri(e,"name",{value:t,configurable:!0}),"$"),Ii=Object.defineProperty,Di=Hr((e,t)=>Ii(e,"name",{value:t,configurable:!0}),"r$1");const Fi=Di(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),"normalizeLF"),Wi=globalThis.process??Object.create(null),gn={versions:{}},hn=new Proxy(Wi,{get(e,t){if(t in e)return e[t];if(t in gn)return gn[t]}});var Li=Object.defineProperty,Vi=Hr((e,t)=>Li(e,"name",{value:t,configurable:!0}),"b");const Ui=Vi((e,t,n,s)=>{const u={column:0,line:-1,...e.start},l={...u,...e.end},g=u.line,h=u.column,$=l.line,O=l.column;let j=Math.max(g-(n+1),0),v=Math.min(t.length,$+s);g===-1&&(j=0),$===-1&&(v=t.length);const C=$-g,E={};if(C)for(let P=0;P<=C;P++){const U=P+g;if(!h)E[U]=!0;else if(P===0){const q=t[U-1]?.length;E[U]=[h,(q??0)-h+1]}else if(P===C)E[U]=[0,O];else{const q=t[U-P]?.length;E[U]=[0,q]}}else h===O?E[g]=h?[h,0]:!0:E[g]=[h,(O??0)-(h??0)];return{end:v,markerLines:E,start:j}},"getMarkerLines");var qi=Object.defineProperty,it=Hr((e,t)=>qi(e,"name",{value:t,configurable:!0}),"t");const Zi=hn.platform==="win32"&&!hn.env?.WT_SESSION?">":"❯",Gi=it((e,t,n)=>{const s={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...n,color:{gutter:it(P=>P,"gutter"),marker:it(P=>P,"marker"),message:it(P=>P,"message"),...n?.color}},u=typeof t.start.column=="number";let l=Fi(e).split(`
3
+ `);typeof s.tabWidth=="number"&&(l=l.map(P=>P.replaceAll(" "," ".repeat(s.tabWidth))));const{end:g,markerLines:h,start:$}=Ui(t,l,s.linesAbove,s.linesBelow),O=String(g).length,{gutter:j,marker:v,message:C}=s.color;let E=l.slice($,g).map((P,U)=>{const q=$+1+U,ee=h[q],xe=` ${String(q)}`.slice(-O),we=!h[q+1],X=` ${xe}${s.showGutter?" |":""}`;if(ee){let B="";if(Array.isArray(ee)){const je=P.replaceAll(/[^\t]/g," ").slice(0,Math.max(ee[0]-1,0)),Oe=ee[1]||1;B=[`
4
+ `,s.prefix+j(X.replaceAll(/\d/g," "))," ",je,v("^").repeat(Oe)].join(""),we&&s.message&&(B+=` ${C(s.message)}`)}return[s.prefix+v(Zi),j(X),P.length>0?` ${P}`:"",B].join("")}return`${s.prefix} ${j(X)}${P.length>0?` ${P}`:""}`}).join(`
5
+ `);return s.message&&!u&&(E=`${s.prefix+" ".repeat(O+1)+s.message}
6
+ ${E}`),E},"codeFrame");var Ki=Object.defineProperty,Ji=Qn((e,t)=>Ki(e,"name",{value:t,configurable:!0}),"s"),Hi=Object.defineProperty,Xi=Ji((e,t)=>Hi(e,"name",{value:t,configurable:!0}),"o"),Yi=Object.defineProperty,Xr=Xi((e,t)=>Yi(e,"name",{value:t,configurable:!0}),"l");const mn=Xr((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)/,ea=Xr(e=>e.split(Qi).reduce((t,n)=>(t.push(t.at(-1)+n.length+1),t),[0]),"getLineStartIndexes"),ta=Xr((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=ea(e),g=mn(t,l);return{column:t-l[g]+1,line:g+1}}const u=mn(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var ra=Object.defineProperty,eo=x((e,t)=>ra(e,"name",{value:t,configurable:!0}),"t$6"),na=Object.defineProperty,to=eo((e,t)=>na(e,"name",{value:t,configurable:!0}),"t"),oa=Object.defineProperty,sa=to((e,t)=>oa(e,"name",{value:t,configurable:!0}),"i");let ia=class extends Error{static{x(this,"m")}static{eo(this,"m")}static{to(this,"t")}static{sa(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 Kc=Object.defineProperty,Wo=$((e,t)=>Kc(e,"name",{value:t,configurable:!0}),"u$3"),Jc=Object.defineProperty,Lo=Wo((e,t)=>Jc(e,"name",{value:t,configurable:!0}),"s"),Hc=Object.defineProperty,zr=Lo((e,t)=>Hc(e,"name",{value:t,configurable:!0}),"a");const Xc=zr(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Yc=zr((e,t,o)=>_c(e,{start:t},{tabWidth:!1,...o}),"generateCodeFrame"),Qc=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,el=zr((e,t)=>{const o=Qc.exec(t);if(!o)return;const[,i,u,f]=o;if(u&&f)return{column:Number(f),line:Number(u)};let g=Number(i);return g===e.length&&(g=e.length-1),Lc(e,g)},"getErrorLocation"),tl=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,rl=zr(e=>e.replace(tl,(t,o,i)=>`"${i}"(${Xc(i)})`),"addCodePointToUnexpectedToken");function Ur(e,t,o,i){typeof t=="string"&&(typeof o=="object"&&(i=o),o=t,t=void 0);let u;try{return JSON.parse(e,t)}catch(h){u=h.message}let f;e?(f=el(e,u),u=rl(u)):u+=" while parsing empty string";const g=new Gc(u);throw g.fileName=o,f&&(g.codeFrame=Yc(e,f,i)),g}$(Ur,"d$5");Wo(Ur,"w");Lo(Ur,"E");zr(Ur,"parseJson");var nl=Object.defineProperty,qo=$((e,t)=>nl(e,"name",{value:t,configurable:!0}),"t$5"),ol=Object.defineProperty,Uo=qo((e,t)=>ol(e,"name",{value:t,configurable:!0}),"t"),sl=Object.defineProperty,il=Uo((e,t)=>sl(e,"name",{value:t,configurable:!0}),"r");function Mr(e,t,o){typeof t=="object"&&(o=t,t=void 0);const i=yc(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(i);const{beforeParse:f,color:g}=o??{};return typeof f=="function"&&(u=f(u)),Ur(u,t,qr(e),{color:g})}$(Mr,"n$3");qo(Mr,"s");Uo(Mr,"J");il(Mr,"readJsonSync");var al=Object.defineProperty,cl=$((e,t)=>al(e,"name",{value:t,configurable:!0}),"a$3"),ll=Object.defineProperty,ul=cl((e,t)=>ll(e,"name",{value:t,configurable:!0}),"t"),fl=Object.defineProperty,pl=ul((e,t)=>fl(e,"name",{value:t,configurable:!0}),"e");const dl=pl(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 gl=Object.defineProperty,hl=$((e,t)=>gl(e,"name",{value:t,configurable:!0}),"t$3"),ml=Object.defineProperty,bl=hl((e,t)=>ml(e,"name",{value:t,configurable:!0}),"r"),yl=Object.defineProperty,$l=bl((e,t)=>yl(e,"name",{value:t,configurable:!0}),"f");const vl=new TextEncoder,xl=$l(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return vl.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 wl=Object.defineProperty,jl=$((e,t)=>wl(e,"name",{value:t,configurable:!0}),"m"),Ol=Object.defineProperty,Zo=jl((e,t)=>Ol(e,"name",{value:t,configurable:!0}),"s");const kl=ze(import.meta.url),Pr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Pl=Zo(e=>{if(typeof Pr<"u"&&Pr.versions&&Pr.versions.node){const[t,o]=Pr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Pr.getBuiltinModule(e)}return kl(e)},"__cjs_getBuiltinModule"),{mkdirSync:El,writeFileSync:Al,statSync:Sl,renameSync:Gn,chownSync:Tl,chmodSync:zl,unlinkSync:Ml}=Pl("node:fs");var Cl=Object.defineProperty,_l=Zo((e,t)=>Cl(e,"name",{value:t,configurable:!0}),"f");const Nl=_l((e,t,o)=>{o={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...o},Fr(e),dl(t),e=qr(e);const i=`${e}.tmp`;try{const u=V(e,on);if(!u&&o.recursive){const g=Xe(e);V(g,on)||El(g,{recursive:!0})}let f;if(Al(i,xl(t),{encoding:o.encoding,flag:o.flag}),u&&!o.overwrite&&(f=Sl(e),o.chown??={gid:f.gid,uid:f.uid},Gn(e,`${e}.bak`)),o.chown)try{Tl(i,o.chown.uid,o.chown.gid)}catch{}zl(i,f&&!o.mode?f.mode:o.mode??438),Gn(i,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{V(i)&&Ml(`${e}.tmp`)}},"writeFileSync");var Rl=Object.defineProperty,Me=$((e,t)=>Rl(e,"name",{value:t,configurable:!0}),"i$2"),Bl=Object.defineProperty,Ce=Me((e,t)=>Bl(e,"name",{value:t,configurable:!0}),"s"),Il=Object.defineProperty,Le=Ce((e,t)=>Il(e,"name",{value:t,configurable:!0}),"i");const Dl=/^(?:( )+|\t+)/,Cr="space";function Sr(e,t,o){return e&&t===Cr&&o===1}$(Sr,"d$3");Me(Sr,"g");Ce(Sr,"I");Le(Sr,"shouldIgnoreSingleSpace");function Tr(e,t){const o=new Map;let i=0,u,f;for(const g of e.split(/\n/g)){if(!g)continue;const h=g.match(Dl);if(h===null)i=0,u="";else{const w=h[0].length,P=h[1]?Cr:"tab";if(Sr(t,P,w))continue;P!==u&&(i=0),u=P;let k=1,O=0;const N=w-i;if(i=w,N===0)k=0,O=1;else{const E=Math.abs(N);if(Sr(t,P,E))continue;f=Zr(P,E)}const C=o.get(f);o.set(f,C===void 0?[1,0]:[C[0]+k,C[1]+O])}}return o}$(Tr,"p");Me(Tr,"y");Ce(Tr,"h");Le(Tr,"makeIndentsMap");function Zr(e,t){return(e===Cr?"s":"t")+String(t)}$(Zr,"b$1");Me(Zr,"v");Ce(Zr,"m");Le(Zr,"encodeIndentsKey");function Vr(e){const t=e[0]==="s"?Cr:"tab",o=Number(e.slice(1));return{type:t,amount:o}}$(Vr,"v");Me(Vr,"M");Ce(Vr,"_");Le(Vr,"decodeIndentsKey");function Gr(e){let t,o=0,i=0;for(const[u,[f,g]]of e)(f>o||f===o&&g>i)&&(o=f,i=g,t=u);return t}$(Gr,"I");Me(Gr,"S");Ce(Gr,"k");Le(Gr,"getMostUsedKey");function Kr(e,t){return(e===Cr?" ":" ").repeat(t)}$(Kr,"h$1");Me(Kr,"k");Ce(Kr,"D");Le(Kr,"makeIndentString");function Jr(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=Tr(e,!0);t.size===0&&(t=Tr(e,!1));const o=Gr(t);let i,u=0,f="";return o!==void 0&&({type:i,amount:u}=Vr(o),f=Kr(i,u)),{amount:u,type:i,indent:f}}$(Jr,"M");Me(Jr,"x");Ce(Jr,"C");Le(Jr,"detectIndent");var Fl=Object.defineProperty,Wl=$((e,t)=>Fl(e,"name",{value:t,configurable:!0}),"a$1"),Ll=Object.defineProperty,Vo=Wl((e,t)=>Ll(e,"name",{value:t,configurable:!0}),"i");const ql=ze(import.meta.url),Er=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ul=Vo(e=>{if(typeof Er<"u"&&Er.versions&&Er.versions.node){const[t,o]=Er.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Er.getBuiltinModule(e)}return ql(e)},"__cjs_getBuiltinModule"),{readFileSync:Zl}=Ul("node:fs");var Vl=Object.defineProperty,Gl=Vo((e,t)=>Vl(e,"name",{value:t,configurable:!0}),"r");const Go=Gl((e,t,o={})=>{const{detectIndent:i,indent:u,replacer:f,stringify:g=JSON.stringify,...h}={indent:" ",...o};let w=u,P=`
10
- `;if(V(e,ko))try{const O=Zl(e,"utf8");if(i){const{indent:N}=Jr(O);w=N}P=O.endsWith(`
9
+ `:""}`}set message(t){this.#e=t}};var aa=Object.defineProperty,ro=x((e,t)=>aa(e,"name",{value:t,configurable:!0}),"u$3"),ca=Object.defineProperty,no=ro((e,t)=>ca(e,"name",{value:t,configurable:!0}),"s"),ua=Object.defineProperty,nt=no((e,t)=>ua(e,"name",{value:t,configurable:!0}),"a");const la=nt(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),fa=nt((e,t,n)=>Gi(e,{start:t},{tabWidth:!1,...n}),"generateCodeFrame"),pa=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,da=nt((e,t)=>{const n=pa.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),ta(e,g)},"getErrorLocation"),ga=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,ha=nt(e=>e.replace(ga,(t,n,s)=>`"${s}"(${la(s)})`),"addCodePointToUnexpectedToken");function pt(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=da(e,u),u=ha(u)):u+=" while parsing empty string";const g=new ia(u);throw g.fileName=n,l&&(g.codeFrame=fa(e,l,s)),g}x(pt,"d$5");ro(pt,"w");no(pt,"E");nt(pt,"parseJson");var ma=Object.defineProperty,oo=x((e,t)=>ma(e,"name",{value:t,configurable:!0}),"t$5"),ya=Object.defineProperty,so=oo((e,t)=>ya(e,"name",{value:t,configurable:!0}),"t"),ba=Object.defineProperty,va=so((e,t)=>ba(e,"name",{value:t,configurable:!0}),"r");function ot(e,t,n){typeof t=="object"&&(n=t,t=void 0);const s=jo(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)),pt(u,t,On(e),{color:g})}x(ot,"n$3");oo(ot,"s");so(ot,"J");va(ot,"readJsonSync");var $a=Object.defineProperty,xa=x((e,t)=>$a(e,"name",{value:t,configurable:!0}),"a$3"),wa=Object.defineProperty,ja=xa((e,t)=>wa(e,"name",{value:t,configurable:!0}),"t"),Oa=Object.defineProperty,ka=ja((e,t)=>Oa(e,"name",{value:t,configurable:!0}),"e");const Pa=ka(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 Ea=Object.defineProperty,Ta=x((e,t)=>Ea(e,"name",{value:t,configurable:!0}),"t$3"),Aa=Object.defineProperty,Sa=Ta((e,t)=>Aa(e,"name",{value:t,configurable:!0}),"r"),Ca=Object.defineProperty,Ma=Sa((e,t)=>Ca(e,"name",{value:t,configurable:!0}),"f");const _a=new TextEncoder,za=Ma(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return _a.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 Na=Object.defineProperty,Ba=x((e,t)=>Na(e,"name",{value:t,configurable:!0}),"m$1"),Ra=Object.defineProperty,io=Ba((e,t)=>Ra(e,"name",{value:t,configurable:!0}),"s");const Ia=tt(import.meta.url),He=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Da=io(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 Ia(e)},"__cjs_getBuiltinModule"),{mkdirSync:Fa,writeFileSync:Wa,statSync:La,renameSync:yn,chownSync:Va,chmodSync:Ua,unlinkSync:qa}=Da("node:fs");var Za=Object.defineProperty,Ga=io((e,t)=>Za(e,"name",{value:t,configurable:!0}),"f");const Ka=Ga((e,t,n)=>{n={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...n},jn(e),Pa(t),e=On(e);const s=`${e}.tmp`;try{const u=J(e,Qr);if(!u&&n.recursive){const g=rt(e);J(g,Qr)||Fa(g,{recursive:!0})}let l;if(Wa(s,za(t),{encoding:n.encoding,flag:n.flag}),u&&!n.overwrite&&(l=La(e),n.chown??={gid:l.gid,uid:l.uid},yn(e,`${e}.bak`)),n.chown)try{Va(s,n.chown.uid,n.chown.gid)}catch{}Ua(s,l&&!n.mode?l.mode:n.mode??438),yn(s,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{J(s)&&qa(`${e}.tmp`)}},"writeFileSync");var Ja=Object.defineProperty,oe=x((e,t)=>Ja(e,"name",{value:t,configurable:!0}),"i$2"),Ha=Object.defineProperty,se=oe((e,t)=>Ha(e,"name",{value:t,configurable:!0}),"s"),Xa=Object.defineProperty,de=se((e,t)=>Xa(e,"name",{value:t,configurable:!0}),"i");const Ya=/^(?:( )+|\t+)/,st="space";function Qe(e,t,n){return e&&t===st&&n===1}x(Qe,"d$3");oe(Qe,"g");se(Qe,"I");de(Qe,"shouldIgnoreSingleSpace");function et(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(Ya);if(h===null)s=0,u="";else{const $=h[0].length,O=h[1]?st:"tab";if(Qe(t,O,$))continue;O!==u&&(s=0),u=O;let j=1,v=0;const C=$-s;if(s=$,C===0)j=0,v=1;else{const P=Math.abs(C);if(Qe(t,O,P))continue;l=dt(O,P)}const E=n.get(l);n.set(l,E===void 0?[1,0]:[E[0]+j,E[1]+v])}}return n}x(et,"p");oe(et,"y");se(et,"h");de(et,"makeIndentsMap");function dt(e,t){return(e===st?"s":"t")+String(t)}x(dt,"b$1");oe(dt,"v");se(dt,"m");de(dt,"encodeIndentsKey");function gt(e){const t=e[0]==="s"?st:"tab",n=Number(e.slice(1));return{type:t,amount:n}}x(gt,"v");oe(gt,"M");se(gt,"_");de(gt,"decodeIndentsKey");function ht(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}x(ht,"I");oe(ht,"S");se(ht,"k");de(ht,"getMostUsedKey");function mt(e,t){return(e===st?" ":" ").repeat(t)}x(mt,"h$1");oe(mt,"k");se(mt,"D");de(mt,"makeIndentString");function yt(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=et(e,!0);t.size===0&&(t=et(e,!1));const n=ht(t);let s,u=0,l="";return n!==void 0&&({type:s,amount:u}=gt(n),l=mt(s,u)),{amount:u,type:s,indent:l}}x(yt,"M");oe(yt,"x");se(yt,"C");de(yt,"detectIndent");var Qa=Object.defineProperty,ec=x((e,t)=>Qa(e,"name",{value:t,configurable:!0}),"a$1"),tc=Object.defineProperty,ao=ec((e,t)=>tc(e,"name",{value:t,configurable:!0}),"i");const rc=tt(import.meta.url),Xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nc=ao(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 rc(e)},"__cjs_getBuiltinModule"),{readFileSync:oc}=nc("node:fs");var sc=Object.defineProperty,ic=ao((e,t)=>sc(e,"name",{value:t,configurable:!0}),"r");const co=ic((e,t,n={})=>{const{detectIndent:s,indent:u,replacer:l,stringify:g=JSON.stringify,...h}={indent:" ",...n};let $=u,O=`
10
+ `;if(J(e,Oo))try{const v=oc(e,"utf8");if(s){const{indent:C}=yt(v);$=C}O=v.endsWith(`
11
11
  `)?`
12
- `:""}catch(O){if(O.code!=="ENOENT")throw O}const k=g(t,f,w);Nl(e,`${k}${P}`,h)},"writeJsonSync");var Kl=Object.defineProperty,Jl=$((e,t)=>Kl(e,"name",{value:t,configurable:!0}),"s$1");class Hr extends Error{static{$(this,"VisConfigError")}static{Jl(this,"VisConfigError")}chain;constructor(t,o,i){super(t,i),this.name=this.constructor.name,this.chain=o}}var Hl=Object.defineProperty,Xl=$((e,t)=>Hl(e,"name",{value:t,configurable:!0}),"e");class Yl extends Hr{static{$(this,"VisConfigCycleError")}static{Xl(this,"VisConfigCycleError")}constructor(t,o){const i=[...o,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${i}`,o)}}var Ql=Object.defineProperty,eu=$((e,t)=>Ql(e,"name",{value:t,configurable:!0}),"s");class Ko extends Hr{static{$(this,"VisConfigDeprecatedKeyError")}static{eu(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,o,i){const u=[`${t} uses removed keys.`,""];for(const f of i){const g=f.location?` (at ${f.location})`:"";u.push(` • ${f.name}${g} → renamed to \`${f.renamedTo}\``);for(const h of f.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
- `),o),this.filePath=t,this.removedKeys=i}}var tu=Object.defineProperty,ru=$((e,t)=>tu(e,"name",{value:t,configurable:!0}),"t$1");class Kn extends Hr{static{$(this,"VisConfigLoadError")}static{ru(this,"VisConfigLoadError")}constructor(t,o,i){const u=i instanceof Error?i.message:String(i),f=o.length>0?`
14
- Chain: ${o.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${f}`,o,{cause:i})}}var nu=Object.defineProperty,Jo=$((e,t)=>nu(e,"name",{value:t,configurable:!0}),"t");const ou=Jo(e=>e.join(" → "),"formatChain");class tn extends Hr{static{$(this,"VisConfigNotFoundError")}static{Jo(this,"VisConfigNotFoundError")}constructor(t,o,i){const u=o.length>0?o[o.length-1]:"<unknown>",f=i.length>0?`
12
+ `:""}catch(v){if(v.code!=="ENOENT")throw v}const j=g(t,l,$);Ka(e,`${j}${O}`,h)},"writeJsonSync");var ac=Object.defineProperty,cc=x((e,t)=>ac(e,"name",{value:t,configurable:!0}),"s$1");class bt extends Error{static{x(this,"VisConfigError")}static{cc(this,"VisConfigError")}chain;constructor(t,n,s){super(t,s),this.name=this.constructor.name,this.chain=n}}var uc=Object.defineProperty,lc=x((e,t)=>uc(e,"name",{value:t,configurable:!0}),"e");class fc extends bt{static{x(this,"VisConfigCycleError")}static{lc(this,"VisConfigCycleError")}constructor(t,n){const s=[...n,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${s}`,n)}}var pc=Object.defineProperty,dc=x((e,t)=>pc(e,"name",{value:t,configurable:!0}),"s");class uo extends bt{static{x(this,"VisConfigDeprecatedKeyError")}static{dc(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 gc=Object.defineProperty,hc=x((e,t)=>gc(e,"name",{value:t,configurable:!0}),"t$1");class bn extends bt{static{x(this,"VisConfigLoadError")}static{hc(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 mc=Object.defineProperty,lo=x((e,t)=>mc(e,"name",{value:t,configurable:!0}),"t");const yc=lo(e=>e.join(" → "),"formatChain");class Dr extends bt{static{x(this,"VisConfigNotFoundError")}static{lo(this,"VisConfigNotFoundError")}constructor(t,n,s){const u=n.length>0?n[n.length-1]:"<unknown>",l=s.length>0?`
15
15
  Tried:
16
- ${i.join(`
17
- `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${f}
18
- Chain: ${ou(o)}`,o)}}var su=Object.defineProperty,Ho=$((e,t)=>su(e,"name",{value:t,configurable:!0}),"i$1");const Jn="@inherit",iu=["aliases","dependsOn","inputs","outputs"],au=Ho((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Jn))return[...t];const o=[];for(const i of t){if(i===Jn){e!==void 0&&o.push(...e);continue}o.push(i)}return o},"mergeArrayWithInherit"),cu=Ho((e,t)=>{const o={...e,...t};for(const i of iu){const u=e?.[i],f=t?.[i],g=au(u,f);g===void 0?delete o[i]:o[i]=g}return o},"mergeTargetWithInherit");var lu=Object.defineProperty,Xr=$((e,t)=>lu(e,"name",{value:t,configurable:!0}),"o");const uu=Xr(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:o}=e,i=[];if(Array.isArray(o))for(const[u,f]of o.entries())f&&typeof f=="object"&&(Object.hasOwn(f,"scope")&&i.push({location:`taskDefaults[${u}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(f,"targets")&&i.push({location:`taskDefaults[${u}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:i.length>0?i:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[o,i]of e.scopedTasks.entries())i&&typeof i=="object"&&(Object.hasOwn(i,"scope")&&t.push({location:`scopedTasks[${o}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(i,"targets")&&t.push({location:`scopedTasks[${o}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),fu=Xr(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),pu=Xr((e,t,o)=>{if(!o||typeof o!="object")return;const i=uu(o);if(i.length>0)throw new Ko(e,t,i)},"assertNoDeprecatedConfigKeys"),du=Xr((e,t,o)=>{if(!o||typeof o!="object")return;const i=fu(o);if(i.length>0)throw new Ko(e,t,i)},"assertNoDeprecatedTaskKeys");var gu=Object.defineProperty,R=$((e,t)=>gu(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"],hu=new Set(Xo),Yo=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],mu=new Set(Yo),Uu=2880,rn={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},bu=R(e=>{if(!e)return{...rn};const t=rn.policies??{},o=e.policies??{},i={...t,...o};for(const u of Object.keys(t)){const f=t[u],g=o[u];f!==void 0&&g!==void 0&&(i[u]={...f,...g})}return{...rn,...e,policies:i}},"mergeSecurityDefaults"),an=R(e=>({...e,security:bu(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),yu=R(e=>{let t;try{t=Xn(e)}catch{return}const o=new Set(t.filter(i=>hu.has(i)));for(const i of Xo)if(o.has(i))return Z(e,i)},"findVisConfigFile"),$u=R(e=>{let t;try{t=Xn(e)}catch{return}const o=new Set(t.filter(i=>mu.has(i)));for(const i of Yo)if(o.has(i))return Z(e,i)},"findVisTaskConfigFile"),On=R(e=>Hn("sha256").update(os(e)).digest("hex"),"hashFileContents"),vu=R(e=>{const t=Hn("sha256"),o=[...e].sort();for(const i of o)t.update(i),t.update(":"),t.update(On(i)),t.update(`
19
- `);return t.digest("hex")},"hashConfigChain"),xu=R(e=>{const t=Z(e,"node_modules");if(V(t)){const i=Z(t,".cache","vis");return Wr(i),Z(i,"vis-config-cache.json")}const o=Oo("vis",{create:!0,cwd:e});return o?Z(o,"vis-config-cache.json"):void 0},"getConfigCachePath"),wu=R((e,t)=>{if(V(e))try{const o=Mr(e);if(o.hash===t)return o.config}catch{}},"readConfigCache"),ju=R((e,t,o)=>{try{Wr(Xe(e)),Go(e,{config:o,hash:t})}catch{}},"writeConfigCache"),Ou=R(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),ku=R((e,t,o)=>{if(De(e))throw new tn(e,[...o,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const i=[];if(e.startsWith("./")||e.startsWith("../")){const u=Xe(t),f=Z(u,e);if(i.push(f),V(f))return f;throw new tn(e,[...o,t],i)}try{return ze(t).resolve(e)}catch{throw i.push(`require.resolve("${e}") from ${t}`),new tn(e,[...o,t],i)}},"resolveExtendsSpecifier"),Qo=R(async(e,t,o)=>{const i=On(t),u=t.slice(t.lastIndexOf(".")),f=Z(Xe(t),`.vis-config-tmp-${i}${u}`);ss(t,f);let g;try{g=await e.import(f,{default:!0,try:!0})??{}}catch(h){throw new Kn(t,o,h)}finally{try{is(f)}catch{}}try{return(typeof g=="function"?await g()??{}:g)??{}}catch(h){throw new Kn(t,o,h)}},"loadRawConfig"),Pu=R((e,t)=>{const o={...e,...t};if(e.tasks||t.tasks){const i=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),u={};for(const f of i)u[f]=cu(e.tasks?.[f],t.tasks?.[f]);o.tasks=u}if((e.scopedTasks||t.scopedTasks)&&(o.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(o.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(o.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const i=e.security?.policies??{},u=t.security?.policies??{},f={...i,...u};for(const g of Object.keys(i)){const h=i[g],w=u[g];h!==void 0&&w!==void 0&&(f[g]={...h,...w})}o.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:f}}return(e.update||t.update)&&(o.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(o.taskRunner={...e.taskRunner,...t.taskRunner}),delete o.extends,o},"mergeVisConfigs"),es=R(async(e,t,o,i,u,f)=>{if(i.has(t))throw new Yl(t,o);if(!u.has(t)){i.add(t);try{const g=await Qo(e,t,o);pu(t,o,g);const h=Ou(g.extends);for(const w of h){const P=ku(w,t,o);await es(e,P,[...o,t],i,u,f)}u.set(t,g),f.push(t)}finally{i.delete(t)}}},"resolveConfigChain"),Zu=R(async(e,t)=>{let o;if(t?.explicitConfigPath){const O=De(t.explicitConfigPath)?t.explicitConfigPath:Z(e,t.explicitConfigPath);if(!V(O))throw new Error(`Cannot find config file at ${O}`);o=O}else o=yu(e);if(!o)return an({});const i=Yn(e,{fsCache:!1,moduleCache:!1}),u=new Set,f=new Map,g=[];await es(i,o,[],u,f,g);const h=vu(g),w=xu(e);if(w){const O=wu(w,h);if(O)return O}let P={};for(const O of g)P=Pu(P,f.get(O));const k=an(P);return w&&ju(w,h,k),k},"loadVisConfig"),Eu=R(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),Au=R((e,t)=>{const o=Z(e,"node_modules"),i=Eu(t);if(V(o)){const f=Z(o,".cache","vis","task-configs");return Wr(f),Z(f,`${i}.json`)}const u=Oo("vis",{create:!0,cwd:e});return u?Z(u,"task-configs",`${i}.json`):void 0},"getVisTaskCachePath"),Su=R((e,t)=>{if(V(e))try{const o=Mr(e);if(o.hash===t)return o.config}catch{}},"readVisTaskCache"),Tu=R((e,t,o)=>{try{Wr(Xe(e)),Go(e,{config:o,hash:t})}catch{}},"writeVisTaskCache"),Vu=R(async(e,t,o)=>{const i=$u(t);if(!i)return;const u=On(i),f=Au(e,o);if(f){const P=Su(f,u);if(P)return P}const g=Yn(t,{fsCache:!1,moduleCache:!1}),h=await Qo(g,i,[]);du(i,[],h);const w=h;return f&&Tu(f,u,w),w},"loadVisTaskConfig"),Gu=R(e=>e,"defineTaskConfig"),Ku=R(e=>an(e),"defineConfig");export{yc as $,Jr as A,Nl as B,sn as C,cu as D,$u as G,Uu as H,Oo as K,So as L,Z as M,De as O,Ra as Q,qr as U,Yo as V,on as _,Gu as a,Wr as b,Ku as c,Du as d,Zu as e,Iu as f,Xe as g,Xo as h,V as i,yu as j,Wu as k,rn as l,Fr as m,Mr as n,Rn as o,Bu as p,Ru as q,Vu as r,qn as s,ko as t,Ur as u,dl as v,Go as w,xl as x,an as y,Fu as z};
16
+ ${s.join(`
17
+ `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${l}
18
+ Chain: ${yc(n)}`,n)}}var bc=Object.defineProperty,fo=x((e,t)=>bc(e,"name",{value:t,configurable:!0}),"i$1");const vn="@inherit",vc=["aliases","dependsOn","inputs","outputs"],$c=fo((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(vn))return[...t];const n=[];for(const s of t){if(s===vn){e!==void 0&&n.push(...e);continue}n.push(s)}return n},"mergeArrayWithInherit"),xc=fo((e,t)=>{const n={...e,...t};for(const s of vc){const u=e?.[s],l=t?.[s],g=$c(u,l);g===void 0?delete n[s]:n[s]=g}return n},"mergeTargetWithInherit");var wc=Object.defineProperty,vt=x((e,t)=>wc(e,"name",{value:t,configurable:!0}),"o");const jc=vt(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"),Oc=vt(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),kc=vt((e,t,n)=>{if(!n||typeof n!="object")return;const s=jc(n);if(s.length>0)throw new uo(e,t,s)},"assertNoDeprecatedConfigKeys"),Pc=vt((e,t,n)=>{if(!n||typeof n!="object")return;const s=Oc(n);if(s.length>0)throw new uo(e,t,s)},"assertNoDeprecatedTaskKeys");var Ec=Object.defineProperty,T=x((e,t)=>Ec(e,"name",{value:t,configurable:!0}),"r");const po=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],Tc=new Set(po),go=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],Ac=new Set(go),Xc=2880,Fr={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},Sc=T(e=>{if(!e)return{...Fr};const t=Fr.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{...Fr,...e,policies:s}},"mergeSecurityDefaults"),$n=T(e=>({...e,security:Sc(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),Cc=T(e=>{let t;try{t=wn(e)}catch{return}const n=new Set(t.filter(s=>Tc.has(s)));for(const s of po)if(n.has(s))return L(e,s)},"findVisConfigFile"),Mc=T(e=>{let t;try{t=wn(e)}catch{return}const n=new Set(t.filter(s=>Ac.has(s)));for(const s of go)if(n.has(s))return L(e,s)},"findVisTaskConfigFile"),Yr=T(e=>xn("sha256").update($o(e)).digest("hex"),"hashFileContents"),_c=T(e=>{const t=xn("sha256"),n=[...e].sort();for(const s of n)t.update(s),t.update(":"),t.update(Yr(s)),t.update(`
19
+ `);return t.digest("hex")},"hashConfigChain"),zc=T(e=>{const t=L(e,"node_modules");if(J(t)){const s=L(t,".cache","vis");return ft(s),L(s,"vis-config-cache.json")}const n=Xn("vis",{create:!0,cwd:e});return n?L(n,"vis-config-cache.json"):void 0},"getConfigCachePath"),Nc=T((e,t)=>{if(J(e))try{const n=ot(e);if(n.hash===t)return n.config}catch{}},"readConfigCache"),Bc=T((e,t,n)=>{try{ft(rt(e)),co(e,{config:n,hash:t})}catch{}},"writeConfigCache"),Rc=T(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),Ic=T((e,t,n)=>{if(kn(e))throw new Dr(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=L(u,e);if(s.push(l),J(l))return l;throw new Dr(e,[...n,t],s)}try{return tt(t).resolve(e)}catch{throw s.push(`require.resolve("${e}") from ${t}`),new Dr(e,[...n,t],s)}},"resolveExtendsSpecifier"),ho=T(async(e,t,n)=>{const s=Yr(t),u=t.slice(t.lastIndexOf(".")),l=L(rt(t),`.vis-config-tmp-${s}${u}`);xo(t,l);let g;try{g=await e.import(l,{default:!0,try:!0})??{}}catch(h){throw new bn(t,n,h)}finally{try{wo(l)}catch{}}try{return(typeof g=="function"?await g()??{}:g)??{}}catch(h){throw new bn(t,n,h)}},"loadRawConfig"),Dc=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]=xc(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],$=u[g];h!==void 0&&$!==void 0&&(l[g]={...h,...$})}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"),mo=T(async(e,t,n,s,u,l)=>{if(s.has(t))throw new fc(t,n);if(!u.has(t)){s.add(t);try{const g=await ho(e,t,n);kc(t,n,g);const h=Rc(g.extends);for(const $ of h){const O=Ic($,t,n);await mo(e,O,[...n,t],s,u,l)}u.set(t,g),l.push(t)}finally{s.delete(t)}}},"resolveConfigChain"),Yc=T(async(e,t)=>{let n;if(t?.explicitConfigPath){const v=kn(t.explicitConfigPath)?t.explicitConfigPath:L(e,t.explicitConfigPath);if(!J(v))throw new Error(`Cannot find config file at ${v}`);n=v}else n=Cc(e);if(!n)return $n({});const s=Pn(e,{fsCache:!1,moduleCache:!1}),u=new Set,l=new Map,g=[];await mo(s,n,[],u,l,g);const h=_c(g),$=zc(e);if($){const v=Nc($,h);if(v)return v}let O={};for(const v of g)O=Dc(O,l.get(v));const j=$n(O);return $&&Bc($,h,j),j},"loadVisConfig"),Fc=T(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),Wc=T((e,t)=>{const n=L(e,"node_modules"),s=Fc(t);if(J(n)){const l=L(n,".cache","vis","task-configs");return ft(l),L(l,`${s}.json`)}const u=Xn("vis",{create:!0,cwd:e});return u?L(u,"task-configs",`${s}.json`):void 0},"getVisTaskCachePath"),Lc=T((e,t)=>{if(J(e))try{const n=ot(e);if(n.hash===t)return n.config}catch{}},"readVisTaskCache"),Vc=T((e,t,n)=>{try{ft(rt(e)),co(e,{config:n,hash:t})}catch{}},"writeVisTaskCache"),Qc=T(async(e,t,n)=>{const s=Mc(t);if(!s)return;const u=Yr(s),l=Wc(e,n);if(l){const O=Lc(l,u);if(O)return O}const g=Pn(t,{fsCache:!1,moduleCache:!1}),h=await ho(g,s,[]);Pc(s,[],h);const $=h;return l&&Vc(l,u,$),$},"loadVisTaskConfig"),eu=T(e=>e,"defineTaskConfig"),tu=T(e=>e,"defineConfig");export{Ka as B,Mc as G,Xc as H,Xn as K,yt as M,go as V,eu as a,ft as b,tu as c,pn as d,Yc as e,pt as f,za as g,po as h,xc as i,Cc as j,Fr as l,$n as m,ot as n,Qc as r,Pa as s,co as w};
@@ -1,2 +1,2 @@
1
- var h=Object.defineProperty;var p=(e,t)=>h(e,"name",{value:t,configurable:!0});import{I as g,a as l,j as b,E as n,q as d,e as m,p as f}from"./bin.js";import{ReapiRemoteCache as k,resolveTurboEnvCompat as $}from"@visulima/task-runner";var w=Object.defineProperty,s=p((e,t)=>w(e,"name",{value:t,configurable:!0}),"s");const y=s((e,t)=>t==="http"||t==="reapi"?t:e.startsWith("grpc://")||e.startsWith("grpcs://")?"reapi":"http","inferBackend"),S=s(async(e,t)=>{const o=Date.now(),a=new AbortController,r=setTimeout(()=>{a.abort()},t);try{const i=await fetch(e,{method:"HEAD",signal:a.signal});return{backend:"http",durationMs:Date.now()-o,httpStatus:i.status,ok:!0,url:e}}catch(i){return{backend:"http",durationMs:Date.now()-o,error:i instanceof Error?i.message:String(i),ok:!1,url:e}}finally{clearTimeout(r)}},"probeHttp"),C=s(async(e,t)=>{const o=Date.now(),a=new k({...e,timeout:t});try{return{backend:"reapi",capabilities:await a.probeCapabilities(),durationMs:Date.now()-o,ok:!0,url:e.url}}catch(r){return{backend:"reapi",durationMs:Date.now()-o,error:r instanceof Error?r.message:String(r),ok:!1,url:e.url}}finally{try{await a.close()}catch{}}},"probeReapi"),D=s(e=>{const t=[],o=e.ok?g("OK"):l("FAIL");if(t.push(`${b("Remote cache")} ${o}`),t.push(` ${n("URL:")} ${d(e.url)}`),t.push(` ${n("Backend:")} ${e.backend}`),t.push(` ${n("Latency:")} ${String(e.durationMs)}ms`),e.httpStatus!==void 0&&t.push(` ${n("Status:")} ${String(e.httpStatus)}`),e.capabilities){const a=e.capabilities.digestFunctions.length>0?e.capabilities.digestFunctions.join(", "):m("(none advertised)");t.push(` ${n("Digests:")} ${a}`),t.push(` ${n("Batch:")} ${String(e.capabilities.maxBatchTotalSizeBytes)} bytes`)}return e.error&&t.push(` ${n("Error:")} ${l(e.error)}`),t.join(`
2
- `)},"formatTable"),x=s(async({logger:e,options:t,visConfig:o})=>{const a=$((o??{}).taskRunner?.remoteCache),r=t.url??a?.url,i=t.format??"table",u=t.timeout??5e3;if(!r){f.error("No remote cache configured. Set taskRunner.remoteCache.url in vis.config.ts, pass --url=..., or export TURBO_API."),process.exitCode=1;return}const c=y(r,t.backend)==="reapi"?await C({...a??{url:r},backend:"reapi",url:r},u):await S(r,u);i==="json"?e.log(JSON.stringify(c,null,2)):e.log(D(c)),c.ok||(process.exitCode=1)},"cacheDoctorExecute");export{x as cacheDoctorExecute};
1
+ var h=Object.defineProperty;var p=(e,t)=>h(e,"name",{value:t,configurable:!0});import{I as g,T as l,j as m,E as n,q as b,e as d}from"../packem_shared/index.server-B7ETiT4C.js";import{ReapiRemoteCache as f,resolveTurboEnvCompat as k}from"@visulima/task-runner";import{p as $}from"./bin.js";var w=Object.defineProperty,s=p((e,t)=>w(e,"name",{value:t,configurable:!0}),"s");const y=s((e,t)=>t==="http"||t==="reapi"?t:e.startsWith("grpc://")||e.startsWith("grpcs://")?"reapi":"http","inferBackend"),S=s(async(e,t)=>{const o=Date.now(),a=new AbortController,r=setTimeout(()=>{a.abort()},t);try{const i=await fetch(e,{method:"HEAD",signal:a.signal});return{backend:"http",durationMs:Date.now()-o,httpStatus:i.status,ok:!0,url:e}}catch(i){return{backend:"http",durationMs:Date.now()-o,error:i instanceof Error?i.message:String(i),ok:!1,url:e}}finally{clearTimeout(r)}},"probeHttp"),C=s(async(e,t)=>{const o=Date.now(),a=new f({...e,timeout:t});try{return{backend:"reapi",capabilities:await a.probeCapabilities(),durationMs:Date.now()-o,ok:!0,url:e.url}}catch(r){return{backend:"reapi",durationMs:Date.now()-o,error:r instanceof Error?r.message:String(r),ok:!1,url:e.url}}finally{try{await a.close()}catch{}}},"probeReapi"),D=s(e=>{const t=[],o=e.ok?g("OK"):l("FAIL");if(t.push(`${m("Remote cache")} ${o}`),t.push(` ${n("URL:")} ${b(e.url)}`),t.push(` ${n("Backend:")} ${e.backend}`),t.push(` ${n("Latency:")} ${String(e.durationMs)}ms`),e.httpStatus!==void 0&&t.push(` ${n("Status:")} ${String(e.httpStatus)}`),e.capabilities){const a=e.capabilities.digestFunctions.length>0?e.capabilities.digestFunctions.join(", "):d("(none advertised)");t.push(` ${n("Digests:")} ${a}`),t.push(` ${n("Batch:")} ${String(e.capabilities.maxBatchTotalSizeBytes)} bytes`)}return e.error&&t.push(` ${n("Error:")} ${l(e.error)}`),t.join(`
2
+ `)},"formatTable"),T=s(async({logger:e,options:t,visConfig:o})=>{const a=k((o??{}).taskRunner?.remoteCache),r=t.url??a?.url,i=t.format??"table",u=t.timeout??5e3;if(!r){$.error("No remote cache configured. Set taskRunner.remoteCache.url in vis.config.ts, pass --url=..., or export TURBO_API."),process.exitCode=1;return}const c=y(r,t.backend)==="reapi"?await C({...a??{url:r},backend:"reapi",url:r},u):await S(r,u);i==="json"?e.log(JSON.stringify(c,null,2)):e.log(D(c)),c.ok||(process.exitCode=1)},"cacheDoctorExecute");export{T as cacheDoctorExecute};
@@ -1,11 +1,11 @@
1
- var T=Object.defineProperty;var v=(e,t)=>T(e,"name",{value:t,configurable:!0});import{createRequire as q}from"node:module";import{j as $,E as P,e as R,q as D,a as j,I,p}from"./bin.js";import{z as _}from"./config.js";import{r as W,a as B,b as L,c as w}from"../packem_shared/ai-fix-DzrA-dVz.js";import{l as N}from"../packem_shared/failure-log-C3LEMmkq.js";const A=q(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,J=v(e=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[t,r]=m.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return m.getBuiltinModule(e)}return A(e)},"__cjs_getBuiltinModule"),{createInterface:z}=J("node:readline");var M=Object.defineProperty,l=v((e,t)=>M(e,"name",{value:t,configurable:!0}),"c");const U={"ambiguous-match":"ambiguous match",applied:"applied",error:"error","missing-file":"missing file","no-match":"no match","outside-workspace":"outside workspace"},S=l((e,t,r)=>{const o=W(e,t,r),s=_(e,o);return s===""||s.startsWith("..")?o:s},"formatDisplayPath"),E=l((e,t,r)=>{const o=[$(`Fix proposal (${e.provider}, confidence: ${e.confidence})`),"",e.explanation||P("<no explanation>")];if(e.cannotFix)return o.push(""),o.push(R(`Cannot fix automatically: ${e.cannotFix}`)),o.join(`
1
+ var O=Object.defineProperty;var v=(e,t)=>O(e,"name",{value:t,configurable:!0});import{createRequire as q}from"node:module";import{j as $,E as P,e as R,q as D,T as j,I}from"../packem_shared/index.server-B7ETiT4C.js";import{z as _}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{r as W,a as B,b as L,c as w}from"../packem_shared/ai-fix-DiGSrGKv.js";import{p}from"./bin.js";import{l as N}from"../packem_shared/failure-log-B0Uh-65U.js";const A=q(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,J=v(e=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[t,r]=m.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return m.getBuiltinModule(e)}return A(e)},"__cjs_getBuiltinModule"),{createInterface:z}=J("node:readline");var M=Object.defineProperty,l=v((e,t)=>M(e,"name",{value:t,configurable:!0}),"c");const U={"ambiguous-match":"ambiguous match",applied:"applied",error:"error","missing-file":"missing file","no-match":"no match","outside-workspace":"outside workspace"},S=l((e,t,r)=>{const o=W(e,t,r),s=_(e,o);return s===""||s.startsWith("..")?o:s},"formatDisplayPath"),E=l((e,t,r)=>{const o=[$(`Fix proposal (${e.provider}, confidence: ${e.confidence})`),"",e.explanation||P("<no explanation>")];if(e.cannotFix)return o.push(""),o.push(R(`Cannot fix automatically: ${e.cannotFix}`)),o.join(`
2
2
  `);if(e.patches.length===0)return o.push(""),o.push(R("No patches were proposed.")),o.join(`
3
3
  `);o.push(""),o.push($(`Patches (${String(e.patches.length)}):`));for(const[s,i]of e.patches.entries()){const a=S(t,r,i.file);o.push(""),o.push(D(`[${String(s+1)}] ${a}`)),i.reason&&o.push(P(` reason: ${i.reason}`));for(const c of i.oldString.split(`
4
4
  `))o.push(j(` - ${c}`));for(const c of i.newString.split(`
5
5
  `))o.push(I(` + ${c}`))}return o.join(`
6
6
  `)},"formatProposalText"),C=l((e,t,r)=>{const o=[];for(const s of e){const i=s.absolutePath?_(t,s.absolutePath)||s.absolutePath:S(t,r,s.patch.file),a=U[s.status];s.status==="applied"?o.push(I(` ✓ ${i}: ${a}`)):o.push(j(` ✗ ${i}: ${a}${s.error?` (${s.error})`:""}`))}return o.join(`
7
- `)},"formatPatchResultsText"),x=l(e=>{let t=0,r=0;for(const o of e)o.status==="applied"?t+=1:r+=1;return{applied:t,failed:r}},"summarizePatchResults"),G=l(e=>new Promise(t=>{const r=z({input:process.stdin,output:process.stderr});r.question(`${e} (y/N) `,o=>{r.close();const s=o.trim().toLowerCase();t(s==="y"||s==="yes")})}),"confirmPrompt"),H=l(e=>e??process.cwd(),"resolveWorkspaceRoot"),tt=l(async({argument:e,logger:t,options:r,visConfig:o,workspaceRoot:s})=>{const i=e[0],a=H(s),c=(r.format??"text")==="json";if(!i){if(c){const f=N(a);process.stdout.write(`${JSON.stringify({availableTasks:f,error:"No task ID specified"},void 0,2)}
7
+ `)},"formatPatchResultsText"),x=l(e=>{let t=0,r=0;for(const o of e)o.status==="applied"?t+=1:r+=1;return{applied:t,failed:r}},"summarizePatchResults"),G=l(e=>new Promise(t=>{const r=z({input:process.stdin,output:process.stderr});r.question(`${e} (y/N) `,o=>{r.close();const s=o.trim().toLowerCase();t(s==="y"||s==="yes")})}),"confirmPrompt"),H=l(e=>e??process.cwd(),"resolveWorkspaceRoot"),et=l(async({argument:e,logger:t,options:r,visConfig:o,workspaceRoot:s})=>{const i=e[0],a=H(s),c=(r.format??"text")==="json";if(!i){if(c){const f=N(a);process.stdout.write(`${JSON.stringify({availableTasks:f,error:"No task ID specified"},void 0,2)}
8
8
  `)}else{p.error("No task ID specified. Usage: vis ai fix <project>:<target>");const f=N(a);if(f.length>0){p.info("Tasks with captured failure logs:");for(const h of f)p.info(` - ${h}`)}else p.notice("No failure logs found. Re-run a failing task with `vis run` to capture logs.")}process.exitCode=1;return}const n=await B(a,i,{runId:r.run});if(!n){c?process.stdout.write(`${JSON.stringify({error:"No failure log or run summary found",taskId:i},void 0,2)}
9
9
  `):(p.error(`No failure log or run summary found for task "${i}".`),p.notice("Re-run the task with `vis run` so its terminal output and run metadata are captured.")),process.exitCode=1;return}n.terminalOutputCaptured||p.warn(`No captured terminal output for "${i}". Re-run with \`vis run\` for a better fix proposal.`);const F=o?.ai,u=await L(n,t,{cache:r.cache!==!1,config:F});if(!u){c&&process.stdout.write(`${JSON.stringify({error:"AI fix proposal failed or no provider available",taskId:i},void 0,2)}
10
10
  `),process.exitCode=1;return}const g=r.apply===!0;if(c){const f=g?void 0:await w(a,n.cwd,u,{dryRun:!0}),h=g?await w(a,n.cwd,u):void 0;if(process.stdout.write(`${JSON.stringify({appliedResults:h,dryRunResults:f,failureContext:{cwd:n.cwd,hash:n.hash,runId:n.runId,taskId:n.taskId,terminalOutputCaptured:n.terminalOutputCaptured},proposal:u},void 0,2)}
11
- `),g&&h){const{failed:O}=x(h);O>0&&(process.exitCode=1)}return}if(t.info(E(u,a,n.cwd)),u.cannotFix||u.patches.length===0)return;const k=await w(a,n.cwd,u,{dryRun:!0}),y=x(k);if(t.info(""),t.info($("Patch validation:")),t.info(C(k,a,n.cwd)),!g){t.info(""),p.info("Re-run with --apply to write these patches to disk.");return}if(y.applied===0){p.error("No patches can be applied (every patch failed validation)."),process.exitCode=1;return}if(r.yes!==!0&&(t.info(""),!await G(`Apply ${String(y.applied)} patch${y.applied===1?"":"es"} to disk?`))){p.notice("Aborted. Nothing written.");return}const b=await w(a,n.cwd,u),d=x(b);t.info(""),t.info($("Apply results:")),t.info(C(b,a,n.cwd)),t.info(""),d.failed===0?p.success(`Applied ${String(d.applied)} patch${d.applied===1?"":"es"}.`):(p.warn(`${String(d.applied)} applied, ${String(d.failed)} failed.`),process.exitCode=1)},"aiFix");export{tt as aiFix};
11
+ `),g&&h){const{failed:T}=x(h);T>0&&(process.exitCode=1)}return}if(t.info(E(u,a,n.cwd)),u.cannotFix||u.patches.length===0)return;const k=await w(a,n.cwd,u,{dryRun:!0}),y=x(k);if(t.info(""),t.info($("Patch validation:")),t.info(C(k,a,n.cwd)),!g){t.info(""),p.info("Re-run with --apply to write these patches to disk.");return}if(y.applied===0){p.error("No patches can be applied (every patch failed validation)."),process.exitCode=1;return}if(r.yes!==!0&&(t.info(""),!await G(`Apply ${String(y.applied)} patch${y.applied===1?"":"es"} to disk?`))){p.notice("Aborted. Nothing written.");return}const b=await w(a,n.cwd,u),d=x(b);t.info(""),t.info($("Apply results:")),t.info(C(b,a,n.cwd)),t.info(""),d.failed===0?p.success(`Applied ${String(d.applied)} patch${d.applied===1?"":"es"}.`):(p.warn(`${String(d.applied)} applied, ${String(d.failed)} failed.`),process.exitCode=1)},"aiFix");export{et as aiFix};
@@ -1 +1 @@
1
- var O=Object.defineProperty;var w=(t,e)=>O(t,"name",{value:e,configurable:!0});import{createTaskGraph as b}from"@visulima/task-runner";import{y as E,m as R}from"./bin.js";import{r as x,f as G}from"../packem_shared/selectors-B2ISH581.js";var J=Object.defineProperty,m=w((t,e)=>J(t,"name",{value:e,configurable:!0}),"u");const P=m((t,e,n)=>{const c=[],o=new Set,l=m((r,f)=>{if(o.has(r))return;o.add(r);const s=e[r]??[];for(const i of s)l(i,f+1);const d=n[r],u=" ".repeat(f);c.push(`${u}${r}${d?.cache===!1?" (no-cache)":""}`)},"walk");for(const r of t)l(r,0);return c},"renderPlan"),S=m((t,e,n)=>({roots:t,tasks:Object.fromEntries(Object.entries(n).map(([c,o])=>[c,{cache:o.cache,dependsOn:e[c]??[],outputs:o.outputs,parallelism:o.parallelism,projectRoot:o.projectRoot,target:o.target}]))}),"toJson"),B=m(async({argument:t,logger:e,options:n,visConfig:c,workspaceRoot:o})=>{const l=t[0];if(!l)throw new Error("Missing selector. Usage: vis action-graph <selector>");if(!o)throw new Error("Could not determine workspace root. Run inside a monorepo.");const{config:r,packageJsons:f,workspace:s}=E(o,c),d=R(o,s,f),u=await x(l,s,process.cwd(),o),{target:i}=u;let h=u.projects;n.query&&(h=G(h,s,n.query));const j=h.filter(p=>s.projects[p]?.targets?.[i]!==void 0);if(j.length===0){e.info(`No projects have a "${i}" target.`);return}const y=j.map(p=>{const k=s.projects[p],g=k.targets?.[i],$={project:p,target:i};return{cache:g?.cache,id:`${p}:${i}`,outputs:g?.outputs??[],overrides:{command:g?.command},parallelism:g?.parallelism,projectRoot:k.root,target:$}}),a=b(y,{projectGraph:d,targetDefaults:r.tasks,workspace:s});if(n.json){e.info(JSON.stringify(S(a.roots,a.dependencies,a.tasks),null,2));return}const v=P(a.roots,a.dependencies,a.tasks);e.info(`Execution plan (${Object.keys(a.tasks).length} task(s), ${a.roots.length} root(s)):`),e.info("");for(const p of v)e.info(p)},"execute");export{B as default};
1
+ var $=Object.defineProperty;var w=(t,e)=>$(t,"name",{value:e,configurable:!0});import{createTaskGraph as b}from"@visulima/task-runner";import{C as E,O as R}from"./bin.js";import{r as C,f as x}from"../packem_shared/selectors-BE2BCnTR.js";var G=Object.defineProperty,d=w((t,e)=>G(t,"name",{value:e,configurable:!0}),"u");const J=d((t,e,n)=>{const c=[],o=new Set,l=d((r,f)=>{if(o.has(r))return;o.add(r);const s=e[r]??[];for(const i of s)l(i,f+1);const m=n[r],u=" ".repeat(f);c.push(`${u}${r}${m?.cache===!1?" (no-cache)":""}`)},"walk");for(const r of t)l(r,0);return c},"renderPlan"),P=d((t,e,n)=>({roots:t,tasks:Object.fromEntries(Object.entries(n).map(([c,o])=>[c,{cache:o.cache,dependsOn:e[c]??[],outputs:o.outputs,parallelism:o.parallelism,projectRoot:o.projectRoot,target:o.target}]))}),"toJson"),B=d(async({argument:t,logger:e,options:n,visConfig:c,workspaceRoot:o})=>{const l=t[0];if(!l)throw new Error("Missing selector. Usage: vis action-graph <selector>");if(!o)throw new Error("Could not determine workspace root. Run inside a monorepo.");const{config:r,packageJsons:f,workspace:s}=E(o,c),m=R(o,s,f),u=await C(l,s,process.cwd(),o),{target:i}=u;let h=u.projects;n.query&&(h=x(h,s,n.query));const j=h.filter(p=>s.projects[p]?.targets?.[i]!==void 0);if(j.length===0){e.info(`No projects have a "${i}" target.`);return}const v=j.map(p=>{const k=s.projects[p],g=k.targets?.[i],O={project:p,target:i};return{cache:g?.cache,id:`${p}:${i}`,outputs:g?.outputs??[],overrides:{command:g?.command},parallelism:g?.parallelism,projectRoot:k.root,target:O}}),a=b(v,{projectGraph:m,targetDefaults:r.tasks,workspace:s});if(n.json){e.info(JSON.stringify(P(a.roots,a.dependencies,a.tasks),null,2));return}const y=J(a.roots,a.dependencies,a.tasks);e.info(`Execution plan (${Object.keys(a.tasks).length} task(s), ${a.roots.length} root(s)):`),e.info("");for(const p of y)e.info(p)},"execute");export{B as default};