@visulima/packem 2.0.0-alpha.83 → 2.0.0-alpha.84

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.
@@ -0,0 +1,28 @@
1
+ var ss=Object.defineProperty;var c=(e,t)=>ss(e,"name",{value:t,configurable:!0});import{createRequire as H}from"node:module";import{V as ae,P as I,A as _e,L as ue,B as hr,X as Co,_ as Kt,b as Mo,M as No}from"./utils-nmTpa3um.js";const fr=0,Ce=1,pt=2,Me=3;var as=Object.defineProperty,yr=c((e,t)=>as(e,"name",{value:t,configurable:!0}),"u$m");const us=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,cs=/^-{1,2}(color=256)$/,ls=/^-{1,2}(color=16m|color=full|color=truecolor)$/,fs=/^-{1,2}(color|colors|color=true|color=always)$/,ps=/-mono|dumb/i,gs=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,ds=/-256(color)?$/i,hs=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,Bo=yr(e=>{const t=globalThis,r=t.Deno!=null,n=t.process??t.Deno??{},i=n.argv??n.args??[],s=yr(w=>{const T=i.indexOf("--"),ee=i.findIndex(F=>w.test(F));return ee!==-1&&(T===-1||ee<T)},"oneOfFlags");let o={};try{o=r?n.env.toObject():n.env??{}}catch{}const a="FORCE_COLOR",u=a in o,p=o[a]??void 0,l=Object.prototype.toString.call(p).slice(8,-1)==="String",g=typeof p=="number";let y;if(p==="true"?y=Ce:p==="false"?y=fr:l&&p.length===0?y=Ce:l&&p.length>0?y=Math.min(Number.parseInt(p,10),3):g&&(y=Math.min(p,3)),p!=="true"&&p!=="false"&&y!==void 0&&y<4)return y;if("NO_COLOR"in o||u&&y===0||s(us))return fr;if(s(cs))return pt;if(s(ls))return Me;if(s(fs))return Ce;const m=y??fr;if("TF_BUILD"in o&&"AGENT_NAME"in o)return Ce;if(o.TERM&&ps.test(o.TERM))return m;if((r?t.Deno.build.os:n.platform)==="win32")try{const w=(r?t.Deno.osRelease():n.os.release()).split(".");return Number(w[0])>=10&&Number(w[2])>=10586?Number(w[2])>=14931?Me:pt:Ce}catch{}if("CI"in o)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(w=>w in o)?Me:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(w=>w in o)||o.CI_NAME==="codeship"?Ce:m;if(o.TERMINAL_EMULATOR?.includes("JediTerm"))return Me;if("TEAMCITY_VERSION"in o)return gs.test(o.TEAMCITY_VERSION)?Ce:fr;if(o.COLORTERM==="truecolor"||o.TERM==="xterm-kitty"||o.TERM==="xterm-ghostty"||o.TERM==="wezterm")return Me;if("TERM_PROGRAM"in o){const w=Number.parseInt((o.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(o.TERM_PROGRAM==="iTerm.app")return w>=3?Me:pt;if(o.TERM_PROGRAM==="Apple_Terminal")return pt}if(ds.test(o.TERM))return pt;let S;return r?S=e==="out"?t.Deno.stdout.isTerminal():t.Deno.stderr.isTerminal():"PM2_HOME"in o&&"pm_id"in o?S=!0:S=n[`std${e}`]&&"isTTY"in n[`std${e}`],S&&hs.test(o.TERM)||"COLORTERM"in o?Ce:m},"isColorSupportedFactory"),ys=yr(()=>Bo("out"),"isStdoutColorSupported");yr(()=>Bo("err"),"isStderrColorSupported");var $s=Object.defineProperty,Lo=c((e,t)=>$s(e,"name",{value:t,configurable:!0}),"B$c"),bs=Object.defineProperty,Ge=Lo((e,t)=>bs(e,"name",{value:t,configurable:!0}),"u"),ms=Object.defineProperty,vs=Ge((e,t)=>ms(e,"name",{value:t,configurable:!0}),"e$1");function Sr({onlyFirst:e=!1}={}){const t="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(t,e?void 0:"g")}c(Sr,"x$5");Lo(Sr,"N");Ge(Sr,"t$1");vs(Sr,"ansiRegex");var Os=Object.defineProperty,ws=Ge((e,t)=>Os(e,"name",{value:t,configurable:!0}),"n$1");const De=ws((e,t,r)=>t>e?t:Math.min(e,r),"clamp");var Ss=Object.defineProperty,Es=Ge((e,t)=>Ss(e,"name",{value:t,configurable:!0}),"a$1");const Ps=/([a-f\d]{3,6})/i,As=Es(e=>{let[,t]=Ps.exec(e)??[];const r=t?t.length:0;if(r===3){const i=t.charAt(0),s=t.charAt(1),o=t.charAt(2);t=i+i+s+s+o+o}else if(r!==6)return[0,0,0];const n=Number.parseInt(t,16);return[n>>16&255,n>>8&255,n&255]},"convertHexToRgb");var _s=Object.defineProperty,xn=Ge((e,t)=>_s(e,"name",{value:t,configurable:!0}),"e");const Do=xn((e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/51)+6*Math.round(t/51)+Math.round(r/51),"rgbToAnsi256"),mn=xn(e=>{let t,r,n;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)t=r=n=((e-232)*10+8)/255;else{e-=16;const o=e%36;t=Math.floor(e/36)/5,r=Math.floor(o/6)/5,n=o%6/5}const i=Math.max(t,r,n)*2;if(i===0)return 30;const s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return i===2?s+60:s},"ansi256To16"),Yn=xn((e,t,r)=>mn(Do(e,t,r)),"rgbToAnsi16");var xs=Object.defineProperty,ge=Ge((e,t)=>xs(e,"name",{value:t,configurable:!0}),"b");const Y=39,J=49,Jn=10,vn=ys(),Fo={close:"",open:""},x=vn>0?(e,t)=>({close:`\x1B[${String(t)}m`,open:`\x1B[${String(e)}m`}):()=>Fo,Zn=ge(e=>(t,r,n)=>e(Do(Number(t),Number(r),Number(n))),"createRgbFunction"),eo=ge(e=>t=>{const[r,n,i]=As(t);return e(r,n,i)},"createHexFunction");let On=ge(e=>x(`38;5;${String(e)}`,Y),"createAnsi256"),wn=ge(e=>x(`48;5;${String(e)}`,J),"createBgAnsi256"),$r=ge((e,t,r)=>x(`38;2;${String(e)};${String(t)};${String(r)}`,Y),"createRgb"),br=ge((e,t,r)=>x(`48;2;${String(e)};${String(t)};${String(r)}`,J),"createBgRgb");vn===1?(On=ge(e=>x(mn(Number(e)),Y),"createAnsi256"),wn=ge(e=>x(mn(Number(e))+Jn,J),"createBgAnsi256"),$r=ge((e,t,r)=>x(Yn(Number(e),Number(t),Number(r)),Y),"createRgb"),br=ge((e,t,r)=>x(Yn(Number(e),Number(t),Number(r))+Jn,J),"createBgRgb")):vn===2&&($r=Zn(On),br=Zn(wn));const to={bold:x(1,22),dim:x(2,22),hidden:x(8,28),inverse:x(7,27),italic:x(3,23),overline:x(53,55),reset:x(0,0),strike:x(9,29),strikethrough:x(9,29),underline:x(4,24),visible:Fo},ro={bgBlack:x(40,J),bgBlackBright:x(100,J),bgBlue:x(44,J),bgBlueBright:x(104,J),bgCyan:x(46,J),bgCyanBright:x(106,J),bgGray:x(100,J),bgGreen:x(42,J),bgGreenBright:x(102,J),bgGrey:x(100,J),bgMagenta:x(45,J),bgMagentaBright:x(105,J),bgRed:x(41,J),bgRedBright:x(101,J),bgWhite:x(47,J),bgWhiteBright:x(107,J),bgYellow:x(43,J),bgYellowBright:x(103,J),black:x(30,Y),blackBright:x(90,Y),blue:x(34,Y),blueBright:x(94,Y),cyan:x(36,Y),cyanBright:x(96,Y),gray:x(90,Y),green:x(32,Y),greenBright:x(92,Y),grey:x(90,Y),magenta:x(35,Y),magentaBright:x(95,Y),red:x(31,Y),redBright:x(91,Y),white:x(37,Y),whiteBright:x(97,Y),yellow:x(33,Y),yellowBright:x(93,Y)},no={bg:ge(e=>wn(De(e,0,255)),"bg"),bgHex:eo(br),bgRgb:ge((e,t,r)=>br(De(e,0,255),De(t,0,255),De(r,0,255)),"bgRgb"),fg:ge(e=>On(De(e,0,255)),"fg"),hex:eo($r),rgb:ge((e,t,r)=>$r(De(e,0,255),De(t,0,255),De(r,0,255)),"rgb")};var js=Object.defineProperty,Ts=Ge((e,t)=>js(e,"name",{value:t,configurable:!0}),"s");const ks=Ts((e,t,r)=>{if(t==="")return e;let n=e.indexOf(t);if(n<0)return e;const i=t.length;let s=0,o="";for(;~n;)o+=e.slice(s,n)+r,s=n+i,n=e.indexOf(t,s);return o+e.slice(s)},"stringReplaceAll");var Rs=Object.defineProperty,It=Ge((e,t)=>Rs(e,"name",{value:t,configurable:!0}),"a");const He={};let Sn=null;const Cs=It((e,t,r)=>{if(!e)return"";let n;if(e.raw===void 0?n=String(e):n=String.raw(e,...t),n.includes("\x1B"))for(let i=r;i;i=i.props)n=ks(n,i.close,i.open);return n.includes(`
2
+ `)&&(n=n.replace(/(\r*\n)/g,`${r.closeStack}$1${r.openStack}`)),r.openStack+n+r.closeStack},"wrapText"),En=It(({props:e},{close:t,open:r})=>{const n=(e?.openStack??"")+r,i=t+(e?.closeStack??""),s=It((o,...a)=>Cs(o,a,s.props),"style");return Object.setPrototypeOf(s,Sn),s.props={close:t,closeStack:i,open:r,openStack:n,props:e},s.open=n,s.close=i,s},"createStyle"),Ms=It(function(){const e=It(t=>String(t),"self");e.strip=t=>t.replaceAll(Sr(),"");for(const t in ro)He[t]={get(){const r=En(this,ro[t]);return Object.defineProperty(this,t,{value:r}),r}};for(const t in to)He[t]={get(){const r=En(this,to[t]);return Object.defineProperty(this,t,{value:r}),r}};return Sn=Object.defineProperties({},He),Object.setPrototypeOf(e,Sn),e},"Colorize");for(const e in no)He[e]={get(){return(...t)=>En(this,no[e](...t))}};He.ansi256=He.fg;He.bgAnsi256=He.bg;const Te=new Ms,ty=Te.blue,ry=Te.bold,ny=Te.cyan,oy=Te.dim,iy=Te.gray,sy=Te.green,ay=Te.grey,uy=Te.magenta,cy=Te.red,ly=Te.yellow,nt=0,Er=4,Io=Symbol("findUpStop"),fy=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var Ns=Object.defineProperty,Bs=c((e,t)=>Ns(e,"name",{value:t,configurable:!0}),"t$n"),Ls=Object.defineProperty,Ds=Bs((e,t)=>Ls(e,"name",{value:t,configurable:!0}),"t"),Fs=Object.defineProperty,Is=Ds((e,t)=>Fs(e,"name",{value:t,configurable:!0}),"n");const X=Is(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Hs=Object.defineProperty,Gs=c((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"i$w"),Us=Object.defineProperty,qs=Gs((e,t)=>Us(e,"name",{value:t,configurable:!0}),"r"),Ws=Object.defineProperty,Ks=qs((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"i");const je=Ks(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Xs=Object.defineProperty,zs=c((e,t)=>Xs(e,"name",{value:t,configurable:!0}),"i$v"),Qs=Object.defineProperty,Ho=zs((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"s");const Vs=H(import.meta.url),gt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ys=Ho(e=>{if(typeof gt<"u"&&gt.versions&&gt.versions.node){const[t,r]=gt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return gt.getBuiltinModule(e)}return Vs(e)},"__cjs_getBuiltinModule"),{lstat:oo,mkdir:Js}=Ys("node:fs/promises");var Zs=Object.defineProperty,ea=Ho((e,t)=>Zs(e,"name",{value:t,configurable:!0}),"o");const jn=ea(async e=>{X(e);try{const t=await oo(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(je(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{await Js(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=await oo(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(je(r))}'`,{cause:t})}},"ensureDir");var ta=Object.defineProperty,ra=c((e,t)=>ta(e,"name",{value:t,configurable:!0}),"i$u"),na=Object.defineProperty,Go=ra((e,t)=>na(e,"name",{value:t,configurable:!0}),"s");const oa=H(import.meta.url),dt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ia=Go(e=>{if(typeof dt<"u"&&dt.versions&&dt.versions.node){const[t,r]=dt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return dt.getBuiltinModule(e)}return oa(e)},"__cjs_getBuiltinModule"),{lstatSync:io,mkdirSync:sa}=ia("node:fs");var aa=Object.defineProperty,ua=Go((e,t)=>aa(e,"name",{value:t,configurable:!0}),"o");const Tn=ua(e=>{X(e);try{const t=io(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(je(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{sa(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=io(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(je(r))}'`,{cause:t})}},"ensureDirSync");var ca=Object.defineProperty,la=c((e,t)=>ca(e,"name",{value:t,configurable:!0}),"i$t"),fa=Object.defineProperty,Uo=la((e,t)=>fa(e,"name",{value:t,configurable:!0}),"t");const pa=H(import.meta.url),ht=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ga=Uo(e=>{if(typeof ht<"u"&&ht.versions&&ht.versions.node){const[t,r]=ht.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ht.getBuiltinModule(e)}return pa(e)},"__cjs_getBuiltinModule"),{lstat:da,writeFile:ha}=ga("node:fs/promises");var ya=Object.defineProperty,$a=Uo((e,t)=>ya(e,"name",{value:t,configurable:!0}),"o");$a(async e=>{X(e);try{const t=await da(e);if(!t.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(je(t))}'`)}catch(t){if(t.code==="ENOENT"){await jn(ae(I(e))),await ha(e,new Uint8Array);return}throw t}},"ensureFile");var ba=Object.defineProperty,ma=c((e,t)=>ba(e,"name",{value:t,configurable:!0}),"i$s"),va=Object.defineProperty,qo=ma((e,t)=>va(e,"name",{value:t,configurable:!0}),"t");const Oa=H(import.meta.url),yt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wa=qo(e=>{if(typeof yt<"u"&&yt.versions&&yt.versions.node){const[t,r]=yt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return yt.getBuiltinModule(e)}return Oa(e)},"__cjs_getBuiltinModule"),{lstatSync:Sa,writeFileSync:Ea}=wa("node:fs");var Pa=Object.defineProperty,Aa=qo((e,t)=>Pa(e,"name",{value:t,configurable:!0}),"o");Aa(e=>{X(e);try{const t=Sa(e);if(!t.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(je(t))}'`)}catch(t){if(t.code==="ENOENT"){Tn(ae(I(e))),Ea(e,new Uint8Array);return}throw t}},"ensureFileSync");var _a=Object.defineProperty,xa=c((e,t)=>_a(e,"name",{value:t,configurable:!0}),"r$7"),ja=Object.defineProperty,Ta=xa((e,t)=>ja(e,"name",{value:t,configurable:!0}),"t"),ka=Object.defineProperty,Ra=Ta((e,t)=>ka(e,"name",{value:t,configurable:!0}),"d");const ot=Ra((e,t)=>!!t.ino&&!!t.dev&&t.ino===e.ino&&t.dev===e.dev,"isStatsIdentical");var Ca=Object.defineProperty,Ma=c((e,t)=>Ca(e,"name",{value:t,configurable:!0}),"i$q"),Na=Object.defineProperty,Wo=Ma((e,t)=>Na(e,"name",{value:t,configurable:!0}),"i");const Ba=H(import.meta.url),$t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,La=Wo(e=>{if(typeof $t<"u"&&$t.versions&&$t.versions.node){const[t,r]=$t.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return $t.getBuiltinModule(e)}return Ba(e)},"__cjs_getBuiltinModule"),{lstat:so,link:Da}=La("node:fs/promises");var Fa=Object.defineProperty,Ia=Wo((e,t)=>Fa(e,"name",{value:t,configurable:!0}),"i");Ia(async(e,t)=>{X(e),X(t),e=_e(I(e)),t=_e(I(t));let r;try{r=await so(t)}catch{}let n;try{n=await so(e)}catch(i){const s=i;throw s.message=s.message.replace("lstat","ensureLink"),s}r&&ot(n,r)||(await jn(ae(t)),await Da(e,t))},"ensureLink");var Ha=Object.defineProperty,Ga=c((e,t)=>Ha(e,"name",{value:t,configurable:!0}),"i$p"),Ua=Object.defineProperty,Ko=Ga((e,t)=>Ua(e,"name",{value:t,configurable:!0}),"n");const qa=H(import.meta.url),bt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wa=Ko(e=>{if(typeof bt<"u"&&bt.versions&&bt.versions.node){const[t,r]=bt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return bt.getBuiltinModule(e)}return qa(e)},"__cjs_getBuiltinModule"),{lstatSync:ao,linkSync:Ka}=Wa("node:fs");var Xa=Object.defineProperty,za=Ko((e,t)=>Xa(e,"name",{value:t,configurable:!0}),"m");za((e,t)=>{X(e),X(t),e=_e(I(e)),t=_e(I(t));let r;try{r=ao(t)}catch{}let n;try{n=ao(e)}catch(i){const s=i;throw s.message=s.message.replace("lstat","ensureLink"),s}r&&ot(n,r)||(Tn(ae(t)),Ka(e,t))},"ensureLinkSync");var Qa=Object.defineProperty,Va=c((e,t)=>Qa(e,"name",{value:t,configurable:!0}),"a$n"),Ya=Object.defineProperty,Ja=Va((e,t)=>Ya(e,"name",{value:t,configurable:!0}),"o"),Za=Object.defineProperty,eu=Ja((e,t)=>Za(e,"name",{value:t,configurable:!0}),"i");const Xo=eu((e,t)=>typeof e!="string"?e:e.startsWith("./")?ue(e):typeof t=="string"?ue(ae(t),e):new URL(e,t),"resolveSymlinkTarget");var tu=Object.defineProperty,zo=c((e,t)=>tu(e,"name",{value:t,configurable:!0}),"t$i"),ru=Object.defineProperty,Qo=zo((e,t)=>ru(e,"name",{value:t,configurable:!0}),"t"),nu=Object.defineProperty,ou=Qo((e,t)=>nu(e,"name",{value:t,configurable:!0}),"t");let mr=class extends Error{static{c(this,"i")}static{zo(this,"E")}static{Qo(this,"n")}static{ou(this,"AlreadyExistsError")}constructor(t){super(`EEXIST: ${t}`)}get code(){return"EEXIST"}set code(t){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(t){throw new Error("Cannot overwrite name of AlreadyExistsError")}};var iu=Object.defineProperty,su=c((e,t)=>iu(e,"name",{value:t,configurable:!0}),"p$i"),au=Object.defineProperty,Vo=su((e,t)=>au(e,"name",{value:t,configurable:!0}),"m");const uu=H(import.meta.url),mt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cu=Vo(e=>{if(typeof mt<"u"&&mt.versions&&mt.versions.node){const[t,r]=mt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return mt.getBuiltinModule(e)}return uu(e)},"__cjs_getBuiltinModule"),{lstat:un,stat:pr,symlink:lu,readlink:fu}=cu("node:fs/promises");var pu=Object.defineProperty,gu=Vo((e,t)=>pu(e,"name",{value:t,configurable:!0}),"m");const du=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);gu(async(e,t,r)=>{X(e),X(t);const n=Xo(e,t);t=_e(I(t));try{if((await un(t)).isSymbolicLink()&&ot(await pr(n),await pr(t))){const[a,u]=await Promise.all([pr(n),pr(t)]);if(ot(a,u))return}}catch{}const i=await un(n),s=je(i);await jn(ae(t));let o=r??"file";r||(du?o="junction":o=s==="dir"?"dir":"file");try{await lu(_e(I(n)),t,o)}catch(a){if(a.code!=="EEXIST")throw a;const u=await un(t);if(!u.isSymbolicLink())throw new mr(`A ${String(je(u))} already exists at the path: ${t}`);const p=await fu(t),l=_e(ue(p));if(l!==n)throw new mr(`A symlink targeting to an undesired path already exists: ${t} -> ${l}`)}},"ensureSymlink");var hu=Object.defineProperty,yu=c((e,t)=>hu(e,"name",{value:t,configurable:!0}),"p$h"),$u=Object.defineProperty,Yo=yu((e,t)=>$u(e,"name",{value:t,configurable:!0}),"m");const bu=H(import.meta.url),vt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,mu=Yo(e=>{if(typeof vt<"u"&&vt.versions&&vt.versions.node){const[t,r]=vt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return vt.getBuiltinModule(e)}return bu(e)},"__cjs_getBuiltinModule"),{lstatSync:cn,statSync:gr,symlinkSync:vu,readlinkSync:Ou}=mu("node:fs");var wu=Object.defineProperty,Su=Yo((e,t)=>wu(e,"name",{value:t,configurable:!0}),"p");const Eu=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);Su((e,t,r)=>{X(e),X(t);const n=Xo(e,t);t=_e(I(t));try{if(cn(t).isSymbolicLink()&&ot(gr(n),gr(t))){const a=gr(n),u=gr(t);if(ot(a,u))return}}catch{}const i=cn(n),s=je(i);Tn(ae(t));let o=r??"file";r||(Eu?o="junction":o=s==="dir"?"dir":"file");try{vu(_e(I(n)),t,o)}catch(a){if(a.code!=="EEXIST")throw a;const u=cn(t);if(!u.isSymbolicLink())throw new mr(`A ${String(je(u))} already exists at the path: ${t}`);const p=Ou(t),l=_e(ue(p));if(l!==n)throw new mr(`A symlink targeting to an undesired path already exists: ${t} -> ${l}`)}},"ensureSymlinkSync");var Pu=Object.defineProperty,Au=c((e,t)=>Pu(e,"name",{value:t,configurable:!0}),"l$g"),_u=Object.defineProperty,xu=Au((e,t)=>_u(e,"name",{value:t,configurable:!0}),"c");H(import.meta.url);var ju=Object.defineProperty,Jo=xu((e,t)=>ju(e,"name",{value:t,configurable:!0}),"r");const Zo=/\r?\n/g,Tu=`
3
+ `,uo=`\r
4
+ `;Jo(e=>{const t=e.match(Zo);if(!t||t.length===0)return null;const r=t.filter(i=>i===uo).length,n=t.length-r;return r>n?uo:Tu},"detect");Jo((e,t)=>e.replaceAll(Zo,t),"format");var ku=Object.defineProperty,ei=c((e,t)=>ku(e,"name",{value:t,configurable:!0}),"t$g"),Ru=Object.defineProperty,ti=ei((e,t)=>Ru(e,"name",{value:t,configurable:!0}),"t"),Cu=Object.defineProperty,Mu=ti((e,t)=>Cu(e,"name",{value:t,configurable:!0}),"t");let vr=class extends Error{static{c(this,"l")}static{ei(this,"c")}static{ti(this,"i")}static{Mu(this,"WalkError")}root;constructor(t,r){super(`${t instanceof Error?t.message:String(t)} for path "${r}"`),this.cause=t,this.root=r}get name(){return"WalkError"}set name(t){throw new Error("Cannot overwrite name of WalkError")}};var Nu=Object.defineProperty,Bu=c((e,t)=>Nu(e,"name",{value:t,configurable:!0}),"n$c"),Lu=Object.defineProperty,ri=Bu((e,t)=>Lu(e,"name",{value:t,configurable:!0}),"t"),Du=Object.defineProperty,Fu=ri((e,t)=>Du(e,"name",{value:t,configurable:!0}),"g");const Or=Fu(e=>{const t=e.replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");return new RegExp(`^${t}$`)},"globToRegExp");var Iu=Object.defineProperty,Hu=ri((e,t)=>Iu(e,"name",{value:t,configurable:!0}),"n");const Fe=Hu((e,t,r,n)=>Array.isArray(t)&&t.length>0&&!t.some(i=>e.endsWith(i))||r&&!r.some(i=>i.test(e))?!1:!n?.some(i=>i.test(e)),"walkInclude");var Gu=Object.defineProperty,ni=c((e,t)=>Gu(e,"name",{value:t,configurable:!0}),"u$g"),Uu=Object.defineProperty,kn=ni((e,t)=>Uu(e,"name",{value:t,configurable:!0}),"y");const qu=H(import.meta.url),Ot=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wu=kn(e=>{if(typeof Ot<"u"&&Ot.versions&&Ot.versions.node){const[t,r]=Ot.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ot.getBuiltinModule(e)}return qu(e)},"__cjs_getBuiltinModule"),{readdir:Ku,realpath:Xu,stat:zu}=Wu("node:fs/promises");var Qu=Object.defineProperty,$e=kn((e,t)=>Qu(e,"name",{value:t,configurable:!0}),"r");const Vu=$e(async e=>{const t=hr(e),r=Co(t),n=await zu(t);return{isDirectory:$e(()=>n.isDirectory(),"isDirectory"),isFile:$e(()=>n.isFile(),"isFile"),isSymbolicLink:$e(()=>n.isSymbolicLink(),"isSymbolicLink"),name:r,path:t}},"_createWalkEntry");async function*Xt(e,{extensions:t,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:i=!0,includeSymlinks:s=!0,match:o,maxDepth:a=Number.POSITIVE_INFINITY,skip:u}={}){if(X(e),a<0)return;const p=o?o.map(g=>typeof g=="string"?Or(g):g):void 0,l=u?u.map(g=>typeof g=="string"?Or(g):g):void 0;if(e=ue(I(e)),n&&Fe(e,t,p,l)&&(yield await Vu(e)),!(a<1||!Fe(e,void 0,void 0,l)))try{const g=await Ku(e,{withFileTypes:!0});for(const y of g){let m=Kt(e,y.name);if(y.isSymbolicLink())if(r)m=await Xu(m);else if(s&&Fe(m,t,p,l)){yield{isDirectory:$e(()=>y.isDirectory(),"isDirectory"),isFile:$e(()=>y.isFile(),"isFile"),isSymbolicLink:$e(()=>y.isSymbolicLink(),"isSymbolicLink"),name:y.name,path:m};continue}else continue;y.isDirectory()?yield*Xt(m,{extensions:t,followSymlinks:r,includeDirs:n,includeFiles:i,includeSymlinks:s,match:p,maxDepth:a-1,skip:l}):y.isFile()&&i&&Fe(m,t,p,l)&&(yield{isDirectory:$e(()=>y.isDirectory(),"isDirectory"),isFile:$e(()=>y.isFile(),"isFile"),isSymbolicLink:$e(()=>y.isSymbolicLink(),"isSymbolicLink"),name:y.name,path:m})}}catch(g){throw g instanceof vr?g:new vr(g,e)}}c(Xt,"f$i");ni(Xt,"D");kn(Xt,"g");$e(Xt,"walk");var Yu=Object.defineProperty,Ju=c((e,t)=>Yu(e,"name",{value:t,configurable:!0}),"t$e"),Zu=Object.defineProperty,ec=Ju((e,t)=>Zu(e,"name",{value:t,configurable:!0}),"a"),tc=Object.defineProperty,rc=ec((e,t)=>tc(e,"name",{value:t,configurable:!0}),"e");rc(async(e,t={})=>{Array.isArray(t.extensions)||(t.extensions=["js","mjs","cjs","ts"]);const r=[];for await(const n of Xt(e,t))r.push(n.path);return r},"collect");var nc=Object.defineProperty,oi=c((e,t)=>nc(e,"name",{value:t,configurable:!0}),"p$e"),oc=Object.defineProperty,Rn=oi((e,t)=>oc(e,"name",{value:t,configurable:!0}),"m");const ic=H(import.meta.url),wt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,sc=Rn(e=>{if(typeof wt<"u"&&wt.versions&&wt.versions.node){const[t,r]=wt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return wt.getBuiltinModule(e)}return ic(e)},"__cjs_getBuiltinModule"),{readdirSync:ac,realpathSync:uc,statSync:cc}=sc("node:fs");var lc=Object.defineProperty,be=Rn((e,t)=>lc(e,"name",{value:t,configurable:!0}),"t");const fc=be(e=>{const t=hr(e),r=cc(t);return{isDirectory:be(()=>r.isDirectory(),"isDirectory"),isFile:be(()=>r.isFile(),"isFile"),isSymbolicLink:be(()=>r.isSymbolicLink(),"isSymbolicLink"),name:Co(t),path:t}},"_createWalkEntry");function*zt(e,{extensions:t,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:i=!0,includeSymlinks:s=!0,match:o,maxDepth:a=Number.POSITIVE_INFINITY,skip:u}={}){if(X(e),a<0)return;const p=o?o.map(g=>typeof g=="string"?Or(g):g):void 0,l=u?u.map(g=>typeof g=="string"?Or(g):g):void 0;if(e=ue(I(e)),n&&Fe(e,t,p,l)&&(yield fc(e)),!(a<1||!Fe(e,void 0,void 0,l)))try{const g=ac(e,{withFileTypes:!0});for(const y of g){let m=Kt(e,y.name);if(y.isSymbolicLink())if(r)m=uc(m);else if(s&&Fe(m,t,p,l)){yield{isDirectory:be(()=>y.isDirectory(),"isDirectory"),isFile:be(()=>y.isFile(),"isFile"),isSymbolicLink:be(()=>y.isSymbolicLink(),"isSymbolicLink"),name:y.name,path:hr(m)};continue}else continue;y.isDirectory()?yield*zt(m,{extensions:t,followSymlinks:r,includeDirs:n,includeFiles:i,includeSymlinks:s,match:p,maxDepth:a-1,skip:l}):y.isFile()&&i&&Fe(m,t,p,l)&&(yield{isDirectory:be(()=>y.isDirectory(),"isDirectory"),isFile:be(()=>y.isFile(),"isFile"),isSymbolicLink:be(()=>y.isSymbolicLink(),"isSymbolicLink"),name:y.name,path:hr(m)})}}catch(g){throw g instanceof vr?g:new vr(g,e)}}c(zt,"y$b");oi(zt,"F");Rn(zt,"b");be(zt,"walkSync");var pc=Object.defineProperty,gc=c((e,t)=>pc(e,"name",{value:t,configurable:!0}),"t$d"),dc=Object.defineProperty,hc=gc((e,t)=>dc(e,"name",{value:t,configurable:!0}),"s"),yc=Object.defineProperty,$c=hc((e,t)=>yc(e,"name",{value:t,configurable:!0}),"n");const dy=$c((e,t={})=>{Array.isArray(t.extensions)||(t.extensions=["js","mjs","cjs","ts"]);const r=[];for(const n of zt(e,t))r.push(n.path);return r},"collectSync");var bc=Object.defineProperty,mc=c((e,t)=>bc(e,"name",{value:t,configurable:!0}),"p$d"),vc=Object.defineProperty,ii=mc((e,t)=>vc(e,"name",{value:t,configurable:!0}),"a");const Oc=H(import.meta.url),St=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,si=ii(e=>{if(typeof St<"u"&&St.versions&&St.versions.node){const[t,r]=St.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return St.getBuiltinModule(e)}return Oc(e)},"__cjs_getBuiltinModule"),{stat:wc,lstat:Sc}=si("node:fs/promises"),{fileURLToPath:Ec}=si("node:url");var Pc=Object.defineProperty,co=ii((e,t)=>Pc(e,"name",{value:t,configurable:!0}),"n");const hy=co(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?I(t.cwd):process.cwd();let n=ue(r);const{root:i}=Mo(n),s=I(t.stopAt??i),o=ue(n,s),a=t.type??"file",u=co(async function(l){return typeof e=="function"?[await e(l)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const p=t.allowSymlinks?wc:Sc;for(;n&&n!==o&&n!==i;){const l=await u(n);for(let g of l){if(g===Io)return;if(g===void 0)continue;Buffer.isBuffer(g)?g=g.toString():g instanceof URL&&(g=Ec(g));const y=No(g)?g:ue(n,g);try{const m=await p(y);if(a==="file"&&m.isFile()||a==="directory"&&m.isDirectory())return y}catch{}}n=ae(n)}},"findUp");var Ac=Object.defineProperty,_c=c((e,t)=>Ac(e,"name",{value:t,configurable:!0}),"u$e"),xc=Object.defineProperty,ai=_c((e,t)=>xc(e,"name",{value:t,configurable:!0}),"i");const jc=H(import.meta.url),Et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ui=ai(e=>{if(typeof Et<"u"&&Et.versions&&Et.versions.node){const[t,r]=Et.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Et.getBuiltinModule(e)}return jc(e)},"__cjs_getBuiltinModule"),{statSync:Tc,lstatSync:kc}=ui("node:fs"),{fileURLToPath:Rc}=ui("node:url");var Cc=Object.defineProperty,lo=ai((e,t)=>Cc(e,"name",{value:t,configurable:!0}),"o");const yy=lo((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?I(t.cwd):process.cwd();let n=ue(r);const{root:i}=Mo(n),s=I(t.stopAt??i),o=ue(n,s),a=t.type??"file",u=lo(function(l){return typeof e=="function"?[e(l)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const p=t.allowSymlinks?Tc:kc;for(;n&&n!==o&&n!==i;){for(let l of u(n)){if(l===Io)return;if(l===void 0)continue;Buffer.isBuffer(l)?l=l.toString():l instanceof URL&&(l=Rc(l));const g=No(l)?l:ue(n,l);try{const y=p(g);if(a==="file"&&y.isFile()||a==="directory"&&y.isDirectory())return g}catch{}}n=ae(n)}},"findUpSync");var Mc=Object.defineProperty,st=c((e,t)=>Mc(e,"name",{value:t,configurable:!0}),"r$4"),Nc=Object.defineProperty,at=st((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"r"),Bc=Object.defineProperty,it=at((e,t)=>Bc(e,"name",{value:t,configurable:!0}),"t");function ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}c(ut,"p$c");st(ut,"f");at(ut,"getDefaultExportFromCjs");it(ut,"getDefaultExportFromCjs");function Cn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}c(Cn,"f$g");st(Cn,"l");at(Cn,"getDefaultExportFromNamespaceIfPresent");it(Cn,"getDefaultExportFromNamespaceIfPresent");function Mn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}c(Mn,"l$c");st(Mn,"s");at(Mn,"getDefaultExportFromNamespaceIfNotNamed");it(Mn,"getDefaultExportFromNamespaceIfNotNamed");function Nn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=it(at(st(c(function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"u"),"n"),"a"),"a");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:it(function(){return e[n]},"get")})}),r}c(Nn,"s$e");st(Nn,"m");at(Nn,"getAugmentedNamespace");it(Nn,"getAugmentedNamespace");var Lc=Object.defineProperty,Ue=c((e,t)=>Lc(e,"name",{value:t,configurable:!0}),"lt$1"),Dc=Object.defineProperty,ve=Ue((e,t)=>Dc(e,"name",{value:t,configurable:!0}),"ut"),fo={},ln,po;function ct(){if(po)return ln;po=1;const e="[^\\\\/]",t=Symbol("unignore"),r="\\.",n="\\+",i="\\?",s="\\/",o="(?=.)",a="[^/]",u=`(?:${s}|$)`,p=`(?:^|${s})`,l=`${r}{1,2}${u}`,g=`(?!${r})`,y=`(?!${p}${l})`,m=`(?!${r}{0,1}${u})`,S=`(?!${l})`,w=`[^.${s}]`,T=`${a}*?`,ee="/",F={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:o,QMARK:a,END_ANCHOR:u,DOTS_SLASH:l,NO_DOT:g,NO_DOTS:y,NO_DOT_SLASH:m,NO_DOTS_SLASH:S,QMARK_NO_DOT:w,STAR:T,START_ANCHOR:p,SEP:ee},W={...F,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${r}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[\\\\/])${r}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},b={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return ln={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:b,UNIGNORE:t,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(E){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${E.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(E){return E===!0?W:F}},ln}c(ct,"_t$1");Ue(ct,"bt");ve(ct,"requireConstants");var go;function lt(){return go||(go=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:i}=ct();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>n.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(i,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const s=navigator.platform.toLowerCase();return s==="win32"||s==="windows"}return process.platform?process.platform==="win32":!1},e.removeBackslashes=s=>s.replace(r,o=>o==="\\"?"":o),e.escapeLast=(s,o,a)=>{const u=s.lastIndexOf(o,a);return u===-1?s:s[u-1]==="\\"?e.escapeLast(s,o,u-1):`${s.slice(0,u)}\\${s.slice(u)}`},e.removePrefix=(s,o={})=>{let a=s;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},e.wrapOutput=(s,o={},a={})=>{const u=a.contains?"":"^",p=a.contains?"":"$";let l=`${u}(?:${s})${p}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l},e.basename=(s,{windows:o}={})=>{const a=s.split(o?/[\\/]/:"/"),u=a[a.length-1];return u===""?a[a.length-2]:u}})(fo)),fo}c(lt,"Et$1");Ue(lt,"yt");ve(lt,"requireUtils");var fn,ho;function Bn(){if(ho)return fn;ho=1;var e=Object.defineProperty,t=ve((b,E)=>e(b,"name",{value:E,configurable:!0}),"k");const r=lt(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:o,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:y,CHAR_PLUS:m,CHAR_QUESTION_MARK:S,CHAR_RIGHT_CURLY_BRACE:w,CHAR_RIGHT_PARENTHESES:T,CHAR_RIGHT_SQUARE_BRACKET:ee}=ct(),F=t(b=>b===p||b===s,"isPathSeparator"),W=t(b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)},"depth");return fn=t((b,E)=>{const f=E||{},j=b.length-1,C=f.parts===!0||f.scanToEnd===!0,_=[],P=[],M=[];let ne=b,fe=-1,te=0,Oe=0,ce=!1,we=!1,z=!1,ke=!1,Xe=!1,Se=!1,q=!1,Ee=!1,ze=!1,le=!1,se=0,de,N,D={value:"",depth:0,isGlob:!1};const $=t(()=>fe>=j,"eos"),pe=t(()=>ne.charCodeAt(fe+1),"peek"),re=t(()=>(de=N,ne.charCodeAt(++fe)),"advance");for(;fe<j;){N=re();let G;if(N===s){q=D.backslashes=!0,N=re(),N===l&&(Se=!0);continue}if(Se===!0||N===l){for(se++;$()!==!0&&(N=re());){if(N===s){q=D.backslashes=!0,re();continue}if(N===l){se++;continue}if(Se!==!0&&N===a&&(N=re())===a){if(ce=D.isBrace=!0,z=D.isGlob=!0,le=!0,C===!0)continue;break}if(Se!==!0&&N===o){if(ce=D.isBrace=!0,z=D.isGlob=!0,le=!0,C===!0)continue;break}if(N===w&&(se--,se===0)){Se=!1,ce=D.isBrace=!0,le=!0;break}}if(C===!0)continue;break}if(N===p){if(_.push(fe),P.push(D),D={value:"",depth:0,isGlob:!1},le===!0)continue;if(de===a&&fe===te+1){te+=2;continue}Oe=fe+1;continue}if(f.noext!==!0&&(N===m||N===i||N===n||N===S||N===u)&&pe()===g){if(z=D.isGlob=!0,ke=D.isExtglob=!0,le=!0,N===u&&fe===te&&(ze=!0),C===!0){for(;$()!==!0&&(N=re());){if(N===s){q=D.backslashes=!0,N=re();continue}if(N===T){z=D.isGlob=!0,le=!0;break}}continue}break}if(N===n){if(de===n&&(Xe=D.isGlobstar=!0),z=D.isGlob=!0,le=!0,C===!0)continue;break}if(N===S){if(z=D.isGlob=!0,le=!0,C===!0)continue;break}if(N===y){for(;$()!==!0&&(G=re());){if(G===s){q=D.backslashes=!0,re();continue}if(G===ee){we=D.isBracket=!0,z=D.isGlob=!0,le=!0;break}}if(C===!0)continue;break}if(f.nonegate!==!0&&N===u&&fe===te){Ee=D.negated=!0,te++;continue}if(f.noparen!==!0&&N===g){if(z=D.isGlob=!0,C===!0){for(;$()!==!0&&(N=re());){if(N===g){q=D.backslashes=!0,N=re();continue}if(N===T){le=!0;break}}continue}break}if(z===!0){if(le=!0,C===!0)continue;break}}f.noext===!0&&(ke=!1,z=!1);let Z=ne,d="",h="";te>0&&(d=ne.slice(0,te),ne=ne.slice(te),Oe-=te),Z&&z===!0&&Oe>0?(Z=ne.slice(0,Oe),h=ne.slice(Oe)):z===!0?(Z="",h=ne):Z=ne,Z&&Z!==""&&Z!=="/"&&Z!==ne&&F(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),f.unescape===!0&&(h&&(h=r.removeBackslashes(h)),Z&&q===!0&&(Z=r.removeBackslashes(Z)));const ye={prefix:d,input:b,start:te,base:Z,glob:h,isBrace:ce,isBracket:we,isGlob:z,isExtglob:ke,isGlobstar:Xe,negated:Ee,negatedExtglob:ze};if(f.tokens===!0&&(ye.maxDepth=0,F(N)||P.push(D),ye.tokens=P),f.parts===!0||f.tokens===!0){let G;for(let Q=0;Q<_.length;Q++){const Re=G?G+1:te,he=_[Q],Be=b.slice(Re,he);f.tokens&&(Q===0&&te!==0?(P[Q].isPrefix=!0,P[Q].value=d):P[Q].value=Be,W(P[Q]),ye.maxDepth+=P[Q].depth),(Q!==0||Be!=="")&&M.push(Be),G=he}if(G&&G+1<b.length){const Q=b.slice(G+1);M.push(Q),f.tokens&&(P[P.length-1].value=Q,W(P[P.length-1]),ye.maxDepth+=P[P.length-1].depth)}ye.slashes=_,ye.parts=M}return ye},"scan"),fn}c(Bn,"Nt$1");Ue(Bn,"wt");ve(Bn,"requireScan");var pn,yo;function Ln(){if(yo)return pn;yo=1;var e=Object.defineProperty,t=ve((b,E)=>e(b,"name",{value:E,configurable:!0}),"y");const r=ct(),n=lt(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:u}=r,p=t((b,E)=>typeof E.expandRange=="function"?E.expandRange(...b,E):(b.sort(),`[${b.join("-")}]`),"expandRange"),l=t((b,E)=>`Missing ${b}: "${E}" - use "\\\\${E}" to match literal characters`,"syntaxError"),g=t(b=>{const E=[];let f=0,j=0,C=0,_="",P=!1;for(const M of b){if(P===!0){_+=M,P=!1;continue}if(M==="\\"){_+=M,P=!0;continue}if(M==='"'){C=C===1?0:1,_+=M;continue}if(C===0){if(M==="[")f++;else if(M==="]"&&f>0)f--;else if(f===0){if(M==="(")j++;else if(M===")"&&j>0)j--;else if(M==="|"&&j===0){E.push(_),_="";continue}}}_+=M}return E.push(_),E},"splitTopLevel"),y=t(b=>{let E=!1;for(const f of b){if(E===!0){E=!1;continue}if(f==="\\"){E=!0;continue}if(/[?*+@!()[\]{}]/.test(f))return!1}return!0},"isPlainBranch"),m=t(b=>{let E=b.trim(),f=!0;for(;f===!0;)f=!1,/^@\([^\\()[\]{}|]+\)$/.test(E)&&(E=E.slice(2,-1),f=!0);if(y(E))return E.replace(/\\(.)/g,"$1")},"normalizeSimpleBranch"),S=t(b=>{const E=b.map(m).filter(Boolean);for(let f=0;f<E.length;f++)for(let j=f+1;j<E.length;j++){const C=E[f],_=E[j],P=C[0];if(!(!P||C!==P.repeat(C.length)||_!==P.repeat(_.length))&&(C===_||C.startsWith(_)||_.startsWith(C)))return!0}return!1},"hasRepeatedCharPrefixOverlap"),w=t((b,E=!0)=>{if(b[0]!=="+"&&b[0]!=="*"||b[1]!=="(")return;let f=0,j=0,C=0,_=!1;for(let P=1;P<b.length;P++){const M=b[P];if(_===!0){_=!1;continue}if(M==="\\"){_=!0;continue}if(M==='"'){C=C===1?0:1;continue}if(C!==1){if(M==="["){f++;continue}if(M==="]"&&f>0){f--;continue}if(!(f>0)){if(M==="("){j++;continue}if(M===")"&&(j--,j===0))return E===!0&&P!==b.length-1?void 0:{type:b[0],body:b.slice(2,P),end:P}}}}},"parseRepeatedExtglob"),T=t(b=>{let E=0;const f=[];for(;E<b.length;){const j=w(b.slice(E),!1);if(!j||j.type!=="*")return;const C=g(j.body).map(P=>P.trim());if(C.length!==1)return;const _=m(C[0]);if(!_||_.length!==1)return;f.push(_),E+=j.end+1}return f.length<1?void 0:`${f.length===1?n.escapeRegex(f[0]):`[${f.map(j=>n.escapeRegex(j)).join("")}]`}*`},"getStarExtglobSequenceOutput"),ee=t(b=>{let E=0,f=b.trim(),j=w(f);for(;j;)E++,f=j.body.trim(),j=w(f);return E},"repeatedExtglobRecursion"),F=t((b,E)=>{if(E.maxExtglobRecursion===!1)return{risky:!1};const f=typeof E.maxExtglobRecursion=="number"?E.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,j=g(b).map(C=>C.trim());if(j.length>1&&(j.some(C=>C==="")||j.some(C=>/^[*?]+$/.test(C))||S(j)))return{risky:!0};for(const C of j){const _=T(C);if(_)return{risky:!0,safeOutput:_};if(ee(C)>f)return{risky:!0}}return{risky:!1}},"analyzeRepeatedExtglob"),W=t((b,E)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=u[b]||b;const f={...E},j=typeof f.maxLength=="number"?Math.min(i,f.maxLength):i;let C=b.length;if(C>j)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${j}`);const _={type:"bos",value:"",output:f.prepend||""},P=[_],M=f.capture?"":"?:",ne=r.globChars(f.windows),fe=r.extglobChars(ne),{DOT_LITERAL:te,PLUS_LITERAL:Oe,SLASH_LITERAL:ce,ONE_CHAR:we,DOTS_SLASH:z,NO_DOT:ke,NO_DOT_SLASH:Xe,NO_DOTS_SLASH:Se,QMARK:q,QMARK_NO_DOT:Ee,STAR:ze,START_ANCHOR:le}=ne,se=t(O=>`(${M}(?:(?!${le}${O.dot?z:te}).)*?)`,"globstar"),de=f.dot?"":ke,N=f.dot?q:Ee;let D=f.bash===!0?se(f):ze;f.capture&&(D=`(${D})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const $={input:b,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:P};b=n.removePrefix(b,$),C=b.length;const pe=[],re=[],Z=[];let d=_,h;const ye=t(()=>$.index===C-1,"eos"),G=$.peek=(O=1)=>b[$.index+O],Q=$.advance=()=>b[++$.index]||"",Re=t(()=>b.slice($.index+1),"remaining"),he=t((O="",K=0)=>{$.consumed+=O,$.index+=K},"consume"),Be=t(O=>{$.output+=O.output!=null?O.output:O.value,he(O.value)},"append"),os=t(()=>{let O=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)Q(),$.start++,O++;return O%2===0?!1:($.negated=!0,$.start++,!0)},"negate"),cr=t(O=>{$[O]++,Z.push(O)},"increment"),Le=t(O=>{$[O]--,Z.pop()},"decrement"),B=t(O=>{if(d.type==="globstar"){const K=$.braces>0&&(O.type==="comma"||O.type==="brace"),v=O.extglob===!0||pe.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!K&&!v&&($.output=$.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=D,$.output+=d.output)}if(pe.length&&O.type!=="paren"&&(pe[pe.length-1].inner+=O.value),(O.value||O.output)&&Be(O),d&&d.type==="text"&&O.type==="text"){d.output=(d.output||d.value)+O.value,d.value+=O.value;return}O.prev=d,P.push(O),d=O},"push"),lr=t((O,K)=>{const v={...fe[K],conditions:1,inner:""};v.prev=d,v.parens=$.parens,v.output=$.output,v.startIndex=$.index,v.tokensIndex=P.length;const L=(f.capture?"(":"")+v.open;cr("parens"),B({type:O,value:K,output:$.output?"":we}),B({type:"paren",extglob:!0,value:Q(),output:L}),pe.push(v)},"extglobOpen"),is=t(O=>{const K=b.slice(O.startIndex,$.index+1),v=b.slice(O.startIndex+2,$.index),L=F(v,f);if((O.type==="plus"||O.type==="star")&&L.risky){const U=L.safeOutput?(O.output?"":we)+(f.capture?`(${L.safeOutput})`:L.safeOutput):void 0,Pe=P[O.tokensIndex];Pe.type="text",Pe.value=K,Pe.output=U||n.escapeRegex(K);for(let Ae=O.tokensIndex+1;Ae<P.length;Ae++)P[Ae].value="",P[Ae].output="",delete P[Ae].suffix;$.output=O.output+Pe.output,$.backtrack=!0,B({type:"paren",extglob:!0,value:h,output:""}),Le("parens");return}let V=O.close+(f.capture?")":""),oe;if(O.type==="negate"){let U=D;if(O.inner&&O.inner.length>1&&O.inner.includes("/")&&(U=se(f)),(U!==D||ye()||/^\)+$/.test(Re()))&&(V=O.close=`)$))${U}`),O.inner.includes("*")&&(oe=Re())&&/^\.[^\\/.]+$/.test(oe)){const Pe=W(oe,{...E,fastpaths:!1}).output;V=O.close=`)${Pe})${U})`}O.prev.type==="bos"&&($.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:h,output:V}),Le("parens")},"extglobClose");if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let O=!1,K=b.replace(a,(v,L,V,oe,U,Pe)=>oe==="\\"?(O=!0,v):oe==="?"?L?L+oe+(U?q.repeat(U.length):""):Pe===0?N+(U?q.repeat(U.length):""):q.repeat(V.length):oe==="."?te.repeat(V.length):oe==="*"?L?L+oe+(U?D:""):D:L?v:`\\${v}`);return O===!0&&(f.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,v=>v.length%2===0?"\\\\":v?"\\":"")),K===b&&f.contains===!0?($.output=b,$):($.output=n.wrapOutput(K,$,E),$)}for(;!ye();){if(h=Q(),h==="\0")continue;if(h==="\\"){const v=G();if(v==="/"&&f.bash!==!0||v==="."||v===";")continue;if(!v){h+="\\",B({type:"text",value:h});continue}const L=/^\\+/.exec(Re());let V=0;if(L&&L[0].length>2&&(V=L[0].length,$.index+=V,V%2!==0&&(h+="\\")),f.unescape===!0?h=Q():h+=Q(),$.brackets===0){B({type:"text",value:h});continue}}if($.brackets>0&&(h!=="]"||d.value==="["||d.value==="[^")){if(f.posix!==!1&&h===":"){const v=d.value.slice(1);if(v.includes("[")&&(d.posix=!0,v.includes(":"))){const L=d.value.lastIndexOf("["),V=d.value.slice(0,L),oe=d.value.slice(L+2),U=s[oe];if(U){d.value=V+U,$.backtrack=!0,Q(),!_.output&&P.indexOf(d)===1&&(_.output=we);continue}}}(h==="["&&G()!==":"||h==="-"&&G()==="]")&&(h=`\\${h}`),h==="]"&&(d.value==="["||d.value==="[^")&&(h=`\\${h}`),f.posix===!0&&h==="!"&&d.value==="["&&(h="^"),d.value+=h,Be({value:h});continue}if($.quotes===1&&h!=='"'){h=n.escapeRegex(h),d.value+=h,Be({value:h});continue}if(h==='"'){$.quotes=$.quotes===1?0:1,f.keepQuotes===!0&&B({type:"text",value:h});continue}if(h==="("){cr("parens"),B({type:"paren",value:h});continue}if(h===")"){if($.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));const v=pe[pe.length-1];if(v&&$.parens===v.parens+1){is(pe.pop());continue}B({type:"paren",value:h,output:$.parens?")":"\\)"}),Le("parens");continue}if(h==="["){if(f.nobracket===!0||!Re().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));h=`\\${h}`}else cr("brackets");B({type:"bracket",value:h});continue}if(h==="]"){if(f.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){B({type:"text",value:h,output:`\\${h}`});continue}if($.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));B({type:"text",value:h,output:`\\${h}`});continue}Le("brackets");const v=d.value.slice(1);if(d.posix!==!0&&v[0]==="^"&&!v.includes("/")&&(h=`/${h}`),d.value+=h,Be({value:h}),f.literalBrackets===!1||n.hasRegexChars(v))continue;const L=n.escapeRegex(d.value);if($.output=$.output.slice(0,-d.value.length),f.literalBrackets===!0){$.output+=L,d.value=L;continue}d.value=`(${M}${L}|${d.value})`,$.output+=d.value;continue}if(h==="{"&&f.nobrace!==!0){cr("braces");const v={type:"brace",value:h,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};re.push(v),B(v);continue}if(h==="}"){const v=re[re.length-1];if(f.nobrace===!0||!v){B({type:"text",value:h,output:h});continue}let L=")";if(v.dots===!0){const V=P.slice(),oe=[];for(let U=V.length-1;U>=0&&(P.pop(),V[U].type!=="brace");U--)V[U].type!=="dots"&&oe.unshift(V[U].value);L=p(oe,f),$.backtrack=!0}if(v.comma!==!0&&v.dots!==!0){const V=$.output.slice(0,v.outputIndex),oe=$.tokens.slice(v.tokensIndex);v.value=v.output="\\{",h=L="\\}",$.output=V;for(const U of oe)$.output+=U.output||U.value}B({type:"brace",value:h,output:L}),Le("braces"),re.pop();continue}if(h==="|"){pe.length>0&&pe[pe.length-1].conditions++,B({type:"text",value:h});continue}if(h===","){let v=h;const L=re[re.length-1];L&&Z[Z.length-1]==="braces"&&(L.comma=!0,v="|"),B({type:"comma",value:h,output:v});continue}if(h==="/"){if(d.type==="dot"&&$.index===$.start+1){$.start=$.index+1,$.consumed="",$.output="",P.pop(),d=_;continue}B({type:"slash",value:h,output:ce});continue}if(h==="."){if($.braces>0&&d.type==="dot"){d.value==="."&&(d.output=te);const v=re[re.length-1];d.type="dots",d.output+=h,d.value+=h,v.dots=!0;continue}if($.braces+$.parens===0&&d.type!=="bos"&&d.type!=="slash"){B({type:"text",value:h,output:te});continue}B({type:"dot",value:h,output:te});continue}if(h==="?"){if(!(d&&d.value==="(")&&f.noextglob!==!0&&G()==="("&&G(2)!=="?"){lr("qmark",h);continue}if(d&&d.type==="paren"){const v=G();let L=h;(d.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(Re()))&&(L=`\\${h}`),B({type:"text",value:h,output:L});continue}if(f.dot!==!0&&(d.type==="slash"||d.type==="bos")){B({type:"qmark",value:h,output:Ee});continue}B({type:"qmark",value:h,output:q});continue}if(h==="!"){if(f.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){lr("negate",h);continue}if(f.nonegate!==!0&&$.index===0){os();continue}}if(h==="+"){if(f.noextglob!==!0&&G()==="("&&G(2)!=="?"){lr("plus",h);continue}if(d&&d.value==="("||f.regex===!1){B({type:"plus",value:h,output:Oe});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||$.parens>0){B({type:"plus",value:h});continue}B({type:"plus",value:Oe});continue}if(h==="@"){if(f.noextglob!==!0&&G()==="("&&G(2)!=="?"){B({type:"at",extglob:!0,value:h,output:""});continue}B({type:"text",value:h});continue}if(h!=="*"){(h==="$"||h==="^")&&(h=`\\${h}`);const v=o.exec(Re());v&&(h+=v[0],$.index+=v[0].length),B({type:"text",value:h});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=h,d.output=D,$.backtrack=!0,$.globstar=!0,he(h);continue}let O=Re();if(f.noextglob!==!0&&/^\([^?]/.test(O)){lr("star",h);continue}if(d.type==="star"){if(f.noglobstar===!0){he(h);continue}const v=d.prev,L=v.prev,V=v.type==="slash"||v.type==="bos",oe=L&&(L.type==="star"||L.type==="globstar");if(f.bash===!0&&(!V||O[0]&&O[0]!=="/")){B({type:"star",value:h,output:""});continue}const U=$.braces>0&&(v.type==="comma"||v.type==="brace"),Pe=pe.length&&(v.type==="pipe"||v.type==="paren");if(!V&&v.type!=="paren"&&!U&&!Pe){B({type:"star",value:h,output:""});continue}for(;O.slice(0,3)==="/**";){const Ae=b[$.index+4];if(Ae&&Ae!=="/")break;O=O.slice(3),he("/**",3)}if(v.type==="bos"&&ye()){d.type="globstar",d.value+=h,d.output=se(f),$.output=d.output,$.globstar=!0,he(h);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&!oe&&ye()){$.output=$.output.slice(0,-(v.output+d.output).length),v.output=`(?:${v.output}`,d.type="globstar",d.output=se(f)+(f.strictSlashes?")":"|$)"),d.value+=h,$.globstar=!0,$.output+=v.output+d.output,he(h);continue}if(v.type==="slash"&&v.prev.type!=="bos"&&O[0]==="/"){const Ae=O[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(v.output+d.output).length),v.output=`(?:${v.output}`,d.type="globstar",d.output=`${se(f)}${ce}|${ce}${Ae})`,d.value+=h,$.output+=v.output+d.output,$.globstar=!0,he(h+Q()),B({type:"slash",value:"/",output:""});continue}if(v.type==="bos"&&O[0]==="/"){d.type="globstar",d.value+=h,d.output=`(?:^|${ce}|${se(f)}${ce})`,$.output=d.output,$.globstar=!0,he(h+Q()),B({type:"slash",value:"/",output:""});continue}if(U&&O[0]==="/"){d.type="globstar",d.value+=h,d.output=`(?:^|${ce}|${se(f)}${ce})`,$.output+=d.output,$.globstar=!0,he(h+Q()),B({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-d.output.length),d.type="globstar",d.output=se(f),d.value+=h,$.output+=d.output,$.globstar=!0,he(h);continue}const K={type:"star",value:h,output:D};if(f.bash===!0){K.output=".*?",(d.type==="bos"||d.type==="slash")&&(K.output=de+K.output),B(K);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&f.regex===!0){K.output=h,B(K);continue}($.index===$.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?($.output+=Xe,d.output+=Xe):f.dot===!0?($.output+=Se,d.output+=Se):($.output+=de,d.output+=de),G()!=="*"&&($.output+=we,d.output+=we)),B(K)}for(;$.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));$.output=n.escapeLast($.output,"["),Le("brackets")}for(;$.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));$.output=n.escapeLast($.output,"("),Le("parens")}for(;$.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));$.output=n.escapeLast($.output,"{"),Le("braces")}if(f.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&B({type:"maybe_slash",value:"",output:`${ce}?`}),$.backtrack===!0){$.output="";for(const O of $.tokens)$.output+=O.output!=null?O.output:O.value,O.suffix&&($.output+=O.suffix)}return $},"parse");return W.fastpaths=(b,E)=>{const f={...E},j=typeof f.maxLength=="number"?Math.min(i,f.maxLength):i,C=b.length;if(C>j)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${j}`);b=u[b]||b;const{DOT_LITERAL:_,SLASH_LITERAL:P,ONE_CHAR:M,DOTS_SLASH:ne,NO_DOT:fe,NO_DOTS:te,NO_DOTS_SLASH:Oe,STAR:ce,START_ANCHOR:we}=r.globChars(f.windows),z=f.dot?te:fe,ke=f.dot?Oe:fe,Xe=f.capture?"":"?:",Se={negated:!1,prefix:""};let q=f.bash===!0?".*?":ce;f.capture&&(q=`(${q})`);const Ee=t(de=>de.noglobstar===!0?q:`(${Xe}(?:(?!${we}${de.dot?ne:_}).)*?)`,"globstar"),ze=t(de=>{switch(de){case"*":return`${z}${M}${q}`;case".*":return`${_}${M}${q}`;case"*.*":return`${z}${q}${_}${M}${q}`;case"*/*":return`${z}${q}${P}${M}${ke}${q}`;case"**":return z+Ee(f);case"**/*":return`(?:${z}${Ee(f)}${P})?${ke}${M}${q}`;case"**/*.*":return`(?:${z}${Ee(f)}${P})?${ke}${q}${_}${M}${q}`;case"**/.*":return`(?:${z}${Ee(f)}${P})?${_}${M}${q}`;default:{const N=/^(.*?)\.(\w+)$/.exec(de);if(!N)return;const D=ze(N[1]);return D?D+_+N[2]:void 0}}},"create"),le=n.removePrefix(b,Se);let se=ze(le);return se&&f.strictSlashes!==!0&&(se+=`${P}?`),se},pn=W,pn}c(Ln,"It$1");Ue(Ln,"Bt");ve(Ln,"requireParse");var gn,$o;function Dn(){if($o)return gn;$o=1;var e=Object.defineProperty,t=ve((u,p)=>e(u,"name",{value:p,configurable:!0}),"h");const r=Bn(),n=Ln(),i=lt(),s=ct(),o=t(u=>u&&typeof u=="object"&&!Array.isArray(u),"isObject"),a=t((u,p,l=!1)=>{if(Array.isArray(u)){const F=u.map(W=>a(W,p,l));return t(W=>{for(const b of F){const E=b(W);if(E)return E}return!1},"arrayMatcher")}const g=o(u)&&u.tokens&&u.input;if(u===""||typeof u!="string"&&!g)throw new TypeError("Expected pattern to be a non-empty string");const y=p||{},m=y.windows,S=g?a.compileRe(u,p):a.makeRe(u,p,!1,!0),w=S.state;delete S.state;let T=t(()=>!1,"isIgnored");if(y.ignore){const F={...p,ignore:null,onMatch:null,onResult:null};T=a(y.ignore,F,l)}const ee=t((F,W=!1)=>{const{isMatch:b,match:E,output:f}=a.test(F,S,p,{glob:u,posix:m}),j={glob:u,state:w,regex:S,posix:m,input:F,output:f,match:E,isMatch:b};if(typeof y.onResult=="function"&&y.onResult(j),b===!1)return j.isMatch=!1,W?j:!1;e:if(T(F)){if(typeof y.onIgnore=="function"&&y.onIgnore(j)===s.UNIGNORE){j.isMatch=!0;break e}return j.isMatch=!1,W?j:!1}return typeof y.onMatch=="function"&&y.onMatch(j),W?j:!0},"matcher");return l&&(ee.state=w),ee},"picomatch");return a.test=(u,p,l,{glob:g,posix:y}={})=>{if(typeof u!="string")throw new TypeError("Expected input to be a string");if(u==="")return{isMatch:!1,output:""};const m=l||{},S=m.format||(y?i.toPosixSlashes:null);let w=u===g,T=w&&S?S(u):u;return w===!1&&(T=S?S(u):u,w=T===g),(w===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?w=a.matchBase(u,p,l,y):w=p.exec(T)),{isMatch:!!w,match:w,output:T}},a.matchBase=(u,p,l)=>(p instanceof RegExp?p:a.makeRe(p,l)).test(i.basename(u)),a.isMatch=(u,p,l)=>a(p,l)(u),a.parse=(u,p)=>Array.isArray(u)?u.map(l=>a.parse(l,p)):n(u,{...p,fastpaths:!1}),a.scan=(u,p)=>r(u,p),a.compileRe=(u,p,l=!1,g=!1)=>{if(l===!0)return u.output;const y=p||{},m=y.contains?"":"^",S=y.contains?"":"$";let w=`${m}(?:${u.output})${S}`;u&&u.negated===!0&&(w=`^(?!${w}).*$`);const T=a.toRegex(w,p);return g===!0&&(T.state=u),T},a.makeRe=(u,p={},l=!1,g=!1)=>{if(!u||typeof u!="string")throw new TypeError("Expected a non-empty string");let y={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(u[0]==="."||u[0]==="*")&&(y.output=n.fastpaths(u,p)),y.output||(y=n(u,p)),a.compileRe(y,p,l,g)},a.toRegex=(u,p)=>{try{const l=p||{};return new RegExp(u,l.flags||(l.nocase?"i":""))}catch(l){if(p&&p.debug===!0)throw l;return/$^/}},a.constants=s,gn=a,gn}c(Dn,"wt");Ue(Dn,"Gt");ve(Dn,"requirePicomatch$1");var dn,bo;function Fn(){if(bo)return dn;bo=1;var e=Object.defineProperty,t=ve((s,o)=>e(s,"name",{value:o,configurable:!0}),"c");const r=Dn(),n=lt();function i(s,o,a=!1){return o&&(o.windows===null||o.windows===void 0)&&(o={...o,windows:n.isWindows()}),r(s,o,a)}return c(i,"D"),Ue(i,"D"),ve(i,"picomatch"),t(i,"picomatch"),Object.assign(i,r),dn=i,dn}c(Fn,"Pt$1");Ue(Fn,"Mt");ve(Fn,"requirePicomatch");var Fc=Fn();const Ne=ut(Fc);var Ic=Object.defineProperty,R=c((e,t)=>Ic(e,"name",{value:t,configurable:!0}),"u$d"),Hc=Object.defineProperty,k=R((e,t)=>Hc(e,"name",{value:t,configurable:!0}),"l");const Gc=H(import.meta.url),Pt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qt=k(e=>{if(typeof Pt<"u"&&Pt.versions&&Pt.versions.node){const[t,r]=Pt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Pt.getBuiltinModule(e)}return Gc(e)},"__cjs_getBuiltinModule"),mo=Qt("fs"),Uc={...mo,default:mo},{statSync:qc,stat:Wc,realpathSync:Kc,realpath:Xc,readdirSync:zc,readdir:Qc}=Qt("fs"),{sep:ci,basename:Vc,dirname:Pn,resolve:li,normalize:Yc,relative:Jc,posix:Ve,isAbsolute:Zc}=Qt("path"),{fileURLToPath:el}=Qt("url"),{createRequire:tl}=Qt("module");var rl=Object.defineProperty,A=k((e,t)=>rl(e,"name",{value:t,configurable:!0}),"r"),vo=tl(import.meta.url);function Pr(e){let t=Yc(e);return t.length>1&&t[t.length-1]===ci&&(t=t.substring(0,t.length-1)),t}c(Pr,"H$1");R(Pr,"tt");k(Pr,"M$1");A(Pr,"cleanPath");const nl=/[\\/]/g;function Vt(e,t){return e.replace(nl,t)}c(Vt,"M$4");R(Vt,"T");k(Vt,"D$1");A(Vt,"convertSlashes");const ol=/^[a-z]:[\\/]$/i;function Ar(e){return e==="/"||ol.test(e)}c(Ar,"J$4");R(Ar,"et");k(Ar,"T$1");A(Ar,"isRootDirectory");function et(e,t){const{resolvePaths:r,normalizePath:n,pathSeparator:i}=t,s=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(r&&(e=li(e)),(n||s)&&(e=Pr(e)),e===".")return"";const o=e[e.length-1]!==i;return Vt(o?e+i:e,i)}c(et,"q$8");R(et,"q");k(et,"w");A(et,"normalizePath");function Yt(e,t){return t+e}c(Yt,"B$7");R(Yt,"I");k(Yt,"P");A(Yt,"joinPathWithBasePath");function _r(e,t){return function(r,n){return n.startsWith(e)?n.slice(e.length)+r:Vt(Jc(e,n),t.pathSeparator)+t.pathSeparator+r}}c(_r,"K$1");R(_r,"st");k(_r,"X");A(_r,"joinPathWithRelativePath");function xr(e){return e}c(xr,"V$2");R(xr,"rt");k(xr,"H");A(xr,"joinPath");function jr(e,t,r){return t+e+r}c(jr,"X$2");R(jr,"nt");k(jr,"U$1");A(jr,"joinDirectoryPath");function Tr(e,t){const{relativePaths:r,includeBasePath:n}=t;return r&&e?_r(e,t):n?Yt:xr}c(Tr,"Z$1");R(Tr,"it");k(Tr,"J");A(Tr,"build$7");function kr(e){return function(t,r){r.push(t.substring(e.length)||".")}}c(kr,"tt");R(kr,"ot");k(kr,"K$1");A(kr,"pushDirectoryWithRelativePath");function Rr(e){return function(t,r,n){const i=t.substring(e.length)||".";n.every(s=>s(i,!0))&&r.push(i)}}c(Rr,"et");R(Rr,"ut");k(Rr,"V");A(Rr,"pushDirectoryFilterWithRelativePath");const il=A((e,t)=>{t.push(e||".")},"pushDirectory"),sl=A((e,t,r)=>{const n=e||".";r.every(i=>i(n,!0))&&t.push(n)},"pushDirectoryFilter"),al=A(()=>{},"empty$2");function Cr(e,t){const{includeDirs:r,filters:n,relativePaths:i}=t;return r?i?n&&n.length?Rr(e):kr(e):n&&n.length?sl:il:al}c(Cr,"st");R(Cr,"lt");k(Cr,"st$1");A(Cr,"build$6");const ul=A((e,t,r,n)=>{n.every(i=>i(e,!1))&&r.files++},"pushFileFilterAndCount"),cl=A((e,t,r,n)=>{n.every(i=>i(e,!1))&&t.push(e)},"pushFileFilter"),ll=A((e,t,r,n)=>{r.files++},"pushFileCount"),fl=A((e,t)=>{t.push(e)},"pushFile"),pl=A(()=>{},"empty$1");function Mr(e){const{excludeFiles:t,filters:r,onlyCounts:n}=e;return t?pl:r&&r.length?n?ul:cl:n?ll:fl}c(Mr,"it");R(Mr,"at");k(Mr,"ut$1");A(Mr,"build$5");const gl=A(e=>e,"getArray"),dl=A(()=>[""].slice(0,0),"getArrayGroup");function Nr(e){return e.group?dl:gl}c(Nr,"nt");R(Nr,"ct");k(Nr,"ct$1");A(Nr,"build$4");const hl=A((e,t,r)=>{e.push({directory:t,files:r,dir:t})},"groupFiles"),yl=A(()=>{},"empty");function Br(e){return e.group?hl:yl}c(Br,"rt");R(Br,"ht");k(Br,"ft$1");A(Br,"build$3");const $l=A(function(e,t,r){const{queue:n,fs:i,options:{suppressErrors:s}}=t;n.enqueue(),i.realpath(e,(o,a)=>{if(o)return n.dequeue(s?null:o,t);i.stat(a,(u,p)=>{if(u)return n.dequeue(s?null:u,t);if(p.isDirectory()&&Jt(e,a,t))return n.dequeue(null,t);r(p,a),n.dequeue(null,t)})})},"resolveSymlinksAsync"),bl=A(function(e,t,r){const{queue:n,fs:i,options:{suppressErrors:s}}=t;n.enqueue();try{const o=i.realpathSync(e),a=i.statSync(o);if(a.isDirectory()&&Jt(e,o,t))return;r(a,o)}catch(o){if(!s)throw o}},"resolveSymlinks");function Lr(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?bl:$l}c(Lr,"ot");R(Lr,"pt");k(Lr,"gt$1");A(Lr,"build$2");function Jt(e,t,r){if(r.options.useRealPaths)return Dr(t,r);let n=Pn(e),i=1;for(;n!==r.root&&i<2;){const s=r.symlinks.get(n);s&&(s===t||s.startsWith(t)||t.startsWith(s))?i++:n=Pn(n)}return r.symlinks.set(e,t),i>1}c(Jt,"_$9");R(Jt,"L");k(Jt,"E$1");A(Jt,"isRecursive");function Dr(e,t){return t.visited.includes(e+t.options.pathSeparator)}c(Dr,"lt");R(Dr,"ft");k(Dr,"dt$1");A(Dr,"isRecursiveUsingRealPaths");const ml=A(e=>e.counts,"onlyCountsSync"),vl=A(e=>e.groups,"groupsSync"),Ol=A(e=>e.paths,"defaultSync"),wl=A(e=>e.paths.slice(0,e.options.maxFiles),"limitFilesSync"),Sl=A((e,t,r)=>(Ye(t,r,e.counts,e.options.suppressErrors),null),"onlyCountsAsync"),El=A((e,t,r)=>(Ye(t,r,e.paths,e.options.suppressErrors),null),"defaultAsync"),Pl=A((e,t,r)=>(Ye(t,r,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),"limitFilesAsync"),Al=A((e,t,r)=>(Ye(t,r,e.groups,e.options.suppressErrors),null),"groupsAsync");function Ye(e,t,r,n){t(e&&!n?e:null,r)}c(Ye,"A$1");R(Ye,"j");k(Ye,"y");A(Ye,"report");function Fr(e,t){const{onlyCounts:r,group:n,maxFiles:i}=e;return r?t?ml:Sl:n?t?vl:Al:i?t?wl:Pl:t?Ol:El}c(Fr,"at");R(Fr,"gt");k(Fr,"Et");A(Fr,"build$1");const fi={withFileTypes:!0},_l=A((e,t,r,n,i)=>{if(e.queue.enqueue(),n<0)return e.queue.dequeue(null,e);const{fs:s}=e;e.visited.push(t),e.counts.directories++,s.readdir(t||".",fi,(o,a=[])=>{i(a,r,n),e.queue.dequeue(e.options.suppressErrors?null:o,e)})},"walkAsync"),xl=A((e,t,r,n,i)=>{const{fs:s}=e;if(n<0)return;e.visited.push(t),e.counts.directories++;let o=[];try{o=s.readdirSync(t||".",fi)}catch(a){if(!e.options.suppressErrors)throw a}i(o,r,n)},"walkSync");function Ir(e){return e?xl:_l}c(Ir,"ut");R(Ir,"yt");k(Ir,"xt$1");A(Ir,"build");var jl=class{static{c(this,"De")}static{R(this,"we")}static{k(this,"_t")}static{A(this,"Queue")}count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},Tl=class{static{c(this,"Ae")}static{R(this,"$e")}static{k(this,"At")}static{A(this,"Counter")}_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},kl=class{static{c(this,"Ee")}static{R(this,"Se")}static{k(this,"Wt")}static{A(this,"Aborter")}aborted=!1;abort(){this.aborted=!0}},pi=class{static{c(this,"Dt")}static{R(this,"mt")}static{k(this,"q")}static{A(this,"Walker")}root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,r){this.isSynchronous=!r,this.callbackInvoker=Fr(t,this.isSynchronous),this.root=et(e,t),this.state={root:Ar(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Tl,options:t,queue:new jl((n,i)=>this.callbackInvoker(i,n,r)),symlinks:new Map,visited:[""].slice(0,0),controller:new kl,fs:t.fs||Uc},this.joinPath=Tr(this.root,t),this.pushDirectory=Cr(this.root,t),this.pushFile=Mr(t),this.getArray=Nr(t),this.groupFiles=Br(t),this.resolveSymlink=Lr(t,this.isSynchronous),this.walkDirectory=Ir(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=A((e,t,r)=>{const{paths:n,options:{filters:i,resolveSymlinks:s,excludeSymlinks:o,exclude:a,maxFiles:u,signal:p,useRealPaths:l,pathSeparator:g},controller:y}=this.state;if(y.aborted||p&&p.aborted||u&&n.length>u)return;const m=this.getArray(this.state.paths);for(let S=0;S<e.length;++S){const w=e[S];if(w.isFile()||w.isSymbolicLink()&&!s&&!o){const T=this.joinPath(w.name,t);this.pushFile(T,m,this.state.counts,i)}else if(w.isDirectory()){let T=jr(w.name,t,this.state.options.pathSeparator);if(a&&a(w.name,T))continue;this.pushDirectory(T,n,i),this.walkDirectory(this.state,T,T,r-1,this.walk)}else if(this.resolveSymlink&&w.isSymbolicLink()){let T=Yt(w.name,t);this.resolveSymlink(T,this.state,(ee,F)=>{if(ee.isDirectory()){if(F=et(F,this.state.options),a&&a(w.name,l?F:T+g))return;this.walkDirectory(this.state,F,l?F:T+g,r-1,this.walk)}else{F=l?F:T;const W=Vc(F),b=et(Pn(F),this.state.options);F=this.joinPath(W,b),this.pushFile(F,m,this.state.counts,i)}})}}this.groupFiles(this.state.groups,t,m)},"walk")};function Hr(e,t){return new Promise((r,n)=>{Zt(e,t,(i,s)=>{if(i)return n(i);r(s)})})}c(Hr,"ct");R(Hr,"bt");k(Hr,"Ct");A(Hr,"promise");function Zt(e,t,r){new pi(e,t,r).start()}c(Zt,"T$9");R(Zt,"G");k(Zt,"x");A(Zt,"callback");function Gr(e,t){return new pi(e,t).start()}c(Gr,"ht");R(Gr,"vt");k(Gr,"jt");A(Gr,"sync");var Oo=class{static{c(this,"kt")}static{R(this,"J")}static{k(this,"F")}static{A(this,"APIBuilder")}constructor(e,t){this.root=e,this.options=t}withPromise(){return Hr(this.root,this.options)}withCallback(e){Zt(this.root,this.options,e)}sync(){return Gr(this.root,this.options)}};let gi=null;try{vo.resolve("picomatch"),gi=vo("picomatch")}catch{}var Rl=class{static{c(this,"We")}static{R(this,"ke")}static{k(this,"$t")}static{A(this,"Builder")}globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:ci,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new Oo(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new Oo(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){const r=this.globFunction||gi;if(!r)throw new Error("Please specify a glob function to use glob matching.");var n=this.globCache[e.join("\0")];return n||(n=r(e,...t),this.globCache[e.join("\0")]=n),this.options.filters.push(i=>n(i)),this}},Cl=Object.defineProperty,ie=k((e,t)=>Cl(e,"name",{value:t,configurable:!0}),"a");const Ml=Array.isArray,di=/\\/g,hi=process.platform==="win32",Nl=/^(\/?\.\.)+$/;function Ht(e,t={}){const r=e.length,n=Array(r),i=Array(r);let s,o;for(s=0;s<r;s++){const a=er(e[s]);n[s]=a;const u=a.length,p=Array(u);for(o=0;o<u;o++)p[o]=Ne(a[o],t);i[s]=p}return a=>{const u=a.split("/");if(u[0]===".."&&Nl.test(a))return!0;for(s=0;s<r;s++){const p=n[s],l=i[s],g=u.length,y=Math.min(g,p.length);for(o=0;o<y;){const m=p[o];if(m.includes("/"))return!0;if(!l[o](u[o]))break;if(!t.noglobstar&&m==="**")return!0;o++}if(o===g)return!0}return!1}}c(Ht,"R$3");R(Ht,"B");k(Ht,"D");ie(Ht,"getPartialMatcher");const Bl=/^[A-Z]:\/$/i,Ll=hi?e=>Bl.test(e):e=>e==="/";function Gt(e,t,r){if(e===t||t.startsWith(`${e}/`)){if(r){const i=e.length+ +!Ll(e);return(s,o)=>s.slice(i,o?-1:void 0)||"."}const n=t.slice(e.length+1);return n?(i,s)=>{if(i===".")return n;const o=`${n}/${i}`;return s?o.slice(0,-1):o}:(i,s)=>s&&i!=="."?i.slice(0,-1):i}return r?n=>Ve.relative(e,n)||".":n=>Ve.relative(e,`${t}/${n}`)||"."}c(Gt,"O$8");R(Gt,"M");k(Gt,"M");ie(Gt,"buildFormat");function Ur(e,t){if(t.startsWith(`${e}/`)){const r=t.slice(e.length+1);return n=>`${r}/${n}`}return r=>{const n=Ve.relative(e,`${t}/${r}`);return r[r.length-1]==="/"&&n!==""?`${n}/`:n||"."}}c(Ur,"pt");R(Ur,"St");k(Ur,"at");ie(Ur,"buildRelative");const Dl={parts:!0};function er(e){var t;const r=Ne.scan(e,Dl);return!((t=r.parts)===null||t===void 0)&&t.length?r.parts:[e]}c(er,"I$4");R(er,"z");k(er,"N");ie(er,"splitPattern");const Fl=/\\(?![()[\]{}!+@])/g;function In(e){return yi(e)}c(In,"qt");R(In,"Ee");k(In,"ut");ie(In,"convertPosixPathToPattern");function Hn(e){return $i(e).replace(Fl,"/")}c(Hn,"jt");R(Hn,"Re");k(Hn,"ft");ie(Hn,"convertWin32PathToPattern");const Il=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Hl=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,yi=ie(e=>e.replace(Il,"\\$&"),"escapePosixPath"),$i=ie(e=>e.replace(Hl,"\\$&"),"escapeWin32Path"),Gl=hi?$i:yi;function qr(e,t){if(t?.caseSensitiveMatch===!1)return!0;const r=Ne.scan(e);return r.isGlob||r.negated}c(qr,"ft");R(qr,"Dt");k(qr,"k");ie(qr,"isDynamicPattern");function Ie(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}c(Ie,"D$2");R(Ie,"D");k(Ie,"E");ie(Ie,"log");function tr(e){return typeof e=="string"?[e]:e??[]}c(tr,"L");R(tr,"U");k(tr,"W");ie(tr,"ensureStringArray");const Ul=/^(\/?\.\.)+/,ql=/\\(?=[()[\]{}!*+?@|])/g;function tt(e,t,r,n){var i;const s=t.cwd;let o=e;e[e.length-1]==="/"&&(o=e.slice(0,-1));const a=o.lastIndexOf("/"),u=(a===-1?o:o.slice(a+1)).startsWith("!(");o[o.length-1]!=="*"&&!u&&t.expandDirectories&&(o+="/**");const p=Gl(s);o=Zc(o.replace(ql,""))?Ve.relative(p,o):Ve.normalize(o);const l=(i=Ul.exec(o))===null||i===void 0?void 0:i[0],g=er(o);if(l){const m=(l.length+1)/3;let S=0;const w=p.split("/");for(;S<m&&g[S+m]===w[w.length+S-m];)o=o.slice(0,(m-S-1)*3)+o.slice((m-S)*3+g[S+m].length+1)||".",S++;const T=Ve.join(s,l.slice(S*3));T[0]!=="."&&r.root.length>T.length&&(r.root=T,r.depthOffset=-m+S)}if(!n&&r.depthOffset>=0){var y;(y=r.commonPath)!==null&&y!==void 0||(r.commonPath=g);const m=[],S=Math.min(r.commonPath.length,g.length);for(let w=0;w<S;w++){const T=g[w];if(T==="**"&&!g[w+1]){m.pop();break}if(w===g.length-1||T!==r.commonPath[w]||qr(T))break;m.push(T)}r.depthOffset=m.length,r.commonPath=m,r.root=m.length>0?Ve.join(s,...m):s}return o}c(tt,"j$c");R(tt,"E");k(tt,"$");ie(tt,"normalizePattern");function Wr(e,t,r){const n=[],i=[],s=[];for(const o of e.ignore)o&&(o[0]!=="!"||o[1]==="("?i.push(tt(o,e,r,!0)):s.push(o.slice(1)));for(const o of t)o&&(o[0]!=="!"||o[1]==="("?n.push(tt(o,e,r,!1)):(o[1]!=="!"||o[2]==="(")&&i.push(tt(o.slice(1),e,r,!0)));return{match:n,ignore:i,unignore:s}}c(Wr,"gt");R(Wr,"xt");k(Wr,"St");ie(Wr,"processPatterns");function Kr(e,t){const r=e.cwd,n={root:r,depthOffset:0},i=Wr(e,t,n);e.debug&&Ie("internal processing patterns:",i);const{absolute:s,caseSensitiveMatch:o,debug:a,dot:u,followSymbolicLinks:p,onlyDirectories:l}=e,g=n.root.replace(di,""),y={dot:u,nobrace:e.braceExpansion===!1,nocase:!o,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},m=i.unignore.length>0,S=m?Ne(i.unignore,y):void 0,w=m?Ht(i.unignore,y):void 0,T=Ne(i.match,{...y,ignore:i.ignore,onIgnore:S?_=>S(_.output)&&Ne.constants.UNIGNORE:void 0}),ee=Ne(i.ignore,y),F=Ht(i.match,y),W=Gt(r,g,s),b=s?W:Gt(r,g,!0),E=i.match.length>0&&i.match.every(_=>_==="**"||_==="**/*"),f=i.ignore.length>0||m||!E?(_,P)=>{const M=b(P,!0);return M==="."||w&&w(M)?!1:!F(M)||ee(M)}:void 0;let j;e.deep!==void 0&&(j=Math.round(e.deep-n.depthOffset));const C=new Rl({filters:[a?(_,P)=>{const M=W(_,P),ne=T(M);return ne&&Ie(`matched ${M}`),ne}:(_,P)=>{const M=W(_,P);return T(M)}],exclude:a&&f?(_,P)=>{const M=f(_,P);return Ie(`${M?"skipped":"crawling"} ${P}`),M}:f,fs:e.fs,pathSeparator:"/",relativePaths:!s,resolvePaths:s,includeBasePath:s,resolveSymlinks:p,excludeSymlinks:!p,excludeFiles:l,includeDirs:l||!e.onlyFiles,maxDepth:j,signal:e.signal}).crawl(g);return e.debug&&Ie("internal properties:",{...n,root:g}),[C,r!==g&&!s&&Ur(r,g)]}c(Kr,"dt");R(Kr,"At");k(Kr,"vt");ie(Kr,"buildCrawler");function rr(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]=t(e[r]);return e}c(rr,"z$3");R(rr,"N");k(rr,"U");ie(rr,"formatPaths");const Wl={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Xr(e){const t={...Wl,...e};return t.cwd=(t.cwd instanceof URL?el(t.cwd):li(t.cwd)).replace(di,"/"),t.ignore=tr(t.ignore),t.fs&&(t.fs={readdir:t.fs.readdir||Qc,readdirSync:t.fs.readdirSync||zc,realpath:t.fs.realpath||Xc,realpathSync:t.fs.realpathSync||Kc,stat:t.fs.stat||Wc,statSync:t.fs.statSync||qc}),t.debug&&Ie("globbing with options:",t),t}c(Xr,"yt");R(Xr,"_t");k(Xr,"pt");ie(Xr,"getOptions");function nr(e,t={}){var r;if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=Ml(e)||typeof e=="string",i=tr((r=n?e:e.patterns)!==null&&r!==void 0?r:"**/*"),s=Xr(n?t:e);return i.length>0?Kr(s,i):[]}c(nr,"G$3");R(nr,"Q");k(nr,"G");ie(nr,"getCrawler");async function zr(e,t){const[r,n]=nr(e,t);return r?rr(await r.withPromise(),n):[]}c(zr,"mt");R(zr,"Ie");k(zr,"bt");ie(zr,"glob");function Qr(e,t){const[r,n]=nr(e,t);return r?rr(r.sync(),n):[]}c(Qr,"vt");R(Qr,"Le");k(Qr,"xt");ie(Qr,"globSync");var Kl=Object.defineProperty,Xl=c((e,t)=>Kl(e,"name",{value:t,configurable:!0}),"r$3"),zl=Object.defineProperty,Ql=Xl((e,t)=>zl(e,"name",{value:t,configurable:!0}),"r"),Vl=Object.defineProperty,Yl=Ql((e,t)=>Vl(e,"name",{value:t,configurable:!0}),"r");Yl(async(e,t)=>await zr(e,t),"glob");var Jl=Object.defineProperty,Zl=c((e,t)=>Jl(e,"name",{value:t,configurable:!0}),"r$2"),ef=Object.defineProperty,tf=Zl((e,t)=>ef(e,"name",{value:t,configurable:!0}),"a"),rf=Object.defineProperty,nf=tf((e,t)=>rf(e,"name",{value:t,configurable:!0}),"n");const $y=nf((e,t)=>Qr(e,t),"globSync");var of=Object.defineProperty,Gn=c((e,t)=>of(e,"name",{value:t,configurable:!0}),"o$f"),sf=Object.defineProperty,Vr=Gn((e,t)=>sf(e,"name",{value:t,configurable:!0}),"c"),hn,wo;function Un(){if(wo)return hn;wo=1;var e=Object.defineProperty,t=Vr((r,n)=>e(r,"name",{value:n,configurable:!0}),"l");/*!
5
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
6
+ *
7
+ * Copyright (c) 2014-2016, Jon Schlinkert.
8
+ * Licensed under the MIT License.
9
+ */return hn=t(function(r){if(typeof r!="string"||r==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(n[2])return!0;r=r.slice(n.index+n[0].length)}return!1},"isExtglob"),hn}c(Un,"h$8");Gn(Un,"q");Vr(Un,"requireIsExtglob");var yn,So;function Yr(){if(So)return yn;So=1;var e=Object.defineProperty,t=Vr((o,a)=>e(o,"name",{value:a,configurable:!0}),"x");/*!
10
+ * is-glob <https://github.com/jonschlinkert/is-glob>
11
+ *
12
+ * Copyright (c) 2014-2017, Jon Schlinkert.
13
+ * Released under the MIT License.
14
+ */var r=Un(),n={"{":"}","(":")","[":"]"},i=t(function(o){if(o[0]==="!")return!0;for(var a=0,u=-2,p=-2,l=-2,g=-2,y=-2;a<o.length;){if(o[a]==="*"||o[a+1]==="?"&&/[\].+)]/.test(o[a])||p!==-1&&o[a]==="["&&o[a+1]!=="]"&&(p<a&&(p=o.indexOf("]",a)),p>a&&(y===-1||y>p||(y=o.indexOf("\\",a),y===-1||y>p)))||l!==-1&&o[a]==="{"&&o[a+1]!=="}"&&(l=o.indexOf("}",a),l>a&&(y=o.indexOf("\\",a),y===-1||y>l))||g!==-1&&o[a]==="("&&o[a+1]==="?"&&/[:!=]/.test(o[a+2])&&o[a+3]!==")"&&(g=o.indexOf(")",a),g>a&&(y=o.indexOf("\\",a),y===-1||y>g))||u!==-1&&o[a]==="("&&o[a+1]!=="|"&&(u<a&&(u=o.indexOf("|",a)),u!==-1&&o[u+1]!==")"&&(g=o.indexOf(")",u),g>u&&(y=o.indexOf("\\",u),y===-1||y>g))))return!0;if(o[a]==="\\"){var m=o[a+1];a+=2;var S=n[m];if(S){var w=o.indexOf(S,a);w!==-1&&(a=w+1)}if(o[a]==="!")return!0}else a++}return!1},"strictCheck"),s=t(function(o){if(o[0]==="!")return!0;for(var a=0;a<o.length;){if(/[*?{}()[\]]/.test(o[a]))return!0;if(o[a]==="\\"){var u=o[a+1];a+=2;var p=n[u];if(p){var l=o.indexOf(p,a);l!==-1&&(a=l+1)}if(o[a]==="!")return!0}else a++}return!1},"relaxedCheck");return yn=t(function(o,a){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var u=i;return a&&a.strict===!1&&(u=s),u(o)},"isGlob"),yn}c(Yr,"y$9");Gn(Yr,"G");Vr(Yr,"requireIsGlob");var af=Object.defineProperty,wr=c((e,t)=>af(e,"name",{value:t,configurable:!0}),"s$c"),uf=Object.defineProperty,rt=wr((e,t)=>uf(e,"name",{value:t,configurable:!0}),"t");const cf=H(import.meta.url),At=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,bi=rt(e=>{if(typeof At<"u"&&At.versions&&At.versions.node){const[t,r]=At.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return At.getBuiltinModule(e)}return cf(e)},"__cjs_getBuiltinModule"),lf=bi("path"),ff=bi("os");var $n,Eo;function qn(){if(Eo)return $n;Eo=1;var e=Object.defineProperty,t=rt((l,g)=>e(l,"name",{value:g,configurable:!0}),"n"),r=Yr(),n=lf.posix.dirname,i=ff.platform()==="win32",s="/",o=/\\/g,a=/\\([!*?|[\](){}])/g;$n=t(function(l,g){var y=Object.assign({flipBackslashes:!0},g);y.flipBackslashes&&i&&l.indexOf(s)<0&&(l=l.replace(o,s)),u(l)&&(l+=s),l+="a";do l=n(l);while(p(l));return l.replace(a,"$1")},"globParent");function u(l){var g=l.slice(-1),y;switch(g){case"}":y="{";break;case"]":y="[";break;default:return!1}var m=l.indexOf(y);return m<0?!1:l.slice(m+1,-1).includes(s)}c(u,"c"),wr(u,"c"),rt(u,"isEnclosure"),t(u,"isEnclosure");function p(l){return/\([^()]+$/.test(l)||l[0]==="{"||l[0]==="["||/[^\\][{[]/.test(l)?!0:r(l)}return c(p,"f"),wr(p,"f"),rt(p,"isGlobby"),t(p,"isGlobby"),$n}c(qn,"d$c");wr(qn,"$");rt(qn,"requireGlobParent");var pf=qn();const gf=ut(pf);var df=Object.defineProperty,hf=rt((e,t)=>df(e,"name",{value:t,configurable:!0}),"e");hf((e,t)=>gf(e,t),"globParent");var yf=Object.defineProperty,mi=c((e,t)=>yf(e,"name",{value:t,configurable:!0}),"t$9"),$f=Object.defineProperty,Wn=mi((e,t)=>$f(e,"name",{value:t,configurable:!0}),"s");const bf=H(import.meta.url),_t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,mf=Wn(e=>{if(typeof _t<"u"&&_t.versions&&_t.versions.node){const[t,r]=_t.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return _t.getBuiltinModule(e)}return bf(e)},"__cjs_getBuiltinModule"),{access:vf}=mf("node:fs/promises");var Of=Object.defineProperty,wf=Wn((e,t)=>Of(e,"name",{value:t,configurable:!0}),"o");async function xe(e,t=nt){X(e),e=I(e);try{return await vf(e,t),!0}catch{return!1}}c(xe,"i$e");mi(xe,"d");Wn(xe,"m");wf(xe,"isAccessible");var Sf=Object.defineProperty,vi=c((e,t)=>Sf(e,"name",{value:t,configurable:!0}),"t$8"),Ef=Object.defineProperty,Kn=vi((e,t)=>Ef(e,"name",{value:t,configurable:!0}),"t");const Pf=H(import.meta.url),xt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Af=Kn(e=>{if(typeof xt<"u"&&xt.versions&&xt.versions.node){const[t,r]=xt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return xt.getBuiltinModule(e)}return Pf(e)},"__cjs_getBuiltinModule"),{accessSync:_f}=Af("node:fs");var xf=Object.defineProperty,jf=Kn((e,t)=>xf(e,"name",{value:t,configurable:!0}),"o");function me(e,t=nt){X(e),e=I(e);try{return _f(e,t),!0}catch{return!1}}c(me,"i$d");vi(me,"d");Kn(me,"m");jf(me,"isAccessibleSync");var Tf=Object.defineProperty,kf=c((e,t)=>Tf(e,"name",{value:t,configurable:!0}),"a$f"),Rf=Object.defineProperty,Cf=kf((e,t)=>Rf(e,"name",{value:t,configurable:!0}),"e"),Mf=Yr();const Nf=ut(Mf);var Bf=Object.defineProperty,Lf=Cf((e,t)=>Bf(e,"name",{value:t,configurable:!0}),"s");const by=Lf((e,t)=>Nf(e,t),"isGlob");var Df=Object.defineProperty,Ff=c((e,t)=>Df(e,"name",{value:t,configurable:!0}),"c$d"),If=Object.defineProperty,Hf=Ff((e,t)=>If(e,"name",{value:t,configurable:!0}),"o"),Gf=Object.defineProperty,Oi=Hf((e,t)=>Gf(e,"name",{value:t,configurable:!0}),"i");Oi((e,t,r)=>{const n=Ne(t,r);return Array.isArray(e)?e.some(i=>n(i)):n(e)},"match");Oi((e,t)=>{const r=Ne(e,t);return n=>r(n)},"matcher");var Uf=Object.defineProperty,wi=c((e,t)=>Uf(e,"name",{value:t,configurable:!0}),"v$9"),qf=Object.defineProperty,ft=wi((e,t)=>qf(e,"name",{value:t,configurable:!0}),"i");const Wf=H(import.meta.url),Ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Si=ft(e=>{if(typeof Ze<"u"&&Ze.versions&&Ze.versions.node){const[t,r]=Ze.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ze.getBuiltinModule(e)}return Wf(e)},"__cjs_getBuiltinModule"),{cwd:Jr}=Ze,{mkdir:Kf,rename:Xf,copyFile:zf,unlink:Qf}=Si("node:fs/promises"),{mkdirSync:Vf,renameSync:Yf,copyFileSync:Jf,unlinkSync:Zf}=Si("node:fs");var ep=Object.defineProperty,Ei=ft((e,t)=>ep(e,"name",{value:t,configurable:!0}),"o");let tp=class extends Error{static{c(this,"V")}static{wi(this,"O")}static{ft(this,"a")}static{Ei(this,"SameDirectoryError")}constructor(t,r){super(`Source directory "${ae(t)}" does not match destination directory "${ae(r)}"`),this.name="SameDirectoryError"}};const Pi=Ei((e,t)=>{if(!e||!t)throw new Error("Source and destination paths must not be empty");if(ae(e)!==ae(t))throw new tp(e,t)},"validateSameDirectory");var rp=Object.defineProperty,np=ft((e,t)=>rp(e,"name",{value:t,configurable:!0}),"m$1");const Ai=np(async(e,t,{cwd:r,directoryMode:n,overwrite:i,validateDirectory:s})=>{if(r&&(e=ue(r,e),t=ue(r,t)),s&&Pi(e,t),!i&&await xe(t))throw new Error(`The destination file exists: ${t}`);await Kf(ae(t),{mode:n,recursive:!0});try{await Xf(e,t)}catch(o){if(o.code==="EXDEV")await zf(e,t),await Qf(e);else throw o}},"internalMoveFile");var op=Object.defineProperty,ip=ft((e,t)=>op(e,"name",{value:t,configurable:!0}),"m");const _i=ip((e,t,{cwd:r,directoryMode:n,overwrite:i,validateDirectory:s})=>{if(r&&(e=ue(r,e),t=ue(r,t)),s&&Pi(e,t),!i&&me(t))throw new Error(`The destination file exists: ${t}`);Vf(ae(t),{mode:n,recursive:!0});try{Yf(e,t)}catch(o){if(o.code==="EXDEV")Jf(e,t),Zf(e);else throw o}},"internalMoveFileSync");var sp=Object.defineProperty,Zr=ft((e,t)=>sp(e,"name",{value:t,configurable:!0}),"i");Zr(async(e,t,r={})=>{const n={overwrite:!0,validateDirectory:!1,...r,cwd:r.cwd?I(r.cwd):Jr()};await Ai(e,t,n)},"move");Zr((e,t,r)=>{const n={overwrite:!0,validateDirectory:!1,...r};n.cwd=n.cwd?I(n.cwd):Jr(),_i(e,t,n)},"moveSync");Zr(async(e,t,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?I(n.cwd):Jr(),await Ai(e,t,n)},"rename");Zr((e,t,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?I(n.cwd):Jr(),_i(e,t,n)},"renameSync");var ap=Object.defineProperty,xi=c((e,t)=>ap(e,"name",{value:t,configurable:!0}),"t$6"),up=Object.defineProperty,ji=xi((e,t)=>up(e,"name",{value:t,configurable:!0}),"t"),cp=Object.defineProperty,lp=ji((e,t)=>cp(e,"name",{value:t,configurable:!0}),"o");let An=class extends Error{static{c(this,"c")}static{xi(this,"i")}static{ji(this,"n")}static{lp(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 fp=Object.defineProperty,pp=c((e,t)=>fp(e,"name",{value:t,configurable:!0}),"f$a"),gp=Object.defineProperty,Ti=pp((e,t)=>gp(e,"name",{value:t,configurable:!0}),"i");const dp=H(import.meta.url),jt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ki=Ti(e=>{if(typeof jt<"u"&&jt.versions&&jt.versions.node){const[t,r]=jt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return jt.getBuiltinModule(e)}return dp(e)},"__cjs_getBuiltinModule"),{readFile:hp}=ki("node:fs/promises"),{unzip:yp,brotliDecompress:$p}=ki("node:zlib");var bp=Object.defineProperty,Ri=Ti((e,t)=>bp(e,"name",{value:t,configurable:!0}),"n");const mp={brotli:$p,gzip:yp,none:Ri((e,t)=>{t(null,e)},"none")},vp=Ri(async(e,t)=>{if(X(e),e=I(e),!await xe(e))throw new An(`unable to read the non-accessible file: ${e}`);if(!await xe(e,Er))throw new Error(`Unable to read the non-readable file: ${e}`);const{buffer:r,compression:n,encoding:i,flag:s}=t??{};return await hp(e,s?{encoding:i,flag:s}:{encoding:i}).then(async o=>await new Promise((a,u)=>{mp[n??"none"](o,(p,l)=>{p?u(p):a(r?l:l.toString())})})).catch(o=>{throw o})},"readFile");var Op=Object.defineProperty,wp=c((e,t)=>Op(e,"name",{value:t,configurable:!0}),"a$d"),Sp=Object.defineProperty,Ci=wp((e,t)=>Sp(e,"name",{value:t,configurable:!0}),"i");const Ep=H(import.meta.url),Tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Mi=Ci(e=>{if(typeof Tt<"u"&&Tt.versions&&Tt.versions.node){const[t,r]=Tt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Tt.getBuiltinModule(e)}return Ep(e)},"__cjs_getBuiltinModule"),{readFileSync:Pp}=Mi("node:fs"),{unzipSync:Ap,brotliDecompressSync:_p}=Mi("node:zlib");var xp=Object.defineProperty,Ni=Ci((e,t)=>xp(e,"name",{value:t,configurable:!0}),"r");const jp={brotli:_p,gzip:Ap,none:Ni(e=>e,"none")},Tp=Ni((e,t)=>{if(X(e),e=I(e),!me(e))throw new An(`unable to read the non-accessible file: ${e}`);if(!me(e,Er))throw new An(`invalid access to read file at: ${e}`);const{buffer:r,compression:n,encoding:i,flag:s}=t??{},o=Pp(e,s?{encoding:i,flag:s}:{encoding:i}),a=jp[n??"none"],u=a(o);return r?u:u.toString()},"readFileSync");var kp=Object.defineProperty,Rp=c((e,t)=>kp(e,"name",{value:t,configurable:!0}),"x$2"),Cp=Object.defineProperty,Bi=Rp((e,t)=>Cp(e,"name",{value:t,configurable:!0}),"$"),Mp=Object.defineProperty,Np=Bi((e,t)=>Mp(e,"name",{value:t,configurable:!0}),"A"),Bp=Object.defineProperty,Xn=Np((e,t)=>Bp(e,"name",{value:t,configurable:!0}),"$"),Lp=Object.defineProperty,Dp=Xn((e,t)=>Lp(e,"name",{value:t,configurable:!0}),"r$1");const Fp=Dp(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
15
+ `),"normalizeLF"),Ip=globalThis.process??Object.create(null),Po={versions:{}},Ao=new Proxy(Ip,{get(e,t){if(t in e)return e[t];if(t in Po)return Po[t]}});var Hp=Object.defineProperty,Gp=Xn((e,t)=>Hp(e,"name",{value:t,configurable:!0}),"b");const Up=Gp((e,t,r,n)=>{const i={column:0,line:-1,...e.start},s={...i,...e.end},o=i.line,a=i.column,u=s.line,p=s.column;let l=Math.max(o-(r+1),0),g=Math.min(t.length,u+n);o===-1&&(l=0),u===-1&&(g=t.length);const y=u-o,m={};if(y)for(let S=0;S<=y;S++){const w=S+o;if(!a)m[w]=!0;else if(S===0){const T=t[w-1]?.length;m[w]=[a,(T??0)-a+1]}else if(S===y)m[w]=[0,p];else{const T=t[w-S]?.length;m[w]=[0,T]}}else a===p?m[o]=a?[a,0]:!0:m[o]=[a,(p??0)-(a??0)];return{end:g,markerLines:m,start:l}},"getMarkerLines");var qp=Object.defineProperty,dr=Xn((e,t)=>qp(e,"name",{value:t,configurable:!0}),"t");const Wp=Ao.platform==="win32"&&!Ao.env?.WT_SESSION?">":"❯",Kp=dr((e,t,r)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:dr(S=>S,"gutter"),marker:dr(S=>S,"marker"),message:dr(S=>S,"message"),...r?.color}},i=typeof t.start.column=="number";let s=Fp(e).split(`
16
+ `);typeof n.tabWidth=="number"&&(s=s.map(S=>S.replaceAll(" "," ".repeat(n.tabWidth))));const{end:o,markerLines:a,start:u}=Up(t,s,n.linesAbove,n.linesBelow),p=String(o).length,{gutter:l,marker:g,message:y}=n.color;let m=s.slice(u,o).map((S,w)=>{const T=u+1+w,ee=a[T],F=` ${String(T)}`.slice(-p),W=!a[T+1],b=` ${F}${n.showGutter?" |":""}`;if(ee){let E="";if(Array.isArray(ee)){const f=S.replaceAll(/[^\t]/g," ").slice(0,Math.max(ee[0]-1,0)),j=ee[1]||1;E=[`
17
+ `,n.prefix+l(b.replaceAll(/\d/g," "))," ",f,g("^").repeat(j)].join(""),W&&n.message&&(E+=` ${y(n.message)}`)}return[n.prefix+g(Wp),l(b),S.length>0?` ${S}`:"",E].join("")}return`${n.prefix} ${l(b)}${S.length>0?` ${S}`:""}`}).join(`
18
+ `);return n.message&&!i&&(m=`${n.prefix+" ".repeat(p+1)+n.message}
19
+ ${m}`),m},"codeFrame");var Xp=Object.defineProperty,zp=Bi((e,t)=>Xp(e,"name",{value:t,configurable:!0}),"s"),Qp=Object.defineProperty,Vp=zp((e,t)=>Qp(e,"name",{value:t,configurable:!0}),"o"),Yp=Object.defineProperty,zn=Vp((e,t)=>Yp(e,"name",{value:t,configurable:!0}),"l");const _o=zn((e,t)=>{let r=0,n=t.length-2;for(;r<n;){const i=r+(n-r>>1);if(e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return r},"binarySearch"),Jp=/\n|\r(?!\n)/,Zp=zn(e=>e.split(Jp).reduce((t,r)=>(t.push(t.at(-1)+r.length+1),t),[0]),"getLineStartIndexes"),eg=zn((e,t,r)=>{const n=r?.skipChecks??!1;if(!n&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!n&&(typeof t!="number"||typeof e=="string"&&t>=e.length||Array.isArray(e)&&t+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const s=Zp(e),o=_o(t,s);return{column:t-s[o]+1,line:o+1}}const i=_o(t,e);return{column:t-e[i]+1,line:i+1}},"indexToLineColumn");var tg=Object.defineProperty,Li=c((e,t)=>tg(e,"name",{value:t,configurable:!0}),"t$5"),rg=Object.defineProperty,Di=Li((e,t)=>rg(e,"name",{value:t,configurable:!0}),"t"),ng=Object.defineProperty,og=Di((e,t)=>ng(e,"name",{value:t,configurable:!0}),"i");let ig=class extends Error{static{c(this,"m")}static{Li(this,"m")}static{Di(this,"t")}static{og(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?`
20
+
21
+ ${this.codeFrame}
22
+ `:""}`}set message(t){this.#e=t}};var sg=Object.defineProperty,Fi=c((e,t)=>sg(e,"name",{value:t,configurable:!0}),"u$7"),ag=Object.defineProperty,Ii=Fi((e,t)=>ag(e,"name",{value:t,configurable:!0}),"s"),ug=Object.defineProperty,or=Ii((e,t)=>ug(e,"name",{value:t,configurable:!0}),"a");const cg=or(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),lg=or((e,t,r)=>Kp(e,{start:t},{tabWidth:!1,...r}),"generateCodeFrame"),fg=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,pg=or((e,t)=>{const r=fg.exec(t);if(!r)return;const[,n,i,s]=r;if(i&&s)return{column:Number(s),line:Number(i)};let o=Number(n);return o===e.length&&(o=e.length-1),eg(e,o)},"getErrorLocation"),gg=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,dg=or(e=>e.replace(gg,(t,r,n)=>`"${n}"(${cg(n)})`),"addCodePointToUnexpectedToken");function ir(e,t,r,n){typeof t=="string"&&(typeof r=="object"&&(n=r),r=t,t=void 0);let i;try{return JSON.parse(e,t)}catch(a){i=a.message}let s;e?(s=pg(e,i),i=dg(i)):i+=" while parsing empty string";const o=new ig(i);throw o.fileName=r,s&&(o.codeFrame=lg(e,s,n)),o}c(ir,"d$8");Fi(ir,"w");Ii(ir,"E");or(ir,"parseJson");var hg=Object.defineProperty,Hi=c((e,t)=>hg(e,"name",{value:t,configurable:!0}),"t$4"),yg=Object.defineProperty,Gi=Hi((e,t)=>yg(e,"name",{value:t,configurable:!0}),"t"),$g=Object.defineProperty,bg=Gi((e,t)=>$g(e,"name",{value:t,configurable:!0}),"i");async function Qn(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=await vp(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:s,color:o}=r??{};return typeof s=="function"&&(i=s(i)),ir(i,t,I(e),{color:o})}c(Qn,"a$b");Hi(Qn,"l");Gi(Qn,"c");bg(Qn,"readJson");var mg=Object.defineProperty,Ui=c((e,t)=>mg(e,"name",{value:t,configurable:!0}),"t$3"),vg=Object.defineProperty,qi=Ui((e,t)=>vg(e,"name",{value:t,configurable:!0}),"t"),Og=Object.defineProperty,wg=qi((e,t)=>Og(e,"name",{value:t,configurable:!0}),"r");function en(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=Tp(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:s,color:o}=r??{};return typeof s=="function"&&(i=s(i)),ir(i,t,I(e),{color:o})}c(en,"n$7");Ui(en,"s");qi(en,"J");wg(en,"readJsonSync");var Sg=Object.defineProperty,Eg=c((e,t)=>Sg(e,"name",{value:t,configurable:!0}),"a$a"),Pg=Object.defineProperty,Ag=Eg((e,t)=>Pg(e,"name",{value:t,configurable:!0}),"t"),_g=Object.defineProperty,xg=Ag((e,t)=>_g(e,"name",{value:t,configurable:!0}),"t");const tn=xg(e=>{const t={force:!0,recursive:!0};return e?.maxRetries!==void 0&&(t.maxRetries=e.maxRetries),e?.retryDelay!==void 0&&(t.retryDelay=e.retryDelay),t},"buildRmOptions");var jg=Object.defineProperty,Tg=c((e,t)=>jg(e,"name",{value:t,configurable:!0}),"i$7"),kg=Object.defineProperty,Wi=Tg((e,t)=>kg(e,"name",{value:t,configurable:!0}),"i");const Rg=H(import.meta.url),kt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ki=Wi(e=>{if(typeof kt<"u"&&kt.versions&&kt.versions.node){const[t,r]=kt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return kt.getBuiltinModule(e)}return Rg(e)},"__cjs_getBuiltinModule"),{existsSync:Cg}=Ki("node:fs"),{mkdir:Mg,readdir:Ng,rm:Bg}=Ki("node:fs/promises");var Lg=Object.defineProperty,Dg=Wi((e,t)=>Lg(e,"name",{value:t,configurable:!0}),"o");const wy=Dg(async(e,t)=>{if(X(e),!Cg(e)){await Mg(e,{recursive:!0});return}const r=await Ng(e),n=tn(t);for(const i of r)await Bg(Kt(I(e),i),n)},"emptyDir");var Fg=Object.defineProperty,Ig=c((e,t)=>Fg(e,"name",{value:t,configurable:!0}),"i$6"),Hg=Object.defineProperty,Xi=Ig((e,t)=>Hg(e,"name",{value:t,configurable:!0}),"s");const Gg=H(import.meta.url),Rt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ug=Xi(e=>{if(typeof Rt<"u"&&Rt.versions&&Rt.versions.node){const[t,r]=Rt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Rt.getBuiltinModule(e)}return Gg(e)},"__cjs_getBuiltinModule"),{existsSync:qg,mkdirSync:Wg,readdirSync:Kg,rmSync:Xg}=Ug("node:fs");var zg=Object.defineProperty,Qg=Xi((e,t)=>zg(e,"name",{value:t,configurable:!0}),"o");Qg((e,t)=>{if(X(e),!qg(e)){Wg(e,{recursive:!0});return}const r=tn(t);for(const n of Kg(e))Xg(Kt(I(e),n),r)},"emptyDirSync");var Vg=Object.defineProperty,Yg=c((e,t)=>Vg(e,"name",{value:t,configurable:!0}),"i$5"),Jg=Object.defineProperty,zi=Yg((e,t)=>Jg(e,"name",{value:t,configurable:!0}),"s");const Zg=H(import.meta.url),Ct=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ed=zi(e=>{if(typeof Ct<"u"&&Ct.versions&&Ct.versions.node){const[t,r]=Ct.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ct.getBuiltinModule(e)}return Zg(e)},"__cjs_getBuiltinModule"),{unlink:td,rm:rd}=ed("node:fs/promises");var nd=Object.defineProperty,od=zi((e,t)=>nd(e,"name",{value:t,configurable:!0}),"i");od(async(e,t={})=>{X(e);try{await td(e)}catch{}try{await rd(e,tn(t))}catch{}},"remove");var id=Object.defineProperty,sd=c((e,t)=>id(e,"name",{value:t,configurable:!0}),"i$4"),ad=Object.defineProperty,Qi=sd((e,t)=>ad(e,"name",{value:t,configurable:!0}),"s");const ud=H(import.meta.url),Mt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cd=Qi(e=>{if(typeof Mt<"u"&&Mt.versions&&Mt.versions.node){const[t,r]=Mt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Mt.getBuiltinModule(e)}return ud(e)},"__cjs_getBuiltinModule"),{unlinkSync:ld,rmSync:fd}=cd("node:fs");var pd=Object.defineProperty,gd=Qi((e,t)=>pd(e,"name",{value:t,configurable:!0}),"o");gd((e,t={})=>{X(e);try{ld(e)}catch{}try{fd(e,tn(t))}catch{}},"removeSync");var dd=Object.defineProperty,hd=c((e,t)=>dd(e,"name",{value:t,configurable:!0}),"g$2"),yd=Object.defineProperty,$d=hd((e,t)=>yd(e,"name",{value:t,configurable:!0}),"g");H(import.meta.url);const bd=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:md}=bd;var vd=Object.defineProperty,qe=$d((e,t)=>vd(e,"name",{value:t,configurable:!0}),"l");const Qe="unnamed",Od=128,xo={'"':"ˮ","*":"⁎","/":"⁄",":":"꞉","<":"‹",">":"›","?":"ʔ","\\":"∖","|":"ǀ"},wd=/[\u0000-\u001F\u0080-\u009F]/g,Sd=/^(?:\.+[/\\]+)+|^\.+$/g,_n=/^(?:con|prn|aux|nul|com\d|lpt\d)$/i,Ed=/[<>:"/\\|?*]/g,Pd=/\//g,Ut=new Set([" "," ","."]),sr=qe((e,t)=>t>0&&t<e.length-1,"hasExtension"),Ad=qe((e,t)=>{const r=e.lastIndexOf(".");if(!sr(e,r))return e.slice(0,t);const n=e.slice(0,r),i=e.slice(r),s=t-i.length;return s>0?`${n.slice(0,s)}${i}`:e.slice(0,t)},"truncateWithExtension"),jo=qe(e=>{let t=0,r=e.length;for(;t<r;){const n=e[t];if(n===void 0||!Ut.has(n))break;t+=1}for(;r>t;){const n=e[r-1];if(n===void 0||!Ut.has(n))break;r-=1}return e.slice(t,r)},"trimSpacesAndPeriods"),_d=qe(e=>{const t=e.lastIndexOf(".");if(sr(e,t)){const n=e.slice(0,t),i=e.slice(t);let s=n;for(;s.length>0;){const o=s.at(-1);if(o===void 0||!Ut.has(o))break;s=s.slice(0,-1)}return s.length===0?i.slice(1):`${s}${i}`}let r=e;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!Ut.has(n))break;r=r.slice(0,-1)}return r},"cleanWindowsName"),xd=qe(e=>{const t=e.lastIndexOf(".");if(sr(e,t))return!1;if(_n.test(e))return!0;let r=e;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!Ut.has(n))break;r=r.slice(0,-1)}return!!(r.length>0&&_n.test(r))},"isWindowsReservedName"),jd=qe(e=>{const t=e.lastIndexOf(".");if(sr(e,t)){const i=e.slice(0,t),s=e.slice(t),o=jo(i);return o.length===0?void 0:`${o}${s}`}const r=e.trim();if(r.length>0&&r[0]==="."&&r.length<=5&&r.indexOf(".",1)===-1)return;const n=jo(e);if(n.length!==0)return n},"cleanFat32Name"),Td=qe(e=>{const t=e?.filesystem??"auto";return t==="auto"?md==="win32"?"win32":"unix":t==="darwin"?"unix":t},"getFileSystemType");qe((e,t)=>{if(typeof e!="string"||e.length===0)return Qe;const r=Td(t);let n=e;if(n=n.replace(wd,""),n.length===0||(n=n.replace(Sd,""),n.length===0))return Qe;if(r==="win32"||r==="fat32"){const s=n.lastIndexOf(".");if(!sr(n,s)&&_n.test(n))return Qe}if(n=r==="win32"||r==="fat32"?n.replaceAll(Ed,s=>xo[s]??""):n.replaceAll(Pd,xo["/"]),n=n.trim(),(r==="win32"||r==="fat32")&&(xd(n)||r==="win32"&&(n=_d(n),n.length===0)))return Qe;if(r==="fat32"){const s=jd(n);if(s===void 0)return Qe;n=s}if(n.length===0)return Qe;const i=t?.maxLength??Od;return n.length>i&&(n=Ad(n,i),n.length===0)?Qe:n},"sanitize");var kd=Object.defineProperty,Rd=c((e,t)=>kd(e,"name",{value:t,configurable:!0}),"a$4"),Cd=Object.defineProperty,Md=Rd((e,t)=>Cd(e,"name",{value:t,configurable:!0}),"t"),Nd=Object.defineProperty,Bd=Md((e,t)=>Nd(e,"name",{value:t,configurable:!0}),"e");const Vi=Bd(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 Ld=Object.defineProperty,Dd=c((e,t)=>Ld(e,"name",{value:t,configurable:!0}),"t"),Fd=Object.defineProperty,Id=Dd((e,t)=>Fd(e,"name",{value:t,configurable:!0}),"r"),Hd=Object.defineProperty,Gd=Id((e,t)=>Hd(e,"name",{value:t,configurable:!0}),"f");const Ud=new TextEncoder,Yi=Gd(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return Ud.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 qd=Object.defineProperty,Wd=c((e,t)=>qd(e,"name",{value:t,configurable:!0}),"m$3"),Kd=Object.defineProperty,Ji=Wd((e,t)=>Kd(e,"name",{value:t,configurable:!0}),"s");const Xd=H(import.meta.url),Nt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,zd=Ji(e=>{if(typeof Nt<"u"&&Nt.versions&&Nt.versions.node){const[t,r]=Nt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Nt.getBuiltinModule(e)}return Xd(e)},"__cjs_getBuiltinModule"),{mkdir:Qd,writeFile:Vd,stat:Yd,rename:To,chown:Jd,chmod:Zd,unlink:eh}=zd("node:fs/promises");var th=Object.defineProperty,rh=Ji((e,t)=>th(e,"name",{value:t,configurable:!0}),"d");const nh=rh(async(e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},X(e),Vi(t),e=I(e);const n=`${e}.tmp`;try{const i=await xe(e,nt);if(!i&&r.recursive){const o=ae(e);await xe(o,nt)||await Qd(o,{recursive:!0})}let s;if(await Vd(n,Yi(t),{encoding:r.encoding,flag:r.flag}),i&&!r.overwrite&&(s=await Yd(e),r.chown??={gid:s.gid,uid:s.uid},await To(e,`${e}.bak`)),r.chown)try{await Jd(n,r.chown.uid,r.chown.gid)}catch{}await Zd(n,s&&!r.mode?s.mode:r.mode??438),await To(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{await xe(n)&&await eh(`${e}.tmp`)}},"writeFile");var oh=Object.defineProperty,ih=c((e,t)=>oh(e,"name",{value:t,configurable:!0}),"m$2"),sh=Object.defineProperty,Zi=ih((e,t)=>sh(e,"name",{value:t,configurable:!0}),"s");const ah=H(import.meta.url),Bt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,uh=Zi(e=>{if(typeof Bt<"u"&&Bt.versions&&Bt.versions.node){const[t,r]=Bt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Bt.getBuiltinModule(e)}return ah(e)},"__cjs_getBuiltinModule"),{mkdirSync:ch,writeFileSync:lh,statSync:fh,renameSync:ko,chownSync:ph,chmodSync:gh,unlinkSync:dh}=uh("node:fs");var hh=Object.defineProperty,yh=Zi((e,t)=>hh(e,"name",{value:t,configurable:!0}),"f");const $h=yh((e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},X(e),Vi(t),e=I(e);const n=`${e}.tmp`;try{const i=me(e,nt);if(!i&&r.recursive){const o=ae(e);me(o,nt)||ch(o,{recursive:!0})}let s;if(lh(n,Yi(t),{encoding:r.encoding,flag:r.flag}),i&&!r.overwrite&&(s=fh(e),r.chown??={gid:s.gid,uid:s.uid},ko(e,`${e}.bak`)),r.chown)try{ph(n,r.chown.uid,r.chown.gid)}catch{}gh(n,s&&!r.mode?s.mode:r.mode??438),ko(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{me(n)&&dh(`${e}.tmp`)}},"writeFileSync");var bh=Object.defineProperty,We=c((e,t)=>bh(e,"name",{value:t,configurable:!0}),"i$1"),mh=Object.defineProperty,Ke=We((e,t)=>mh(e,"name",{value:t,configurable:!0}),"s"),vh=Object.defineProperty,Je=Ke((e,t)=>vh(e,"name",{value:t,configurable:!0}),"i");const Oh=/^(?:( )+|\t+)/,ar="space";function qt(e,t,r){return e&&t===ar&&r===1}c(qt,"d$1");We(qt,"g");Ke(qt,"I");Je(qt,"shouldIgnoreSingleSpace");function Wt(e,t){const r=new Map;let n=0,i,s;for(const o of e.split(/\n/g)){if(!o)continue;const a=o.match(Oh);if(a===null)n=0,i="";else{const u=a[0].length,p=a[1]?ar:"tab";if(qt(t,p,u))continue;p!==i&&(n=0),i=p;let l=1,g=0;const y=u-n;if(n=u,y===0)l=0,g=1;else{const S=Math.abs(y);if(qt(t,p,S))continue;s=rn(p,S)}const m=r.get(s);r.set(s,m===void 0?[1,0]:[m[0]+l,m[1]+g])}}return r}c(Wt,"p$1");We(Wt,"y");Ke(Wt,"h");Je(Wt,"makeIndentsMap");function rn(e,t){return(e===ar?"s":"t")+String(t)}c(rn,"b$2");We(rn,"v");Ke(rn,"m");Je(rn,"encodeIndentsKey");function nn(e){const t=e[0]==="s"?ar:"tab",r=Number(e.slice(1));return{type:t,amount:r}}c(nn,"v$1");We(nn,"M");Ke(nn,"_");Je(nn,"decodeIndentsKey");function on(e){let t,r=0,n=0;for(const[i,[s,o]]of e)(s>r||s===r&&o>n)&&(r=s,n=o,t=i);return t}c(on,"I");We(on,"S");Ke(on,"k");Je(on,"getMostUsedKey");function sn(e,t){return(e===ar?" ":" ").repeat(t)}c(sn,"h$1");We(sn,"k");Ke(sn,"D");Je(sn,"makeIndentString");function ur(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=Wt(e,!0);t.size===0&&(t=Wt(e,!1));const r=on(t);let n,i=0,s="";return r!==void 0&&({type:n,amount:i}=nn(r),s=sn(n,i)),{amount:i,type:n,indent:s}}c(ur,"M");We(ur,"x");Ke(ur,"C");Je(ur,"detectIndent");var wh=Object.defineProperty,Sh=c((e,t)=>wh(e,"name",{value:t,configurable:!0}),"a$2"),Eh=Object.defineProperty,es=Sh((e,t)=>Eh(e,"name",{value:t,configurable:!0}),"n");const Ph=H(import.meta.url),Lt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ah=es(e=>{if(typeof Lt<"u"&&Lt.versions&&Lt.versions.node){const[t,r]=Lt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Lt.getBuiltinModule(e)}return Ph(e)},"__cjs_getBuiltinModule"),{readFile:_h}=Ah("node:fs/promises");var xh=Object.defineProperty,jh=es((e,t)=>xh(e,"name",{value:t,configurable:!0}),"r");const Sy=jh(async(e,t,r={})=>{const{detectIndent:n,indent:i,replacer:s,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=i,p=`
23
+ `;if(await xe(e,Er))try{const g=await _h(e,"utf8");if(n){const{indent:y}=ur(g);u=y}p=g.endsWith(`
24
+ `)?`
25
+ `:""}catch(g){if(g.code!=="ENOENT")throw g}const l=o(t,s,u);await nh(e,`${l}${p}`,a)},"writeJson");var Th=Object.defineProperty,kh=c((e,t)=>Th(e,"name",{value:t,configurable:!0}),"a$1"),Rh=Object.defineProperty,ts=kh((e,t)=>Rh(e,"name",{value:t,configurable:!0}),"i");const Ch=H(import.meta.url),Dt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Mh=ts(e=>{if(typeof Dt<"u"&&Dt.versions&&Dt.versions.node){const[t,r]=Dt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Dt.getBuiltinModule(e)}return Ch(e)},"__cjs_getBuiltinModule"),{readFileSync:Nh}=Mh("node:fs");var Bh=Object.defineProperty,Lh=ts((e,t)=>Bh(e,"name",{value:t,configurable:!0}),"r");const Dh=Lh((e,t,r={})=>{const{detectIndent:n,indent:i,replacer:s,stringify:o=JSON.stringify,...a}={indent:" ",...r};let u=i,p=`
26
+ `;if(me(e,Er))try{const g=Nh(e,"utf8");if(n){const{indent:y}=ur(g);u=y}p=g.endsWith(`
27
+ `)?`
28
+ `:""}catch(g){if(g.code!=="ENOENT")throw g}const l=o(t,s,u);$h(e,`${l}${p}`,a)},"writeJsonSync");var Fh=Object.defineProperty,Ih=c((e,t)=>Fh(e,"name",{value:t,configurable:!0}),"u"),Hh=Object.defineProperty,rs=Ih((e,t)=>Hh(e,"name",{value:t,configurable:!0}),"c");const Gh=H(import.meta.url),Ft=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vn=rs(e=>{if(typeof Ft<"u"&&Ft.versions&&Ft.versions.node){const[t,r]=Ft.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ft.getBuiltinModule(e)}return Gh(e)},"__cjs_getBuiltinModule"),Uh=Vn("fs"),qh=Vn("os"),Wh=Vn("path");var Kh=Object.defineProperty,Xh=rs((e,t)=>Kh(e,"name",{value:t,configurable:!0}),"a"),zh=Object.defineProperty,an=Xh((e,t)=>zh(e,"name",{value:t,configurable:!0}),"s");const ns=an(e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e[r],i=n.toUpperCase();t+=n===i?n.toLowerCase():i}return t},"invertCase"),bn=new Map,Ro=an((e,t)=>{const r=Wh.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(r,""),!t.existsSync(ns(r))}finally{try{t.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),Qh=an((e,t,r)=>{try{return Ro(e,r)}catch(n){if(t===void 0)return Ro(qh.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback");an((e,t=Uh,r=!0)=>{const n=e??process.cwd();if(r&&bn.has(n))return bn.get(n);let i;const s=ns(n);return s!==n&&t.existsSync(n)?i=!t.existsSync(s):i=Qh(n,e,t),r&&bn.set(n,i),i},"isFsCaseSensitive");var Vh=Object.defineProperty,Yh=c((e,t)=>Vh(e,"name",{value:t,configurable:!0}),"o");const Ey=Yh((e,t,r,n)=>{try{let i={};const s=Kt(t,"keystore.json");n&&me(s)&&(i=en(s)),Object.hasOwn(i,e)||(i[e]=new Date().toISOString()),Dh(s,i,{overwrite:!0})}catch(i){r.debug({context:[i],message:i instanceof Error?i.message:String(i),prefix:"cache-key-store"})}},"createOrUpdateKeyStorage");export{Tp as $,$h as B,Sy as E,iy as F,ty as H,sy as I,ay as K,nh as M,yy as O,uy as P,cy as T,vp as a,Qn as b,xe as c,ir as d,ly as e,by as f,Te as g,$y as h,me as i,ry as j,hy as k,wy as l,Ey as m,en as n,fy as o,oy as p,ny as q,Xt as r,Tn as s,dy as u,Dh as w};
@@ -0,0 +1 @@
1
+ import{I as r,s as a}from"./oxcTransformPlugin-Dwvbw2jE-CIiF8y3S.js";export{r as oxcResolvePlugin,a as oxcTransformPlugin};