@prisma/cli-dev 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4QNO2WQL.js +31 -0
- package/dist/chunk-FON2L4R6.js +3 -0
- package/dist/chunk-M6TFCQLD.js +2 -0
- package/dist/chunk-OE4BCZ2F.js +11 -0
- package/dist/chunk-SZYQ5TDI.js +15 -0
- package/dist/chunk-ZPUL6EAC.js +30 -0
- package/dist/index.js +5 -112
- package/dist/list-URPVLN6C.js +5 -0
- package/dist/{prompt-AVJG6SAC.js → prompt-KJRFDAR5.js} +1 -1
- package/dist/remove-LXPTJUNN.js +9 -0
- package/dist/start-M7MH244V.js +13 -0
- package/dist/stop-LEO7ZSSO.js +5 -0
- package/package.json +5 -2
- package/dist/accelerate-6KR7K7Y5.js +0 -494
- package/dist/chunk-6CY7FTXB.js +0 -12
- package/dist/chunk-7LVVKN3Q.js +0 -2
- package/dist/chunk-C743SY2X.js +0 -2
- package/dist/chunk-IUA2KLPR.js +0 -34
- package/dist/chunk-J2EYU3K5.js +0 -2
- package/dist/chunk-MKAOBCJL.js +0 -2
- package/dist/chunk-PKHPXFYF.js +0 -4
- package/dist/chunk-VMZVNK7U.js +0 -2
- package/dist/chunk-VN3SER5K.js +0 -2
- package/dist/chunk-WAQNVDRS.js +0 -15
- package/dist/chunk-ZZ7TGN5J.js +0 -2
- package/dist/client-ROT4AZYN.js +0 -2
- package/dist/dist-44BN73S3.js +0 -24
- package/dist/dist-FF6JPL3Y.js +0 -2
- package/dist/dist-OWTPHSRP.js +0 -2
- package/dist/http-exception-IXDDLQOJ.js +0 -2
- package/dist/list-AF7WT6HT.js +0 -5
- package/dist/logger-5NORX5VG.js +0 -2
- package/dist/nodefs-MQZB2OFY.js +0 -2
- package/dist/opfs-ahp-W7WVBYAH.js +0 -4
- package/dist/pg_dump-F2HW5KLY.js +0 -3
- package/dist/proxy-signals-TJILVQAL.js +0 -2
- package/dist/remove-BWVQMMM4.js +0 -9
- package/dist/stop-XM5K7ZMT.js +0 -5
- package/dist/tiny-4VNDEAK3.js +0 -2
- package/dist/utility-5QZDATLM.js +0 -2
package/dist/index.js
CHANGED
|
@@ -1,116 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as he,b as xt,d as Ge,e as We,f as Ot,g as kr,h as Cr}from"./chunk-WAQNVDRS.js";import{a as Ar,c as at,d as Or}from"./chunk-PKHPXFYF.js";import{a as wr,b as Ue,c as Er,d as ge,e as Pr,f as Be,g as Rr,k as At,l as Tr}from"./chunk-IUA2KLPR.js";import{B as Ee,u as xr}from"./chunk-C743SY2X.js";import{a as we,b as Ae,c as Hi,d as Ji}from"./chunk-J2EYU3K5.js";var Lr=Ae(()=>{"use strict"});var Qe=Ae((tf,Fr)=>{"use strict";var Tt=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Qi=Object.getOwnPropertyNames,zi=Object.prototype.hasOwnProperty,Zi=(t,e)=>{for(var r in e)Tt(t,r,{get:e[r],enumerable:!0})},es=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Qi(e))!zi.call(t,s)&&s!==r&&Tt(t,s,{get:()=>e[s],enumerable:!(i=Ki(e,s))||i.enumerable});return t},ts=t=>es(Tt({},"__esModule",{value:!0}),t),Mr={};Zi(Mr,{__commonJS:()=>cs,__esm:()=>as,__export:()=>us,__require:()=>os,__toCommonJS:()=>ds,__toESM:()=>ls});Fr.exports=ts(Mr);var rs=Object.create,ct=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyNames,is=Object.getPrototypeOf,ss=Object.prototype.hasOwnProperty,os=(t=>typeof we<"u"?we:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof we<"u"?we:e)[r]}):t)(function(t){if(typeof we<"u")return we.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),as=(t,e)=>function(){return t&&(e=(0,t[kt(t)[0]])(t=0)),e},cs=(t,e)=>function(){return e||(0,t[kt(t)[0]])((e={exports:{}}).exports,e),e.exports},us=(t,e)=>{for(var r in e)ct(t,r,{get:e[r],enumerable:!0})},qr=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of kt(e))!ss.call(t,s)&&s!==r&&ct(t,s,{get:()=>e[s],enumerable:!(i=ns(e,s))||i.enumerable});return t},ls=(t,e,r)=>(r=t!=null?rs(is(t)):{},qr(e||!t||!t.__esModule?ct(r,"default",{value:t,enumerable:!0}):r,t)),ds=t=>qr(ct({},"__esModule",{value:!0}),t)});var hn=Ae((sf,mn)=>{"use strict";var fs=Object.create,ut=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,ms=Object.getOwnPropertyNames,hs=Object.getPrototypeOf,vs=Object.prototype.hasOwnProperty,_s=(t,e)=>{for(var r in e)ut(t,r,{get:e[r],enumerable:!0})},Br=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ms(e))!vs.call(t,s)&&s!==r&&ut(t,s,{get:()=>e[s],enumerable:!(i=ps(e,s))||i.enumerable});return t},gs=(t,e,r)=>(r=t!=null?fs(hs(t)):{},Br(e||!t||!t.__esModule?ut(r,"default",{value:t,enumerable:!0}):r,t)),ys=t=>Br(ut({},"__esModule",{value:!0}),t),Gr={};_s(Gr,{jestConsoleContext:()=>Ua,jestContext:()=>Ja,jestProcessContext:()=>Wa});mn.exports=ys(Gr);var I=Qe(),Ve=gs(we("path")),Ss=(0,I.__commonJS)({"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(t,e){"use strict";e.exports=a,a.sync=u;var r=(0,I.__require)("fs");function i(o,n){var l=n.pathExt!==void 0?n.pathExt:process.env.PATHEXT;if(!l||(l=l.split(";"),l.indexOf("")!==-1))return!0;for(var f=0;f<l.length;f++){var p=l[f].toLowerCase();if(p&&o.substr(-p.length).toLowerCase()===p)return!0}return!1}function s(o,n,l){return!o.isSymbolicLink()&&!o.isFile()?!1:i(n,l)}function a(o,n,l){r.stat(o,function(f,p){l(f,f?!1:s(p,o,n))})}function u(o,n){return s(r.statSync(o),o,n)}}}),bs=(0,I.__commonJS)({"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(t,e){"use strict";e.exports=i,i.sync=s;var r=(0,I.__require)("fs");function i(o,n,l){r.stat(o,function(f,p){l(f,f?!1:a(p,n))})}function s(o,n){return a(r.statSync(o),n)}function a(o,n){return o.isFile()&&u(o,n)}function u(o,n){var l=o.mode,f=o.uid,p=o.gid,_=n.uid!==void 0?n.uid:process.getuid&&process.getuid(),A=n.gid!==void 0?n.gid:process.getgid&&process.getgid(),b=parseInt("100",8),y=parseInt("010",8),m=parseInt("001",8),g=b|y,c=l&m||l&y&&p===A||l&b&&f===_||l&g&&_===0;return c}}}),ws=(0,I.__commonJS)({"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(t,e){"use strict";var r=(0,I.__require)("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=Ss():i=bs(),e.exports=s,s.sync=a;function s(u,o,n){if(typeof o=="function"&&(n=o,o={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(l,f){s(u,o||{},function(p,_){p?f(p):l(_)})})}i(u,o||{},function(l,f){l&&(l.code==="EACCES"||o&&o.ignoreErrors)&&(l=null,f=!1),n(l,f)})}function a(u,o){try{return i.sync(u,o||{})}catch(n){if(o&&o.ignoreErrors||n.code==="EACCES")return!1;throw n}}}}),Es=(0,I.__commonJS)({"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(t,e){"use strict";var r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=(0,I.__require)("path"),s=r?";":":",a=ws(),u=f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),o=(f,p)=>{let _=p.colon||s,A=f.match(/\//)||r&&f.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(p.path||process.env.PATH||"").split(_)],b=r?p.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=r?b.split(_):[""];return r&&f.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:A,pathExt:y,pathExtExe:b}},n=(f,p,_)=>{typeof p=="function"&&(_=p,p={}),p||(p={});let{pathEnv:A,pathExt:b,pathExtExe:y}=o(f,p),m=[],g=d=>new Promise((v,h)=>{if(d===A.length)return p.all&&m.length?v(m):h(u(f));let O=A[d],w=/^".*"$/.test(O)?O.slice(1,-1):O,x=i.join(w,f),P=!w&&/^\.[\\\/]/.test(f)?f.slice(0,2)+x:x;v(c(P,d,0))}),c=(d,v,h)=>new Promise((O,w)=>{if(h===b.length)return O(g(v+1));let x=b[h];a(d+x,{pathExt:y},(P,k)=>{if(!P&&k)if(p.all)m.push(d+x);else return O(d+x);return O(c(d,v,h+1))})});return _?g(0).then(d=>_(null,d),_):g(0)},l=(f,p)=>{p=p||{};let{pathEnv:_,pathExt:A,pathExtExe:b}=o(f,p),y=[];for(let m=0;m<_.length;m++){let g=_[m],c=/^".*"$/.test(g)?g.slice(1,-1):g,d=i.join(c,f),v=!c&&/^\.[\\\/]/.test(f)?f.slice(0,2)+d:d;for(let h=0;h<A.length;h++){let O=v+A[h];try{if(a.sync(O,{pathExt:b}))if(p.all)y.push(O);else return O}catch{}}}if(p.all&&y.length)return y;if(p.nothrow)return null;throw u(f)};e.exports=n,n.sync=l}}),Hr=(0,I.__commonJS)({"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(t,e){"use strict";var r=(i={})=>{let s=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(s).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}}),Ps=(0,I.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(t,e){"use strict";var r=(0,I.__require)("path"),i=Es(),s=Hr();function a(o,n){let l=o.options.env||process.env,f=process.cwd(),p=o.options.cwd!=null,_=p&&process.chdir!==void 0&&!process.chdir.disabled;if(_)try{process.chdir(o.options.cwd)}catch{}let A;try{A=i.sync(o.command,{path:l[s({env:l})],pathExt:n?r.delimiter:void 0})}catch{}finally{_&&process.chdir(f)}return A&&(A=r.resolve(p?o.options.cwd:"",A)),A}function u(o){return a(o)||a(o,!0)}e.exports=u}}),As=(0,I.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(t,e){"use strict";var r=/([()\][%!^"`<>&|;, *?])/g;function i(a){return a=a.replace(r,"^$1"),a}function s(a,u){return a=`${a}`,a=a.replace(/(\\*)"/g,'$1$1\\"'),a=a.replace(/(\\*)$/,"$1$1"),a=`"${a}"`,a=a.replace(r,"^$1"),u&&(a=a.replace(r,"^$1")),a}e.exports.command=i,e.exports.argument=s}}),xs=(0,I.__commonJS)({"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(t,e){"use strict";e.exports=/^#!(.*)/}}),Os=(0,I.__commonJS)({"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(t,e){"use strict";var r=xs();e.exports=(i="")=>{let s=i.match(r);if(!s)return null;let[a,u]=s[0].replace(/#! ?/,"").split(" "),o=a.split("/").pop();return o==="env"?u:u?`${o} ${u}`:o}}}),Rs=(0,I.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(t,e){"use strict";var r=(0,I.__require)("fs"),i=Os();function s(a){let o=Buffer.alloc(150),n;try{n=r.openSync(a,"r"),r.readSync(n,o,0,150,0),r.closeSync(n)}catch{}return i(o.toString())}e.exports=s}}),Ts=(0,I.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(t,e){"use strict";var r=(0,I.__require)("path"),i=Ps(),s=As(),a=Rs(),u=process.platform==="win32",o=/\.(?:com|exe)$/i,n=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function l(_){_.file=i(_);let A=_.file&&a(_.file);return A?(_.args.unshift(_.file),_.command=A,i(_)):_.file}function f(_){if(!u)return _;let A=l(_),b=!o.test(A);if(_.options.forceShell||b){let y=n.test(A);_.command=r.normalize(_.command),_.command=s.command(_.command),_.args=_.args.map(g=>s.argument(g,y));let m=[_.command].concat(_.args).join(" ");_.args=["/d","/s","/c",`"${m}"`],_.command=process.env.comspec||"cmd.exe",_.options.windowsVerbatimArguments=!0}return _}function p(_,A,b){A&&!Array.isArray(A)&&(b=A,A=null),A=A?A.slice(0):[],b=Object.assign({},b);let y={command:_,args:A,options:b,file:void 0,original:{command:_,args:A}};return b.shell?y:f(y)}e.exports=p}}),ks=(0,I.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(t,e){"use strict";var r=process.platform==="win32";function i(o,n){return Object.assign(new Error(`${n} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${n} ${o.command}`,path:o.command,spawnargs:o.args})}function s(o,n){if(!r)return;let l=o.emit;o.emit=function(f,p){if(f==="exit"){let _=a(p,n,"spawn");if(_)return l.call(o,"error",_)}return l.apply(o,arguments)}}function a(o,n){return r&&o===1&&!n.file?i(n.original,"spawn"):null}function u(o,n){return r&&o===1&&!n.file?i(n.original,"spawnSync"):null}e.exports={hookChildProcess:s,verifyENOENT:a,verifyENOENTSync:u,notFoundError:i}}}),Cs=(0,I.__commonJS)({"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(t,e){"use strict";var r=(0,I.__require)("child_process"),i=Ts(),s=ks();function a(o,n,l){let f=i(o,n,l),p=r.spawn(f.command,f.args,f.options);return s.hookChildProcess(p,f),p}function u(o,n,l){let f=i(o,n,l),p=r.spawnSync(f.command,f.args,f.options);return p.error=p.error||s.verifyENOENTSync(p.status,f),p}e.exports=a,e.exports.spawn=a,e.exports.sync=u,e.exports._parse=i,e.exports._enoent=s}}),Is=(0,I.__commonJS)({"../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(t,e){"use strict";e.exports=r=>{let i=typeof r=="string"?`
|
|
3
|
-
`:10,s=typeof r=="string"?"\r":13;return r[r.length-1]===i&&(r=r.slice(0,r.length-1)),r[r.length-1]===s&&(r=r.slice(0,r.length-1)),r}}}),js=(0,I.__commonJS)({"../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(t,e){"use strict";var r=(0,I.__require)("path"),i=Hr(),s=a=>{a={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...a};let u,o=r.resolve(a.cwd),n=[];for(;u!==o;)n.push(r.join(o,"node_modules/.bin")),u=o,o=r.resolve(o,"..");let l=r.resolve(a.cwd,a.execPath,"..");return n.push(l),n.concat(a.path).join(r.delimiter)};e.exports=s,e.exports.default=s,e.exports.env=a=>{a={env:process.env,...a};let u={...a.env},o=i({env:u});return a.path=u[o],u[o]=e.exports(a),u}}}),Ds=(0,I.__commonJS)({"../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(t,e){"use strict";var r=(i,s)=>{for(let a of Reflect.ownKeys(s))Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(s,a));return i};e.exports=r,e.exports.default=r}}),Ns=(0,I.__commonJS)({"../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(t,e){"use strict";var r=Ds(),i=new WeakMap,s=(a,u={})=>{if(typeof a!="function")throw new TypeError("Expected a function");let o,n=0,l=a.displayName||a.name||"<anonymous>",f=function(...p){if(i.set(f,++n),n===1)o=a.apply(this,p),a=null;else if(u.throw===!0)throw new Error(`Function \`${l}\` can only be called once`);return o};return r(f,a),i.set(f,n),f};e.exports=s,e.exports.default=s,e.exports.callCount=a=>{if(!i.has(a))throw new Error(`The given function \`${a.name}\` is not wrapped by the \`onetime\` package`);return i.get(a)}}}),$s=(0,I.__commonJS)({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var e=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=e}}),Jr=(0,I.__commonJS)({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var e=function(){let a=s-i+1;return Array.from({length:a},r)};t.getRealtimeSignals=e;var r=function(a,u){return{name:`SIGRT${u+1}`,number:i+u,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},i=34,s=64;t.SIGRTMAX=s}}),Ls=(0,I.__commonJS)({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var e=(0,I.__require)("os"),r=$s(),i=Jr(),s=function(){let u=(0,i.getRealtimeSignals)();return[...r.SIGNALS,...u].map(a)};t.getSignals=s;var a=function({name:u,number:o,description:n,action:l,forced:f=!1,standard:p}){let{signals:{[u]:_}}=e.constants,A=_!==void 0;return{name:u,number:A?_:o,description:n,supported:A,action:l,forced:f,standard:p}}}}),Ms=(0,I.__commonJS)({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var e=(0,I.__require)("os"),r=Ls(),i=Jr(),s=function(){return(0,r.getSignals)().reduce(a,{})},a=function(p,{name:_,number:A,description:b,supported:y,action:m,forced:g,standard:c}){return{...p,[_]:{name:_,number:A,description:b,supported:y,action:m,forced:g,standard:c}}},u=s();t.signalsByName=u;var o=function(){let p=(0,r.getSignals)(),_=i.SIGRTMAX+1,A=Array.from({length:_},(b,y)=>n(y,p));return Object.assign({},...A)},n=function(p,_){let A=l(p,_);if(A===void 0)return{};let{name:b,description:y,supported:m,action:g,forced:c,standard:d}=A;return{[p]:{name:b,number:p,description:y,supported:m,action:g,forced:c,standard:d}}},l=function(p,_){let A=_.find(({name:b})=>e.constants.signals[b]===p);return A!==void 0?A:_.find(b=>b.number===p)},f=o();t.signalsByNumber=f}}),qs=(0,I.__commonJS)({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(t,e){"use strict";var{signalsByName:r}=Ms(),i=({timedOut:a,timeout:u,errorCode:o,signal:n,signalDescription:l,exitCode:f,isCanceled:p})=>a?`timed out after ${u} milliseconds`:p?"was canceled":o!==void 0?`failed with ${o}`:n!==void 0?`was killed with ${n} (${l})`:f!==void 0?`failed with exit code ${f}`:"failed",s=({stdout:a,stderr:u,all:o,error:n,signal:l,exitCode:f,command:p,escapedCommand:_,timedOut:A,isCanceled:b,killed:y,parsed:{options:{timeout:m}}})=>{f=f===null?void 0:f,l=l===null?void 0:l;let g=l===void 0?void 0:r[l].description,c=n&&n.code,v=`Command ${i({timedOut:A,timeout:m,errorCode:c,signal:l,signalDescription:g,exitCode:f,isCanceled:b})}: ${p}`,h=Object.prototype.toString.call(n)==="[object Error]",O=h?`${v}
|
|
4
|
-
${n.message}`:v,w=[O,u,a].filter(Boolean).join(`
|
|
5
|
-
`);return h?(n.originalMessage=n.message,n.message=w):n=new Error(w),n.shortMessage=O,n.command=p,n.escapedCommand=_,n.exitCode=f,n.signal=l,n.signalDescription=g,n.stdout=a,n.stderr=u,o!==void 0&&(n.all=o),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!A,n.isCanceled=b,n.killed=y&&!A,n};e.exports=s}}),Fs=(0,I.__commonJS)({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(t,e){"use strict";var r=["stdin","stdout","stderr"],i=a=>r.some(u=>a[u]!==void 0),s=a=>{if(!a)return;let{stdio:u}=a;if(u===void 0)return r.map(n=>a[n]);if(i(a))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(n=>`\`${n}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let o=Math.max(u.length,r.length);return Array.from({length:o},(n,l)=>u[l])};e.exports=s,e.exports.node=a=>{let u=s(a);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}}),Bs=(0,I.__commonJS)({"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(t,e){"use strict";e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}}),Gs=(0,I.__commonJS)({"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(t,e){"use strict";var r=global.process,i=function(c){return c&&typeof c=="object"&&typeof c.removeListener=="function"&&typeof c.emit=="function"&&typeof c.reallyExit=="function"&&typeof c.listeners=="function"&&typeof c.kill=="function"&&typeof c.pid=="number"&&typeof c.on=="function"};i(r)?(s=(0,I.__require)("assert"),a=Bs(),u=/^win/i.test(r.platform),o=(0,I.__require)("events"),typeof o!="function"&&(o=o.EventEmitter),r.__signal_exit_emitter__?n=r.__signal_exit_emitter__:(n=r.__signal_exit_emitter__=new o,n.count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),e.exports=function(c,d){if(!i(global.process))return function(){};s.equal(typeof c,"function","a callback must be provided for exit handler"),_===!1&&A();var v="exit";d&&d.alwaysLast&&(v="afterexit");var h=function(){n.removeListener(v,c),n.listeners("exit").length===0&&n.listeners("afterexit").length===0&&l()};return n.on(v,c),h},l=function(){!_||!i(global.process)||(_=!1,a.forEach(function(d){try{r.removeListener(d,p[d])}catch{}}),r.emit=m,r.reallyExit=b,n.count-=1)},e.exports.unload=l,f=function(d,v,h){n.emitted[d]||(n.emitted[d]=!0,n.emit(d,v,h))},p={},a.forEach(function(c){p[c]=function(){if(i(global.process)){var v=r.listeners(c);v.length===n.count&&(l(),f("exit",null,c),f("afterexit",null,c),u&&c==="SIGHUP"&&(c="SIGINT"),r.kill(r.pid,c))}}}),e.exports.signals=function(){return a},_=!1,A=function(){_||!i(global.process)||(_=!0,n.count+=1,a=a.filter(function(d){try{return r.on(d,p[d]),!0}catch{return!1}}),r.emit=g,r.reallyExit=y)},e.exports.load=A,b=r.reallyExit,y=function(d){i(global.process)&&(r.exitCode=d||0,f("exit",r.exitCode,null),f("afterexit",r.exitCode,null),b.call(r,r.exitCode))},m=r.emit,g=function(d,v){if(d==="exit"&&i(global.process)){v!==void 0&&(r.exitCode=v);var h=m.apply(this,arguments);return f("exit",r.exitCode,null),f("afterexit",r.exitCode,null),h}else return m.apply(this,arguments)}):e.exports=function(){return function(){}};var s,a,u,o,n,l,f,p,_,A,b,y,m,g}}),Hs=(0,I.__commonJS)({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(t,e){"use strict";var r=(0,I.__require)("os"),i=Gs(),s=1e3*5,a=(y,m="SIGTERM",g={})=>{let c=y(m);return u(y,m,g,c),c},u=(y,m,g,c)=>{if(!o(m,g,c))return;let d=l(g),v=setTimeout(()=>{y("SIGKILL")},d);v.unref&&v.unref()},o=(y,{forceKillAfterTimeout:m},g)=>n(y)&&m!==!1&&g,n=y=>y===r.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",l=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return s;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},f=(y,m)=>{y.kill()&&(m.isCanceled=!0)},p=(y,m,g)=>{y.kill(m),g(Object.assign(new Error("Timed out"),{timedOut:!0,signal:m}))},_=(y,{timeout:m,killSignal:g="SIGTERM"},c)=>{if(m===0||m===void 0)return c;let d,v=new Promise((O,w)=>{d=setTimeout(()=>{p(y,g,w)},m)}),h=c.finally(()=>{clearTimeout(d)});return Promise.race([v,h])},A=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},b=async(y,{cleanup:m,detached:g},c)=>{if(!m||g)return c;let d=i(()=>{y.kill()});return c.finally(()=>{d()})};e.exports={spawnedKill:a,spawnedCancel:f,setupTimeout:_,validateTimeout:A,setExitHandler:b}}}),Ur=(0,I.__commonJS)({"../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(t,e){"use strict";var r=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";r.writable=i=>r(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",r.readable=i=>r(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",r.duplex=i=>r.writable(i)&&r.readable(i),r.transform=i=>r.duplex(i)&&typeof i._transform=="function",e.exports=r}}),Js=(0,I.__commonJS)({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(t,e){"use strict";var{PassThrough:r}=(0,I.__require)("stream");e.exports=i=>{i={...i};let{array:s}=i,{encoding:a}=i,u=a==="buffer",o=!1;s?o=!(a||u):a=a||"utf8",u&&(a=null);let n=new r({objectMode:o});a&&n.setEncoding(a);let l=0,f=[];return n.on("data",p=>{f.push(p),o?l=f.length:l+=p.length}),n.getBufferedValue=()=>s?f:u?Buffer.concat(f,l):f.join(""),n.getBufferedLength=()=>l,n}}}),Us=(0,I.__commonJS)({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(t,e){"use strict";var{constants:r}=(0,I.__require)("buffer"),i=(0,I.__require)("stream"),{promisify:s}=(0,I.__require)("util"),a=Js(),u=s(i.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function n(l,f){if(!l)throw new Error("Expected a stream");f={maxBuffer:1/0,...f};let{maxBuffer:p}=f,_=a(f);return await new Promise((A,b)=>{let y=m=>{m&&_.getBufferedLength()<=r.MAX_LENGTH&&(m.bufferedData=_.getBufferedValue()),b(m)};(async()=>{try{await u(l,_),A()}catch(m){y(m)}})(),_.on("data",()=>{_.getBufferedLength()>p&&y(new o)})}),_.getBufferedValue()}e.exports=n,e.exports.buffer=(l,f)=>n(l,{...f,encoding:"buffer"}),e.exports.array=(l,f)=>n(l,{...f,array:!0}),e.exports.MaxBufferError=o}}),Ws=(0,I.__commonJS)({"../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(t,e){"use strict";var{PassThrough:r}=(0,I.__require)("stream");e.exports=function(){var i=[],s=new r({objectMode:!0});return s.setMaxListeners(0),s.add=a,s.isEmpty=u,s.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(a),s;function a(n){return Array.isArray(n)?(n.forEach(a),this):(i.push(n),n.once("end",o.bind(null,n)),n.once("error",s.emit.bind(s,"error")),n.pipe(s,{end:!1}),this)}function u(){return i.length==0}function o(n){i=i.filter(function(l){return l!==n}),!i.length&&s.readable&&s.end()}}}}),Vs=(0,I.__commonJS)({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(t,e){"use strict";var r=Ur(),i=Us(),s=Ws(),a=(p,_)=>{_===void 0||p.stdin===void 0||(r(_)?_.pipe(p.stdin):p.stdin.end(_))},u=(p,{all:_})=>{if(!_||!p.stdout&&!p.stderr)return;let A=s();return p.stdout&&A.add(p.stdout),p.stderr&&A.add(p.stderr),A},o=async(p,_)=>{if(p){p.destroy();try{return await _}catch(A){return A.bufferedData}}},n=(p,{encoding:_,buffer:A,maxBuffer:b})=>{if(!(!p||!A))return _?i(p,{encoding:_,maxBuffer:b}):i.buffer(p,{maxBuffer:b})},l=async({stdout:p,stderr:_,all:A},{encoding:b,buffer:y,maxBuffer:m},g)=>{let c=n(p,{encoding:b,buffer:y,maxBuffer:m}),d=n(_,{encoding:b,buffer:y,maxBuffer:m}),v=n(A,{encoding:b,buffer:y,maxBuffer:m*2});try{return await Promise.all([g,c,d,v])}catch(h){return Promise.all([{error:h,signal:h.signal,timedOut:h.timedOut},o(p,c),o(_,d),o(A,v)])}},f=({input:p})=>{if(r(p))throw new TypeError("The `input` option cannot be a stream in sync mode")};e.exports={handleInput:a,makeAllStream:u,getSpawnedResult:l,validateInputSync:f}}}),Xs=(0,I.__commonJS)({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(t,e){"use strict";var r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(r,u)]),s=(u,o)=>{for(let[n,l]of i){let f=typeof o=="function"?(...p)=>Reflect.apply(l.value,o(),p):l.value.bind(o);Reflect.defineProperty(u,n,{...l,value:f})}return u},a=u=>new Promise((o,n)=>{u.on("exit",(l,f)=>{o({exitCode:l,signal:f})}),u.on("error",l=>{n(l)}),u.stdin&&u.stdin.on("error",l=>{n(l)})});e.exports={mergePromise:s,getSpawnedPromise:a}}}),Ys=(0,I.__commonJS)({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(t,e){"use strict";var r=(f,p=[])=>Array.isArray(p)?[f,...p]:[f],i=/^[\w.-]+$/,s=/"/g,a=f=>typeof f!="string"||i.test(f)?f:`"${f.replace(s,'\\"')}"`,u=(f,p)=>r(f,p).join(" "),o=(f,p)=>r(f,p).map(_=>a(_)).join(" "),n=/ +/g,l=f=>{let p=[];for(let _ of f.trim().split(n)){let A=p[p.length-1];A&&A.endsWith("\\")?p[p.length-1]=`${A.slice(0,-1)} ${_}`:p.push(_)}return p};e.exports={joinCommand:u,getEscapedCommand:o,parseCommand:l}}}),Ks=(0,I.__commonJS)({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(t,e){"use strict";var r=(0,I.__require)("path"),i=(0,I.__require)("child_process"),s=Cs(),a=Is(),u=js(),o=Ns(),n=qs(),l=Fs(),{spawnedKill:f,spawnedCancel:p,setupTimeout:_,validateTimeout:A,setExitHandler:b}=Hs(),{handleInput:y,getSpawnedResult:m,makeAllStream:g,validateInputSync:c}=Vs(),{mergePromise:d,getSpawnedPromise:v}=Xs(),{joinCommand:h,parseCommand:O,getEscapedCommand:w}=Ys(),x=1e3*1e3*100,P=({env:E,extendEnv:S,preferLocal:T,localDir:D,execPath:F})=>{let j=S?{...process.env,...E}:E;return T?u.env({env:j,cwd:D,execPath:F}):j},k=(E,S,T={})=>{let D=s._parse(E,S,T);return E=D.command,S=D.args,T=D.options,T={maxBuffer:x,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:T.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...T},T.env=P(T),T.stdio=l(T),process.platform==="win32"&&r.basename(E,".exe")==="cmd"&&S.unshift("/q"),{file:E,args:S,options:T,parsed:D}},R=(E,S,T)=>typeof S!="string"&&!Buffer.isBuffer(S)?T===void 0?void 0:"":E.stripFinalNewline?a(S):S,C=(E,S,T)=>{let D=k(E,S,T),F=h(E,S),j=w(E,S);A(D.options);let $;try{$=i.spawn(D.file,D.args,D.options)}catch(V){let N=new i.ChildProcess,q=Promise.reject(n({error:V,stdout:"",stderr:"",all:"",command:F,escapedCommand:j,parsed:D,timedOut:!1,isCanceled:!1,killed:!1}));return d(N,q)}let B=v($),M=_($,D.options,B),G=b($,D.options,M),L={isCanceled:!1};$.kill=f.bind(null,$.kill.bind($)),$.cancel=p.bind(null,$,L);let se=o(async()=>{let[{error:V,exitCode:N,signal:q,timedOut:H},U,ee,ie]=await m($,D.options,G),Y=R(D.options,U),K=R(D.options,ee),Z=R(D.options,ie);if(V||N!==0||q!==null){let ne=n({error:V,exitCode:N,signal:q,stdout:Y,stderr:K,all:Z,command:F,escapedCommand:j,parsed:D,timedOut:H,isCanceled:L.isCanceled,killed:$.killed});if(!D.options.reject)return ne;throw ne}return{command:F,escapedCommand:j,exitCode:0,stdout:Y,stderr:K,all:Z,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y($,D.options.input),$.all=g($,D.options),d($,se)};e.exports=C,e.exports.sync=(E,S,T)=>{let D=k(E,S,T),F=h(E,S),j=w(E,S);c(D.options);let $;try{$=i.spawnSync(D.file,D.args,D.options)}catch(G){throw n({error:G,stdout:"",stderr:"",all:"",command:F,escapedCommand:j,parsed:D,timedOut:!1,isCanceled:!1,killed:!1})}let B=R(D.options,$.stdout,$.error),M=R(D.options,$.stderr,$.error);if($.error||$.status!==0||$.signal!==null){let G=n({stdout:B,stderr:M,error:$.error,signal:$.signal,exitCode:$.status,command:F,escapedCommand:j,parsed:D,timedOut:$.error&&$.error.code==="ETIMEDOUT",isCanceled:!1,killed:$.signal!==null});if(!D.options.reject)return G;throw G}return{command:F,escapedCommand:j,exitCode:0,stdout:B,stderr:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(E,S)=>{let[T,...D]=O(E);return C(T,D,S)},e.exports.commandSync=(E,S)=>{let[T,...D]=O(E);return C.sync(T,D,S)},e.exports.node=(E,S,T={})=>{S&&!Array.isArray(S)&&typeof S=="object"&&(T=S,S=[]);let D=l.node(T),F=process.execArgv.filter(B=>!B.startsWith("--inspect")),{nodePath:j=process.execPath,nodeOptions:$=F}=T;return C(j,[...$,E,...Array.isArray(S)?S:[]],{...T,stdin:void 0,stdout:void 0,stderr:void 0,stdio:D,shell:!1})}}}),Qs=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/promisify.js"(t,e){"use strict";e.exports=r=>function(){let i=arguments.length,s=new Array(i);for(let a=0;a<i;a+=1)s[a]=arguments[a];return new Promise((a,u)=>{s.push((o,n)=>{o?u(o):a(n)}),r.apply(null,s)})}}}),Pe=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/fs.js"(t,e){"use strict";var r=(0,I.__require)("fs"),i=Qs(),s=o=>[typeof r[o]=="function",!o.match(/Sync$/),!o.match(/^[A-Z]/),!o.match(/^create/),!o.match(/^(un)?watch/)].every(Boolean),a=o=>{let n=r[o];return i(n)},u=()=>{let o={};return Object.keys(r).forEach(n=>{s(n)?n==="exists"?o.exists=()=>{throw new Error("fs.exists() is deprecated")}:o[n]=a(n):o[n]=r[n]}),o};e.exports=u()}}),ye=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/validate.js"(t,e){"use strict";var r=_=>{let A=b=>["a","e","i","o","u"].indexOf(b[0])!==-1?`an ${b}`:`a ${b}`;return _.map(A).join(" or ")},i=_=>/array of /.test(_),s=_=>_.split(" of ")[1],a=_=>i(_)?a(s(_)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(A=>A===_),u=_=>_===null?"null":Array.isArray(_)?"array":Buffer.isBuffer(_)?"buffer":typeof _,o=(_,A,b)=>b.indexOf(_)===A,n=_=>{let A=u(_),b;return A==="array"&&(b=_.map(y=>u(y)).filter(o),A+=` of ${b.join(", ")}`),A},l=(_,A)=>{let b=s(A);return u(_)!=="array"?!1:_.every(y=>u(y)===b)},f=(_,A,b,y)=>{if(!y.some(g=>{if(!a(g))throw new Error(`Unknown type "${g}"`);return i(g)?l(b,g):g===u(b)}))throw new Error(`Argument "${A}" passed to ${_} must be ${r(y)}. Received ${n(b)}`)},p=(_,A,b,y)=>{b!==void 0&&(f(_,A,b,["object"]),Object.keys(b).forEach(m=>{let g=`${A}.${m}`;if(y[m]!==void 0)f(_,g,b[m],y[m]);else throw new Error(`Unknown argument "${g}" passed to ${_}`)}))};e.exports={argument:f,options:p}}}),Ct=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/mode.js"(t){"use strict";t.normalizeFileMode=e=>{let r;return typeof e=="number"?r=e.toString(8):r=e,r.substring(r.length-3)}}}),It=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/remove.js"(t){"use strict";var e=Pe(),r=ye(),i=(u,o)=>{let n=`${u}([path])`;r.argument(n,"path",o,["string","undefined"])},s=u=>{e.rmSync(u,{recursive:!0,force:!0,maxRetries:3})},a=u=>e.rm(u,{recursive:!0,force:!0,maxRetries:3});t.validateInput=i,t.sync=s,t.async=a}}),Xe=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/dir.js"(t){"use strict";var e=(0,I.__require)("path"),r=Pe(),i=Ct(),s=ye(),a=It(),u=(c,d,v)=>{let h=`${c}(path, [criteria])`;s.argument(h,"path",d,["string"]),s.options(h,"criteria",v,{empty:["boolean"],mode:["string","number"]})},o=c=>{let d=c||{};return typeof d.empty!="boolean"&&(d.empty=!1),d.mode!==void 0&&(d.mode=i.normalizeFileMode(d.mode)),d},n=c=>new Error(`Path ${c} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),l=c=>{let d;try{d=r.statSync(c)}catch(v){if(v.code!=="ENOENT")throw v}if(d&&!d.isDirectory())throw n(c);return d},f=(c,d)=>{let v=d||{};try{r.mkdirSync(c,v.mode)}catch(h){if(h.code==="ENOENT")f(e.dirname(c),v),r.mkdirSync(c,v.mode);else if(h.code!=="EEXIST")throw h}},p=(c,d,v)=>{let h=()=>{let w=i.normalizeFileMode(d.mode);v.mode!==void 0&&v.mode!==w&&r.chmodSync(c,v.mode)},O=()=>{v.empty&&r.readdirSync(c).forEach(x=>{a.sync(e.resolve(c,x))})};h(),O()},_=(c,d)=>{let v=o(d),h=l(c);h?p(c,h,v):f(c,v)},A=c=>new Promise((d,v)=>{r.stat(c).then(h=>{h.isDirectory()?d(h):v(n(c))}).catch(h=>{h.code==="ENOENT"?d(void 0):v(h)})}),b=c=>new Promise((d,v)=>{r.readdir(c).then(h=>{let O=w=>{if(w===h.length)d();else{let x=e.resolve(c,h[w]);a.async(x).then(()=>{O(w+1)})}};O(0)}).catch(v)}),y=(c,d,v)=>new Promise((h,O)=>{let w=()=>{let P=i.normalizeFileMode(d.mode);return v.mode!==void 0&&v.mode!==P?r.chmod(c,v.mode):Promise.resolve()},x=()=>v.empty?b(c):Promise.resolve();w().then(x).then(h,O)}),m=(c,d)=>{let v=d||{};return new Promise((h,O)=>{r.mkdir(c,v.mode).then(h).catch(w=>{w.code==="ENOENT"?m(e.dirname(c),v).then(()=>r.mkdir(c,v.mode)).then(h).catch(x=>{x.code==="EEXIST"?h():O(x)}):w.code==="EEXIST"?h():O(w)})})},g=(c,d)=>new Promise((v,h)=>{let O=o(d);A(c).then(w=>w!==void 0?y(c,w,O):m(c,O)).then(v,h)});t.validateInput=u,t.sync=_,t.createSync=f,t.async=g,t.createAsync=m}}),lt=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/write.js"(t){"use strict";var e=(0,I.__require)("path"),r=Pe(),i=ye(),s=Xe(),a=(b,y,m,g)=>{let c=`${b}(path, data, [options])`;i.argument(c,"path",y,["string"]),i.argument(c,"data",m,["string","buffer","object","array"]),i.options(c,"options",g,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},u=".__new__",o=(b,y)=>{let m=y;return typeof m!="number"&&(m=2),typeof b=="object"&&!Buffer.isBuffer(b)&&b!==null?JSON.stringify(b,null,m):b},n=(b,y,m)=>{try{r.writeFileSync(b,y,m)}catch(g){if(g.code==="ENOENT")s.createSync(e.dirname(b)),r.writeFileSync(b,y,m);else throw g}},l=(b,y,m)=>{n(b+u,y,m),r.renameSync(b+u,b)},f=(b,y,m)=>{let g=m||{},c=o(y,g.jsonIndent),d=n;g.atomic&&(d=l),d(b,c,{mode:g.mode})},p=(b,y,m)=>new Promise((g,c)=>{r.writeFile(b,y,m).then(g).catch(d=>{d.code==="ENOENT"?s.createAsync(e.dirname(b)).then(()=>r.writeFile(b,y,m)).then(g,c):c(d)})}),_=(b,y,m)=>new Promise((g,c)=>{p(b+u,y,m).then(()=>r.rename(b+u,b)).then(g,c)}),A=(b,y,m)=>{let g=m||{},c=o(y,g.jsonIndent),d=p;return g.atomic&&(d=_),d(b,c,{mode:g.mode})};t.validateInput=a,t.sync=f,t.async=A}}),zs=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/append.js"(t){"use strict";var e=Pe(),r=lt(),i=ye(),s=(o,n,l,f)=>{let p=`${o}(path, data, [options])`;i.argument(p,"path",n,["string"]),i.argument(p,"data",l,["string","buffer"]),i.options(p,"options",f,{mode:["string","number"]})},a=(o,n,l)=>{try{e.appendFileSync(o,n,l)}catch(f){if(f.code==="ENOENT")r.sync(o,n,l);else throw f}},u=(o,n,l)=>new Promise((f,p)=>{e.appendFile(o,n,l).then(f).catch(_=>{_.code==="ENOENT"?r.async(o,n,l).then(f,p):p(_)})});t.validateInput=s,t.sync=a,t.async=u}}),Zs=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/file.js"(t){"use strict";var e=Pe(),r=Ct(),i=ye(),s=lt(),a=(m,g,c)=>{let d=`${m}(path, [criteria])`;i.argument(d,"path",g,["string"]),i.options(d,"criteria",c,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},u=m=>{let g=m||{};return g.mode!==void 0&&(g.mode=r.normalizeFileMode(g.mode)),g},o=m=>new Error(`Path ${m} exists but is not a file. Halting jetpack.file() call for safety reasons.`),n=m=>{let g;try{g=e.statSync(m)}catch(c){if(c.code!=="ENOENT")throw c}if(g&&!g.isFile())throw o(m);return g},l=(m,g,c)=>{let d=r.normalizeFileMode(g.mode),v=()=>c.content!==void 0?(s.sync(m,c.content,{mode:d,jsonIndent:c.jsonIndent}),!0):!1,h=()=>{c.mode!==void 0&&c.mode!==d&&e.chmodSync(m,c.mode)};v()||h()},f=(m,g)=>{let c="";g.content!==void 0&&(c=g.content),s.sync(m,c,{mode:g.mode,jsonIndent:g.jsonIndent})},p=(m,g)=>{let c=u(g),d=n(m);d!==void 0?l(m,d,c):f(m,c)},_=m=>new Promise((g,c)=>{e.stat(m).then(d=>{d.isFile()?g(d):c(o(m))}).catch(d=>{d.code==="ENOENT"?g(void 0):c(d)})}),A=(m,g,c)=>{let d=r.normalizeFileMode(g.mode),v=()=>new Promise((O,w)=>{c.content!==void 0?s.async(m,c.content,{mode:d,jsonIndent:c.jsonIndent}).then(()=>{O(!0)}).catch(w):O(!1)}),h=()=>{if(c.mode!==void 0&&c.mode!==d)return e.chmod(m,c.mode)};return v().then(O=>{if(!O)return h()})},b=(m,g)=>{let c="";return g.content!==void 0&&(c=g.content),s.async(m,c,{mode:g.mode,jsonIndent:g.jsonIndent})},y=(m,g)=>new Promise((c,d)=>{let v=u(g);_(m).then(h=>h!==void 0?A(m,h,v):b(m,v)).then(c,d)});t.validateInput=a,t.sync=p,t.async=y}}),ze=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect.js"(t){"use strict";var e=(0,I.__require)("crypto"),r=(0,I.__require)("path"),i=Pe(),s=ye(),a=["md5","sha1","sha256","sha512"],u=["report","follow"],o=(y,m,g)=>{let c=`${y}(path, [options])`;if(s.argument(c,"path",m,["string"]),s.options(c,"options",g,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),g&&g.checksum!==void 0&&a.indexOf(g.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${c} must have one of values: ${a.join(", ")}`);if(g&&g.symlinks!==void 0&&u.indexOf(g.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${c} must have one of values: ${u.join(", ")}`)},n=(y,m,g)=>{let c={};return c.name=r.basename(y),g.isFile()?(c.type="file",c.size=g.size):g.isDirectory()?c.type="dir":g.isSymbolicLink()?c.type="symlink":c.type="other",m.mode&&(c.mode=g.mode),m.times&&(c.accessTime=g.atime,c.modifyTime=g.mtime,c.changeTime=g.ctime,c.birthTime=g.birthtime),m.absolutePath&&(c.absolutePath=y),c},l=(y,m)=>{let g=e.createHash(m),c=i.readFileSync(y);return g.update(c),g.digest("hex")},f=(y,m,g)=>{m.type==="file"&&g.checksum?m[g.checksum]=l(y,g.checksum):m.type==="symlink"&&(m.pointsAt=i.readlinkSync(y))},p=(y,m)=>{let g=i.lstatSync,c,d=m||{};d.symlinks==="follow"&&(g=i.statSync);try{c=g(y)}catch(h){if(h.code==="ENOENT")return;throw h}let v=n(y,d,c);return f(y,v,d),v},_=(y,m)=>new Promise((g,c)=>{let d=e.createHash(m),v=i.createReadStream(y);v.on("data",h=>{d.update(h)}),v.on("end",()=>{g(d.digest("hex"))}),v.on("error",c)}),A=(y,m,g)=>m.type==="file"&&g.checksum?_(y,g.checksum).then(c=>(m[g.checksum]=c,m)):m.type==="symlink"?i.readlink(y).then(c=>(m.pointsAt=c,m)):Promise.resolve(m),b=(y,m)=>new Promise((g,c)=>{let d=i.lstat,v=m||{};v.symlinks==="follow"&&(d=i.stat),d(y).then(h=>{let O=n(y,v,h);A(y,O,v).then(g,c)}).catch(h=>{h.code==="ENOENT"?g(void 0):c(h)})});t.supportedChecksumAlgorithms=a,t.symlinkOptions=u,t.validateInput=o,t.sync=p,t.async=b}}),jt=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/list.js"(t){"use strict";var e=Pe(),r=ye(),i=(u,o)=>{let n=`${u}(path)`;r.argument(n,"path",o,["string","undefined"])},s=u=>{try{return e.readdirSync(u)}catch(o){if(o.code==="ENOENT")return;throw o}},a=u=>new Promise((o,n)=>{e.readdir(u).then(l=>{o(l)}).catch(l=>{l.code==="ENOENT"?o(void 0):n(l)})});t.validateInput=i,t.sync=s,t.async=a}}),Dt=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/tree_walker.js"(t){"use strict";var e=(0,I.__require)("fs"),r=(0,I.__require)("path"),i=ze(),s=jt(),a=l=>l.isDirectory()?"dir":l.isFile()?"file":l.isSymbolicLink()?"symlink":"other",u=(l,f,p)=>{f.maxLevelsDeep===void 0&&(f.maxLevelsDeep=1/0);let _=f.inspectOptions!==void 0;f.symlinks&&(f.inspectOptions===void 0?f.inspectOptions={symlinks:f.symlinks}:f.inspectOptions.symlinks=f.symlinks);let A=(y,m)=>{e.readdirSync(y,{withFileTypes:!0}).forEach(g=>{let c=typeof g=="string",d;c?d=r.join(y,g):d=r.join(y,g.name);let v;if(_)v=i.sync(d,f.inspectOptions);else if(c){let h=i.sync(d,f.inspectOptions);v={name:h.name,type:h.type}}else{let h=a(g);if(h==="symlink"&&f.symlinks==="follow"){let O=e.statSync(d);v={name:g.name,type:a(O)}}else v={name:g.name,type:h}}v!==void 0&&(p(d,v),v.type==="dir"&&m<f.maxLevelsDeep&&A(d,m+1))})},b=i.sync(l,f.inspectOptions);b?(_?p(l,b):p(l,{name:b.name,type:b.type}),b.type==="dir"&&A(l,1)):p(l,void 0)},o=5,n=(l,f,p,_)=>{f.maxLevelsDeep===void 0&&(f.maxLevelsDeep=1/0);let A=f.inspectOptions!==void 0;f.symlinks&&(f.inspectOptions===void 0?f.inspectOptions={symlinks:f.symlinks}:f.inspectOptions.symlinks=f.symlinks);let b=[],y=0,m=()=>{if(b.length===0&&y===0)_();else if(b.length>0&&y<o){let v=b.pop();y+=1,v()}},g=v=>{b.push(v),m()},c=()=>{y-=1,m()},d=(v,h)=>{let O=(w,x)=>{x.type==="dir"&&h<f.maxLevelsDeep&&d(w,h+1)};g(()=>{e.readdir(v,{withFileTypes:!0},(w,x)=>{w?_(w):(x.forEach(P=>{let k=typeof P=="string",R;if(k?R=r.join(v,P):R=r.join(v,P.name),A||k)g(()=>{i.async(R,f.inspectOptions).then(C=>{C!==void 0&&(A?p(R,C):p(R,{name:C.name,type:C.type}),O(R,C)),c()}).catch(C=>{_(C)})});else{let C=a(P);if(C==="symlink"&&f.symlinks==="follow")g(()=>{e.stat(R,(E,S)=>{if(E)_(E);else{let T={name:P.name,type:a(S)};p(R,T),O(R,T),c()}})});else{let E={name:P.name,type:C};p(R,E),O(R,E)}}}),c())})})};i.async(l,f.inspectOptions).then(v=>{v?(A?p(l,v):p(l,{name:v.name,type:v.type}),v.type==="dir"?d(l,1):_()):(p(l,void 0),_())}).catch(v=>{_(v)})};t.sync=u,t.async=n}}),eo=(0,I.__commonJS)({"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.js"(t,e){"use strict";var r=typeof process=="object"&&process&&process.platform==="win32";e.exports=r?{sep:"\\"}:{sep:"/"}}}),Wr=(0,I.__commonJS)({"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(t,e){"use strict";e.exports=r;function r(a,u,o){a instanceof RegExp&&(a=i(a,o)),u instanceof RegExp&&(u=i(u,o));var n=s(a,u,o);return n&&{start:n[0],end:n[1],pre:o.slice(0,n[0]),body:o.slice(n[0]+a.length,n[1]),post:o.slice(n[1]+u.length)}}function i(a,u){var o=u.match(a);return o?o[0]:null}r.range=s;function s(a,u,o){var n,l,f,p,_,A=o.indexOf(a),b=o.indexOf(u,A+1),y=A;if(A>=0&&b>0){if(a===u)return[A,b];for(n=[],f=o.length;y>=0&&!_;)y==A?(n.push(y),A=o.indexOf(a,y+1)):n.length==1?_=[n.pop(),b]:(l=n.pop(),l<f&&(f=l,p=b),b=o.indexOf(u,y+1)),y=A<b&&A>=0?A:b;n.length&&(_=[f,p])}return _}}}),to=(0,I.__commonJS)({"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(t,e){"use strict";var r=Wr();e.exports=_;var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0";function n(c){return parseInt(c,10)==c?parseInt(c,10):c.charCodeAt(0)}function l(c){return c.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(a).split("\\,").join(u).split("\\.").join(o)}function f(c){return c.split(i).join("\\").split(s).join("{").split(a).join("}").split(u).join(",").split(o).join(".")}function p(c){if(!c)return[""];var d=[],v=r("{","}",c);if(!v)return c.split(",");var h=v.pre,O=v.body,w=v.post,x=h.split(",");x[x.length-1]+="{"+O+"}";var P=p(w);return w.length&&(x[x.length-1]+=P.shift(),x.push.apply(x,P)),d.push.apply(d,x),d}function _(c){return c?(c.substr(0,2)==="{}"&&(c="\\{\\}"+c.substr(2)),g(l(c),!0).map(f)):[]}function A(c){return"{"+c+"}"}function b(c){return/^-?0\d/.test(c)}function y(c,d){return c<=d}function m(c,d){return c>=d}function g(c,d){var v=[],h=r("{","}",c);if(!h)return[c];var O=h.pre,w=h.post.length?g(h.post,!1):[""];if(/\$$/.test(h.pre))for(var x=0;x<w.length;x++){var P=O+"{"+h.body+"}"+w[x];v.push(P)}else{var k=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(h.body),R=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(h.body),C=k||R,E=h.body.indexOf(",")>=0;if(!C&&!E)return h.post.match(/,.*\}/)?(c=h.pre+"{"+h.body+a+h.post,g(c)):[c];var S;if(C)S=h.body.split(/\.\./);else if(S=p(h.body),S.length===1&&(S=g(S[0],!1).map(A),S.length===1))return w.map(function(q){return h.pre+S[0]+q});var T;if(C){var D=n(S[0]),F=n(S[1]),j=Math.max(S[0].length,S[1].length),$=S.length==3?Math.abs(n(S[2])):1,B=y,M=F<D;M&&($*=-1,B=m);var G=S.some(b);T=[];for(var L=D;B(L,F);L+=$){var X;if(R)X=String.fromCharCode(L),X==="\\"&&(X="");else if(X=String(L),G){var se=j-X.length;if(se>0){var V=new Array(se+1).join("0");L<0?X="-"+V+X.slice(1):X=V+X}}T.push(X)}}else{T=[];for(var N=0;N<S.length;N++)T.push.apply(T,g(S[N],!1))}for(var N=0;N<T.length;N++)for(var x=0;x<w.length;x++){var P=O+T[N]+w[x];(!d||C||P)&&v.push(P)}}return v}}}),ro=(0,I.__commonJS)({"../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.js"(t,e){"use strict";var r=e.exports=(w,x,P={})=>(c(x),!P.nocomment&&x.charAt(0)==="#"?!1:new O(x,P).match(w));e.exports=r;var i=eo();r.sep=i.sep;var s=Symbol("globstar **");r.GLOBSTAR=s;var a=to(),u={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o="[^/]",n=o+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",p=w=>w.split("").reduce((x,P)=>(x[P]=!0,x),{}),_=p("().*{}+?[]^$\\!"),A=p("[.("),b=/\/+/;r.filter=(w,x={})=>(P,k,R)=>r(P,w,x);var y=(w,x={})=>{let P={};return Object.keys(w).forEach(k=>P[k]=w[k]),Object.keys(x).forEach(k=>P[k]=x[k]),P};r.defaults=w=>{if(!w||typeof w!="object"||!Object.keys(w).length)return r;let x=r,P=(k,R,C)=>x(k,R,y(w,C));return P.Minimatch=class extends x.Minimatch{constructor(R,C){super(R,y(w,C))}},P.Minimatch.defaults=k=>x.defaults(y(w,k)).Minimatch,P.filter=(k,R)=>x.filter(k,y(w,R)),P.defaults=k=>x.defaults(y(w,k)),P.makeRe=(k,R)=>x.makeRe(k,y(w,R)),P.braceExpand=(k,R)=>x.braceExpand(k,y(w,R)),P.match=(k,R,C)=>x.match(k,R,y(w,C)),P},r.braceExpand=(w,x)=>m(w,x);var m=(w,x={})=>(c(w),x.nobrace||!/\{(?:(?!\{).)*\}/.test(w)?[w]:a(w)),g=1024*64,c=w=>{if(typeof w!="string")throw new TypeError("invalid pattern");if(w.length>g)throw new TypeError("pattern is too long")},d=Symbol("subparse");r.makeRe=(w,x)=>new O(w,x||{}).makeRe(),r.match=(w,x,P={})=>{let k=new O(x,P);return w=w.filter(R=>k.match(R)),k.options.nonull&&!w.length&&w.push(x),w};var v=w=>w.replace(/\\(.)/g,"$1"),h=w=>w.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),O=class{constructor(w,x){c(w),x||(x={}),this.options=x,this.set=[],this.pattern=w,this.windowsPathsNoEscape=!!x.windowsPathsNoEscape||x.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!x.partial,this.make()}debug(){}make(){let w=this.pattern,x=this.options;if(!x.nocomment&&w.charAt(0)==="#"){this.comment=!0;return}if(!w){this.empty=!0;return}this.parseNegate();let P=this.globSet=this.braceExpand();x.debug&&(this.debug=(...k)=>console.error(...k)),this.debug(this.pattern,P),P=this.globParts=P.map(k=>k.split(b)),this.debug(this.pattern,P),P=P.map((k,R,C)=>k.map(this.parse,this)),this.debug(this.pattern,P),P=P.filter(k=>k.indexOf(!1)===-1),this.debug(this.pattern,P),this.set=P}parseNegate(){if(this.options.nonegate)return;let w=this.pattern,x=!1,P=0;for(let k=0;k<w.length&&w.charAt(k)==="!";k++)x=!x,P++;P&&(this.pattern=w.substr(P)),this.negate=x}matchOne(w,x,P){var k=this.options;this.debug("matchOne",{this:this,file:w,pattern:x}),this.debug("matchOne",w.length,x.length);for(var R=0,C=0,E=w.length,S=x.length;R<E&&C<S;R++,C++){this.debug("matchOne loop");var T=x[C],D=w[R];if(this.debug(x,T,D),T===!1)return!1;if(T===s){this.debug("GLOBSTAR",[x,T,D]);var F=R,j=C+1;if(j===S){for(this.debug("** at the end");R<E;R++)if(w[R]==="."||w[R]===".."||!k.dot&&w[R].charAt(0)===".")return!1;return!0}for(;F<E;){var $=w[F];if(this.debug(`
|
|
6
|
-
globstar while`,w,F,x,j,$),this.matchOne(w.slice(F),x.slice(j),P))return this.debug("globstar found match!",F,E,$),!0;if($==="."||$===".."||!k.dot&&$.charAt(0)==="."){this.debug("dot detected!",w,F,x,j);break}this.debug("globstar swallow a segment, and continue"),F++}return!!(P&&(this.debug(`
|
|
7
|
-
>>> no match, partial?`,w,F,x,j),F===E))}var B;if(typeof T=="string"?(B=D===T,this.debug("string match",T,D,B)):(B=D.match(T),this.debug("pattern match",T,D,B)),!B)return!1}if(R===E&&C===S)return!0;if(R===E)return P;if(C===S)return R===E-1&&w[R]==="";throw new Error("wtf?")}braceExpand(){return m(this.pattern,this.options)}parse(w,x){c(w);let P=this.options;if(w==="**")if(P.noglobstar)w="*";else return s;if(w==="")return"";let k="",R=!!P.nocase,C=!1,E=[],S=[],T,D=!1,F=-1,j=-1,$,B,M,G=w.charAt(0)==="."?"":P.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=()=>{if(T){switch(T){case"*":k+=n,R=!0;break;case"?":k+=o,R=!0;break;default:k+="\\"+T;break}this.debug("clearStateChar %j %j",T,k),T=!1}};for(let V=0,N;V<w.length&&(N=w.charAt(V));V++){if(this.debug("%s %s %s %j",w,V,k,N),C){if(N==="/")return!1;_[N]&&(k+="\\"),k+=N,C=!1;continue}switch(N){case"/":return!1;case"\\":L(),C=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",w,V,k,N),D){this.debug(" in class"),N==="!"&&V===j+1&&(N="^"),k+=N;continue}this.debug("call clearStateChar %j",T),L(),T=N,P.noext&&L();continue;case"(":if(D){k+="(";continue}if(!T){k+="\\(";continue}E.push({type:T,start:V-1,reStart:k.length,open:u[T].open,close:u[T].close}),k+=T==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",T,k),T=!1;continue;case")":if(D||!E.length){k+="\\)";continue}L(),R=!0,B=E.pop(),k+=B.close,B.type==="!"&&S.push(B),B.reEnd=k.length;continue;case"|":if(D||!E.length){k+="\\|";continue}L(),k+="|";continue;case"[":if(L(),D){k+="\\"+N;continue}D=!0,j=V,F=k.length,k+=N;continue;case"]":if(V===j+1||!D){k+="\\"+N;continue}$=w.substring(j+1,V);try{RegExp("["+$+"]")}catch{M=this.parse($,d),k=k.substr(0,F)+"\\["+M[0]+"\\]",R=R||M[1],D=!1;continue}R=!0,D=!1,k+=N;continue;default:L(),_[N]&&!(N==="^"&&D)&&(k+="\\"),k+=N;break}}for(D&&($=w.substr(j+1),M=this.parse($,d),k=k.substr(0,F)+"\\["+M[0],R=R||M[1]),B=E.pop();B;B=E.pop()){let V;V=k.slice(B.reStart+B.open.length),this.debug("setting tail",k,B),V=V.replace(/((?:\\{2}){0,64})(\\?)\|/g,(q,H,U)=>(U||(U="\\"),H+H+U+"|")),this.debug(`tail=%j
|
|
8
|
-
%s`,V,V,B,k);let N=B.type==="*"?n:B.type==="?"?o:"\\"+B.type;R=!0,k=k.slice(0,B.reStart)+N+"\\("+V}L(),C&&(k+="\\\\");let X=A[k.charAt(0)];for(let V=S.length-1;V>-1;V--){let N=S[V],q=k.slice(0,N.reStart),H=k.slice(N.reStart,N.reEnd-8),U=k.slice(N.reEnd),ee=k.slice(N.reEnd-8,N.reEnd)+U,ie=q.split("(").length-1,Y=U;for(let Z=0;Z<ie;Z++)Y=Y.replace(/\)[+*?]?/,"");U=Y;let K=U===""&&x!==d?"$":"";k=q+H+U+K+ee}if(k!==""&&R&&(k="(?=.)"+k),X&&(k=G+k),x===d)return[k,R];if(!R)return v(w);let se=P.nocase?"i":"";try{return Object.assign(new RegExp("^"+k+"$",se),{_glob:w,_src:k})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let w=this.set;if(!w.length)return this.regexp=!1,this.regexp;let x=this.options,P=x.noglobstar?n:x.dot?l:f,k=x.nocase?"i":"",R=w.map(C=>(C=C.map(E=>typeof E=="string"?h(E):E===s?s:E._src).reduce((E,S)=>(E[E.length-1]===s&&S===s||E.push(S),E),[]),C.forEach((E,S)=>{E!==s||C[S-1]===s||(S===0?C.length>1?C[S+1]="(?:\\/|"+P+"\\/)?"+C[S+1]:C[S]=P:S===C.length-1?C[S-1]+="(?:\\/|"+P+")?":(C[S-1]+="(?:\\/|\\/"+P+"\\/)"+C[S+1],C[S+1]=s))}),C.filter(E=>E!==s).join("/"))).join("|");R="^(?:"+R+")$",this.negate&&(R="^(?!"+R+").*$");try{this.regexp=new RegExp(R,k)}catch{this.regexp=!1}return this.regexp}match(w,x=this.partial){if(this.debug("match",w,this.pattern),this.comment)return!1;if(this.empty)return w==="";if(w==="/"&&x)return!0;let P=this.options;i.sep!=="/"&&(w=w.split(i.sep).join("/")),w=w.split(b),this.debug(this.pattern,"split",w);let k=this.set;this.debug(this.pattern,"set",k);let R;for(let C=w.length-1;C>=0&&(R=w[C],!R);C--);for(let C=0;C<k.length;C++){let E=k[C],S=w;if(P.matchBase&&E.length===1&&(S=[R]),this.matchOne(S,E,x))return P.flipNegate?!0:!this.negate}return P.flipNegate?!1:this.negate}static defaults(w){return r.defaults(w).Minimatch}};r.Minimatch=O}}),Vr=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/matcher.js"(t){"use strict";var e=ro().Minimatch,r=(i,s)=>{let a=s.indexOf("/")!==-1,u=/^!?\//.test(s),o=/^!/.test(s),n;if(!u&&a){let l=s.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(i)?n="":n="/",o?`!${i}${n}${l}`:`${i}${n}${l}`}return s};t.create=(i,s,a)=>{let u;typeof s=="string"?u=[s]:u=s;let o=u.map(l=>r(i,l)).map(l=>new e(l,{matchBase:!0,nocomment:!0,nocase:a||!1,dot:!0,windowsPathsNoEscape:!0}));return l=>{let f="matching",p=!1,_,A;for(A=0;A<o.length;A+=1){if(_=o[A],_.negate&&(f="negation",A===0&&(p=!0)),f==="negation"&&p&&!_.match(l))return!1;f==="matching"&&!p&&(p=_.match(l))}return p}}}}),no=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/find.js"(t){"use strict";var e=(0,I.__require)("path"),r=Dt(),i=ze(),s=Vr(),a=ye(),u=(y,m,g)=>{let c=`${y}([path], options)`;a.argument(c,"path",m,["string"]),a.options(c,"options",g,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},o=y=>{let m=y||{};return m.matching===void 0&&(m.matching="*"),m.files===void 0&&(m.files=!0),m.ignoreCase===void 0&&(m.ignoreCase=!1),m.directories===void 0&&(m.directories=!1),m.recursive===void 0&&(m.recursive=!0),m},n=(y,m)=>y.map(g=>e.relative(m,g)),l=y=>{let m=new Error(`Path you want to find stuff in doesn't exist ${y}`);return m.code="ENOENT",m},f=y=>{let m=new Error(`Path you want to find stuff in must be a directory ${y}`);return m.code="ENOTDIR",m},p=(y,m)=>{let g=[],c=s.create(y,m.matching,m.ignoreCase),d=1/0;return m.recursive===!1&&(d=1),r.sync(y,{maxLevelsDeep:d,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(v,h)=>{h&&v!==y&&c(v)&&(h.type==="file"&&m.files===!0||h.type==="dir"&&m.directories===!0)&&(m.filter?m.filter(h)&&g.push(v):g.push(v))}),g.sort(),n(g,m.cwd)},_=(y,m)=>{let g=i.sync(y,{symlinks:"follow"});if(g===void 0)throw l(y);if(g.type!=="dir")throw f(y);return p(y,o(m))},A=(y,m)=>new Promise((g,c)=>{let d=[],v=s.create(y,m.matching,m.ignoreCase),h=1/0;m.recursive===!1&&(h=1);let O=0,w=!1,x=()=>{w&&O===0&&(d.sort(),g(n(d,m.cwd)))};r.async(y,{maxLevelsDeep:h,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(P,k)=>{if(k&&P!==y&&v(P)&&(k.type==="file"&&m.files===!0||k.type==="dir"&&m.directories===!0))if(m.filter){let C=m.filter(k);typeof C.then=="function"?(O+=1,C.then(S=>{S&&d.push(P),O-=1,x()}).catch(S=>{c(S)})):C&&d.push(P)}else d.push(P)},P=>{P?c(P):(w=!0,x())})}),b=(y,m)=>i.async(y,{symlinks:"follow"}).then(g=>{if(g===void 0)throw l(y);if(g.type!=="dir")throw f(y);return A(y,o(m))});t.validateInput=u,t.sync=_,t.async=b}}),io=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect_tree.js"(t){"use strict";var e=(0,I.__require)("crypto"),r=(0,I.__require)("path"),i=ze(),s=jt(),a=ye(),u=Dt(),o=(b,y,m)=>{let g=`${b}(path, [options])`;if(a.argument(g,"path",y,["string"]),a.options(g,"options",m,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),m&&m.checksum!==void 0&&i.supportedChecksumAlgorithms.indexOf(m.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${g} must have one of values: ${i.supportedChecksumAlgorithms.join(", ")}`);if(m&&m.symlinks!==void 0&&i.symlinkOptions.indexOf(m.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${g} must have one of values: ${i.symlinkOptions.join(", ")}`)},n=(b,y)=>b===void 0?".":b.relativePath+"/"+y.name,l=(b,y)=>{let m=e.createHash(y);return b.forEach(g=>{m.update(g.name+g[y])}),m.digest("hex")},f=(b,y,m)=>{m.relativePath&&(y.relativePath=n(b,y)),y.type==="dir"&&(y.children.forEach(g=>{f(y,g,m)}),y.size=0,y.children.sort((g,c)=>g.type==="dir"&&c.type==="file"?-1:g.type==="file"&&c.type==="dir"?1:g.name.localeCompare(c.name)),y.children.forEach(g=>{y.size+=g.size||0}),m.checksum&&(y[m.checksum]=l(y.children,m.checksum)))},p=(b,y,m)=>{let g=y[0];if(y.length>1){let c=b.children.find(d=>d.name===g);return p(c,y.slice(1),m)}return b},_=(b,y)=>{let m=y||{},g;return u.sync(b,{inspectOptions:m},(c,d)=>{if(d){d.type==="dir"&&(d.children=[]);let v=r.relative(b,c);v===""?g=d:p(g,v.split(r.sep),d).children.push(d)}}),g&&f(void 0,g,m),g},A=(b,y)=>{let m=y||{},g;return new Promise((c,d)=>{u.async(b,{inspectOptions:m},(v,h)=>{if(h){h.type==="dir"&&(h.children=[]);let O=r.relative(b,v);O===""?g=h:p(g,O.split(r.sep),h).children.push(h)}},v=>{v?d(v):(g&&f(void 0,g,m),c(g))})})};t.validateInput=o,t.sync=_,t.async=A}}),Nt=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/exists.js"(t){"use strict";var e=Pe(),r=ye(),i=(u,o)=>{let n=`${u}(path)`;r.argument(n,"path",o,["string"])},s=u=>{try{let o=e.statSync(u);return o.isDirectory()?"dir":o.isFile()?"file":"other"}catch(o){if(o.code!=="ENOENT")throw o}return!1},a=u=>new Promise((o,n)=>{e.stat(u).then(l=>{l.isDirectory()?o("dir"):l.isFile()?o("file"):o("other")}).catch(l=>{l.code==="ENOENT"?o(!1):n(l)})});t.validateInput=i,t.sync=s,t.async=a}}),Xr=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/copy.js"(t){"use strict";var e=(0,I.__require)("path"),r=Pe(),i=Xe(),s=Nt(),a=ze(),u=lt(),o=Vr(),n=Ct(),l=Dt(),f=ye(),p=(E,S,T,D)=>{let F=`${E}(from, to, [options])`;f.argument(F,"from",S,["string"]),f.argument(F,"to",T,["string"]),f.options(F,"options",D,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},_=(E,S)=>{let T=E||{},D={};return T.ignoreCase===void 0&&(T.ignoreCase=!1),D.overwrite=T.overwrite,T.matching?D.allowedToCopy=o.create(S,T.matching,T.ignoreCase):D.allowedToCopy=()=>!0,D},A=E=>{let S=new Error(`Path to copy doesn't exist ${E}`);return S.code="ENOENT",S},b=E=>{let S=new Error(`Destination path already exists ${E}`);return S.code="EEXIST",S},y={mode:!0,symlinks:"report",times:!0,absolutePath:!0},m=E=>typeof E.opts.overwrite!="function"&&E.opts.overwrite!==!0,g=(E,S,T)=>{if(!s.sync(E))throw A(E);if(s.sync(S)&&!T.overwrite)throw b(S)},c=E=>{if(typeof E.opts.overwrite=="function"){let S=a.sync(E.destPath,y);return E.opts.overwrite(E.srcInspectData,S)}return E.opts.overwrite===!0},d=(E,S,T,D)=>{let F=r.readFileSync(E);try{r.writeFileSync(S,F,{mode:T,flag:"wx"})}catch(j){if(j.code==="ENOENT")u.sync(S,F,{mode:T});else if(j.code==="EEXIST"){if(c(D))r.writeFileSync(S,F,{mode:T});else if(m(D))throw b(D.destPath)}else throw j}},v=(E,S)=>{let T=r.readlinkSync(E);try{r.symlinkSync(T,S)}catch(D){if(D.code==="EEXIST")r.unlinkSync(S),r.symlinkSync(T,S);else throw D}},h=(E,S,T,D)=>{let F={srcPath:E,destPath:T,srcInspectData:S,opts:D},j=n.normalizeFileMode(S.mode);S.type==="dir"?i.createSync(T,{mode:j}):S.type==="file"?d(E,T,j,F):S.type==="symlink"&&v(E,T)},O=(E,S,T)=>{let D=_(T,E);g(E,S,D),l.sync(E,{inspectOptions:y},(F,j)=>{let $=e.relative(E,F),B=e.resolve(S,$);D.allowedToCopy(F,B,j)&&h(F,j,B,D)})},w=(E,S,T)=>s.async(E).then(D=>{if(D)return s.async(S);throw A(E)}).then(D=>{if(D&&!T.overwrite)throw b(S)}),x=E=>new Promise((S,T)=>{typeof E.opts.overwrite=="function"?a.async(E.destPath,y).then(D=>{S(E.opts.overwrite(E.srcInspectData,D))}).catch(T):S(E.opts.overwrite===!0)}),P=(E,S,T,D,F)=>new Promise((j,$)=>{let B=F||{},M="wx";B.overwrite&&(M="w");let G=r.createReadStream(E),L=r.createWriteStream(S,{mode:T,flags:M});G.on("error",$),L.on("error",X=>{G.resume(),X.code==="ENOENT"?i.createAsync(e.dirname(S)).then(()=>{P(E,S,T,D).then(j,$)}).catch($):X.code==="EEXIST"?x(D).then(se=>{se?P(E,S,T,D,{overwrite:!0}).then(j,$):m(D)?$(b(S)):j()}).catch($):$(X)}),L.on("finish",j),G.pipe(L)}),k=(E,S)=>r.readlink(E).then(T=>new Promise((D,F)=>{r.symlink(T,S).then(D).catch(j=>{j.code==="EEXIST"?r.unlink(S).then(()=>r.symlink(T,S)).then(D,F):F(j)})})),R=(E,S,T,D)=>{let F={srcPath:E,destPath:T,srcInspectData:S,opts:D},j=n.normalizeFileMode(S.mode);return S.type==="dir"?i.createAsync(T,{mode:j}):S.type==="file"?P(E,T,j,F):S.type==="symlink"?k(E,T):Promise.resolve()},C=(E,S,T)=>new Promise((D,F)=>{let j=_(T,E);w(E,S,j).then(()=>{let $=!1,B=0;l.async(E,{inspectOptions:y},(M,G)=>{if(G){let L=e.relative(E,M),X=e.resolve(S,L);j.allowedToCopy(M,G,X)&&(B+=1,R(M,G,X,j).then(()=>{B-=1,$&&B===0&&D()}).catch(F))}},M=>{M?F(M):($=!0,$&&B===0&&D())})}).catch(F)});t.validateInput=p,t.sync=O,t.async=C}}),Yr=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/move.js"(t){"use strict";var e=(0,I.__require)("path"),r=Pe(),i=ye(),s=Xr(),a=Xe(),u=Nt(),o=It(),n=(y,m,g,c)=>{let d=`${y}(from, to, [options])`;i.argument(d,"from",m,["string"]),i.argument(d,"to",g,["string"]),i.options(d,"options",c,{overwrite:["boolean"]})},l=y=>y||{},f=y=>{let m=new Error(`Destination path already exists ${y}`);return m.code="EEXIST",m},p=y=>{let m=new Error(`Path to move doesn't exist ${y}`);return m.code="ENOENT",m},_=(y,m,g)=>{let c=l(g);if(u.sync(m)!==!1&&c.overwrite!==!0)throw f(m);try{r.renameSync(y,m)}catch(d){if(d.code==="EISDIR"||d.code==="EPERM")o.sync(m),r.renameSync(y,m);else if(d.code==="EXDEV")s.sync(y,m,{overwrite:!0}),o.sync(y);else if(d.code==="ENOENT"){if(!u.sync(y))throw p(y);a.createSync(e.dirname(m)),r.renameSync(y,m)}else throw d}},A=y=>new Promise((m,g)=>{let c=e.dirname(y);u.async(c).then(d=>{d?g():a.createAsync(c).then(m,g)}).catch(g)}),b=(y,m,g)=>{let c=l(g);return new Promise((d,v)=>{u.async(m).then(h=>{h!==!1&&c.overwrite!==!0?v(f(m)):r.rename(y,m).then(d).catch(O=>{O.code==="EISDIR"||O.code==="EPERM"?o.async(m).then(()=>r.rename(y,m)).then(d,v):O.code==="EXDEV"?s.async(y,m,{overwrite:!0}).then(()=>o.async(y)).then(d,v):O.code==="ENOENT"?u.async(y).then(w=>{w?A(m).then(()=>r.rename(y,m)).then(d,v):v(p(y))}).catch(v):v(O)})})})};t.validateInput=n,t.sync=_,t.async=b}}),so=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/read.js"(t){"use strict";var e=Pe(),r=ye(),i=["utf8","buffer","json","jsonWithDates"],s=(l,f,p)=>{let _=`${l}(path, returnAs)`;if(r.argument(_,"path",f,["string"]),r.argument(_,"returnAs",p,["string","undefined"]),p&&i.indexOf(p)===-1)throw new Error(`Argument "returnAs" passed to ${_} must have one of values: ${i.join(", ")}`)},a=(l,f)=>typeof f=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(f)?new Date(f):f,u=(l,f)=>{let p=new Error(`JSON parsing failed while reading ${l} [${f}]`);return p.originalError=f,p},o=(l,f)=>{let p=f||"utf8",_,A="utf8";p==="buffer"&&(A=null);try{_=e.readFileSync(l,{encoding:A})}catch(b){if(b.code==="ENOENT")return;throw b}try{p==="json"?_=JSON.parse(_):p==="jsonWithDates"&&(_=JSON.parse(_,a))}catch(b){throw u(l,b)}return _},n=(l,f)=>new Promise((p,_)=>{let A=f||"utf8",b="utf8";A==="buffer"&&(b=null),e.readFile(l,{encoding:b}).then(y=>{try{p(A==="json"?JSON.parse(y):A==="jsonWithDates"?JSON.parse(y,a):y)}catch(m){_(u(l,m))}}).catch(y=>{y.code==="ENOENT"?p(void 0):_(y)})});t.validateInput=s,t.sync=o,t.async=n}}),oo=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/rename.js"(t){"use strict";var e=(0,I.__require)("path"),r=Yr(),i=ye(),s=(o,n,l,f)=>{let p=`${o}(path, newName, [options])`;if(i.argument(p,"path",n,["string"]),i.argument(p,"newName",l,["string"]),i.options(p,"options",f,{overwrite:["boolean"]}),e.basename(l)!==l)throw new Error(`Argument "newName" passed to ${p} should be a filename, not a path. Received "${l}"`)},a=(o,n,l)=>{let f=e.join(e.dirname(o),n);r.sync(o,f,l)},u=(o,n,l)=>{let f=e.join(e.dirname(o),n);return r.async(o,f,l)};t.validateInput=s,t.sync=a,t.async=u}}),ao=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/symlink.js"(t){"use strict";var e=(0,I.__require)("path"),r=Pe(),i=ye(),s=Xe(),a=(n,l,f)=>{let p=`${n}(symlinkValue, path)`;i.argument(p,"symlinkValue",l,["string"]),i.argument(p,"path",f,["string"])},u=(n,l)=>{try{r.symlinkSync(n,l)}catch(f){if(f.code==="ENOENT")s.createSync(e.dirname(l)),r.symlinkSync(n,l);else throw f}},o=(n,l)=>new Promise((f,p)=>{r.symlink(n,l).then(f).catch(_=>{_.code==="ENOENT"?s.createAsync(e.dirname(l)).then(()=>r.symlink(n,l)).then(f,p):p(_)})});t.validateInput=a,t.sync=u,t.async=o}}),co=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/streams.js"(t){"use strict";var e=(0,I.__require)("fs");t.createWriteStream=e.createWriteStream,t.createReadStream=e.createReadStream}}),uo=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/tmp_dir.js"(t){"use strict";var e=(0,I.__require)("path"),r=(0,I.__require)("os"),i=(0,I.__require)("crypto"),s=Xe(),a=Pe(),u=ye(),o=(_,A)=>{let b=`${_}([options])`;u.options(b,"options",A,{prefix:["string"],basePath:["string"]})},n=(_,A)=>{_=_||{};let b={};return typeof _.prefix!="string"?b.prefix="":b.prefix=_.prefix,typeof _.basePath=="string"?b.basePath=e.resolve(A,_.basePath):b.basePath=r.tmpdir(),b},l=32,f=(_,A)=>{let b=n(A,_),y=i.randomBytes(l/2).toString("hex"),m=e.join(b.basePath,b.prefix+y);try{a.mkdirSync(m)}catch(g){if(g.code==="ENOENT")s.sync(m);else throw g}return m},p=(_,A)=>new Promise((b,y)=>{let m=n(A,_);i.randomBytes(l/2,(g,c)=>{if(g)y(g);else{let d=c.toString("hex"),v=e.join(m.basePath,m.prefix+d);a.mkdir(v,h=>{h?h.code==="ENOENT"?s.async(v).then(()=>{b(v)},y):y(h):b(v)})}})});t.validateInput=o,t.sync=f,t.async=p}}),lo=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/jetpack.js"(t,e){"use strict";var r=(0,I.__require)("util"),i=(0,I.__require)("path"),s=zs(),a=Xe(),u=Zs(),o=no(),n=ze(),l=io(),f=Xr(),p=Nt(),_=jt(),A=Yr(),b=so(),y=It(),m=oo(),g=ao(),c=co(),d=uo(),v=lt(),h=O=>{let w=()=>O||process.cwd(),x=function(){if(arguments.length===0)return w();let E=Array.prototype.slice.call(arguments),S=[w()].concat(E);return h(i.resolve.apply(null,S))},P=E=>i.resolve(w(),E),k=function(){return Array.prototype.unshift.call(arguments,w()),i.resolve.apply(null,arguments)},R=E=>{let S=E||{};return S.cwd=w(),S},C={cwd:x,path:k,append:(E,S,T)=>{s.validateInput("append",E,S,T),s.sync(P(E),S,T)},appendAsync:(E,S,T)=>(s.validateInput("appendAsync",E,S,T),s.async(P(E),S,T)),copy:(E,S,T)=>{f.validateInput("copy",E,S,T),f.sync(P(E),P(S),T)},copyAsync:(E,S,T)=>(f.validateInput("copyAsync",E,S,T),f.async(P(E),P(S),T)),createWriteStream:(E,S)=>c.createWriteStream(P(E),S),createReadStream:(E,S)=>c.createReadStream(P(E),S),dir:(E,S)=>{a.validateInput("dir",E,S);let T=P(E);return a.sync(T,S),x(T)},dirAsync:(E,S)=>(a.validateInput("dirAsync",E,S),new Promise((T,D)=>{let F=P(E);a.async(F,S).then(()=>{T(x(F))},D)})),exists:E=>(p.validateInput("exists",E),p.sync(P(E))),existsAsync:E=>(p.validateInput("existsAsync",E),p.async(P(E))),file:(E,S)=>(u.validateInput("file",E,S),u.sync(P(E),S),C),fileAsync:(E,S)=>(u.validateInput("fileAsync",E,S),new Promise((T,D)=>{u.async(P(E),S).then(()=>{T(C)},D)})),find:(E,S)=>(typeof S>"u"&&typeof E=="object"&&(S=E,E="."),o.validateInput("find",E,S),o.sync(P(E),R(S))),findAsync:(E,S)=>(typeof S>"u"&&typeof E=="object"&&(S=E,E="."),o.validateInput("findAsync",E,S),o.async(P(E),R(S))),inspect:(E,S)=>(n.validateInput("inspect",E,S),n.sync(P(E),S)),inspectAsync:(E,S)=>(n.validateInput("inspectAsync",E,S),n.async(P(E),S)),inspectTree:(E,S)=>(l.validateInput("inspectTree",E,S),l.sync(P(E),S)),inspectTreeAsync:(E,S)=>(l.validateInput("inspectTreeAsync",E,S),l.async(P(E),S)),list:E=>(_.validateInput("list",E),_.sync(P(E||"."))),listAsync:E=>(_.validateInput("listAsync",E),_.async(P(E||"."))),move:(E,S,T)=>{A.validateInput("move",E,S,T),A.sync(P(E),P(S),T)},moveAsync:(E,S,T)=>(A.validateInput("moveAsync",E,S,T),A.async(P(E),P(S),T)),read:(E,S)=>(b.validateInput("read",E,S),b.sync(P(E),S)),readAsync:(E,S)=>(b.validateInput("readAsync",E,S),b.async(P(E),S)),remove:E=>{y.validateInput("remove",E),y.sync(P(E||"."))},removeAsync:E=>(y.validateInput("removeAsync",E),y.async(P(E||"."))),rename:(E,S,T)=>{m.validateInput("rename",E,S,T),m.sync(P(E),S,T)},renameAsync:(E,S,T)=>(m.validateInput("renameAsync",E,S,T),m.async(P(E),S,T)),symlink:(E,S)=>{g.validateInput("symlink",E,S),g.sync(E,P(S))},symlinkAsync:(E,S)=>(g.validateInput("symlinkAsync",E,S),g.async(E,P(S))),tmpDir:E=>{d.validateInput("tmpDir",E);let S=d.sync(w(),E);return x(S)},tmpDirAsync:E=>(d.validateInput("tmpDirAsync",E),new Promise((S,T)=>{d.async(w(),E).then(D=>{S(x(D))},T)})),write:(E,S,T)=>{v.validateInput("write",E,S,T),v.sync(P(E),S,T)},writeAsync:(E,S,T)=>(v.validateInput("writeAsync",E,S,T),v.async(P(E),S,T))};return r.inspect.custom!==void 0&&(C[r.inspect.custom]=()=>`[fs-jetpack CWD: ${w()}]`),C};e.exports=h}}),fo=(0,I.__commonJS)({"../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/main.js"(t,e){"use strict";var r=lo();e.exports=r()}}),po=(0,I.__commonJS)({"../../node_modules/.pnpm/crypto-random-string@2.0.0/node_modules/crypto-random-string/index.js"(t,e){"use strict";var r=(0,I.__require)("crypto");e.exports=i=>{if(!Number.isFinite(i))throw new TypeError("Expected a finite number");return r.randomBytes(Math.ceil(i/2)).toString("hex").slice(0,i)}}}),mo=(0,I.__commonJS)({"../../node_modules/.pnpm/unique-string@2.0.0/node_modules/unique-string/index.js"(t,e){"use strict";var r=po();e.exports=()=>r(32)}}),ho=(0,I.__commonJS)({"../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(t,e){"use strict";var r=(0,I.__require)("fs"),i=(0,I.__require)("os"),s=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");global[s]||Object.defineProperty(global,s,{value:r.realpathSync(i.tmpdir())}),e.exports=global[s]}}),vo=(0,I.__commonJS)({"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(t,e){"use strict";e.exports=(...r)=>[...new Set([].concat(...r))]}}),Kr=(0,I.__commonJS)({"../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(t,e){"use strict";var r=(0,I.__require)("stream"),i=r.PassThrough,s=Array.prototype.slice;e.exports=a;function a(){let o=[],n=s.call(arguments),l=!1,f=n[n.length-1];f&&!Array.isArray(f)&&f.pipe==null?n.pop():f={};let p=f.end!==!1,_=f.pipeError===!0;f.objectMode==null&&(f.objectMode=!0),f.highWaterMark==null&&(f.highWaterMark=64*1024);let A=i(f);function b(){for(let g=0,c=arguments.length;g<c;g++)o.push(u(arguments[g],f));return y(),this}function y(){if(l)return;l=!0;let g=o.shift();if(!g){process.nextTick(m);return}Array.isArray(g)||(g=[g]);let c=g.length+1;function d(){--c>0||(l=!1,y())}function v(h){function O(){h.removeListener("merge2UnpipeEnd",O),h.removeListener("end",O),_&&h.removeListener("error",w),d()}function w(x){A.emit("error",x)}if(h._readableState.endEmitted)return d();h.on("merge2UnpipeEnd",O),h.on("end",O),_&&h.on("error",w),h.pipe(A,{end:!1}),h.resume()}for(let h=0;h<g.length;h++)v(g[h]);d()}function m(){l=!1,A.emit("queueDrain"),p&&A.end()}return A.setMaxListeners(0),A.add=b,A.on("unpipe",function(g){g.emit("merge2UnpipeEnd")}),n.length&&b.apply(null,n),A}function u(o,n){if(Array.isArray(o))for(let l=0,f=o.length;l<f;l++)o[l]=u(o[l],n);else{if(!o._readableState&&o.pipe&&(o=o.pipe(i(n))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}}),_o=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function e(i){return i.reduce((s,a)=>[].concat(s,a),[])}t.flatten=e;function r(i,s){let a=[[]],u=0;for(let o of i)s(o)?(u++,a[u]=[]):a[u].push(o);return a}t.splitWhen=r}}),go=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function e(r){return r.code==="ENOENT"}t.isEnoentCodeError=e}}),yo=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function r(i,s){return new e(i,s)}t.createDirentFromStats=r}}),So=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertPosixPathToPattern=t.convertWindowsPathToPattern=t.convertPathToPattern=t.escapePosixPath=t.escapeWindowsPath=t.escape=t.removeLeadingDotSegment=t.makeAbsolute=t.unixify=void 0;var e=(0,I.__require)("os"),r=(0,I.__require)("path"),i=e.platform()==="win32",s=2,a=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,u=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,o=/^\\\\([.?])/,n=/\\(?![!()+@[\]{}])/g;function l(m){return m.replace(/\\/g,"/")}t.unixify=l;function f(m,g){return r.resolve(m,g)}t.makeAbsolute=f;function p(m){if(m.charAt(0)==="."){let g=m.charAt(1);if(g==="/"||g==="\\")return m.slice(s)}return m}t.removeLeadingDotSegment=p,t.escape=i?_:A;function _(m){return m.replace(u,"\\$2")}t.escapeWindowsPath=_;function A(m){return m.replace(a,"\\$2")}t.escapePosixPath=A,t.convertPathToPattern=i?b:y;function b(m){return _(m).replace(o,"//$1").replace(n,"/")}t.convertWindowsPathToPattern=b;function y(m){return A(m)}t.convertPosixPathToPattern=y}}),bo=(0,I.__commonJS)({"../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"(t,e){"use strict";e.exports=function(i){if(typeof i!="string"||i==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(i);){if(s[2])return!0;i=i.slice(s.index+s[0].length)}return!1}}}),Qr=(0,I.__commonJS)({"../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"(t,e){"use strict";var r=bo(),i={"{":"}","(":")","[":"]"},s=function(u){if(u[0]==="!")return!0;for(var o=0,n=-2,l=-2,f=-2,p=-2,_=-2;o<u.length;){if(u[o]==="*"||u[o+1]==="?"&&/[\].+)]/.test(u[o])||l!==-1&&u[o]==="["&&u[o+1]!=="]"&&(l<o&&(l=u.indexOf("]",o)),l>o&&(_===-1||_>l||(_=u.indexOf("\\",o),_===-1||_>l)))||f!==-1&&u[o]==="{"&&u[o+1]!=="}"&&(f=u.indexOf("}",o),f>o&&(_=u.indexOf("\\",o),_===-1||_>f))||p!==-1&&u[o]==="("&&u[o+1]==="?"&&/[:!=]/.test(u[o+2])&&u[o+3]!==")"&&(p=u.indexOf(")",o),p>o&&(_=u.indexOf("\\",o),_===-1||_>p))||n!==-1&&u[o]==="("&&u[o+1]!=="|"&&(n<o&&(n=u.indexOf("|",o)),n!==-1&&u[n+1]!==")"&&(p=u.indexOf(")",n),p>n&&(_=u.indexOf("\\",n),_===-1||_>p))))return!0;if(u[o]==="\\"){var A=u[o+1];o+=2;var b=i[A];if(b){var y=u.indexOf(b,o);y!==-1&&(o=y+1)}if(u[o]==="!")return!0}else o++}return!1},a=function(u){if(u[0]==="!")return!0;for(var o=0;o<u.length;){if(/[*?{}()[\]]/.test(u[o]))return!0;if(u[o]==="\\"){var n=u[o+1];o+=2;var l=i[n];if(l){var f=u.indexOf(l,o);f!==-1&&(o=f+1)}if(u[o]==="!")return!0}else o++}return!1};e.exports=function(o,n){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var l=s;return n&&n.strict===!1&&(l=a),l(o)}}}),wo=(0,I.__commonJS)({"../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js"(t,e){"use strict";var r=Qr(),i=(0,I.__require)("path").posix.dirname,s=(0,I.__require)("os").platform()==="win32",a="/",u=/\\/g,o=/[\{\[].*[\}\]]$/,n=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(p,_){var A=Object.assign({flipBackslashes:!0},_);A.flipBackslashes&&s&&p.indexOf(a)<0&&(p=p.replace(u,a)),o.test(p)&&(p+=a),p+="a";do p=i(p);while(r(p)||n.test(p));return p.replace(l,"$1")}}}),$t=(0,I.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(t){"use strict";t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,r)=>e.nodes.find(i=>i.type===r),t.exceedsLimit=(e,r,i=1,s)=>s===!1||!t.isInteger(e)||!t.isInteger(r)?!1:(Number(r)-Number(e))/Number(i)>=s,t.escapeNode=(e,r=0,i)=>{let s=e.nodes[r];s&&(i&&s.type===i||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((r,i)=>(i.type==="text"&&r.push(i.value),i.type==="range"&&(i.type="text"),r),[]),t.flatten=(...e)=>{let r=[],i=s=>{for(let a=0;a<s.length;a++){let u=s[a];if(Array.isArray(u)){i(u);continue}u!==void 0&&r.push(u)}return r};return i(e),r}}}),Lt=(0,I.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(t,e){"use strict";var r=$t();e.exports=(i,s={})=>{let a=(u,o={})=>{let n=s.escapeInvalid&&r.isInvalidBrace(o),l=u.invalid===!0&&s.escapeInvalid===!0,f="";if(u.value)return(n||l)&&r.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let p of u.nodes)f+=a(p);return f};return a(i)}}}),Eo=(0,I.__commonJS)({"../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(t,e){"use strict";e.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}}),Po=(0,I.__commonJS)({"../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(t,e){"use strict";var r=Eo(),i=(c,d,v)=>{if(r(c)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(d===void 0||c===d)return String(c);if(r(d)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let h={relaxZeros:!0,...v};typeof h.strictZeros=="boolean"&&(h.relaxZeros=h.strictZeros===!1);let O=String(h.relaxZeros),w=String(h.shorthand),x=String(h.capture),P=String(h.wrap),k=c+":"+d+"="+O+w+x+P;if(i.cache.hasOwnProperty(k))return i.cache[k].result;let R=Math.min(c,d),C=Math.max(c,d);if(Math.abs(R-C)===1){let F=c+"|"+d;return h.capture?`(${F})`:h.wrap===!1?F:`(?:${F})`}let E=m(c)||m(d),S={min:c,max:d,a:R,b:C},T=[],D=[];if(E&&(S.isPadded=E,S.maxLen=String(S.max).length),R<0){let F=C<0?Math.abs(C):1;D=o(F,Math.abs(R),S,h),R=S.a=0}return C>=0&&(T=o(R,C,S,h)),S.negatives=D,S.positives=T,S.result=s(D,T,h),h.capture===!0?S.result=`(${S.result})`:h.wrap!==!1&&T.length+D.length>1&&(S.result=`(?:${S.result})`),i.cache[k]=S,S.result};function s(c,d,v){let h=n(c,d,"-",!1,v)||[],O=n(d,c,"",!1,v)||[],w=n(c,d,"-?",!0,v)||[];return h.concat(w).concat(O).join("|")}function a(c,d){let v=1,h=1,O=_(c,v),w=new Set([d]);for(;c<=O&&O<=d;)w.add(O),v+=1,O=_(c,v);for(O=A(d+1,h)-1;c<O&&O<=d;)w.add(O),h+=1,O=A(d+1,h)-1;return w=[...w],w.sort(f),w}function u(c,d,v){if(c===d)return{pattern:c,count:[],digits:0};let h=l(c,d),O=h.length,w="",x=0;for(let P=0;P<O;P++){let[k,R]=h[P];k===R?w+=k:k!=="0"||R!=="9"?w+=y(k,R,v):x++}return x&&(w+=v.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[x],digits:O}}function o(c,d,v,h){let O=a(c,d),w=[],x=c,P;for(let k=0;k<O.length;k++){let R=O[k],C=u(String(x),String(R),h),E="";if(!v.isPadded&&P&&P.pattern===C.pattern){P.count.length>1&&P.count.pop(),P.count.push(C.count[0]),P.string=P.pattern+b(P.count),x=R+1;continue}v.isPadded&&(E=g(R,v,h)),C.string=E+C.pattern+b(C.count),w.push(C),x=R+1,P=C}return w}function n(c,d,v,h,O){let w=[];for(let x of c){let{string:P}=x;!h&&!p(d,"string",P)&&w.push(v+P),h&&p(d,"string",P)&&w.push(v+P)}return w}function l(c,d){let v=[];for(let h=0;h<c.length;h++)v.push([c[h],d[h]]);return v}function f(c,d){return c>d?1:d>c?-1:0}function p(c,d,v){return c.some(h=>h[d]===v)}function _(c,d){return Number(String(c).slice(0,-d)+"9".repeat(d))}function A(c,d){return c-c%Math.pow(10,d)}function b(c){let[d=0,v=""]=c;return v||d>1?`{${d+(v?","+v:"")}}`:""}function y(c,d,v){return`[${c}${d-c===1?"":"-"}${d}]`}function m(c){return/^-?(0+)\d/.test(c)}function g(c,d,v){if(!d.isPadded)return c;let h=Math.abs(d.maxLen-String(c).length),O=v.relaxZeros!==!1;switch(h){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${h}}`:`0{${h}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i}}),zr=(0,I.__commonJS)({"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(t,e){"use strict";var r=(0,I.__require)("util"),i=Po(),s=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),a=h=>O=>h===!0?Number(O):String(O),u=h=>typeof h=="number"||typeof h=="string"&&h!=="",o=h=>Number.isInteger(+h),n=h=>{let O=`${h}`,w=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++w]==="0";);return w>0},l=(h,O,w)=>typeof h=="string"||typeof O=="string"?!0:w.stringify===!0,f=(h,O,w)=>{if(O>0){let x=h[0]==="-"?"-":"";x&&(h=h.slice(1)),h=x+h.padStart(x?O-1:O,"0")}return w===!1?String(h):h},p=(h,O)=>{let w=h[0]==="-"?"-":"";for(w&&(h=h.slice(1),O--);h.length<O;)h="0"+h;return w?"-"+h:h},_=(h,O,w)=>{h.negatives.sort((C,E)=>C<E?-1:C>E?1:0),h.positives.sort((C,E)=>C<E?-1:C>E?1:0);let x=O.capture?"":"?:",P="",k="",R;return h.positives.length&&(P=h.positives.map(C=>p(String(C),w)).join("|")),h.negatives.length&&(k=`-(${x}${h.negatives.map(C=>p(String(C),w)).join("|")})`),P&&k?R=`${P}|${k}`:R=P||k,O.wrap?`(${x}${R})`:R},A=(h,O,w,x)=>{if(w)return i(h,O,{wrap:!1,...x});let P=String.fromCharCode(h);if(h===O)return P;let k=String.fromCharCode(O);return`[${P}-${k}]`},b=(h,O,w)=>{if(Array.isArray(h)){let x=w.wrap===!0,P=w.capture?"":"?:";return x?`(${P}${h.join("|")})`:h.join("|")}return i(h,O,w)},y=(...h)=>new RangeError("Invalid range arguments: "+r.inspect(...h)),m=(h,O,w)=>{if(w.strictRanges===!0)throw y([h,O]);return[]},g=(h,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${h}" to be a number`);return[]},c=(h,O,w=1,x={})=>{let P=Number(h),k=Number(O);if(!Number.isInteger(P)||!Number.isInteger(k)){if(x.strictRanges===!0)throw y([h,O]);return[]}P===0&&(P=0),k===0&&(k=0);let R=P>k,C=String(h),E=String(O),S=String(w);w=Math.max(Math.abs(w),1);let T=n(C)||n(E)||n(S),D=T?Math.max(C.length,E.length,S.length):0,F=T===!1&&l(h,O,x)===!1,j=x.transform||a(F);if(x.toRegex&&w===1)return A(p(h,D),p(O,D),!0,x);let $={negatives:[],positives:[]},B=L=>$[L<0?"negatives":"positives"].push(Math.abs(L)),M=[],G=0;for(;R?P>=k:P<=k;)x.toRegex===!0&&w>1?B(P):M.push(f(j(P,G),D,F)),P=R?P-w:P+w,G++;return x.toRegex===!0?w>1?_($,x,D):b(M,null,{wrap:!1,...x}):M},d=(h,O,w=1,x={})=>{if(!o(h)&&h.length>1||!o(O)&&O.length>1)return m(h,O,x);let P=x.transform||(F=>String.fromCharCode(F)),k=`${h}`.charCodeAt(0),R=`${O}`.charCodeAt(0),C=k>R,E=Math.min(k,R),S=Math.max(k,R);if(x.toRegex&&w===1)return A(E,S,!1,x);let T=[],D=0;for(;C?k>=R:k<=R;)T.push(P(k,D)),k=C?k-w:k+w,D++;return x.toRegex===!0?b(T,null,{wrap:!1,options:x}):T},v=(h,O,w,x={})=>{if(O==null&&u(h))return[h];if(!u(h)||!u(O))return m(h,O,x);if(typeof w=="function")return v(h,O,1,{transform:w});if(s(w))return v(h,O,0,w);let P={...x};return P.capture===!0&&(P.wrap=!0),w=w||P.step||1,o(w)?o(h)&&o(O)?c(h,O,w,P):d(h,O,Math.max(Math.abs(w),1),P):w!=null&&!s(w)?g(w,P):v(h,O,1,w)};e.exports=v}}),Ao=(0,I.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(t,e){"use strict";var r=zr(),i=$t(),s=(a,u={})=>{let o=(n,l={})=>{let f=i.isInvalidBrace(l),p=n.invalid===!0&&u.escapeInvalid===!0,_=f===!0||p===!0,A=u.escapeInvalid===!0?"\\":"",b="";if(n.isOpen===!0)return A+n.value;if(n.isClose===!0)return console.log("node.isClose",A,n.value),A+n.value;if(n.type==="open")return _?A+n.value:"(";if(n.type==="close")return _?A+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":_?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let y=i.reduce(n.nodes),m=r(...y,{...u,wrap:!1,toRegex:!0,strictZeros:!0});if(m.length!==0)return y.length>1&&m.length>1?`(${m})`:m}if(n.nodes)for(let y of n.nodes)b+=o(y,n);return b};return o(a)};e.exports=s}}),xo=(0,I.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(t,e){"use strict";var r=zr(),i=Lt(),s=$t(),a=(o="",n="",l=!1)=>{let f=[];if(o=[].concat(o),n=[].concat(n),!n.length)return o;if(!o.length)return l?s.flatten(n).map(p=>`{${p}}`):n;for(let p of o)if(Array.isArray(p))for(let _ of p)f.push(a(_,n,l));else for(let _ of n)l===!0&&typeof _=="string"&&(_=`{${_}}`),f.push(Array.isArray(_)?a(p,_,l):p+_);return s.flatten(f)},u=(o,n={})=>{let l=n.rangeLimit===void 0?1e3:n.rangeLimit,f=(p,_={})=>{p.queue=[];let A=_,b=_.queue;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,b=A.queue;if(p.invalid||p.dollar){b.push(a(b.pop(),i(p,n)));return}if(p.type==="brace"&&p.invalid!==!0&&p.nodes.length===2){b.push(a(b.pop(),["{}"]));return}if(p.nodes&&p.ranges>0){let c=s.reduce(p.nodes);if(s.exceedsLimit(...c,n.step,l))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=r(...c,n);d.length===0&&(d=i(p,n)),b.push(a(b.pop(),d)),p.nodes=[];return}let y=s.encloseBrace(p),m=p.queue,g=p;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,m=g.queue;for(let c=0;c<p.nodes.length;c++){let d=p.nodes[c];if(d.type==="comma"&&p.type==="brace"){c===1&&m.push(""),m.push("");continue}if(d.type==="close"){b.push(a(b.pop(),m,y));continue}if(d.value&&d.type!=="open"){m.push(a(m.pop(),d.value));continue}d.nodes&&f(d,p)}return m};return s.flatten(f(o))};e.exports=u}}),Oo=(0,I.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(t,e){"use strict";e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
9
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),Ro=(0,I.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(t,e){"use strict";var r=Lt(),{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:a,CHAR_COMMA:u,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:n,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:_,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:b,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:g}=Oo(),c=(d,v={})=>{if(typeof d!="string")throw new TypeError("Expected a string");let h=v||{},O=typeof h.maxLength=="number"?Math.min(i,h.maxLength):i;if(d.length>O)throw new SyntaxError(`Input length (${d.length}), exceeds max characters (${O})`);let w={type:"root",input:d,nodes:[]},x=[w],P=w,k=w,R=0,C=d.length,E=0,S=0,T,D=()=>d[E++],F=j=>{if(j.type==="text"&&k.type==="dot"&&(k.type="text"),k&&k.type==="text"&&j.type==="text"){k.value+=j.value;return}return P.nodes.push(j),j.parent=P,j.prev=k,k=j,j};for(F({type:"bos"});E<C;)if(P=x[x.length-1],T=D(),!(T===g||T===m)){if(T===s){F({type:"text",value:(v.keepEscaping?T:"")+D()});continue}if(T===A){F({type:"text",value:"\\"+T});continue}if(T===_){R++;let j;for(;E<C&&(j=D());){if(T+=j,j===_){R++;continue}if(j===s){T+=D();continue}if(j===A&&(R--,R===0))break}F({type:"text",value:T});continue}if(T===n){P=F({type:"paren",nodes:[]}),x.push(P),F({type:"text",value:T});continue}if(T===l){if(P.type!=="paren"){F({type:"text",value:T});continue}P=x.pop(),F({type:"text",value:T}),P=x[x.length-1];continue}if(T===b||T===y||T===a){let j=T,$;for(v.keepQuotes!==!0&&(T="");E<C&&($=D());){if($===s){T+=$+D();continue}if($===j){v.keepQuotes===!0&&(T+=$);break}T+=$}F({type:"text",value:T});continue}if(T===f){S++;let $={type:"brace",open:!0,close:!1,dollar:k.value&&k.value.slice(-1)==="$"||P.dollar===!0,depth:S,commas:0,ranges:0,nodes:[]};P=F($),x.push(P),F({type:"open",value:T});continue}if(T===p){if(P.type!=="brace"){F({type:"text",value:T});continue}let j="close";P=x.pop(),P.close=!0,F({type:j,value:T}),S--,P=x[x.length-1];continue}if(T===u&&S>0){if(P.ranges>0){P.ranges=0;let j=P.nodes.shift();P.nodes=[j,{type:"text",value:r(P)}]}F({type:"comma",value:T}),P.commas++;continue}if(T===o&&S>0&&P.commas===0){let j=P.nodes;if(S===0||j.length===0){F({type:"text",value:T});continue}if(k.type==="dot"){if(P.range=[],k.value+=T,k.type="range",P.nodes.length!==3&&P.nodes.length!==5){P.invalid=!0,P.ranges=0,k.type="text";continue}P.ranges++,P.args=[];continue}if(k.type==="range"){j.pop();let $=j[j.length-1];$.value+=k.value+T,k=$,P.ranges--;continue}F({type:"dot",value:T});continue}F({type:"text",value:T})}do if(P=x.pop(),P.type!=="root"){P.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let j=x[x.length-1],$=j.nodes.indexOf(P);j.nodes.splice($,1,...P.nodes)}while(x.length>0);return F({type:"eos"}),w};e.exports=c}}),To=(0,I.__commonJS)({"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(t,e){"use strict";var r=Lt(),i=Ao(),s=xo(),a=Ro(),u=(o,n={})=>{let l=[];if(Array.isArray(o))for(let f of o){let p=u.create(f,n);Array.isArray(p)?l.push(...p):l.push(p)}else l=[].concat(u.create(o,n));return n&&n.expand===!0&&n.nodupes===!0&&(l=[...new Set(l)]),l};u.parse=(o,n={})=>a(o,n),u.stringify=(o,n={})=>r(typeof o=="string"?u.parse(o,n):o,n),u.compile=(o,n={})=>(typeof o=="string"&&(o=u.parse(o,n)),i(o,n)),u.expand=(o,n={})=>{typeof o=="string"&&(o=u.parse(o,n));let l=s(o,n);return n.noempty===!0&&(l=l.filter(Boolean)),n.nodupes===!0&&(l=[...new Set(l)]),l},u.create=(o,n={})=>o===""||o.length<3?[o]:n.expand!==!0?u.compile(o,n):u.expand(o,n),e.exports=u}}),dt=(0,I.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(t,e){"use strict";var r=(0,I.__require)("path"),i="\\\\/",s=`[^${i}]`,a="\\.",u="\\+",o="\\?",n="\\/",l="(?=.)",f="[^/]",p=`(?:${n}|$)`,_=`(?:^|${n})`,A=`${a}{1,2}${p}`,b=`(?!${a})`,y=`(?!${_}${A})`,m=`(?!${a}{0,1}${p})`,g=`(?!${A})`,c=`[^.${n}]`,d=`${f}*?`,v={DOT_LITERAL:a,PLUS_LITERAL:u,QMARK_LITERAL:o,SLASH_LITERAL:n,ONE_CHAR:l,QMARK:f,END_ANCHOR:p,DOTS_SLASH:A,NO_DOT:b,NO_DOTS:y,NO_DOT_SLASH:m,NO_DOTS_SLASH:g,QMARK_NO_DOT:c,STAR:d,START_ANCHOR:_},h={...v,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${a}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${i}])${a}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`},O={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"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:O,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:{"***":"*","**/**":"**","**/**/**":"**"},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,SEP:r.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?h:v}}}}),ft=(0,I.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(t){"use strict";var e=(0,I.__require)("path"),r=process.platform==="win32",{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=dt();t.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),t.hasRegexChars=o=>a.test(o),t.isRegexChar=o=>o.length===1&&t.hasRegexChars(o),t.escapeRegex=o=>o.replace(u,"\\$1"),t.toPosixSlashes=o=>o.replace(i,"/"),t.removeBackslashes=o=>o.replace(s,n=>n==="\\"?"":n),t.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},t.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||e.sep==="\\",t.escapeLast=(o,n,l)=>{let f=o.lastIndexOf(n,l);return f===-1?o:o[f-1]==="\\"?t.escapeLast(o,n,f-1):`${o.slice(0,f)}\\${o.slice(f)}`},t.removePrefix=(o,n={})=>{let l=o;return l.startsWith("./")&&(l=l.slice(2),n.prefix="./"),l},t.wrapOutput=(o,n={},l={})=>{let f=l.contains?"":"^",p=l.contains?"":"$",_=`${f}(?:${o})${p}`;return n.negated===!0&&(_=`(?:^(?!${_}).*$)`),_}}}),ko=(0,I.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(t,e){"use strict";var r=ft(),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:u,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:n,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:_,CHAR_PLUS:A,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:g}=dt(),c=h=>h===l||h===a,d=h=>{h.isPrefix!==!0&&(h.depth=h.isGlobstar?1/0:1)},v=(h,O)=>{let w=O||{},x=h.length-1,P=w.parts===!0||w.scanToEnd===!0,k=[],R=[],C=[],E=h,S=-1,T=0,D=0,F=!1,j=!1,$=!1,B=!1,M=!1,G=!1,L=!1,X=!1,se=!1,V=!1,N=0,q,H,U={value:"",depth:0,isGlob:!1},ee=()=>S>=x,ie=()=>E.charCodeAt(S+1),Y=()=>(q=H,E.charCodeAt(++S));for(;S<x;){H=Y();let Q;if(H===a){L=U.backslashes=!0,H=Y(),H===f&&(G=!0);continue}if(G===!0||H===f){for(N++;ee()!==!0&&(H=Y());){if(H===a){L=U.backslashes=!0,Y();continue}if(H===f){N++;continue}if(G!==!0&&H===o&&(H=Y())===o){if(F=U.isBrace=!0,$=U.isGlob=!0,V=!0,P===!0)continue;break}if(G!==!0&&H===u){if(F=U.isBrace=!0,$=U.isGlob=!0,V=!0,P===!0)continue;break}if(H===y&&(N--,N===0)){G=!1,F=U.isBrace=!0,V=!0;break}}if(P===!0)continue;break}if(H===l){if(k.push(S),R.push(U),U={value:"",depth:0,isGlob:!1},V===!0)continue;if(q===o&&S===T+1){T+=2;continue}D=S+1;continue}if(w.noext!==!0&&(H===A||H===s||H===i||H===b||H===n)===!0&&ie()===p){if($=U.isGlob=!0,B=U.isExtglob=!0,V=!0,H===n&&S===T&&(se=!0),P===!0){for(;ee()!==!0&&(H=Y());){if(H===a){L=U.backslashes=!0,H=Y();continue}if(H===m){$=U.isGlob=!0,V=!0;break}}continue}break}if(H===i){if(q===i&&(M=U.isGlobstar=!0),$=U.isGlob=!0,V=!0,P===!0)continue;break}if(H===b){if($=U.isGlob=!0,V=!0,P===!0)continue;break}if(H===_){for(;ee()!==!0&&(Q=Y());){if(Q===a){L=U.backslashes=!0,Y();continue}if(Q===g){j=U.isBracket=!0,$=U.isGlob=!0,V=!0;break}}if(P===!0)continue;break}if(w.nonegate!==!0&&H===n&&S===T){X=U.negated=!0,T++;continue}if(w.noparen!==!0&&H===p){if($=U.isGlob=!0,P===!0){for(;ee()!==!0&&(H=Y());){if(H===p){L=U.backslashes=!0,H=Y();continue}if(H===m){V=!0;break}}continue}break}if($===!0){if(V=!0,P===!0)continue;break}}w.noext===!0&&(B=!1,$=!1);let K=E,Z="",ne="";T>0&&(Z=E.slice(0,T),E=E.slice(T),D-=T),K&&$===!0&&D>0?(K=E.slice(0,D),ne=E.slice(D)):$===!0?(K="",ne=E):K=E,K&&K!==""&&K!=="/"&&K!==E&&c(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),w.unescape===!0&&(ne&&(ne=r.removeBackslashes(ne)),K&&L===!0&&(K=r.removeBackslashes(K)));let z={prefix:Z,input:h,start:T,base:K,glob:ne,isBrace:F,isBracket:j,isGlob:$,isExtglob:B,isGlobstar:M,negated:X,negatedExtglob:se};if(w.tokens===!0&&(z.maxDepth=0,c(H)||R.push(U),z.tokens=R),w.parts===!0||w.tokens===!0){let Q;for(let pe=0;pe<k.length;pe++){let Ce=Q?Q+1:T,W=k[pe],oe=h.slice(Ce,W);w.tokens&&(pe===0&&T!==0?(R[pe].isPrefix=!0,R[pe].value=Z):R[pe].value=oe,d(R[pe]),z.maxDepth+=R[pe].depth),(pe!==0||oe!=="")&&C.push(oe),Q=W}if(Q&&Q+1<h.length){let pe=h.slice(Q+1);C.push(pe),w.tokens&&(R[R.length-1].value=pe,d(R[R.length-1]),z.maxDepth+=R[R.length-1].depth)}z.slashes=k,z.parts=C}return z};e.exports=v}}),Co=(0,I.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(t,e){"use strict";var r=dt(),i=ft(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:n}=r,l=(_,A)=>{if(typeof A.expandRange=="function")return A.expandRange(..._,A);_.sort();let b=`[${_.join("-")}]`;try{new RegExp(b)}catch{return _.map(m=>i.escapeRegex(m)).join("..")}return b},f=(_,A)=>`Missing ${_}: "${A}" - use "\\\\${A}" to match literal characters`,p=(_,A)=>{if(typeof _!="string")throw new TypeError("Expected a string");_=n[_]||_;let b={...A},y=typeof b.maxLength=="number"?Math.min(s,b.maxLength):s,m=_.length;if(m>y)throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${y}`);let g={type:"bos",value:"",output:b.prepend||""},c=[g],d=b.capture?"":"?:",v=i.isWindows(A),h=r.globChars(v),O=r.extglobChars(h),{DOT_LITERAL:w,PLUS_LITERAL:x,SLASH_LITERAL:P,ONE_CHAR:k,DOTS_SLASH:R,NO_DOT:C,NO_DOT_SLASH:E,NO_DOTS_SLASH:S,QMARK:T,QMARK_NO_DOT:D,STAR:F,START_ANCHOR:j}=h,$=W=>`(${d}(?:(?!${j}${W.dot?R:w}).)*?)`,B=b.dot?"":C,M=b.dot?T:D,G=b.bash===!0?$(b):F;b.capture&&(G=`(${G})`),typeof b.noext=="boolean"&&(b.noextglob=b.noext);let L={input:_,index:-1,start:0,dot:b.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:c};_=i.removePrefix(_,L),m=_.length;let X=[],se=[],V=[],N=g,q,H=()=>L.index===m-1,U=L.peek=(W=1)=>_[L.index+W],ee=L.advance=()=>_[++L.index]||"",ie=()=>_.slice(L.index+1),Y=(W="",oe=0)=>{L.consumed+=W,L.index+=oe},K=W=>{L.output+=W.output!=null?W.output:W.value,Y(W.value)},Z=()=>{let W=1;for(;U()==="!"&&(U(2)!=="("||U(3)==="?");)ee(),L.start++,W++;return W%2===0?!1:(L.negated=!0,L.start++,!0)},ne=W=>{L[W]++,V.push(W)},z=W=>{L[W]--,V.pop()},Q=W=>{if(N.type==="globstar"){let oe=L.braces>0&&(W.type==="comma"||W.type==="brace"),J=W.extglob===!0||X.length&&(W.type==="pipe"||W.type==="paren");W.type!=="slash"&&W.type!=="paren"&&!oe&&!J&&(L.output=L.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=G,L.output+=N.output)}if(X.length&&W.type!=="paren"&&(X[X.length-1].inner+=W.value),(W.value||W.output)&&K(W),N&&N.type==="text"&&W.type==="text"){N.value+=W.value,N.output=(N.output||"")+W.value;return}W.prev=N,c.push(W),N=W},pe=(W,oe)=>{let J={...O[oe],conditions:1,inner:""};J.prev=N,J.parens=L.parens,J.output=L.output;let re=(b.capture?"(":"")+J.open;ne("parens"),Q({type:W,value:oe,output:L.output?"":k}),Q({type:"paren",extglob:!0,value:ee(),output:re}),X.push(J)},Ce=W=>{let oe=W.close+(b.capture?")":""),J;if(W.type==="negate"){let re=G;if(W.inner&&W.inner.length>1&&W.inner.includes("/")&&(re=$(b)),(re!==G||H()||/^\)+$/.test(ie()))&&(oe=W.close=`)$))${re}`),W.inner.includes("*")&&(J=ie())&&/^\.[^\\/.]+$/.test(J)){let de=p(J,{...A,fastpaths:!1}).output;oe=W.close=`)${de})${re})`}W.prev.type==="bos"&&(L.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:q,output:oe}),z("parens")};if(b.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let W=!1,oe=_.replace(o,(J,re,de,ve,me,Je)=>ve==="\\"?(W=!0,J):ve==="?"?re?re+ve+(me?T.repeat(me.length):""):Je===0?M+(me?T.repeat(me.length):""):T.repeat(de.length):ve==="."?w.repeat(de.length):ve==="*"?re?re+ve+(me?G:""):G:re?J:`\\${J}`);return W===!0&&(b.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),oe===_&&b.contains===!0?(L.output=_,L):(L.output=i.wrapOutput(oe,L,A),L)}for(;!H();){if(q=ee(),q==="\0")continue;if(q==="\\"){let J=U();if(J==="/"&&b.bash!==!0||J==="."||J===";")continue;if(!J){q+="\\",Q({type:"text",value:q});continue}let re=/^\\+/.exec(ie()),de=0;if(re&&re[0].length>2&&(de=re[0].length,L.index+=de,de%2!==0&&(q+="\\")),b.unescape===!0?q=ee():q+=ee(),L.brackets===0){Q({type:"text",value:q});continue}}if(L.brackets>0&&(q!=="]"||N.value==="["||N.value==="[^")){if(b.posix!==!1&&q===":"){let J=N.value.slice(1);if(J.includes("[")&&(N.posix=!0,J.includes(":"))){let re=N.value.lastIndexOf("["),de=N.value.slice(0,re),ve=N.value.slice(re+2),me=a[ve];if(me){N.value=de+me,L.backtrack=!0,ee(),!g.output&&c.indexOf(N)===1&&(g.output=k);continue}}}(q==="["&&U()!==":"||q==="-"&&U()==="]")&&(q=`\\${q}`),q==="]"&&(N.value==="["||N.value==="[^")&&(q=`\\${q}`),b.posix===!0&&q==="!"&&N.value==="["&&(q="^"),N.value+=q,K({value:q});continue}if(L.quotes===1&&q!=='"'){q=i.escapeRegex(q),N.value+=q,K({value:q});continue}if(q==='"'){L.quotes=L.quotes===1?0:1,b.keepQuotes===!0&&Q({type:"text",value:q});continue}if(q==="("){ne("parens"),Q({type:"paren",value:q});continue}if(q===")"){if(L.parens===0&&b.strictBrackets===!0)throw new SyntaxError(f("opening","("));let J=X[X.length-1];if(J&&L.parens===J.parens+1){Ce(X.pop());continue}Q({type:"paren",value:q,output:L.parens?")":"\\)"}),z("parens");continue}if(q==="["){if(b.nobracket===!0||!ie().includes("]")){if(b.nobracket!==!0&&b.strictBrackets===!0)throw new SyntaxError(f("closing","]"));q=`\\${q}`}else ne("brackets");Q({type:"bracket",value:q});continue}if(q==="]"){if(b.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){Q({type:"text",value:q,output:`\\${q}`});continue}if(L.brackets===0){if(b.strictBrackets===!0)throw new SyntaxError(f("opening","["));Q({type:"text",value:q,output:`\\${q}`});continue}z("brackets");let J=N.value.slice(1);if(N.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(q=`/${q}`),N.value+=q,K({value:q}),b.literalBrackets===!1||i.hasRegexChars(J))continue;let re=i.escapeRegex(N.value);if(L.output=L.output.slice(0,-N.value.length),b.literalBrackets===!0){L.output+=re,N.value=re;continue}N.value=`(${d}${re}|${N.value})`,L.output+=N.value;continue}if(q==="{"&&b.nobrace!==!0){ne("braces");let J={type:"brace",value:q,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};se.push(J),Q(J);continue}if(q==="}"){let J=se[se.length-1];if(b.nobrace===!0||!J){Q({type:"text",value:q,output:q});continue}let re=")";if(J.dots===!0){let de=c.slice(),ve=[];for(let me=de.length-1;me>=0&&(c.pop(),de[me].type!=="brace");me--)de[me].type!=="dots"&&ve.unshift(de[me].value);re=l(ve,b),L.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let de=L.output.slice(0,J.outputIndex),ve=L.tokens.slice(J.tokensIndex);J.value=J.output="\\{",q=re="\\}",L.output=de;for(let me of ve)L.output+=me.output||me.value}Q({type:"brace",value:q,output:re}),z("braces"),se.pop();continue}if(q==="|"){X.length>0&&X[X.length-1].conditions++,Q({type:"text",value:q});continue}if(q===","){let J=q,re=se[se.length-1];re&&V[V.length-1]==="braces"&&(re.comma=!0,J="|"),Q({type:"comma",value:q,output:J});continue}if(q==="/"){if(N.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",c.pop(),N=g;continue}Q({type:"slash",value:q,output:P});continue}if(q==="."){if(L.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let J=se[se.length-1];N.type="dots",N.output+=q,N.value+=q,J.dots=!0;continue}if(L.braces+L.parens===0&&N.type!=="bos"&&N.type!=="slash"){Q({type:"text",value:q,output:w});continue}Q({type:"dot",value:q,output:w});continue}if(q==="?"){if(!(N&&N.value==="(")&&b.noextglob!==!0&&U()==="("&&U(2)!=="?"){pe("qmark",q);continue}if(N&&N.type==="paren"){let re=U(),de=q;if(re==="<"&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(ie()))&&(de=`\\${q}`),Q({type:"text",value:q,output:de});continue}if(b.dot!==!0&&(N.type==="slash"||N.type==="bos")){Q({type:"qmark",value:q,output:D});continue}Q({type:"qmark",value:q,output:T});continue}if(q==="!"){if(b.noextglob!==!0&&U()==="("&&(U(2)!=="?"||!/[!=<:]/.test(U(3)))){pe("negate",q);continue}if(b.nonegate!==!0&&L.index===0){Z();continue}}if(q==="+"){if(b.noextglob!==!0&&U()==="("&&U(2)!=="?"){pe("plus",q);continue}if(N&&N.value==="("||b.regex===!1){Q({type:"plus",value:q,output:x});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||L.parens>0){Q({type:"plus",value:q});continue}Q({type:"plus",value:x});continue}if(q==="@"){if(b.noextglob!==!0&&U()==="("&&U(2)!=="?"){Q({type:"at",extglob:!0,value:q,output:""});continue}Q({type:"text",value:q});continue}if(q!=="*"){(q==="$"||q==="^")&&(q=`\\${q}`);let J=u.exec(ie());J&&(q+=J[0],L.index+=J[0].length),Q({type:"text",value:q});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=q,N.output=G,L.backtrack=!0,L.globstar=!0,Y(q);continue}let W=ie();if(b.noextglob!==!0&&/^\([^?]/.test(W)){pe("star",q);continue}if(N.type==="star"){if(b.noglobstar===!0){Y(q);continue}let J=N.prev,re=J.prev,de=J.type==="slash"||J.type==="bos",ve=re&&(re.type==="star"||re.type==="globstar");if(b.bash===!0&&(!de||W[0]&&W[0]!=="/")){Q({type:"star",value:q,output:""});continue}let me=L.braces>0&&(J.type==="comma"||J.type==="brace"),Je=X.length&&(J.type==="pipe"||J.type==="paren");if(!de&&J.type!=="paren"&&!me&&!Je){Q({type:"star",value:q,output:""});continue}for(;W.slice(0,3)==="/**";){let De=_[L.index+4];if(De&&De!=="/")break;W=W.slice(3),Y("/**",3)}if(J.type==="bos"&&H()){N.type="globstar",N.value+=q,N.output=$(b),L.output=N.output,L.globstar=!0,Y(q);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!ve&&H()){L.output=L.output.slice(0,-(J.output+N.output).length),J.output=`(?:${J.output}`,N.type="globstar",N.output=$(b)+(b.strictSlashes?")":"|$)"),N.value+=q,L.globstar=!0,L.output+=J.output+N.output,Y(q);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&W[0]==="/"){let De=W[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(J.output+N.output).length),J.output=`(?:${J.output}`,N.type="globstar",N.output=`${$(b)}${P}|${P}${De})`,N.value+=q,L.output+=J.output+N.output,L.globstar=!0,Y(q+ee()),Q({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&W[0]==="/"){N.type="globstar",N.value+=q,N.output=`(?:^|${P}|${$(b)}${P})`,L.output=N.output,L.globstar=!0,Y(q+ee()),Q({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-N.output.length),N.type="globstar",N.output=$(b),N.value+=q,L.output+=N.output,L.globstar=!0,Y(q);continue}let oe={type:"star",value:q,output:G};if(b.bash===!0){oe.output=".*?",(N.type==="bos"||N.type==="slash")&&(oe.output=B+oe.output),Q(oe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&b.regex===!0){oe.output=q,Q(oe);continue}(L.index===L.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(L.output+=E,N.output+=E):b.dot===!0?(L.output+=S,N.output+=S):(L.output+=B,N.output+=B),U()!=="*"&&(L.output+=k,N.output+=k)),Q(oe)}for(;L.brackets>0;){if(b.strictBrackets===!0)throw new SyntaxError(f("closing","]"));L.output=i.escapeLast(L.output,"["),z("brackets")}for(;L.parens>0;){if(b.strictBrackets===!0)throw new SyntaxError(f("closing",")"));L.output=i.escapeLast(L.output,"("),z("parens")}for(;L.braces>0;){if(b.strictBrackets===!0)throw new SyntaxError(f("closing","}"));L.output=i.escapeLast(L.output,"{"),z("braces")}if(b.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${P}?`}),L.backtrack===!0){L.output="";for(let W of L.tokens)L.output+=W.output!=null?W.output:W.value,W.suffix&&(L.output+=W.suffix)}return L};p.fastpaths=(_,A)=>{let b={...A},y=typeof b.maxLength=="number"?Math.min(s,b.maxLength):s,m=_.length;if(m>y)throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${y}`);_=n[_]||_;let g=i.isWindows(A),{DOT_LITERAL:c,SLASH_LITERAL:d,ONE_CHAR:v,DOTS_SLASH:h,NO_DOT:O,NO_DOTS:w,NO_DOTS_SLASH:x,STAR:P,START_ANCHOR:k}=r.globChars(g),R=b.dot?w:O,C=b.dot?x:O,E=b.capture?"":"?:",S={negated:!1,prefix:""},T=b.bash===!0?".*?":P;b.capture&&(T=`(${T})`);let D=B=>B.noglobstar===!0?T:`(${E}(?:(?!${k}${B.dot?h:c}).)*?)`,F=B=>{switch(B){case"*":return`${R}${v}${T}`;case".*":return`${c}${v}${T}`;case"*.*":return`${R}${T}${c}${v}${T}`;case"*/*":return`${R}${T}${d}${v}${C}${T}`;case"**":return R+D(b);case"**/*":return`(?:${R}${D(b)}${d})?${C}${v}${T}`;case"**/*.*":return`(?:${R}${D(b)}${d})?${C}${T}${c}${v}${T}`;case"**/.*":return`(?:${R}${D(b)}${d})?${c}${v}${T}`;default:{let M=/^(.*?)\.(\w+)$/.exec(B);if(!M)return;let G=F(M[1]);return G?G+c+M[2]:void 0}}},j=i.removePrefix(_,S),$=F(j);return $&&b.strictSlashes!==!0&&($+=`${d}?`),$},e.exports=p}}),Io=(0,I.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(t,e){"use strict";var r=(0,I.__require)("path"),i=ko(),s=Co(),a=ft(),u=dt(),o=l=>l&&typeof l=="object"&&!Array.isArray(l),n=(l,f,p=!1)=>{if(Array.isArray(l)){let d=l.map(h=>n(h,f,p));return h=>{for(let O of d){let w=O(h);if(w)return w}return!1}}let _=o(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!_)throw new TypeError("Expected pattern to be a non-empty string");let A=f||{},b=a.isWindows(f),y=_?n.compileRe(l,f):n.makeRe(l,f,!1,!0),m=y.state;delete y.state;let g=()=>!1;if(A.ignore){let d={...f,ignore:null,onMatch:null,onResult:null};g=n(A.ignore,d,p)}let c=(d,v=!1)=>{let{isMatch:h,match:O,output:w}=n.test(d,y,f,{glob:l,posix:b}),x={glob:l,state:m,regex:y,posix:b,input:d,output:w,match:O,isMatch:h};return typeof A.onResult=="function"&&A.onResult(x),h===!1?(x.isMatch=!1,v?x:!1):g(d)?(typeof A.onIgnore=="function"&&A.onIgnore(x),x.isMatch=!1,v?x:!1):(typeof A.onMatch=="function"&&A.onMatch(x),v?x:!0)};return p&&(c.state=m),c};n.test=(l,f,p,{glob:_,posix:A}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};let b=p||{},y=b.format||(A?a.toPosixSlashes:null),m=l===_,g=m&&y?y(l):l;return m===!1&&(g=y?y(l):l,m=g===_),(m===!1||b.capture===!0)&&(b.matchBase===!0||b.basename===!0?m=n.matchBase(l,f,p,A):m=f.exec(g)),{isMatch:!!m,match:m,output:g}},n.matchBase=(l,f,p,_=a.isWindows(p))=>(f instanceof RegExp?f:n.makeRe(f,p)).test(r.basename(l)),n.isMatch=(l,f,p)=>n(f,p)(l),n.parse=(l,f)=>Array.isArray(l)?l.map(p=>n.parse(p,f)):s(l,{...f,fastpaths:!1}),n.scan=(l,f)=>i(l,f),n.compileRe=(l,f,p=!1,_=!1)=>{if(p===!0)return l.output;let A=f||{},b=A.contains?"":"^",y=A.contains?"":"$",m=`${b}(?:${l.output})${y}`;l&&l.negated===!0&&(m=`^(?!${m}).*$`);let g=n.toRegex(m,f);return _===!0&&(g.state=l),g},n.makeRe=(l,f={},p=!1,_=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let A={negated:!1,fastpaths:!0};return f.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(A.output=s.fastpaths(l,f)),A.output||(A=s(l,f)),n.compileRe(A,f,p,_)},n.toRegex=(l,f)=>{try{let p=f||{};return new RegExp(l,p.flags||(p.nocase?"i":""))}catch(p){if(f&&f.debug===!0)throw p;return/$^/}},n.constants=u,e.exports=n}}),jo=(0,I.__commonJS)({"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(t,e){"use strict";e.exports=Io()}}),Do=(0,I.__commonJS)({"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(t,e){"use strict";var r=(0,I.__require)("util"),i=To(),s=jo(),a=ft(),u=l=>l===""||l==="./",o=l=>{let f=l.indexOf("{");return f>-1&&l.indexOf("}",f)>-1},n=(l,f,p)=>{f=[].concat(f),l=[].concat(l);let _=new Set,A=new Set,b=new Set,y=0,m=d=>{b.add(d.output),p&&p.onResult&&p.onResult(d)};for(let d=0;d<f.length;d++){let v=s(String(f[d]),{...p,onResult:m},!0),h=v.state.negated||v.state.negatedExtglob;h&&y++;for(let O of l){let w=v(O,!0);(h?!w.isMatch:w.isMatch)&&(h?_.add(w.output):(_.delete(w.output),A.add(w.output)))}}let c=(y===f.length?[...b]:[...A]).filter(d=>!_.has(d));if(p&&c.length===0){if(p.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(p.nonull===!0||p.nullglob===!0)return p.unescape?f.map(d=>d.replace(/\\/g,"")):f}return c};n.match=n,n.matcher=(l,f)=>s(l,f),n.isMatch=(l,f,p)=>s(f,p)(l),n.any=n.isMatch,n.not=(l,f,p={})=>{f=[].concat(f).map(String);let _=new Set,A=[],b=m=>{p.onResult&&p.onResult(m),A.push(m.output)},y=new Set(n(l,f,{...p,onResult:b}));for(let m of A)y.has(m)||_.add(m);return[..._]},n.contains=(l,f,p)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);if(Array.isArray(f))return f.some(_=>n.contains(l,_,p));if(typeof f=="string"){if(u(l)||u(f))return!1;if(l.includes(f)||l.startsWith("./")&&l.slice(2).includes(f))return!0}return n.isMatch(l,f,{...p,contains:!0})},n.matchKeys=(l,f,p)=>{if(!a.isObject(l))throw new TypeError("Expected the first argument to be an object");let _=n(Object.keys(l),f,p),A={};for(let b of _)A[b]=l[b];return A},n.some=(l,f,p)=>{let _=[].concat(l);for(let A of[].concat(f)){let b=s(String(A),p);if(_.some(y=>b(y)))return!0}return!1},n.every=(l,f,p)=>{let _=[].concat(l);for(let A of[].concat(f)){let b=s(String(A),p);if(!_.every(y=>b(y)))return!1}return!0},n.all=(l,f,p)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);return[].concat(f).every(_=>s(_,p)(l))},n.capture=(l,f,p)=>{let _=a.isWindows(p),b=s.makeRe(String(l),{...p,capture:!0}).exec(_?a.toPosixSlashes(f):f);if(b)return b.slice(1).map(y=>y===void 0?"":y)},n.makeRe=(...l)=>s.makeRe(...l),n.scan=(...l)=>s.scan(...l),n.parse=(l,f)=>{let p=[];for(let _ of[].concat(l||[]))for(let A of i(String(_),f))p.push(s.parse(A,f));return p},n.braces=(l,f)=>{if(typeof l!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!o(l)?[l]:i(l,f)},n.braceExpand=(l,f)=>{if(typeof l!="string")throw new TypeError("Expected a string");return n.braces(l,{...f,expand:!0})},n.hasBraces=o,e.exports=n}}),No=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAbsolute=t.partitionAbsoluteAndRelative=t.removeDuplicateSlashes=t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var e=(0,I.__require)("path"),r=wo(),i=Do(),s="**",a="\\",u=/[*?]|^!/,o=/\[[^[]*]/,n=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,l=/[!*+?@]\([^(]*\)/,f=/,|\.\./,p=/(?!^)\/{2,}/g;function _(M,G={}){return!A(M,G)}t.isStaticPattern=_;function A(M,G={}){return M===""?!1:!!(G.caseSensitiveMatch===!1||M.includes(a)||u.test(M)||o.test(M)||n.test(M)||G.extglob!==!1&&l.test(M)||G.braceExpansion!==!1&&b(M))}t.isDynamicPattern=A;function b(M){let G=M.indexOf("{");if(G===-1)return!1;let L=M.indexOf("}",G+1);if(L===-1)return!1;let X=M.slice(G,L);return f.test(X)}function y(M){return g(M)?M.slice(1):M}t.convertToPositivePattern=y;function m(M){return"!"+M}t.convertToNegativePattern=m;function g(M){return M.startsWith("!")&&M[1]!=="("}t.isNegativePattern=g;function c(M){return!g(M)}t.isPositivePattern=c;function d(M){return M.filter(g)}t.getNegativePatterns=d;function v(M){return M.filter(c)}t.getPositivePatterns=v;function h(M){return M.filter(G=>!w(G))}t.getPatternsInsideCurrentDirectory=h;function O(M){return M.filter(w)}t.getPatternsOutsideCurrentDirectory=O;function w(M){return M.startsWith("..")||M.startsWith("./..")}t.isPatternRelatedToParentDirectory=w;function x(M){return r(M,{flipBackslashes:!1})}t.getBaseDirectory=x;function P(M){return M.includes(s)}t.hasGlobStar=P;function k(M){return M.endsWith("/"+s)}t.endsWithSlashGlobStar=k;function R(M){let G=e.basename(M);return k(M)||_(G)}t.isAffectDepthOfReadingPattern=R;function C(M){return M.reduce((G,L)=>G.concat(E(L)),[])}t.expandPatternsWithBraceExpansion=C;function E(M){let G=i.braces(M,{expand:!0,nodupes:!0,keepEscaping:!0});return G.sort((L,X)=>L.length-X.length),G.filter(L=>L!=="")}t.expandBraceExpansion=E;function S(M,G){let{parts:L}=i.scan(M,Object.assign(Object.assign({},G),{parts:!0}));return L.length===0&&(L=[M]),L[0].startsWith("/")&&(L[0]=L[0].slice(1),L.unshift("")),L}t.getPatternParts=S;function T(M,G){return i.makeRe(M,G)}t.makeRe=T;function D(M,G){return M.map(L=>T(L,G))}t.convertPatternsToRe=D;function F(M,G){return G.some(L=>L.test(M))}t.matchAny=F;function j(M){return M.replace(p,"/")}t.removeDuplicateSlashes=j;function $(M){let G=[],L=[];for(let X of M)B(X)?G.push(X):L.push(X);return[G,L]}t.partitionAbsoluteAndRelative=$;function B(M){return e.isAbsolute(M)}t.isAbsolute=B}}),$o=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var e=Kr();function r(s){let a=e(s);return s.forEach(u=>{u.once("error",o=>a.emit("error",o))}),a.once("close",()=>i(s)),a.once("end",()=>i(s)),a}t.merge=r;function i(s){s.forEach(a=>a.emit("close"))}}}),Lo=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function e(i){return typeof i=="string"}t.isString=e;function r(i){return i===""}t.isEmpty=r}}),Ne=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var e=_o();t.array=e;var r=go();t.errno=r;var i=yo();t.fs=i;var s=So();t.path=s;var a=No();t.pattern=a;var u=$o();t.stream=u;var o=Lo();t.string=o}}),Mo=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var e=Ne();function r(f,p){let _=i(f,p),A=i(p.ignore,p),b=a(_),y=u(_,A),m=b.filter(v=>e.pattern.isStaticPattern(v,p)),g=b.filter(v=>e.pattern.isDynamicPattern(v,p)),c=s(m,y,!1),d=s(g,y,!0);return c.concat(d)}t.generate=r;function i(f,p){let _=f;return p.braceExpansion&&(_=e.pattern.expandPatternsWithBraceExpansion(_)),p.baseNameMatch&&(_=_.map(A=>A.includes("/")?A:`**/${A}`)),_.map(A=>e.pattern.removeDuplicateSlashes(A))}function s(f,p,_){let A=[],b=e.pattern.getPatternsOutsideCurrentDirectory(f),y=e.pattern.getPatternsInsideCurrentDirectory(f),m=o(b),g=o(y);return A.push(...n(m,p,_)),"."in g?A.push(l(".",y,p,_)):A.push(...n(g,p,_)),A}t.convertPatternsToTasks=s;function a(f){return e.pattern.getPositivePatterns(f)}t.getPositivePatterns=a;function u(f,p){return e.pattern.getNegativePatterns(f).concat(p).map(e.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=u;function o(f){let p={};return f.reduce((_,A)=>{let b=e.pattern.getBaseDirectory(A);return b in _?_[b].push(A):_[b]=[A],_},p)}t.groupPatternsByBaseDirectory=o;function n(f,p,_){return Object.keys(f).map(A=>l(A,f[A],p,_))}t.convertPatternGroupsToTasks=n;function l(f,p,_,A){return{dynamic:A,positive:p,negative:_,base:f,patterns:[].concat(p,_.map(e.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=l}}),qo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(s,a,u){a.fs.lstat(s,(o,n)=>{if(o!==null){r(u,o);return}if(!n.isSymbolicLink()||!a.followSymbolicLink){i(u,n);return}a.fs.stat(s,(l,f)=>{if(l!==null){if(a.throwErrorOnBrokenSymbolicLink){r(u,l);return}i(u,n);return}a.markSymbolicLink&&(f.isSymbolicLink=()=>!0),i(u,f)})})}t.read=e;function r(s,a){s(a)}function i(s,a){s(null,a)}}}),Fo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function e(r,i){let s=i.fs.lstatSync(r);if(!s.isSymbolicLink()||!i.followSymbolicLink)return s;try{let a=i.fs.statSync(r);return i.markSymbolicLink&&(a.isSymbolicLink=()=>!0),a}catch(a){if(!i.throwErrorOnBrokenSymbolicLink)return s;throw a}}t.read=e}}),Bo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=(0,I.__require)("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}}),Go=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Bo(),r=class{constructor(i={}){this._options=i,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(i,s){return i??s}};t.default=r}}),Ye=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var e=qo(),r=Fo(),i=Go();t.Settings=i.default;function s(o,n,l){if(typeof n=="function"){e.read(o,u(),n);return}e.read(o,u(n),l)}t.stat=s;function a(o,n){let l=u(n);return r.read(o,l)}t.statSync=a;function u(o={}){return o instanceof i.default?o:new i.default(o)}}}),Ho=(0,I.__commonJS)({"../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(t,e){"use strict";var r;e.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(r||(r=Promise.resolve())).then(i).catch(s=>setTimeout(()=>{throw s},0))}}),Jo=(0,I.__commonJS)({"../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js"(t,e){"use strict";e.exports=i;var r=Ho();function i(s,a){let u,o,n,l=!0;Array.isArray(s)?(u=[],o=s.length):(n=Object.keys(s),u={},o=n.length);function f(_){function A(){a&&a(_,u),a=null}l?r(A):A()}function p(_,A,b){u[_]=b,(--o===0||A)&&f(A)}o?n?n.forEach(function(_){s[_](function(A,b){p(_,A,b)})}):s.forEach(function(_,A){_(function(b,y){p(A,b,y)})}):f(null),l=!1}}}),Zr=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var e=process.versions.node.split(".");if(e[0]===void 0||e[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(e[0],10),i=Number.parseInt(e[1],10),s=10,a=10,u=r>s,o=r===s&&i>=a;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||o}}),Uo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var e=class{constructor(i,s){this.name=i,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function r(i,s){return new e(i,s)}t.createDirentFromStats=r}}),en=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var e=Uo();t.fs=e}}),tn=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function e(r,i,s){return r.endsWith(s)?r+i:r+s+i}t.joinPathSegments=e}}),Wo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=Ye(),r=Jo(),i=Zr(),s=en(),a=tn();function u(_,A,b){if(!A.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(_,A,b);return}l(_,A,b)}t.read=u;function o(_,A,b){A.fs.readdir(_,{withFileTypes:!0},(y,m)=>{if(y!==null){f(b,y);return}let g=m.map(d=>({dirent:d,name:d.name,path:a.joinPathSegments(_,d.name,A.pathSegmentSeparator)}));if(!A.followSymbolicLinks){p(b,g);return}let c=g.map(d=>n(d,A));r(c,(d,v)=>{if(d!==null){f(b,d);return}p(b,v)})})}t.readdirWithFileTypes=o;function n(_,A){return b=>{if(!_.dirent.isSymbolicLink()){b(null,_);return}A.fs.stat(_.path,(y,m)=>{if(y!==null){if(A.throwErrorOnBrokenSymbolicLink){b(y);return}b(null,_);return}_.dirent=s.fs.createDirentFromStats(_.name,m),b(null,_)})}}function l(_,A,b){A.fs.readdir(_,(y,m)=>{if(y!==null){f(b,y);return}let g=m.map(c=>{let d=a.joinPathSegments(_,c,A.pathSegmentSeparator);return v=>{e.stat(d,A.fsStatSettings,(h,O)=>{if(h!==null){v(h);return}let w={name:c,path:d,dirent:s.fs.createDirentFromStats(c,O)};A.stats&&(w.stats=O),v(null,w)})}});r(g,(c,d)=>{if(c!==null){f(b,c);return}p(b,d)})})}t.readdir=l;function f(_,A){_(A)}function p(_,A){_(null,A)}}}),Vo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var e=Ye(),r=Zr(),i=en(),s=tn();function a(n,l){return!l.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(n,l):o(n,l)}t.read=a;function u(n,l){return l.fs.readdirSync(n,{withFileTypes:!0}).map(p=>{let _={dirent:p,name:p.name,path:s.joinPathSegments(n,p.name,l.pathSegmentSeparator)};if(_.dirent.isSymbolicLink()&&l.followSymbolicLinks)try{let A=l.fs.statSync(_.path);_.dirent=i.fs.createDirentFromStats(_.name,A)}catch(A){if(l.throwErrorOnBrokenSymbolicLink)throw A}return _})}t.readdirWithFileTypes=u;function o(n,l){return l.fs.readdirSync(n).map(p=>{let _=s.joinPathSegments(n,p,l.pathSegmentSeparator),A=e.statSync(_,l.fsStatSettings),b={name:p,path:_,dirent:i.fs.createDirentFromStats(p,A)};return l.stats&&(b.stats=A),b})}t.readdir=o}}),Xo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var e=(0,I.__require)("fs");t.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};function r(i){return i===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),i)}t.createFileSystemAdapter=r}}),Yo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("path"),r=Ye(),i=Xo(),s=class{constructor(a={}){this._options=a,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(a,u){return a??u}};t.default=s}}),Mt=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var e=Wo(),r=Vo(),i=Yo();t.Settings=i.default;function s(o,n,l){if(typeof n=="function"){e.read(o,u(),n);return}e.read(o,u(n),l)}t.scandir=s;function a(o,n){let l=u(n);return r.read(o,l)}t.scandirSync=a;function u(o={}){return o instanceof i.default?o:new i.default(o)}}}),Ko=(0,I.__commonJS)({"../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(t,e){"use strict";function r(i){var s=new i,a=s;function u(){var n=s;return n.next?s=n.next:(s=new i,a=s),n.next=null,n}function o(n){a.next=n,a=n}return{get:u,release:o}}e.exports=r}}),Qo=(0,I.__commonJS)({"../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(t,e){"use strict";var r=Ko();function i(o,n,l){if(typeof o=="function"&&(l=n,n=o,o=null),l<1)throw new Error("fastqueue concurrency must be greater than 1");var f=r(a),p=null,_=null,A=0,b=null,y={push:O,drain:s,saturated:s,pause:g,paused:!1,concurrency:l,running:m,resume:v,idle:h,length:c,getQueue:d,unshift:w,empty:s,kill:P,killAndDrain:k,error:R};return y;function m(){return A}function g(){y.paused=!0}function c(){for(var C=p,E=0;C;)C=C.next,E++;return E}function d(){for(var C=p,E=[];C;)E.push(C.value),C=C.next;return E}function v(){if(y.paused){y.paused=!1;for(var C=0;C<y.concurrency;C++)A++,x()}}function h(){return A===0&&y.length()===0}function O(C,E){var S=f.get();S.context=o,S.release=x,S.value=C,S.callback=E||s,S.errorHandler=b,A===y.concurrency||y.paused?_?(_.next=S,_=S):(p=S,_=S,y.saturated()):(A++,n.call(o,S.value,S.worked))}function w(C,E){var S=f.get();S.context=o,S.release=x,S.value=C,S.callback=E||s,A===y.concurrency||y.paused?p?(S.next=p,p=S):(p=S,_=S,y.saturated()):(A++,n.call(o,S.value,S.worked))}function x(C){C&&f.release(C);var E=p;E?y.paused?A--:(_===p&&(_=null),p=E.next,E.next=null,n.call(o,E.value,E.worked),_===null&&y.empty()):--A===0&&y.drain()}function P(){p=null,_=null,y.drain=s}function k(){p=null,_=null,y.drain(),y.drain=s}function R(C){b=C}}function s(){}function a(){this.value=null,this.callback=s,this.next=null,this.release=s,this.context=null,this.errorHandler=null;var o=this;this.worked=function(l,f){var p=o.callback,_=o.errorHandler,A=o.value;o.value=null,o.callback=s,o.errorHandler&&_(l,A),p.call(o.context,l,f),o.release(o)}}function u(o,n,l){typeof o=="function"&&(l=n,n=o,o=null);function f(g,c){n.call(this,g).then(function(d){c(null,d)},c)}var p=i(o,f,l),_=p.push,A=p.unshift;return p.push=b,p.unshift=y,p.drained=m,p;function b(g){var c=new Promise(function(d,v){_(g,function(h,O){if(h){v(h);return}d(O)})});return c.catch(s),c}function y(g){var c=new Promise(function(d,v){A(g,function(h,O){if(h){v(h);return}d(O)})});return c.catch(s),c}function m(){if(p.idle())return new Promise(function(d){d()});var g=p.drain,c=new Promise(function(d){p.drain=function(){g(),d()}});return c}}e.exports=i,e.exports.promise=u}}),qt=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function e(a,u){return a.errorFilter===null?!0:!a.errorFilter(u)}t.isFatalError=e;function r(a,u){return a===null||a(u)}t.isAppliedFilter=r;function i(a,u){return a.split(/[/\\]/).join(u)}t.replacePathSegmentSeparator=i;function s(a,u,o){return a===""?u:a.endsWith(o)?a+u:a+o+u}t.joinPathSegments=s}}),rn=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=qt(),r=class{constructor(i,s){this._root=i,this._settings=s,this._root=e.replacePathSegmentSeparator(i,s.pathSegmentSeparator)}};t.default=r}}),nn=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("events"),r=Mt(),i=Qo(),s=qt(),a=rn(),u=class extends a.default{constructor(o,n){super(o,n),this._settings=n,this._scandir=r.scandir,this._emitter=new e.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,n){let l={directory:o,base:n};this._queue.push(l,f=>{f!==null&&this._handleError(f)})}_worker(o,n){this._scandir(o.directory,this._settings.fsScandirSettings,(l,f)=>{if(l!==null){n(l,void 0);return}for(let p of f)this._handleEntry(p,o.base);n(null,void 0)})}_handleError(o){this._isDestroyed||!s.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,n){if(this._isDestroyed||this._isFatalError)return;let l=o.path;n!==void 0&&(o.path=s.joinPathSegments(n,o.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(l,n===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};t.default=u}}),zo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=nn(),r=class{constructor(a,u){this._root=a,this._settings=u,this._reader=new e.default(this._root,this._settings),this._storage=[]}read(a){this._reader.onError(u=>{i(a,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{s(a,this._storage)}),this._reader.read()}};t.default=r;function i(a,u){a(u)}function s(a,u){a(null,u)}}}),Zo=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("stream"),r=nn(),i=class{constructor(s,a){this._root=s,this._settings=a,this._reader=new r.default(this._root,this._settings),this._stream=new e.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(s=>{this._stream.emit("error",s)}),this._reader.onEntry(s=>{this._stream.push(s)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=i}}),ea=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Mt(),r=qt(),i=rn(),s=class extends i.default{constructor(){super(...arguments),this._scandir=e.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(a,u){this._queue.add({directory:a,base:u})}_handleQueue(){for(let a of this._queue.values())this._handleDirectory(a.directory,a.base)}_handleDirectory(a,u){try{let o=this._scandir(a,this._settings.fsScandirSettings);for(let n of o)this._handleEntry(n,u)}catch(o){this._handleError(o)}}_handleError(a){if(r.isFatalError(this._settings,a))throw a}_handleEntry(a,u){let o=a.path;u!==void 0&&(a.path=r.joinPathSegments(u,a.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,a)&&this._pushToStorage(a),a.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(o,u===void 0?void 0:a.path)}_pushToStorage(a){this._storage.push(a)}};t.default=s}}),ta=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=ea(),r=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new e.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=r}}),ra=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("path"),r=Mt(),i=class{constructor(s={}){this._options=s,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,e.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(s,a){return s??a}};t.default=i}}),Ft=(0,I.__commonJS)({"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var e=zo(),r=Zo(),i=ta(),s=ra();t.Settings=s.default;function a(l,f,p){if(typeof f=="function"){new e.default(l,n()).read(f);return}new e.default(l,n(f)).read(p)}t.walk=a;function u(l,f){let p=n(f);return new i.default(l,p).read()}t.walkSync=u;function o(l,f){let p=n(f);return new r.default(l,p).read()}t.walkStream=o;function n(l={}){return l instanceof s.default?l:new s.default(l)}}}),Bt=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("path"),r=Ye(),i=Ne(),s=class{constructor(a){this._settings=a,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(a){return e.resolve(this._settings.cwd,a)}_makeEntry(a,u){let o={name:u,path:u,dirent:i.fs.createDirentFromStats(u,a)};return this._settings.stats&&(o.stats=a),o}_isFatalError(a){return!i.errno.isEnoentCodeError(a)&&!this._settings.suppressErrors}};t.default=s}}),sn=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("stream"),r=Ye(),i=Ft(),s=Bt(),a=class extends s.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=r.stat}dynamic(u,o){return this._walkStream(u,o)}static(u,o){let n=u.map(this._getFullEntryPath,this),l=new e.PassThrough({objectMode:!0});l._write=(f,p,_)=>this._getEntry(n[f],u[f],o).then(A=>{A!==null&&o.entryFilter(A)&&l.push(A),f===n.length-1&&l.end(),_()}).catch(_);for(let f=0;f<n.length;f++)l.write(f);return l}_getEntry(u,o,n){return this._getStat(u).then(l=>this._makeEntry(l,o)).catch(l=>{if(n.errorFilter(l))return null;throw l})}_getStat(u){return new Promise((o,n)=>{this._stat(u,this._fsStatSettings,(l,f)=>l===null?o(f):n(l))})}};t.default=a}}),na=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Ft(),r=Bt(),i=sn(),s=class extends r.default{constructor(){super(...arguments),this._walkAsync=e.walk,this._readerStream=new i.default(this._settings)}dynamic(a,u){return new Promise((o,n)=>{this._walkAsync(a,u,(l,f)=>{l===null?o(f):n(l)})})}async static(a,u){let o=[],n=this._readerStream.static(a,u);return new Promise((l,f)=>{n.once("error",f),n.on("data",p=>o.push(p)),n.once("end",()=>l(o))})}};t.default=s}}),ia=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Ne(),r=class{constructor(i,s,a){this._patterns=i,this._settings=s,this._micromatchOptions=a,this._storage=[],this._fillStorage()}_fillStorage(){for(let i of this._patterns){let s=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(s);this._storage.push({complete:a.length<=1,pattern:i,segments:s,sections:a})}}_getPatternSegments(i){return e.pattern.getPatternParts(i,this._micromatchOptions).map(a=>e.pattern.isDynamicPattern(a,this._settings)?{dynamic:!0,pattern:a,patternRe:e.pattern.makeRe(a,this._micromatchOptions)}:{dynamic:!1,pattern:a})}_splitSegmentsIntoSections(i){return e.array.splitWhen(i,s=>s.dynamic&&e.pattern.hasGlobStar(s.pattern))}};t.default=r}}),sa=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=ia(),r=class extends e.default{match(i){let s=i.split("/"),a=s.length,u=this._storage.filter(o=>!o.complete||o.segments.length>a);for(let o of u){let n=o.sections[0];if(!o.complete&&a>n.length||s.every((f,p)=>{let _=o.segments[p];return!!(_.dynamic&&_.patternRe.test(f)||!_.dynamic&&_.pattern===f)}))return!0}return!1}};t.default=r}}),oa=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Ne(),r=sa(),i=class{constructor(s,a){this._settings=s,this._micromatchOptions=a}getFilter(s,a,u){let o=this._getMatcher(a),n=this._getNegativePatternsRe(u);return l=>this._filter(s,l,o,n)}_getMatcher(s){return new r.default(s,this._settings,this._micromatchOptions)}_getNegativePatternsRe(s){let a=s.filter(e.pattern.isAffectDepthOfReadingPattern);return e.pattern.convertPatternsToRe(a,this._micromatchOptions)}_filter(s,a,u,o){if(this._isSkippedByDeep(s,a.path)||this._isSkippedSymbolicLink(a))return!1;let n=e.path.removeLeadingDotSegment(a.path);return this._isSkippedByPositivePatterns(n,u)?!1:this._isSkippedByNegativePatterns(n,o)}_isSkippedByDeep(s,a){return this._settings.deep===1/0?!1:this._getEntryLevel(s,a)>=this._settings.deep}_getEntryLevel(s,a){let u=a.split("/").length;if(s==="")return u;let o=s.split("/").length;return u-o}_isSkippedSymbolicLink(s){return!this._settings.followSymbolicLinks&&s.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(s,a){return!this._settings.baseNameMatch&&!a.match(s)}_isSkippedByNegativePatterns(s,a){return!e.pattern.matchAny(s,a)}};t.default=i}}),aa=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Ne(),r=class{constructor(i,s){this._settings=i,this._micromatchOptions=s,this.index=new Map}getFilter(i,s){let[a,u]=e.pattern.partitionAbsoluteAndRelative(s),o={positive:{all:e.pattern.convertPatternsToRe(i,this._micromatchOptions)},negative:{absolute:e.pattern.convertPatternsToRe(a,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:e.pattern.convertPatternsToRe(u,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return n=>this._filter(n,o)}_filter(i,s){let a=e.path.removeLeadingDotSegment(i.path);if(this._settings.unique&&this._isDuplicateEntry(a)||this._onlyFileFilter(i)||this._onlyDirectoryFilter(i))return!1;let u=this._isMatchToPatternsSet(a,s,i.dirent.isDirectory());return this._settings.unique&&u&&this._createIndexRecord(a),u}_isDuplicateEntry(i){return this.index.has(i)}_createIndexRecord(i){this.index.set(i,void 0)}_onlyFileFilter(i){return this._settings.onlyFiles&&!i.dirent.isFile()}_onlyDirectoryFilter(i){return this._settings.onlyDirectories&&!i.dirent.isDirectory()}_isMatchToPatternsSet(i,s,a){return!(!this._isMatchToPatterns(i,s.positive.all,a)||this._isMatchToPatterns(i,s.negative.relative,a)||this._isMatchToAbsoluteNegative(i,s.negative.absolute,a))}_isMatchToAbsoluteNegative(i,s,a){if(s.length===0)return!1;let u=e.path.makeAbsolute(this._settings.cwd,i);return this._isMatchToPatterns(u,s,a)}_isMatchToPatterns(i,s,a){if(s.length===0)return!1;let u=e.pattern.matchAny(i,s);return!u&&a?e.pattern.matchAny(i+"/",s):u}};t.default=r}}),ca=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Ne(),r=class{constructor(i){this._settings=i}getFilter(){return i=>this._isNonFatalError(i)}_isNonFatalError(i){return e.errno.isEnoentCodeError(i)||this._settings.suppressErrors}};t.default=r}}),ua=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Ne(),r=class{constructor(i){this._settings=i}getTransformer(){return i=>this._transform(i)}_transform(i){let s=i.path;return this._settings.absolute&&(s=e.path.makeAbsolute(this._settings.cwd,s),s=e.path.unixify(s)),this._settings.markDirectories&&i.dirent.isDirectory()&&(s+="/"),this._settings.objectMode?Object.assign(Object.assign({},i),{path:s}):s}};t.default=r}}),Gt=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("path"),r=oa(),i=aa(),s=ca(),a=ua(),u=class{constructor(o){this._settings=o,this.errorFilter=new s.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new a.default(this._settings)}_getRootDirectory(o){return e.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let n=o.base==="."?"":o.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};t.default=u}}),la=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=na(),r=Gt(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}async read(s){let a=this._getRootDirectory(s),u=this._getReaderOptions(s);return(await this.api(a,s,u)).map(n=>u.transform(n))}api(s,a,u){return a.dynamic?this._reader.dynamic(s,u):this._reader.static(a.patterns,u)}};t.default=i}}),da=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=(0,I.__require)("stream"),r=sn(),i=Gt(),s=class extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(a){let u=this._getRootDirectory(a),o=this._getReaderOptions(a),n=this.api(u,a,o),l=new e.Readable({objectMode:!0,read:()=>{}});return n.once("error",f=>l.emit("error",f)).on("data",f=>l.emit("data",o.transform(f))).once("end",()=>l.emit("end")),l.once("close",()=>n.destroy()),l}api(a,u,o){return u.dynamic?this._reader.dynamic(a,o):this._reader.static(u.patterns,o)}};t.default=s}}),fa=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=Ye(),r=Ft(),i=Bt(),s=class extends i.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=e.statSync}dynamic(a,u){return this._walkSync(a,u)}static(a,u){let o=[];for(let n of a){let l=this._getFullEntryPath(n),f=this._getEntry(l,n,u);f===null||!u.entryFilter(f)||o.push(f)}return o}_getEntry(a,u,o){try{let n=this._getStat(a);return this._makeEntry(n,u)}catch(n){if(o.errorFilter(n))return null;throw n}}_getStat(a){return this._statSync(a,this._fsStatSettings)}};t.default=s}}),pa=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=fa(),r=Gt(),i=class extends r.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(s){let a=this._getRootDirectory(s),u=this._getReaderOptions(s);return this.api(a,s,u).map(u.transform)}api(s,a,u){return a.dynamic?this._reader.dynamic(s,u):this._reader.static(a.patterns,u)}};t.default=i}}),ma=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var e=(0,I.__require)("fs"),r=(0,I.__require)("os"),i=Math.max(r.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:e.lstat,lstatSync:e.lstatSync,stat:e.stat,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};var s=class{constructor(a={}){this._options=a,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(a,u){return a===void 0?u:a}_getFileSystemMethods(a={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),a)}};t.default=s}}),on=(0,I.__commonJS)({"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(t,e){"use strict";var r=Mo(),i=la(),s=da(),a=pa(),u=ma(),o=Ne();async function n(p,_){f(p);let A=l(p,i.default,_),b=await Promise.all(A);return o.array.flatten(b)}(function(p){p.glob=p,p.globSync=_,p.globStream=A,p.async=p;function _(v,h){f(v);let O=l(v,a.default,h);return o.array.flatten(O)}p.sync=_;function A(v,h){f(v);let O=l(v,s.default,h);return o.stream.merge(O)}p.stream=A;function b(v,h){f(v);let O=[].concat(v),w=new u.default(h);return r.generate(O,w)}p.generateTasks=b;function y(v,h){f(v);let O=new u.default(h);return o.pattern.isDynamicPattern(v,O)}p.isDynamicPattern=y;function m(v){return f(v),o.path.escape(v)}p.escapePath=m;function g(v){return f(v),o.path.convertPathToPattern(v)}p.convertPathToPattern=g;let c;(function(v){function h(w){return f(w),o.path.escapePosixPath(w)}v.escapePath=h;function O(w){return f(w),o.path.convertPosixPathToPattern(w)}v.convertPathToPattern=O})(c=p.posix||(p.posix={}));let d;(function(v){function h(w){return f(w),o.path.escapeWindowsPath(w)}v.escapePath=h;function O(w){return f(w),o.path.convertWindowsPathToPattern(w)}v.convertPathToPattern=O})(d=p.win32||(p.win32={}))})(n||(n={}));function l(p,_,A){let b=[].concat(p),y=new u.default(A),m=r.generate(b,y),g=new _(y);return m.map(g.read,g)}function f(p){if(![].concat(p).every(b=>o.string.isString(b)&&!o.string.isEmpty(b)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}e.exports=n}}),ha=(0,I.__commonJS)({"../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(t){"use strict";var{promisify:e}=(0,I.__require)("util"),r=(0,I.__require)("fs");async function i(a,u,o){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);try{return(await e(r[a])(o))[u]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function s(a,u,o){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);try{return r[a](o)[u]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}t.isFile=i.bind(null,"stat","isFile"),t.isDirectory=i.bind(null,"stat","isDirectory"),t.isSymlink=i.bind(null,"lstat","isSymbolicLink"),t.isFileSync=s.bind(null,"statSync","isFile"),t.isDirectorySync=s.bind(null,"statSync","isDirectory"),t.isSymlinkSync=s.bind(null,"lstatSync","isSymbolicLink")}}),va=(0,I.__commonJS)({"../../node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.js"(t,e){"use strict";var r=(0,I.__require)("path"),i=ha(),s=n=>n.length>1?`{${n.join(",")}}`:n[0],a=(n,l)=>{let f=n[0]==="!"?n.slice(1):n;return r.isAbsolute(f)?f:r.join(l,f)},u=(n,l)=>r.extname(n)?`**/${n}`:`**/${n}.${s(l)}`,o=(n,l)=>{if(l.files&&!Array.isArray(l.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof l.files}\``);if(l.extensions&&!Array.isArray(l.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof l.extensions}\``);return l.files&&l.extensions?l.files.map(f=>r.posix.join(n,u(f,l.extensions))):l.files?l.files.map(f=>r.posix.join(n,`**/${f}`)):l.extensions?[r.posix.join(n,`**/*.${s(l.extensions)}`)]:[r.posix.join(n,"**")]};e.exports=async(n,l)=>{if(l={cwd:process.cwd(),...l},typeof l.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof l.cwd}\``);let f=await Promise.all([].concat(n).map(async p=>await i.isDirectory(a(p,l.cwd))?o(p,l):p));return[].concat.apply([],f)},e.exports.sync=(n,l)=>{if(l={cwd:process.cwd(),...l},typeof l.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof l.cwd}\``);let f=[].concat(n).map(p=>i.isDirectorySync(a(p,l.cwd))?o(p,l):p);return[].concat.apply([],f)}}}),_a=(0,I.__commonJS)({"../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(t,e){"use strict";function r(j){return Array.isArray(j)?j:[j]}var i="",s=" ",a="\\",u=/^\s+$/,o=/(?:[^\\]|^)\\$/,n=/^\\!/,l=/^\\#/,f=/\r?\n/g,p=/^\.*\/|^\.+$/,_="/",A="node-ignore";typeof Symbol<"u"&&(A=Symbol.for("node-ignore"));var b=A,y=(j,$,B)=>Object.defineProperty(j,$,{value:B}),m=/([0-z])-([0-z])/g,g=()=>!1,c=j=>j.replace(m,($,B,M)=>B.charCodeAt(0)<=M.charCodeAt(0)?$:i),d=j=>{let{length:$}=j;return j.slice(0,$-$%2)},v=[[/\\?\s+$/,j=>j.indexOf("\\")===0?s:i],[/\\\s/g,()=>s],[/[\\$.|*+(){^]/g,j=>`\\${j}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(j,$,B)=>$+6<B.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(j,$,B)=>{let M=B.replace(/\\\*/g,"[^\\/]*");return $+M}],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(j,$,B,M,G)=>$===a?`\\[${B}${d(M)}${G}`:G==="]"&&M.length%2===0?`[${c(B)}${M}]`:"[]"],[/(?:[^*])$/,j=>/\/$/.test(j)?`${j}$`:`${j}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(j,$)=>`${$?`${$}[^/]+`:"[^/]*"}(?=$|\\/$)`]],h=Object.create(null),O=(j,$)=>{let B=h[j];return B||(B=v.reduce((M,G)=>M.replace(G[0],G[1].bind(j)),j),h[j]=B),$?new RegExp(B,"i"):new RegExp(B)},w=j=>typeof j=="string",x=j=>j&&w(j)&&!u.test(j)&&!o.test(j)&&j.indexOf("#")!==0,P=j=>j.split(f),k=class{constructor(j,$,B,M){this.origin=j,this.pattern=$,this.negative=B,this.regex=M}},R=(j,$)=>{let B=j,M=!1;j.indexOf("!")===0&&(M=!0,j=j.substr(1)),j=j.replace(n,"!").replace(l,"#");let G=O(j,$);return new k(B,j,M,G)},C=(j,$)=>{throw new $(j)},E=(j,$,B)=>w(j)?j?E.isNotRelative(j)?B(`path should be a \`path.relative()\`d string, but got "${$}"`,RangeError):!0:B("path must not be empty",TypeError):B(`path must be a string, but got \`${$}\``,TypeError),S=j=>p.test(j);E.isNotRelative=S,E.convert=j=>j;var T=class{constructor({ignorecase:j=!0,ignoreCase:$=j,allowRelativePaths:B=!1}={}){y(this,b,!0),this._rules=[],this._ignoreCase=$,this._allowRelativePaths=B,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(j){if(j&&j[b]){this._rules=this._rules.concat(j._rules),this._added=!0;return}if(x(j)){let $=R(j,this._ignoreCase);this._added=!0,this._rules.push($)}}add(j){return this._added=!1,r(w(j)?P(j):j).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(j){return this.add(j)}_testOne(j,$){let B=!1,M=!1;return this._rules.forEach(G=>{let{negative:L}=G;if(M===L&&B!==M||L&&!B&&!M&&!$)return;G.regex.test(j)&&(B=!L,M=L)}),{ignored:B,unignored:M}}_test(j,$,B,M){let G=j&&E.convert(j);return E(G,j,this._allowRelativePaths?g:C),this._t(G,$,B,M)}_t(j,$,B,M){if(j in $)return $[j];if(M||(M=j.split(_)),M.pop(),!M.length)return $[j]=this._testOne(j,B);let G=this._t(M.join(_)+_,$,B,M);return $[j]=G.ignored?G:this._testOne(j,B)}ignores(j){return this._test(j,this._ignoreCache,!1).ignored}createFilter(){return j=>!this.ignores(j)}filter(j){return r(j).filter(this.createFilter())}test(j){return this._test(j,this._testCache,!0)}},D=j=>new T(j),F=j=>E(j&&E.convert(j),j,g);if(D.isPathValid=F,D.default=D,e.exports=D,typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let j=B=>/^\\\\\?\\/.test(B)||/["<>|\u0000-\u001F]+/u.test(B)?B:B.replace(/\\/g,"/");E.convert=j;let $=/^[a-z]:\//i;E.isNotRelative=B=>$.test(B)||S(B)}}}),an=(0,I.__commonJS)({"../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(t,e){"use strict";e.exports=r=>{let i=/^\\\\\?\\/.test(r),s=/[^\u0000-\u0080]+/.test(r);return i||s?r:r.replace(/\\/g,"/")}}}),ga=(0,I.__commonJS)({"../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js"(t,e){"use strict";var{promisify:r}=(0,I.__require)("util"),i=(0,I.__require)("fs"),s=(0,I.__require)("path"),a=on(),u=_a(),o=an(),n=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],l=r(i.readFile),f=c=>d=>d.startsWith("!")?"!"+s.posix.join(c,d.slice(1)):s.posix.join(c,d),p=(c,d)=>{let v=o(s.relative(d.cwd,s.dirname(d.fileName)));return c.split(/\r?\n/).filter(Boolean).filter(h=>!h.startsWith("#")).map(f(v))},_=c=>{let d=u();for(let v of c)d.add(p(v.content,{cwd:v.cwd,fileName:v.filePath}));return d},A=(c,d)=>{if(c=o(c),s.isAbsolute(d)){if(o(d).startsWith(c))return d;throw new Error(`Path ${d} is not in cwd ${c}`)}return s.join(c,d)},b=(c,d)=>v=>c.ignores(o(s.relative(d,A(d,v.path||v)))),y=async(c,d)=>{let v=s.join(d,c),h=await l(v,"utf8");return{cwd:d,filePath:v,content:h}},m=(c,d)=>{let v=s.join(d,c),h=i.readFileSync(v,"utf8");return{cwd:d,filePath:v,content:h}},g=({ignore:c=[],cwd:d=o(process.cwd())}={})=>({ignore:c,cwd:d});e.exports=async c=>{c=g(c);let d=await a("**/.gitignore",{ignore:n.concat(c.ignore),cwd:c.cwd}),v=await Promise.all(d.map(O=>y(O,c.cwd))),h=_(v);return b(h,c.cwd)},e.exports.sync=c=>{c=g(c);let v=a.sync("**/.gitignore",{ignore:n.concat(c.ignore),cwd:c.cwd}).map(O=>m(O,c.cwd)),h=_(v);return b(h,c.cwd)}}}),ya=(0,I.__commonJS)({"../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/stream-utils.js"(t,e){"use strict";var{Transform:r}=(0,I.__require)("stream"),i=class extends r{constructor(){super({objectMode:!0})}},s=class extends i{constructor(u){super(),this._filter=u}_transform(u,o,n){this._filter(u)&&this.push(u),n()}},a=class extends i{constructor(){super(),this._pushed=new Set}_transform(u,o,n){this._pushed.has(u)||(this.push(u),this._pushed.add(u)),n()}};e.exports={FilterStream:s,UniqueStream:a}}}),Sa=(0,I.__commonJS)({"../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/index.js"(t,e){"use strict";var r=(0,I.__require)("fs"),i=vo(),s=Kr(),a=on(),u=va(),o=ga(),{FilterStream:n,UniqueStream:l}=ya(),f=()=>!1,p=v=>v[0]==="!",_=v=>{if(!v.every(h=>typeof h=="string"))throw new TypeError("Patterns must be a string or an array of strings")},A=(v={})=>{if(!v.cwd)return;let h;try{h=r.statSync(v.cwd)}catch{return}if(!h.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},b=v=>v.stats instanceof r.Stats?v.path:v,y=(v,h)=>{v=i([].concat(v)),_(v),A(h);let O=[];h={ignore:[],expandDirectories:!0,...h};for(let[w,x]of v.entries()){if(p(x))continue;let P=v.slice(w).filter(R=>p(R)).map(R=>R.slice(1)),k={...h,ignore:h.ignore.concat(P)};O.push({pattern:x,options:k})}return O},m=(v,h)=>{let O={};return v.options.cwd&&(O.cwd=v.options.cwd),Array.isArray(v.options.expandDirectories)?O={...O,files:v.options.expandDirectories}:typeof v.options.expandDirectories=="object"&&(O={...O,...v.options.expandDirectories}),h(v.pattern,O)},g=(v,h)=>v.options.expandDirectories?m(v,h):[v.pattern],c=v=>v&&v.gitignore?o.sync({cwd:v.cwd,ignore:v.ignore}):f,d=v=>h=>{let{options:O}=v;return O.ignore&&Array.isArray(O.ignore)&&O.expandDirectories&&(O.ignore=u.sync(O.ignore)),{pattern:h,options:O}};e.exports=async(v,h)=>{let O=y(v,h),w=async()=>h&&h.gitignore?o({cwd:h.cwd,ignore:h.ignore}):f,x=async()=>{let C=await Promise.all(O.map(async E=>{let S=await g(E,u);return Promise.all(S.map(d(E)))}));return i(...C)},[P,k]=await Promise.all([w(),x()]),R=await Promise.all(k.map(C=>a(C.pattern,C.options)));return i(...R).filter(C=>!P(b(C)))},e.exports.sync=(v,h)=>{let O=y(v,h),w=[];for(let k of O){let R=g(k,u.sync).map(d(k));w.push(...R)}let x=c(h),P=[];for(let k of w)P=i(P,a.sync(k.pattern,k.options));return P.filter(k=>!x(k))},e.exports.stream=(v,h)=>{let O=y(v,h),w=[];for(let R of O){let C=g(R,u.sync).map(d(R));w.push(...C)}let x=c(h),P=new n(R=>!x(R)),k=new l;return s(w.map(R=>a.stream(R.pattern,R.options))).pipe(P).pipe(k)},e.exports.generateGlobTasks=y,e.exports.hasMagic=(v,h)=>[].concat(v).some(O=>a.isDynamicPattern(O,h)),e.exports.gitignore=o}}),ba=(0,I.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(t,e){"use strict";var r=(0,I.__require)("constants"),i=process.cwd,s=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(n){s=null,u.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;e.exports=o;function o(n){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&l(n),n.lutimes||f(n),n.chown=A(n.chown),n.fchown=A(n.fchown),n.lchown=A(n.lchown),n.chmod=p(n.chmod),n.fchmod=p(n.fchmod),n.lchmod=p(n.lchmod),n.chownSync=b(n.chownSync),n.fchownSync=b(n.fchownSync),n.lchownSync=b(n.lchownSync),n.chmodSync=_(n.chmodSync),n.fchmodSync=_(n.fchmodSync),n.lchmodSync=_(n.lchmodSync),n.stat=y(n.stat),n.fstat=y(n.fstat),n.lstat=y(n.lstat),n.statSync=m(n.statSync),n.fstatSync=m(n.fstatSync),n.lstatSync=m(n.lstatSync),n.chmod&&!n.lchmod&&(n.lchmod=function(c,d,v){v&&process.nextTick(v)},n.lchmodSync=function(){}),n.chown&&!n.lchown&&(n.lchown=function(c,d,v,h){h&&process.nextTick(h)},n.lchownSync=function(){}),a==="win32"&&(n.rename=typeof n.rename!="function"?n.rename:function(c){function d(v,h,O){var w=Date.now(),x=0;c(v,h,function P(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-w<6e4){setTimeout(function(){n.stat(h,function(R,C){R&&R.code==="ENOENT"?c(v,h,P):O(k)})},x),x<100&&(x+=10);return}O&&O(k)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,c),d}(n.rename)),n.read=typeof n.read!="function"?n.read:function(c){function d(v,h,O,w,x,P){var k;if(P&&typeof P=="function"){var R=0;k=function(C,E,S){if(C&&C.code==="EAGAIN"&&R<10)return R++,c.call(n,v,h,O,w,x,k);P.apply(this,arguments)}}return c.call(n,v,h,O,w,x,k)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,c),d}(n.read),n.readSync=typeof n.readSync!="function"?n.readSync:function(c){return function(d,v,h,O,w){for(var x=0;;)try{return c.call(n,d,v,h,O,w)}catch(P){if(P.code==="EAGAIN"&&x<10){x++;continue}throw P}}}(n.readSync);function l(c){c.lchmod=function(d,v,h){c.open(d,r.O_WRONLY|r.O_SYMLINK,v,function(O,w){if(O){h&&h(O);return}c.fchmod(w,v,function(x){c.close(w,function(P){h&&h(x||P)})})})},c.lchmodSync=function(d,v){var h=c.openSync(d,r.O_WRONLY|r.O_SYMLINK,v),O=!0,w;try{w=c.fchmodSync(h,v),O=!1}finally{if(O)try{c.closeSync(h)}catch{}else c.closeSync(h)}return w}}function f(c){r.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(d,v,h,O){c.open(d,r.O_SYMLINK,function(w,x){if(w){O&&O(w);return}c.futimes(x,v,h,function(P){c.close(x,function(k){O&&O(P||k)})})})},c.lutimesSync=function(d,v,h){var O=c.openSync(d,r.O_SYMLINK),w,x=!0;try{w=c.futimesSync(O,v,h),x=!1}finally{if(x)try{c.closeSync(O)}catch{}else c.closeSync(O)}return w}):c.futimes&&(c.lutimes=function(d,v,h,O){O&&process.nextTick(O)},c.lutimesSync=function(){})}function p(c){return c&&function(d,v,h){return c.call(n,d,v,function(O){g(O)&&(O=null),h&&h.apply(this,arguments)})}}function _(c){return c&&function(d,v){try{return c.call(n,d,v)}catch(h){if(!g(h))throw h}}}function A(c){return c&&function(d,v,h,O){return c.call(n,d,v,h,function(w){g(w)&&(w=null),O&&O.apply(this,arguments)})}}function b(c){return c&&function(d,v,h){try{return c.call(n,d,v,h)}catch(O){if(!g(O))throw O}}}function y(c){return c&&function(d,v,h){typeof v=="function"&&(h=v,v=null);function O(w,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),h&&h.apply(this,arguments)}return v?c.call(n,d,v,O):c.call(n,d,O)}}function m(c){return c&&function(d,v){var h=v?c.call(n,d,v):c.call(n,d);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function g(c){if(!c||c.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(c.code==="EINVAL"||c.code==="EPERM"))}}}}),wa=(0,I.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(t,e){"use strict";var r=(0,I.__require)("stream").Stream;e.exports=i;function i(s){return{ReadStream:a,WriteStream:u};function a(o,n){if(!(this instanceof a))return new a(o,n);r.call(this);var l=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var f=Object.keys(n),p=0,_=f.length;p<_;p++){var A=f[p];this[A]=n[A]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){l._read()});return}s.open(this.path,this.flags,this.mode,function(b,y){if(b){l.emit("error",b),l.readable=!1;return}l.fd=y,l.emit("open",y),l._read()})}function u(o,n){if(!(this instanceof u))return new u(o,n);r.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var l=Object.keys(n),f=0,p=l.length;f<p;f++){var _=l[f];this[_]=n[_]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=s.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}),Ea=(0,I.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(t,e){"use strict";e.exports=i;var r=Object.getPrototypeOf||function(s){return s.__proto__};function i(s){if(s===null||typeof s!="object")return s;if(s instanceof Object)var a={__proto__:r(s)};else var a=Object.create(null);return Object.getOwnPropertyNames(s).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(s,u))}),a}}}),Pa=(0,I.__commonJS)({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(t,e){"use strict";var r=(0,I.__require)("fs"),i=ba(),s=wa(),a=Ea(),u=(0,I.__require)("util"),o,n;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),n=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",n="___graceful-fs.previous");function l(){}function f(c,d){Object.defineProperty(c,o,{get:function(){return d}})}var p=l;u.debuglog?p=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var c=u.format.apply(u,arguments);c="GFS4: "+c.split(/\n/).join(`
|
|
10
|
-
GFS4: `),console.error(c)}),r[o]||(_=global[o]||[],f(r,_),r.close=function(c){function d(v,h){return c.call(r,v,function(O){O||m(),typeof h=="function"&&h.apply(this,arguments)})}return Object.defineProperty(d,n,{value:c}),d}(r.close),r.closeSync=function(c){function d(v){c.apply(r,arguments),m()}return Object.defineProperty(d,n,{value:c}),d}(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(r[o]),(0,I.__require)("assert").equal(r[o].length,0)}));var _;global[o]||f(global,r[o]),e.exports=A(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(e.exports=A(r),r.__patched=!0);function A(c){i(c),c.gracefulify=A,c.createReadStream=L,c.createWriteStream=X;var d=c.readFile;c.readFile=v;function v(N,q,H){return typeof q=="function"&&(H=q,q=null),U(N,q,H);function U(ee,ie,Y,K){return d(ee,ie,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?b([U,[ee,ie,Y],Z,K||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var h=c.writeFile;c.writeFile=O;function O(N,q,H,U){return typeof H=="function"&&(U=H,H=null),ee(N,q,H,U);function ee(ie,Y,K,Z,ne){return h(ie,Y,K,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?b([ee,[ie,Y,K,Z],z,ne||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var w=c.appendFile;w&&(c.appendFile=x);function x(N,q,H,U){return typeof H=="function"&&(U=H,H=null),ee(N,q,H,U);function ee(ie,Y,K,Z,ne){return w(ie,Y,K,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?b([ee,[ie,Y,K,Z],z,ne||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var P=c.copyFile;P&&(c.copyFile=k);function k(N,q,H,U){return typeof H=="function"&&(U=H,H=0),ee(N,q,H,U);function ee(ie,Y,K,Z,ne){return P(ie,Y,K,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?b([ee,[ie,Y,K,Z],z,ne||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var R=c.readdir;c.readdir=E;var C=/^v[0-5]\./;function E(N,q,H){typeof q=="function"&&(H=q,q=null);var U=C.test(process.version)?function(Y,K,Z,ne){return R(Y,ee(Y,K,Z,ne))}:function(Y,K,Z,ne){return R(Y,K,ee(Y,K,Z,ne))};return U(N,q,H);function ee(ie,Y,K,Z){return function(ne,z){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?b([U,[ie,Y,K],ne,Z||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof K=="function"&&K.call(this,ne,z))}}}if(process.version.substr(0,4)==="v0.8"){var S=s(c);$=S.ReadStream,M=S.WriteStream}var T=c.ReadStream;T&&($.prototype=Object.create(T.prototype),$.prototype.open=B);var D=c.WriteStream;D&&(M.prototype=Object.create(D.prototype),M.prototype.open=G),Object.defineProperty(c,"ReadStream",{get:function(){return $},set:function(N){$=N},enumerable:!0,configurable:!0}),Object.defineProperty(c,"WriteStream",{get:function(){return M},set:function(N){M=N},enumerable:!0,configurable:!0});var F=$;Object.defineProperty(c,"FileReadStream",{get:function(){return F},set:function(N){F=N},enumerable:!0,configurable:!0});var j=M;Object.defineProperty(c,"FileWriteStream",{get:function(){return j},set:function(N){j=N},enumerable:!0,configurable:!0});function $(N,q){return this instanceof $?(T.apply(this,arguments),this):$.apply(Object.create($.prototype),arguments)}function B(){var N=this;V(N.path,N.flags,N.mode,function(q,H){q?(N.autoClose&&N.destroy(),N.emit("error",q)):(N.fd=H,N.emit("open",H),N.read())})}function M(N,q){return this instanceof M?(D.apply(this,arguments),this):M.apply(Object.create(M.prototype),arguments)}function G(){var N=this;V(N.path,N.flags,N.mode,function(q,H){q?(N.destroy(),N.emit("error",q)):(N.fd=H,N.emit("open",H))})}function L(N,q){return new c.ReadStream(N,q)}function X(N,q){return new c.WriteStream(N,q)}var se=c.open;c.open=V;function V(N,q,H,U){return typeof H=="function"&&(U=H,H=null),ee(N,q,H,U);function ee(ie,Y,K,Z,ne){return se(ie,Y,K,function(z,Q){z&&(z.code==="EMFILE"||z.code==="ENFILE")?b([ee,[ie,Y,K,Z],z,ne||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return c}function b(c){p("ENQUEUE",c[0].name,c[1]),r[o].push(c),g()}var y;function m(){for(var c=Date.now(),d=0;d<r[o].length;++d)r[o][d].length>2&&(r[o][d][3]=c,r[o][d][4]=c);g()}function g(){if(clearTimeout(y),y=void 0,r[o].length!==0){var c=r[o].shift(),d=c[0],v=c[1],h=c[2],O=c[3],w=c[4];if(O===void 0)p("RETRY",d.name,v),d.apply(null,v);else if(Date.now()-O>=6e4){p("TIMEOUT",d.name,v);var x=v.pop();typeof x=="function"&&x.call(null,h)}else{var P=Date.now()-w,k=Math.max(w-O,1),R=Math.min(k*1.2,100);P>=R?(p("RETRY",d.name,v),d.apply(null,v.concat([O]))):r[o].push(c)}y===void 0&&(y=setTimeout(g,0))}}}}),Aa=(0,I.__commonJS)({"../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(t,e){"use strict";var r=(0,I.__require)("path");e.exports=i=>{let s=process.cwd();return i=r.resolve(i),process.platform==="win32"&&(s=s.toLowerCase(),i=i.toLowerCase()),i===s}}}),xa=(0,I.__commonJS)({"../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(t,e){"use strict";var r=(0,I.__require)("path");e.exports=(i,s)=>{let a=r.relative(s,i);return!!(a&&a!==".."&&!a.startsWith(`..${r.sep}`)&&a!==r.resolve(i))}}}),Oa=(0,I.__commonJS)({"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(t){"use strict";var e=(0,I.__require)("path"),r=process.platform==="win32",i=(0,I.__require)("fs"),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var f;if(s){var p=new Error;f=_}else f=A;return f;function _(b){b&&(p.message=b.message,b=p,A(b))}function A(b){if(b){if(process.throwDeprecation)throw b;if(!process.noDeprecation){var y="fs: missing callback "+(b.stack||b.message);process.traceDeprecation?console.trace(y):console.error(y)}}}}function u(f){return typeof f=="function"?f:a()}var o=e.normalize;r?n=/(.*?)(?:[\/\\]+|$)/g:n=/(.*?)(?:[\/]+|$)/g;var n;r?l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:l=/^[\/]*/;var l;t.realpathSync=function(p,_){if(p=e.resolve(p),_&&Object.prototype.hasOwnProperty.call(_,p))return _[p];var A=p,b={},y={},m,g,c,d;v();function v(){var k=l.exec(p);m=k[0].length,g=k[0],c=k[0],d="",r&&!y[c]&&(i.lstatSync(c),y[c]=!0)}for(;m<p.length;){n.lastIndex=m;var h=n.exec(p);if(d=g,g+=h[0],c=d+h[1],m=n.lastIndex,!(y[c]||_&&_[c]===c)){var O;if(_&&Object.prototype.hasOwnProperty.call(_,c))O=_[c];else{var w=i.lstatSync(c);if(!w.isSymbolicLink()){y[c]=!0,_&&(_[c]=c);continue}var x=null;if(!r){var P=w.dev.toString(32)+":"+w.ino.toString(32);b.hasOwnProperty(P)&&(x=b[P])}x===null&&(i.statSync(c),x=i.readlinkSync(c)),O=e.resolve(d,x),_&&(_[c]=O),r||(b[P]=x)}p=e.resolve(O,p.slice(m)),v()}}return _&&(_[A]=p),p},t.realpath=function(p,_,A){if(typeof A!="function"&&(A=u(_),_=null),p=e.resolve(p),_&&Object.prototype.hasOwnProperty.call(_,p))return process.nextTick(A.bind(null,null,_[p]));var b=p,y={},m={},g,c,d,v;h();function h(){var k=l.exec(p);g=k[0].length,c=k[0],d=k[0],v="",r&&!m[d]?i.lstat(d,function(R){if(R)return A(R);m[d]=!0,O()}):process.nextTick(O)}function O(){if(g>=p.length)return _&&(_[b]=p),A(null,p);n.lastIndex=g;var k=n.exec(p);return v=c,c+=k[0],d=v+k[1],g=n.lastIndex,m[d]||_&&_[d]===d?process.nextTick(O):_&&Object.prototype.hasOwnProperty.call(_,d)?P(_[d]):i.lstat(d,w)}function w(k,R){if(k)return A(k);if(!R.isSymbolicLink())return m[d]=!0,_&&(_[d]=d),process.nextTick(O);if(!r){var C=R.dev.toString(32)+":"+R.ino.toString(32);if(y.hasOwnProperty(C))return x(null,y[C],d)}i.stat(d,function(E){if(E)return A(E);i.readlink(d,function(S,T){r||(y[C]=T),x(S,T)})})}function x(k,R,C){if(k)return A(k);var E=e.resolve(v,R);_&&(_[C]=E),P(E)}function P(k){p=e.resolve(k,p.slice(g)),h()}}}}),cn=(0,I.__commonJS)({"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js"(t,e){"use strict";e.exports=l,l.realpath=l,l.sync=f,l.realpathSync=f,l.monkeypatch=p,l.unmonkeypatch=_;var r=(0,I.__require)("fs"),i=r.realpath,s=r.realpathSync,a=process.version,u=/^v[0-5]\./.test(a),o=Oa();function n(A){return A&&A.syscall==="realpath"&&(A.code==="ELOOP"||A.code==="ENOMEM"||A.code==="ENAMETOOLONG")}function l(A,b,y){if(u)return i(A,b,y);typeof b=="function"&&(y=b,b=null),i(A,b,function(m,g){n(m)?o.realpath(A,b,y):y(m,g)})}function f(A,b){if(u)return s(A,b);try{return s(A,b)}catch(y){if(n(y))return o.realpathSync(A,b);throw y}}function p(){r.realpath=l,r.realpathSync=f}function _(){r.realpath=i,r.realpathSync=s}}}),Ra=(0,I.__commonJS)({"../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(t,e){"use strict";e.exports=function(i,s){for(var a=[],u=0;u<i.length;u++){var o=s(i[u],u);r(o)?a.push.apply(a,o):a.push(o)}return a};var r=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}}}),Ta=(0,I.__commonJS)({"../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(t,e){"use strict";var r=Ra(),i=Wr();e.exports=A;var s="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",u="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",n="\0PERIOD"+Math.random()+"\0";function l(d){return parseInt(d,10)==d?parseInt(d,10):d.charCodeAt(0)}function f(d){return d.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(u).split("\\,").join(o).split("\\.").join(n)}function p(d){return d.split(s).join("\\").split(a).join("{").split(u).join("}").split(o).join(",").split(n).join(".")}function _(d){if(!d)return[""];var v=[],h=i("{","}",d);if(!h)return d.split(",");var O=h.pre,w=h.body,x=h.post,P=O.split(",");P[P.length-1]+="{"+w+"}";var k=_(x);return x.length&&(P[P.length-1]+=k.shift(),P.push.apply(P,k)),v.push.apply(v,P),v}function A(d){return d?(d.substr(0,2)==="{}"&&(d="\\{\\}"+d.substr(2)),c(f(d),!0).map(p)):[]}function b(d){return"{"+d+"}"}function y(d){return/^-?0\d/.test(d)}function m(d,v){return d<=v}function g(d,v){return d>=v}function c(d,v){var h=[],O=i("{","}",d);if(!O||/\$$/.test(O.pre))return[d];var w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(O.body),x=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(O.body),P=w||x,k=O.body.indexOf(",")>=0;if(!P&&!k)return O.post.match(/,.*\}/)?(d=O.pre+"{"+O.body+u+O.post,c(d)):[d];var R;if(P)R=O.body.split(/\.\./);else if(R=_(O.body),R.length===1&&(R=c(R[0],!1).map(b),R.length===1)){var E=O.post.length?c(O.post,!1):[""];return E.map(function(U){return O.pre+R[0]+U})}var C=O.pre,E=O.post.length?c(O.post,!1):[""],S;if(P){var T=l(R[0]),D=l(R[1]),F=Math.max(R[0].length,R[1].length),j=R.length==3?Math.abs(l(R[2])):1,$=m,B=D<T;B&&(j*=-1,$=g);var M=R.some(y);S=[];for(var G=T;$(G,D);G+=j){var L;if(x)L=String.fromCharCode(G),L==="\\"&&(L="");else if(L=String(G),M){var X=F-L.length;if(X>0){var se=new Array(X+1).join("0");G<0?L="-"+se+L.slice(1):L=se+L}}S.push(L)}}else S=r(R,function(H){return c(H,!1)});for(var V=0;V<S.length;V++)for(var N=0;N<E.length;N++){var q=C+S[V]+E[N];(!v||P||q)&&h.push(q)}return h}}}),Ht=(0,I.__commonJS)({"../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(t,e){"use strict";e.exports=y,y.Minimatch=m;var r=function(){try{return(0,I.__require)("path")}catch{}}()||{sep:"/"};y.sep=r.sep;var i=y.GLOBSTAR=m.GLOBSTAR={},s=Ta(),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},u="[^/]",o=u+"*?",n="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",f=p("().*{}+?[]^$\\!");function p(R){return R.split("").reduce(function(C,E){return C[E]=!0,C},{})}var _=/\/+/;y.filter=A;function A(R,C){return C=C||{},function(E,S,T){return y(E,R,C)}}function b(R,C){C=C||{};var E={};return Object.keys(R).forEach(function(S){E[S]=R[S]}),Object.keys(C).forEach(function(S){E[S]=C[S]}),E}y.defaults=function(R){if(!R||typeof R!="object"||!Object.keys(R).length)return y;var C=y,E=function(T,D,F){return C(T,D,b(R,F))};return E.Minimatch=function(T,D){return new C.Minimatch(T,b(R,D))},E.Minimatch.defaults=function(T){return C.defaults(b(R,T)).Minimatch},E.filter=function(T,D){return C.filter(T,b(R,D))},E.defaults=function(T){return C.defaults(b(R,T))},E.makeRe=function(T,D){return C.makeRe(T,b(R,D))},E.braceExpand=function(T,D){return C.braceExpand(T,b(R,D))},E.match=function(S,T,D){return C.match(S,T,b(R,D))},E},m.defaults=function(R){return y.defaults(R).Minimatch};function y(R,C,E){return h(C),E||(E={}),!E.nocomment&&C.charAt(0)==="#"?!1:new m(C,E).match(R)}function m(R,C){if(!(this instanceof m))return new m(R,C);h(R),C||(C={}),R=R.trim(),!C.allowWindowsEscape&&r.sep!=="/"&&(R=R.split(r.sep).join("/")),this.options=C,this.set=[],this.pattern=R,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!C.partial,this.make()}m.prototype.debug=function(){},m.prototype.make=g;function g(){var R=this.pattern,C=this.options;if(!C.nocomment&&R.charAt(0)==="#"){this.comment=!0;return}if(!R){this.empty=!0;return}this.parseNegate();var E=this.globSet=this.braceExpand();C.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,E),E=this.globParts=E.map(function(S){return S.split(_)}),this.debug(this.pattern,E),E=E.map(function(S,T,D){return S.map(this.parse,this)},this),this.debug(this.pattern,E),E=E.filter(function(S){return S.indexOf(!1)===-1}),this.debug(this.pattern,E),this.set=E}m.prototype.parseNegate=c;function c(){var R=this.pattern,C=!1,E=this.options,S=0;if(!E.nonegate){for(var T=0,D=R.length;T<D&&R.charAt(T)==="!";T++)C=!C,S++;S&&(this.pattern=R.substr(S)),this.negate=C}}y.braceExpand=function(R,C){return d(R,C)},m.prototype.braceExpand=d;function d(R,C){return C||(this instanceof m?C=this.options:C={}),R=typeof R>"u"?this.pattern:R,h(R),C.nobrace||!/\{(?:(?!\{).)*\}/.test(R)?[R]:s(R)}var v=1024*64,h=function(R){if(typeof R!="string")throw new TypeError("invalid pattern");if(R.length>v)throw new TypeError("pattern is too long")};m.prototype.parse=w;var O={};function w(R,C){h(R);var E=this.options;if(R==="**")if(E.noglobstar)R="*";else return i;if(R==="")return"";var S="",T=!!E.nocase,D=!1,F=[],j=[],$,B=!1,M=-1,G=-1,L=R.charAt(0)==="."?"":E.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",X=this;function se(){if($){switch($){case"*":S+=o,T=!0;break;case"?":S+=u,T=!0;break;default:S+="\\"+$;break}X.debug("clearStateChar %j %j",$,S),$=!1}}for(var V=0,N=R.length,q;V<N&&(q=R.charAt(V));V++){if(this.debug("%s %s %s %j",R,V,S,q),D&&f[q]){S+="\\"+q,D=!1;continue}switch(q){case"/":return!1;case"\\":se(),D=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",R,V,S,q),B){this.debug(" in class"),q==="!"&&V===G+1&&(q="^"),S+=q;continue}X.debug("call clearStateChar %j",$),se(),$=q,E.noext&&se();continue;case"(":if(B){S+="(";continue}if(!$){S+="\\(";continue}F.push({type:$,start:V-1,reStart:S.length,open:a[$].open,close:a[$].close}),S+=$==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",$,S),$=!1;continue;case")":if(B||!F.length){S+="\\)";continue}se(),T=!0;var H=F.pop();S+=H.close,H.type==="!"&&j.push(H),H.reEnd=S.length;continue;case"|":if(B||!F.length||D){S+="\\|",D=!1;continue}se(),S+="|";continue;case"[":if(se(),B){S+="\\"+q;continue}B=!0,G=V,M=S.length,S+=q;continue;case"]":if(V===G+1||!B){S+="\\"+q,D=!1;continue}var U=R.substring(G+1,V);try{RegExp("["+U+"]")}catch{var ee=this.parse(U,O);S=S.substr(0,M)+"\\["+ee[0]+"\\]",T=T||ee[1],B=!1;continue}T=!0,B=!1,S+=q;continue;default:se(),D?D=!1:f[q]&&!(q==="^"&&B)&&(S+="\\"),S+=q}}for(B&&(U=R.substr(G+1),ee=this.parse(U,O),S=S.substr(0,M)+"\\["+ee[0],T=T||ee[1]),H=F.pop();H;H=F.pop()){var ie=S.slice(H.reStart+H.open.length);this.debug("setting tail",S,H),ie=ie.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(me,Je,De){return De||(De="\\"),Je+Je+De+"|"}),this.debug(`tail=%j
|
|
11
|
-
%s`,ie,ie,H,S);var Y=H.type==="*"?o:H.type==="?"?u:"\\"+H.type;T=!0,S=S.slice(0,H.reStart)+Y+"\\("+ie}se(),D&&(S+="\\\\");var K=!1;switch(S.charAt(0)){case"[":case".":case"(":K=!0}for(var Z=j.length-1;Z>-1;Z--){var ne=j[Z],z=S.slice(0,ne.reStart),Q=S.slice(ne.reStart,ne.reEnd-8),pe=S.slice(ne.reEnd-8,ne.reEnd),Ce=S.slice(ne.reEnd);pe+=Ce;var W=z.split("(").length-1,oe=Ce;for(V=0;V<W;V++)oe=oe.replace(/\)[+*?]?/,"");Ce=oe;var J="";Ce===""&&C!==O&&(J="$");var re=z+Q+Ce+J+pe;S=re}if(S!==""&&T&&(S="(?=.)"+S),K&&(S=L+S),C===O)return[S,T];if(!T)return P(R);var de=E.nocase?"i":"";try{var ve=new RegExp("^"+S+"$",de)}catch{return new RegExp("$.")}return ve._glob=R,ve._src=S,ve}y.makeRe=function(R,C){return new m(R,C||{}).makeRe()},m.prototype.makeRe=x;function x(){if(this.regexp||this.regexp===!1)return this.regexp;var R=this.set;if(!R.length)return this.regexp=!1,this.regexp;var C=this.options,E=C.noglobstar?o:C.dot?n:l,S=C.nocase?"i":"",T=R.map(function(D){return D.map(function(F){return F===i?E:typeof F=="string"?k(F):F._src}).join("\\/")}).join("|");T="^(?:"+T+")$",this.negate&&(T="^(?!"+T+").*$");try{this.regexp=new RegExp(T,S)}catch{this.regexp=!1}return this.regexp}y.match=function(R,C,E){E=E||{};var S=new m(C,E);return R=R.filter(function(T){return S.match(T)}),S.options.nonull&&!R.length&&R.push(C),R},m.prototype.match=function(C,E){if(typeof E>"u"&&(E=this.partial),this.debug("match",C,this.pattern),this.comment)return!1;if(this.empty)return C==="";if(C==="/"&&E)return!0;var S=this.options;r.sep!=="/"&&(C=C.split(r.sep).join("/")),C=C.split(_),this.debug(this.pattern,"split",C);var T=this.set;this.debug(this.pattern,"set",T);var D,F;for(F=C.length-1;F>=0&&(D=C[F],!D);F--);for(F=0;F<T.length;F++){var j=T[F],$=C;S.matchBase&&j.length===1&&($=[D]);var B=this.matchOne($,j,E);if(B)return S.flipNegate?!0:!this.negate}return S.flipNegate?!1:this.negate},m.prototype.matchOne=function(R,C,E){var S=this.options;this.debug("matchOne",{this:this,file:R,pattern:C}),this.debug("matchOne",R.length,C.length);for(var T=0,D=0,F=R.length,j=C.length;T<F&&D<j;T++,D++){this.debug("matchOne loop");var $=C[D],B=R[T];if(this.debug(C,$,B),$===!1)return!1;if($===i){this.debug("GLOBSTAR",[C,$,B]);var M=T,G=D+1;if(G===j){for(this.debug("** at the end");T<F;T++)if(R[T]==="."||R[T]===".."||!S.dot&&R[T].charAt(0)===".")return!1;return!0}for(;M<F;){var L=R[M];if(this.debug(`
|
|
12
|
-
globstar while`,R,M,C,G,L),this.matchOne(R.slice(M),C.slice(G),E))return this.debug("globstar found match!",M,F,L),!0;if(L==="."||L===".."||!S.dot&&L.charAt(0)==="."){this.debug("dot detected!",R,M,C,G);break}this.debug("globstar swallow a segment, and continue"),M++}return!!(E&&(this.debug(`
|
|
13
|
-
>>> no match, partial?`,R,M,C,G),M===F))}var X;if(typeof $=="string"?(X=B===$,this.debug("string match",$,B,X)):(X=B.match($),this.debug("pattern match",$,B,X)),!X)return!1}if(T===F&&D===j)return!0;if(T===F)return E;if(D===j)return T===F-1&&R[T]==="";throw new Error("wtf?")};function P(R){return R.replace(/\\(.)/g,"$1")}function k(R){return R.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),ka=(0,I.__commonJS)({"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(t,e){"use strict";typeof Object.create=="function"?e.exports=function(i,s){s&&(i.super_=s,i.prototype=Object.create(s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(i,s){if(s){i.super_=s;var a=function(){};a.prototype=s.prototype,i.prototype=new a,i.prototype.constructor=i}}}}),Ca=(0,I.__commonJS)({"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(t,e){"use strict";try{if(r=(0,I.__require)("util"),typeof r.inherits!="function")throw"";e.exports=r.inherits}catch{e.exports=ka()}var r}}),Jt=(0,I.__commonJS)({"../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(t,e){"use strict";function r(s){return s.charAt(0)==="/"}function i(s){var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,u=a.exec(s),o=u[1]||"",n=!!(o&&o.charAt(1)!==":");return!!(u[2]||n)}e.exports=process.platform==="win32"?i:r,e.exports.posix=r,e.exports.win32=i}}),un=(0,I.__commonJS)({"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js"(t){"use strict";t.setopts=f,t.ownProp=e,t.makeAbs=A,t.finish=p,t.mark=_,t.isIgnored=b,t.childrenIgnored=y;function e(m,g){return Object.prototype.hasOwnProperty.call(m,g)}var r=(0,I.__require)("fs"),i=(0,I.__require)("path"),s=Ht(),a=Jt(),u=s.Minimatch;function o(m,g){return m.localeCompare(g,"en")}function n(m,g){m.ignore=g.ignore||[],Array.isArray(m.ignore)||(m.ignore=[m.ignore]),m.ignore.length&&(m.ignore=m.ignore.map(l))}function l(m){var g=null;if(m.slice(-3)==="/**"){var c=m.replace(/(\/\*\*)+$/,"");g=new u(c,{dot:!0})}return{matcher:new u(m,{dot:!0}),gmatcher:g}}function f(m,g,c){if(c||(c={}),c.matchBase&&g.indexOf("/")===-1){if(c.noglobstar)throw new Error("base matching requires globstar");g="**/"+g}m.silent=!!c.silent,m.pattern=g,m.strict=c.strict!==!1,m.realpath=!!c.realpath,m.realpathCache=c.realpathCache||Object.create(null),m.follow=!!c.follow,m.dot=!!c.dot,m.mark=!!c.mark,m.nodir=!!c.nodir,m.nodir&&(m.mark=!0),m.sync=!!c.sync,m.nounique=!!c.nounique,m.nonull=!!c.nonull,m.nosort=!!c.nosort,m.nocase=!!c.nocase,m.stat=!!c.stat,m.noprocess=!!c.noprocess,m.absolute=!!c.absolute,m.fs=c.fs||r,m.maxLength=c.maxLength||1/0,m.cache=c.cache||Object.create(null),m.statCache=c.statCache||Object.create(null),m.symlinks=c.symlinks||Object.create(null),n(m,c),m.changedCwd=!1;var d=process.cwd();e(c,"cwd")?(m.cwd=i.resolve(c.cwd),m.changedCwd=m.cwd!==d):m.cwd=d,m.root=c.root||i.resolve(m.cwd,"/"),m.root=i.resolve(m.root),process.platform==="win32"&&(m.root=m.root.replace(/\\/g,"/")),m.cwdAbs=a(m.cwd)?m.cwd:A(m,m.cwd),process.platform==="win32"&&(m.cwdAbs=m.cwdAbs.replace(/\\/g,"/")),m.nomount=!!c.nomount,c.nonegate=!0,c.nocomment=!0,c.allowWindowsEscape=!1,m.minimatch=new u(g,c),m.options=m.minimatch.options}function p(m){for(var g=m.nounique,c=g?[]:Object.create(null),d=0,v=m.matches.length;d<v;d++){var h=m.matches[d];if(!h||Object.keys(h).length===0){if(m.nonull){var O=m.minimatch.globSet[d];g?c.push(O):c[O]=!0}}else{var w=Object.keys(h);g?c.push.apply(c,w):w.forEach(function(x){c[x]=!0})}}if(g||(c=Object.keys(c)),m.nosort||(c=c.sort(o)),m.mark){for(var d=0;d<c.length;d++)c[d]=m._mark(c[d]);m.nodir&&(c=c.filter(function(x){var P=!/\/$/.test(x),k=m.cache[x]||m.cache[A(m,x)];return P&&k&&(P=k!=="DIR"&&!Array.isArray(k)),P}))}m.ignore.length&&(c=c.filter(function(x){return!b(m,x)})),m.found=c}function _(m,g){var c=A(m,g),d=m.cache[c],v=g;if(d){var h=d==="DIR"||Array.isArray(d),O=g.slice(-1)==="/";if(h&&!O?v+="/":!h&&O&&(v=v.slice(0,-1)),v!==g){var w=A(m,v);m.statCache[w]=m.statCache[c],m.cache[w]=m.cache[c]}}return v}function A(m,g){var c=g;return g.charAt(0)==="/"?c=i.join(m.root,g):a(g)||g===""?c=g:m.changedCwd?c=i.resolve(m.cwd,g):c=i.resolve(g),process.platform==="win32"&&(c=c.replace(/\\/g,"/")),c}function b(m,g){return m.ignore.length?m.ignore.some(function(c){return c.matcher.match(g)||!!(c.gmatcher&&c.gmatcher.match(g))}):!1}function y(m,g){return m.ignore.length?m.ignore.some(function(c){return!!(c.gmatcher&&c.gmatcher.match(g))}):!1}}}),Ia=(0,I.__commonJS)({"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js"(t,e){"use strict";e.exports=y,y.GlobSync=m;var r=cn(),i=Ht(),s=i.Minimatch,a=fn().Glob,u=(0,I.__require)("util"),o=(0,I.__require)("path"),n=(0,I.__require)("assert"),l=Jt(),f=un(),p=f.setopts,_=f.ownProp,A=f.childrenIgnored,b=f.isIgnored;function y(g,c){if(typeof c=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
14
|
-
See: https://github.com/isaacs/node-glob/issues/167`);return new m(g,c).found}function m(g,c){if(!g)throw new Error("must provide pattern");if(typeof c=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
15
|
-
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof m))return new m(g,c);if(p(this,g,c),this.noprocess)return this;var d=this.minimatch.set.length;this.matches=new Array(d);for(var v=0;v<d;v++)this._process(this.minimatch.set[v],v,!1);this._finish()}m.prototype._finish=function(){if(n.ok(this instanceof m),this.realpath){var g=this;this.matches.forEach(function(c,d){var v=g.matches[d]=Object.create(null);for(var h in c)try{h=g._makeAbs(h);var O=r.realpathSync(h,g.realpathCache);v[O]=!0}catch(w){if(w.syscall==="stat")v[g._makeAbs(h)]=!0;else throw w}})}f.finish(this)},m.prototype._process=function(g,c,d){n.ok(this instanceof m);for(var v=0;typeof g[v]=="string";)v++;var h;switch(v){case g.length:this._processSimple(g.join("/"),c);return;case 0:h=null;break;default:h=g.slice(0,v).join("/");break}var O=g.slice(v),w;h===null?w=".":((l(h)||l(g.map(function(k){return typeof k=="string"?k:"[*]"}).join("/")))&&(!h||!l(h))&&(h="/"+h),w=h);var x=this._makeAbs(w);if(!A(this,w)){var P=O[0]===i.GLOBSTAR;P?this._processGlobStar(h,w,x,O,c,d):this._processReaddir(h,w,x,O,c,d)}},m.prototype._processReaddir=function(g,c,d,v,h,O){var w=this._readdir(d,O);if(w){for(var x=v[0],P=!!this.minimatch.negate,k=x._glob,R=this.dot||k.charAt(0)===".",C=[],E=0;E<w.length;E++){var S=w[E];if(S.charAt(0)!=="."||R){var T;P&&!g?T=!S.match(x):T=S.match(x),T&&C.push(S)}}var D=C.length;if(D!==0){if(v.length===1&&!this.mark&&!this.stat){this.matches[h]||(this.matches[h]=Object.create(null));for(var E=0;E<D;E++){var S=C[E];g&&(g.slice(-1)!=="/"?S=g+"/"+S:S=g+S),S.charAt(0)==="/"&&!this.nomount&&(S=o.join(this.root,S)),this._emitMatch(h,S)}return}v.shift();for(var E=0;E<D;E++){var S=C[E],F;g?F=[g,S]:F=[S],this._process(F.concat(v),h,O)}}}},m.prototype._emitMatch=function(g,c){if(!b(this,c)){var d=this._makeAbs(c);if(this.mark&&(c=this._mark(c)),this.absolute&&(c=d),!this.matches[g][c]){if(this.nodir){var v=this.cache[d];if(v==="DIR"||Array.isArray(v))return}this.matches[g][c]=!0,this.stat&&this._stat(c)}}},m.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var c,d,v;try{d=this.fs.lstatSync(g)}catch(O){if(O.code==="ENOENT")return null}var h=d&&d.isSymbolicLink();return this.symlinks[g]=h,!h&&d&&!d.isDirectory()?this.cache[g]="FILE":c=this._readdir(g,!1),c},m.prototype._readdir=function(g,c){var d;if(c&&!_(this.symlinks,g))return this._readdirInGlobStar(g);if(_(this.cache,g)){var v=this.cache[g];if(!v||v==="FILE")return null;if(Array.isArray(v))return v}try{return this._readdirEntries(g,this.fs.readdirSync(g))}catch(h){return this._readdirError(g,h),null}},m.prototype._readdirEntries=function(g,c){if(!this.mark&&!this.stat)for(var d=0;d<c.length;d++){var v=c[d];g==="/"?v=g+v:v=g+"/"+v,this.cache[v]=!0}return this.cache[g]=c,c},m.prototype._readdirError=function(g,c){switch(c.code){case"ENOTSUP":case"ENOTDIR":var d=this._makeAbs(g);if(this.cache[d]="FILE",d===this.cwdAbs){var v=new Error(c.code+" invalid cwd "+this.cwd);throw v.path=this.cwd,v.code=c.code,v}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw c;this.silent||console.error("glob error",c);break}},m.prototype._processGlobStar=function(g,c,d,v,h,O){var w=this._readdir(d,O);if(w){var x=v.slice(1),P=g?[g]:[],k=P.concat(x);this._process(k,h,!1);var R=w.length,C=this.symlinks[d];if(!(C&&O))for(var E=0;E<R;E++){var S=w[E];if(!(S.charAt(0)==="."&&!this.dot)){var T=P.concat(w[E],x);this._process(T,h,!0);var D=P.concat(w[E],v);this._process(D,h,!0)}}}},m.prototype._processSimple=function(g,c){var d=this._stat(g);if(this.matches[c]||(this.matches[c]=Object.create(null)),!!d){if(g&&l(g)&&!this.nomount){var v=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=o.join(this.root,g):(g=o.resolve(this.root,g),v&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch(c,g)}},m.prototype._stat=function(g){var c=this._makeAbs(g),d=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&_(this.cache,c)){var w=this.cache[c];if(Array.isArray(w)&&(w="DIR"),!d||w==="DIR")return w;if(d&&w==="FILE")return!1}var v,h=this.statCache[c];if(!h){var O;try{O=this.fs.lstatSync(c)}catch(x){if(x&&(x.code==="ENOENT"||x.code==="ENOTDIR"))return this.statCache[c]=!1,!1}if(O&&O.isSymbolicLink())try{h=this.fs.statSync(c)}catch{h=O}else h=O}this.statCache[c]=h;var w=!0;return h&&(w=h.isDirectory()?"DIR":"FILE"),this.cache[c]=this.cache[c]||w,d&&w==="FILE"?!1:w},m.prototype._mark=function(g){return f.mark(this,g)},m.prototype._makeAbs=function(g){return f.makeAbs(this,g)}}}),ln=(0,I.__commonJS)({"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(t,e){"use strict";e.exports=r;function r(i,s){if(i&&s)return r(i)(s);if(typeof i!="function")throw new TypeError("need wrapper function");return Object.keys(i).forEach(function(u){a[u]=i[u]}),a;function a(){for(var u=new Array(arguments.length),o=0;o<u.length;o++)u[o]=arguments[o];var n=i.apply(this,u),l=u[u.length-1];return typeof n=="function"&&n!==l&&Object.keys(l).forEach(function(f){n[f]=l[f]}),n}}}}),dn=(0,I.__commonJS)({"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(t,e){"use strict";var r=ln();e.exports=r(i),e.exports.strict=r(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(a){var u=function(){return u.called?u.value:(u.called=!0,u.value=a.apply(this,arguments))};return u.called=!1,u}function s(a){var u=function(){if(u.called)throw new Error(u.onceError);return u.called=!0,u.value=a.apply(this,arguments)},o=a.name||"Function wrapped with `once`";return u.onceError=o+" shouldn't be called more than once",u.called=!1,u}}}),ja=(0,I.__commonJS)({"../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js"(t,e){"use strict";var r=ln(),i=Object.create(null),s=dn();e.exports=r(a);function a(n,l){return i[n]?(i[n].push(l),null):(i[n]=[l],u(n))}function u(n){return s(function l(){var f=i[n],p=f.length,_=o(arguments);try{for(var A=0;A<p;A++)f[A].apply(null,_)}finally{f.length>p?(f.splice(0,p),process.nextTick(function(){l.apply(null,_)})):delete i[n]}})}function o(n){for(var l=n.length,f=[],p=0;p<l;p++)f[p]=n[p];return f}}}),fn=(0,I.__commonJS)({"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js"(t,e){"use strict";e.exports=d;var r=cn(),i=Ht(),s=i.Minimatch,a=Ca(),u=(0,I.__require)("events").EventEmitter,o=(0,I.__require)("path"),n=(0,I.__require)("assert"),l=Jt(),f=Ia(),p=un(),_=p.setopts,A=p.ownProp,b=ja(),y=(0,I.__require)("util"),m=p.childrenIgnored,g=p.isIgnored,c=dn();function d(x,P,k){if(typeof P=="function"&&(k=P,P={}),P||(P={}),P.sync){if(k)throw new TypeError("callback provided to sync glob");return f(x,P)}return new O(x,P,k)}d.sync=f;var v=d.GlobSync=f.GlobSync;d.glob=d;function h(x,P){if(P===null||typeof P!="object")return x;for(var k=Object.keys(P),R=k.length;R--;)x[k[R]]=P[k[R]];return x}d.hasMagic=function(x,P){var k=h({},P);k.noprocess=!0;var R=new O(x,k),C=R.minimatch.set;if(!x)return!1;if(C.length>1)return!0;for(var E=0;E<C[0].length;E++)if(typeof C[0][E]!="string")return!0;return!1},d.Glob=O,a(O,u);function O(x,P,k){if(typeof P=="function"&&(k=P,P=null),P&&P.sync){if(k)throw new TypeError("callback provided to sync glob");return new v(x,P)}if(!(this instanceof O))return new O(x,P,k);_(this,x,P),this._didRealPath=!1;var R=this.minimatch.set.length;this.matches=new Array(R),typeof k=="function"&&(k=c(k),this.on("error",k),this.on("end",function(D){k(null,D)}));var C=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(R===0)return T();for(var E=!0,S=0;S<R;S++)this._process(this.minimatch.set[S],S,!1,T);E=!1;function T(){--C._processing,C._processing<=0&&(E?process.nextTick(function(){C._finish()}):C._finish())}}O.prototype._finish=function(){if(n(this instanceof O),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},O.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var x=this.matches.length;if(x===0)return this._finish();for(var P=this,k=0;k<this.matches.length;k++)this._realpathSet(k,R);function R(){--x===0&&P._finish()}},O.prototype._realpathSet=function(x,P){var k=this.matches[x];if(!k)return P();var R=Object.keys(k),C=this,E=R.length;if(E===0)return P();var S=this.matches[x]=Object.create(null);R.forEach(function(T,D){T=C._makeAbs(T),r.realpath(T,C.realpathCache,function(F,j){F?F.syscall==="stat"?S[T]=!0:C.emit("error",F):S[j]=!0,--E===0&&(C.matches[x]=S,P())})})},O.prototype._mark=function(x){return p.mark(this,x)},O.prototype._makeAbs=function(x){return p.makeAbs(this,x)},O.prototype.abort=function(){this.aborted=!0,this.emit("abort")},O.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},O.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var x=this._emitQueue.slice(0);this._emitQueue.length=0;for(var P=0;P<x.length;P++){var k=x[P];this._emitMatch(k[0],k[1])}}if(this._processQueue.length){var R=this._processQueue.slice(0);this._processQueue.length=0;for(var P=0;P<R.length;P++){var C=R[P];this._processing--,this._process(C[0],C[1],C[2],C[3])}}}},O.prototype._process=function(x,P,k,R){if(n(this instanceof O),n(typeof R=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([x,P,k,R]);return}for(var C=0;typeof x[C]=="string";)C++;var E;switch(C){case x.length:this._processSimple(x.join("/"),P,R);return;case 0:E=null;break;default:E=x.slice(0,C).join("/");break}var S=x.slice(C),T;E===null?T=".":((l(E)||l(x.map(function(j){return typeof j=="string"?j:"[*]"}).join("/")))&&(!E||!l(E))&&(E="/"+E),T=E);var D=this._makeAbs(T);if(m(this,T))return R();var F=S[0]===i.GLOBSTAR;F?this._processGlobStar(E,T,D,S,P,k,R):this._processReaddir(E,T,D,S,P,k,R)}},O.prototype._processReaddir=function(x,P,k,R,C,E,S){var T=this;this._readdir(k,E,function(D,F){return T._processReaddir2(x,P,k,R,C,E,F,S)})},O.prototype._processReaddir2=function(x,P,k,R,C,E,S,T){if(!S)return T();for(var D=R[0],F=!!this.minimatch.negate,j=D._glob,$=this.dot||j.charAt(0)===".",B=[],M=0;M<S.length;M++){var G=S[M];if(G.charAt(0)!=="."||$){var L;F&&!x?L=!G.match(D):L=G.match(D),L&&B.push(G)}}var X=B.length;if(X===0)return T();if(R.length===1&&!this.mark&&!this.stat){this.matches[C]||(this.matches[C]=Object.create(null));for(var M=0;M<X;M++){var G=B[M];x&&(x!=="/"?G=x+"/"+G:G=x+G),G.charAt(0)==="/"&&!this.nomount&&(G=o.join(this.root,G)),this._emitMatch(C,G)}return T()}R.shift();for(var M=0;M<X;M++){var G=B[M],se;x&&(x!=="/"?G=x+"/"+G:G=x+G),this._process([G].concat(R),C,E,T)}T()},O.prototype._emitMatch=function(x,P){if(!this.aborted&&!g(this,P)){if(this.paused){this._emitQueue.push([x,P]);return}var k=l(P)?P:this._makeAbs(P);if(this.mark&&(P=this._mark(P)),this.absolute&&(P=k),!this.matches[x][P]){if(this.nodir){var R=this.cache[k];if(R==="DIR"||Array.isArray(R))return}this.matches[x][P]=!0;var C=this.statCache[k];C&&this.emit("stat",P,C),this.emit("match",P)}}},O.prototype._readdirInGlobStar=function(x,P){if(this.aborted)return;if(this.follow)return this._readdir(x,!1,P);var k="lstat\0"+x,R=this,C=b(k,E);C&&R.fs.lstat(x,C);function E(S,T){if(S&&S.code==="ENOENT")return P();var D=T&&T.isSymbolicLink();R.symlinks[x]=D,!D&&T&&!T.isDirectory()?(R.cache[x]="FILE",P()):R._readdir(x,!1,P)}},O.prototype._readdir=function(x,P,k){if(!this.aborted&&(k=b("readdir\0"+x+"\0"+P,k),!!k)){if(P&&!A(this.symlinks,x))return this._readdirInGlobStar(x,k);if(A(this.cache,x)){var R=this.cache[x];if(!R||R==="FILE")return k();if(Array.isArray(R))return k(null,R)}var C=this;C.fs.readdir(x,w(this,x,k))}};function w(x,P,k){return function(R,C){R?x._readdirError(P,R,k):x._readdirEntries(P,C,k)}}O.prototype._readdirEntries=function(x,P,k){if(!this.aborted){if(!this.mark&&!this.stat)for(var R=0;R<P.length;R++){var C=P[R];x==="/"?C=x+C:C=x+"/"+C,this.cache[C]=!0}return this.cache[x]=P,k(null,P)}},O.prototype._readdirError=function(x,P,k){if(!this.aborted){switch(P.code){case"ENOTSUP":case"ENOTDIR":var R=this._makeAbs(x);if(this.cache[R]="FILE",R===this.cwdAbs){var C=new Error(P.code+" invalid cwd "+this.cwd);C.path=this.cwd,C.code=P.code,this.emit("error",C),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(x)]=!1;break;default:this.cache[this._makeAbs(x)]=!1,this.strict&&(this.emit("error",P),this.abort()),this.silent||console.error("glob error",P);break}return k()}},O.prototype._processGlobStar=function(x,P,k,R,C,E,S){var T=this;this._readdir(k,E,function(D,F){T._processGlobStar2(x,P,k,R,C,E,F,S)})},O.prototype._processGlobStar2=function(x,P,k,R,C,E,S,T){if(!S)return T();var D=R.slice(1),F=x?[x]:[],j=F.concat(D);this._process(j,C,!1,T);var $=this.symlinks[k],B=S.length;if($&&E)return T();for(var M=0;M<B;M++){var G=S[M];if(!(G.charAt(0)==="."&&!this.dot)){var L=F.concat(S[M],D);this._process(L,C,!0,T);var X=F.concat(S[M],R);this._process(X,C,!0,T)}}T()},O.prototype._processSimple=function(x,P,k){var R=this;this._stat(x,function(C,E){R._processSimple2(x,P,C,E,k)})},O.prototype._processSimple2=function(x,P,k,R,C){if(this.matches[P]||(this.matches[P]=Object.create(null)),!R)return C();if(x&&l(x)&&!this.nomount){var E=/[\/\\]$/.test(x);x.charAt(0)==="/"?x=o.join(this.root,x):(x=o.resolve(this.root,x),E&&(x+="/"))}process.platform==="win32"&&(x=x.replace(/\\/g,"/")),this._emitMatch(P,x),C()},O.prototype._stat=function(x,P){var k=this._makeAbs(x),R=x.slice(-1)==="/";if(x.length>this.maxLength)return P();if(!this.stat&&A(this.cache,k)){var C=this.cache[k];if(Array.isArray(C)&&(C="DIR"),!R||C==="DIR")return P(null,C);if(R&&C==="FILE")return P()}var E,S=this.statCache[k];if(S!==void 0){if(S===!1)return P(null,S);var T=S.isDirectory()?"DIR":"FILE";return R&&T==="FILE"?P():P(null,T,S)}var D=this,F=b("stat\0"+k,j);F&&D.fs.lstat(k,F);function j($,B){if(B&&B.isSymbolicLink())return D.fs.stat(k,function(M,G){M?D._stat2(x,k,null,B,P):D._stat2(x,k,M,G,P)});D._stat2(x,k,$,B,P)}},O.prototype._stat2=function(x,P,k,R,C){if(k&&(k.code==="ENOENT"||k.code==="ENOTDIR"))return this.statCache[P]=!1,C();var E=x.slice(-1)==="/";if(this.statCache[P]=R,P.slice(-1)==="/"&&R&&!R.isDirectory())return C(null,!1,R);var S=!0;return R&&(S=R.isDirectory()?"DIR":"FILE"),this.cache[P]=this.cache[P]||S,E&&S==="FILE"?C():C(null,S,R)}}}),Da=(0,I.__commonJS)({"../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(t,e){"use strict";var r=(0,I.__require)("assert"),i=(0,I.__require)("path"),s=(0,I.__require)("fs"),a=void 0;try{a=fn()}catch{}var u={nosort:!0,silent:!0},o=0,n=process.platform==="win32",l=d=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(h=>{d[h]=d[h]||s[h],h=h+"Sync",d[h]=d[h]||s[h]}),d.maxBusyTries=d.maxBusyTries||3,d.emfileWait=d.emfileWait||1e3,d.glob===!1&&(d.disableGlob=!0),d.disableGlob!==!0&&a===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");d.disableGlob=d.disableGlob||!1,d.glob=d.glob||u},f=(d,v,h)=>{typeof v=="function"&&(h=v,v={}),r(d,"rimraf: missing path"),r.equal(typeof d,"string","rimraf: path should be a string"),r.equal(typeof h,"function","rimraf: callback function required"),r(v,"rimraf: invalid options argument provided"),r.equal(typeof v,"object","rimraf: options should be object"),l(v);let O=0,w=null,x=0,P=R=>{w=w||R,--x===0&&h(w)},k=(R,C)=>{if(R)return h(R);if(x=C.length,x===0)return h();C.forEach(E=>{let S=T=>{if(T){if((T.code==="EBUSY"||T.code==="ENOTEMPTY"||T.code==="EPERM")&&O<v.maxBusyTries)return O++,setTimeout(()=>p(E,v,S),O*100);if(T.code==="EMFILE"&&o<v.emfileWait)return setTimeout(()=>p(E,v,S),o++);T.code==="ENOENT"&&(T=null)}o=0,P(T)};p(E,v,S)})};if(v.disableGlob||!a.hasMagic(d))return k(null,[d]);v.lstat(d,(R,C)=>{if(!R)return k(null,[d]);a(d,v.glob,k)})},p=(d,v,h)=>{r(d),r(v),r(typeof h=="function"),v.lstat(d,(O,w)=>{if(O&&O.code==="ENOENT")return h(null);if(O&&O.code==="EPERM"&&n&&_(d,v,O,h),w&&w.isDirectory())return b(d,v,O,h);v.unlink(d,x=>{if(x){if(x.code==="ENOENT")return h(null);if(x.code==="EPERM")return n?_(d,v,x,h):b(d,v,x,h);if(x.code==="EISDIR")return b(d,v,x,h)}return h(x)})})},_=(d,v,h,O)=>{r(d),r(v),r(typeof O=="function"),v.chmod(d,438,w=>{w?O(w.code==="ENOENT"?null:h):v.stat(d,(x,P)=>{x?O(x.code==="ENOENT"?null:h):P.isDirectory()?b(d,v,h,O):v.unlink(d,O)})})},A=(d,v,h)=>{r(d),r(v);try{v.chmodSync(d,438)}catch(w){if(w.code==="ENOENT")return;throw h}let O;try{O=v.statSync(d)}catch(w){if(w.code==="ENOENT")return;throw h}O.isDirectory()?g(d,v,h):v.unlinkSync(d)},b=(d,v,h,O)=>{r(d),r(v),r(typeof O=="function"),v.rmdir(d,w=>{w&&(w.code==="ENOTEMPTY"||w.code==="EEXIST"||w.code==="EPERM")?y(d,v,O):w&&w.code==="ENOTDIR"?O(h):O(w)})},y=(d,v,h)=>{r(d),r(v),r(typeof h=="function"),v.readdir(d,(O,w)=>{if(O)return h(O);let x=w.length;if(x===0)return v.rmdir(d,h);let P;w.forEach(k=>{f(i.join(d,k),v,R=>{if(!P){if(R)return h(P=R);--x===0&&v.rmdir(d,h)}})})})},m=(d,v)=>{v=v||{},l(v),r(d,"rimraf: missing path"),r.equal(typeof d,"string","rimraf: path should be a string"),r(v,"rimraf: missing options"),r.equal(typeof v,"object","rimraf: options should be object");let h;if(v.disableGlob||!a.hasMagic(d))h=[d];else try{v.lstatSync(d),h=[d]}catch{h=a.sync(d,v.glob)}if(h.length)for(let O=0;O<h.length;O++){let w=h[O],x;try{x=v.lstatSync(w)}catch(P){if(P.code==="ENOENT")return;P.code==="EPERM"&&n&&A(w,v,P)}try{x&&x.isDirectory()?g(w,v,null):v.unlinkSync(w)}catch(P){if(P.code==="ENOENT")return;if(P.code==="EPERM")return n?A(w,v,P):g(w,v,P);if(P.code!=="EISDIR")throw P;g(w,v,P)}}},g=(d,v,h)=>{r(d),r(v);try{v.rmdirSync(d)}catch(O){if(O.code==="ENOENT")return;if(O.code==="ENOTDIR")throw h;(O.code==="ENOTEMPTY"||O.code==="EEXIST"||O.code==="EPERM")&&c(d,v)}},c=(d,v)=>{r(d),r(v),v.readdirSync(d).forEach(w=>m(i.join(d,w),v));let h=n?100:1,O=0;do{let w=!0;try{let x=v.rmdirSync(d,v);return w=!1,x}finally{if(++O<h&&w)continue}}while(!0)};e.exports=f,f.sync=m}}),Na=(0,I.__commonJS)({"../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(t,e){"use strict";e.exports=(r,i=1,s)=>{if(s={indent:" ",includeEmptyLines:!1,...s},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof i!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof i}\``);if(typeof s.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof s.indent}\``);if(i===0)return r;let a=s.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(a,s.indent.repeat(i))}}}),$a=(0,I.__commonJS)({"../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(t,e){"use strict";var r=(0,I.__require)("os"),i=/\s+at.*(?:\(|\s)(.*)\)?/,s=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,a=typeof r.homedir>"u"?"":r.homedir();e.exports=(u,o)=>(o=Object.assign({pretty:!1},o),u.replace(/\\/g,"/").split(`
|
|
16
|
-
`).filter(n=>{let l=n.match(i);if(l===null||!l[1])return!0;let f=l[1];return f.includes(".app/Contents/Resources/electron.asar")||f.includes(".app/Contents/Resources/default_app.asar")?!1:!s.test(f)}).filter(n=>n.trim()!=="").map(n=>o.pretty?n.replace(i,(l,f)=>l.replace(f,f.replace(a,"~"))):n).join(`
|
|
17
|
-
`))}}),La=(0,I.__commonJS)({"../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(t,e){"use strict";var r=Na(),i=$a(),s=u=>u.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),a=class extends Error{constructor(u){if(!Array.isArray(u))throw new TypeError(`Expected input to be an Array, got ${typeof u}`);u=[...u].map(n=>n instanceof Error?n:n!==null&&typeof n=="object"?Object.assign(new Error(n.message),n):new Error(n));let o=u.map(n=>typeof n.stack=="string"?s(i(n.stack)):String(n)).join(`
|
|
18
|
-
`);o=`
|
|
19
|
-
`+r(o,4),super(o),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:u})}*[Symbol.iterator](){for(let u of this._errors)yield u}};e.exports=a}}),Ma=(0,I.__commonJS)({"../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(t,e){"use strict";var r=La();e.exports=async(i,s,{concurrency:a=1/0,stopOnError:u=!0}={})=>new Promise((o,n)=>{if(typeof s!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(a)||a===1/0)&&a>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${a}\` (${typeof a})`);let l=[],f=[],p=i[Symbol.iterator](),_=!1,A=!1,b=0,y=0,m=()=>{if(_)return;let g=p.next(),c=y;if(y++,g.done){A=!0,b===0&&(!u&&f.length!==0?n(new r(f)):o(l));return}b++,(async()=>{try{let d=await g.value;l[c]=await s(d,c),b--,m()}catch(d){u?(_=!0,n(d)):(f.push(d),b--,m())}})()};for(let g=0;g<a&&(m(),!A);g++);})}}),qa=(0,I.__commonJS)({"../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(t,e){"use strict";var{promisify:r}=(0,I.__require)("util"),i=(0,I.__require)("path"),s=Sa(),a=Qr(),u=an(),o=Pa(),n=Aa(),l=xa(),f=Da(),p=Ma(),_=r(f),A={glob:!1,unlink:o.unlink,unlinkSync:o.unlinkSync,chmod:o.chmod,chmodSync:o.chmodSync,stat:o.stat,statSync:o.statSync,lstat:o.lstat,lstatSync:o.lstatSync,rmdir:o.rmdir,rmdirSync:o.rmdirSync,readdir:o.readdir,readdirSync:o.readdirSync};function b(m,g){if(n(m))throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");if(!l(m,g))throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}function y(m){return m=Array.isArray(m)?m:[m],m=m.map(g=>process.platform==="win32"&&a(g)===!1?u(g):g),m}e.exports=async(m,{force:g,dryRun:c,cwd:d=process.cwd(),onProgress:v=()=>{},...h}={})=>{h={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:d,...h},m=y(m);let O=(await s(m,h)).sort((k,R)=>R.localeCompare(k));O.length===0&&v({totalCount:0,deletedCount:0,percent:1});let w=0,P=await p(O,async k=>(k=i.resolve(d,k),g||b(k,d),c||await _(k,A),w+=1,v({totalCount:O.length,deletedCount:w,percent:w/O.length}),k),h);return P.sort((k,R)=>k.localeCompare(R)),P},e.exports.sync=(m,{force:g,dryRun:c,cwd:d=process.cwd(),...v}={})=>{v={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:d,...v},m=y(m);let O=s.sync(m,v).sort((w,x)=>x.localeCompare(w)).map(w=>(w=i.resolve(d,w),g||b(w,d),c||f.sync(w,A),w));return O.sort((w,x)=>w.localeCompare(x)),O}}}),Fa=(0,I.__commonJS)({"../../node_modules/.pnpm/tempy@1.0.1/node_modules/tempy/index.js"(t,e){"use strict";var r=(0,I.__require)("fs"),i=(0,I.__require)("path"),s=mo(),a=ho(),u=Ur(),o=qa(),n=(0,I.__require)("stream"),{promisify:l}=(0,I.__require)("util"),f=l(n.pipeline),{writeFile:p}=r.promises,_=(y="")=>i.join(a,y+s()),A=async(y,m)=>f(m,r.createWriteStream(y)),b=(y,{extraArguments:m=0}={})=>async(...g)=>{let[c,d]=g.slice(m),v=await y(...g.slice(0,m),d);try{return await c(v)}finally{await o(v,{force:!0})}};e.exports.file=y=>{if(y={...y},y.name){if(y.extension!==void 0&&y.extension!==null)throw new Error("The `name` and `extension` options are mutually exclusive");return i.join(e.exports.directory(),y.name)}return _()+(y.extension===void 0||y.extension===null?"":"."+y.extension.replace(/^\./,""))},e.exports.file.task=b(e.exports.file),e.exports.directory=({prefix:y=""}={})=>{let m=_(y);return r.mkdirSync(m),m},e.exports.directory.task=b(e.exports.directory),e.exports.write=async(y,m)=>{let g=e.exports.file(m);return await(u(y)?A:p)(g,y),g},e.exports.write.task=b(e.exports.write,{extraArguments:1}),e.exports.writeSync=(y,m)=>{let g=e.exports.file(m);return r.writeFileSync(g,y),g},Object.defineProperty(e.exports,"root",{get(){return a}})}}),Ba=(0,I.__toESM)(Ks()),Ga=(0,I.__toESM)(fo()),Ha=(0,I.__toESM)(Fa()),Ja={new:function(t={}){let e=t;return beforeEach(()=>{let r=process.cwd();e.mocked=e.mocked??{cwd:process.cwd()},e.tmpDir=Ha.default.directory(),e.fs=Ga.default.cwd(e.tmpDir),e.tree=(i=e.tmpDir,s="")=>{function*a(o,n=""){for(let l of o)l.name==="node_modules"||l.name===".git"||(l.type==="dir"?(yield`${n}\u2514\u2500\u2500 ${l.name}/`,yield*a(l.children,n+" ")):l.type==="symlink"?yield`${n} -> ${l.relativePath}`:yield`${n}\u2514\u2500\u2500 ${l.name}`)}let u=e.fs.inspectTree(i,{relativePath:!0,symlinks:"report"})?.children||[];return`
|
|
20
|
-
${[...a(u,s)].join(`
|
|
21
|
-
`)}
|
|
22
|
-
`},e.fixture=i=>{e.fs.copy(Ve.default.join(r,"src","__tests__","fixtures",i),".",{overwrite:!0}),e.fs.symlink(Ve.default.join(r,"..","client"),Ve.default.join(e.fs.cwd(),"node_modules","@prisma","client"))},e.cli=(...i)=>Ba.default.node(Ve.default.join(r,"../cli/build/index.js"),i,{cwd:e.fs.cwd(),stdio:"pipe",all:!0}),e.printDir=(i,s)=>{let a=e.fs.list(i)??[];return a.sort((u,o)=>u.localeCompare(o)),a.filter(u=>s.includes(Ve.default.extname(u))).map(u=>`${u}:
|
|
2
|
+
import{a as R,d as E}from"./chunk-ZPUL6EAC.js";import{a as l,b as u,f as x}from"./chunk-SZYQ5TDI.js";import{a as y,d,e as P,f as C}from"./chunk-4QNO2WQL.js";import"./chunk-M6TFCQLD.js";import{unstable_startServer as H}from"@prisma/dev";function N(e){let o,r,t=new Promise((n,p)=>{o=n,r=p}),s=n=>{s=i=null,r(n),e?.onRejected?.(n),e?.onFulfilled?.()},i=n=>{i=s=null,o(n),e?.onResolved?.(n),e?.onFulfilled?.()};return{isFulfilled:()=>i===s,promise:t,reject:n=>s?.(n),resolve:n=>i?.(n)}}var I="0.10.0";var a={database:"db-port",server:"port",shadow_database:"shadow-db-port"},A={...C,[a.database]:{alias:"P",description:"Port number the database server will listen on.",required:!1,type:"string"},name:{alias:"n",default:"default",description:"Name of the server. Helps keep state isolated between different projects. Defaults to `default`.",required:!1,type:"string"},[a.server]:{alias:"p",description:"Main port number the Prisma Dev server will listen on.",required:!1,type:"string"},[a.shadow_database]:{description:"Port number the shadow database server will listen on.",required:!1,type:"string"}},j=/^[a-zA-Z0-9-_]+$/;function T(e){let{[a.server]:o,[a.database]:r,[a.shadow_database]:t,debug:s,name:i}=e.args,n=r?Number(r):void 0,p=o?Number(o):void 0,c=t?Number(t):void 0;return o&&Number.isNaN(p)?(console.error(`Invalid server port number provided. Please provide a valid port number in \`--${a.server}\`.`),process.exit(1)):r&&Number.isNaN(n)?(console.error(`Invalid database port number provided. Please provide a valid port number in \`--${a.database}\`.`),process.exit(1)):t&&Number.isNaN(c)?(console.error(`Invalid shadow database port number provided. Please provide a valid port number in \`--${a.shadow_database}\`.`),process.exit(1)):p!=null&&p===n?(console.error(`The server port and database port cannot be the same. Please provide different port numbers in \`--${a.server}\` and/or \`--${a.database}\`.`),process.exit(1)):n!=null&&n===c?(console.error(`The database port and shadow database port cannot be the same. Please provide different port numbers in \`--${a.database}\` and/or \`--${a.shadow_database}\`.`),process.exit(1)):p!=null&&p===c?(console.error(`The server port and shadow database port cannot be the same. Please provide different port numbers in \`--${a.server}\` and/or \`--${a.shadow_database}\`.`),process.exit(1)):j.test(i)?{databasePort:n,debug:s,name:i,serverPort:p,shadowDatabasePort:c}:(console.error("Invalid name provided. The name can only contain letters, numbers, dashes, and underscores. Please provide a valid name in `--name`."),process.exit(1))}import{PortNotAvailableError as F,ServerAlreadyRunningError as L}from"@prisma/dev";async function f(e,o,r){if(e instanceof L)try{let s=await e.server;if(!s)return await f("Something went wrong, try again!",o,r);o.warning(` Skipped! \u{1F60C}
|
|
23
3
|
|
|
24
|
-
${
|
|
25
|
-
|
|
26
|
-
`)},process.chdir(e.tmpDir)}),afterEach(()=>{process.chdir(e.mocked.cwd)}),pn(t)}};function pn(t){return{add(e){let r=e(t);return pn(r)},assemble(){return t}}}var Ua=()=>t=>{let e=t;return beforeEach(()=>{e.mocked["console.error"]=jest.spyOn(console,"error").mockImplementation(()=>{}),e.mocked["console.log"]=jest.spyOn(console,"log").mockImplementation(()=>{}),e.mocked["console.info"]=jest.spyOn(console,"info").mockImplementation(()=>{}),e.mocked["console.warn"]=jest.spyOn(console,"warn").mockImplementation(()=>{})}),afterEach(()=>{e.mocked["console.error"].mockRestore(),e.mocked["console.log"].mockRestore(),e.mocked["console.info"].mockRestore(),e.mocked["console.warn"].mockRestore()}),e},Wa=()=>t=>{let e=t;return beforeEach(()=>{e.mocked["process.stderr.write"]=jest.spyOn(process.stderr,"write").mockImplementation(()=>!0),e.mocked["process.stdout.write"]=jest.spyOn(process.stdout,"write").mockImplementation(()=>!0)}),afterEach(()=>{e.mocked["process.stderr.write"].mockRestore(),e.mocked["process.stdout.write"].mockRestore()}),e};});var yn=Ae((Ff,gn)=>{"use strict";var Va=Object.create,pt=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,Ya=Object.getOwnPropertyNames,Ka=Object.getPrototypeOf,Qa=Object.prototype.hasOwnProperty,za=(t,e)=>{for(var r in e)pt(t,r,{get:e[r],enumerable:!0})},vn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ya(e))!Qa.call(t,s)&&s!==r&&pt(t,s,{get:()=>e[s],enumerable:!(i=Xa(e,s))||i.enumerable});return t},Za=(t,e,r)=>(r=t!=null?Va(Ka(t)):{},vn(e||!t||!t.__esModule?pt(r,"default",{value:t,enumerable:!0}):r,t)),ec=t=>vn(pt({},"__esModule",{value:!0}),t),_n={};za(_n,{assertNodeAPISupported:()=>rc});gn.exports=ec(_n);var tc=Za(we("fs"));function rc(){let t=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(t&&tc.default.existsSync(t))&&process.arch==="ia32")throw new Error('The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set `engineType = "binary"` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)')}});var wn=Ae((Bf,bn)=>{"use strict";var Ut=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,ic=Object.getOwnPropertyNames,sc=Object.prototype.hasOwnProperty,oc=(t,e)=>{for(var r in e)Ut(t,r,{get:e[r],enumerable:!0})},ac=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ic(e))!sc.call(t,s)&&s!==r&&Ut(t,s,{get:()=>e[s],enumerable:!(i=nc(e,s))||i.enumerable});return t},cc=t=>ac(Ut({},"__esModule",{value:!0}),t),Sn={};oc(Sn,{getNodeAPIName:()=>uc});bn.exports=cc(Sn);var mt="libquery_engine";function uc(t,e){let r=e==="url";return t.includes("windows")?r?"query_engine.dll.node":`query_engine-${t}.dll.node`:t.includes("darwin")?r?`${mt}.dylib.node`:`${mt}-${t}.dylib.node`:r?`${mt}.so.node`:`${mt}-${t}.so.node`}});var ht=Ae((fp,Rn)=>{"use strict";var Vt=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,dc=Object.getOwnPropertyNames,fc=Object.prototype.hasOwnProperty,pc=(t,e)=>{for(var r in e)Vt(t,r,{get:e[r],enumerable:!0})},mc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of dc(e))!fc.call(t,s)&&s!==r&&Vt(t,s,{get:()=>e[s],enumerable:!(i=lc(e,s))||i.enumerable});return t},hc=t=>mc(Vt({},"__esModule",{value:!0}),t),En={};pc(En,{underline:()=>_c,yellow:()=>gc});Rn.exports=hc(En);var Wt,Pn,An,xn,On=!0;typeof process<"u"&&({FORCE_COLOR:Wt,NODE_DISABLE_COLORS:Pn,NO_COLOR:An,TERM:xn}=process.env||{},On=process.stdout&&process.stdout.isTTY);var vc={enabled:!Pn&&An==null&&xn!=="dumb"&&(Wt!=null&&Wt!=="0"||On)};function ue(t,e){let r=new RegExp(`\\x1b\\[${e}m`,"g"),i=`\x1B[${t}m`,s=`\x1B[${e}m`;return function(a){return!vc.enabled||a==null?a:i+(~(""+a).indexOf(s)?a.replace(r,s+i):a)+s}}var Gf=ue(0,0),Hf=ue(1,22),Jf=ue(2,22),Uf=ue(3,23),_c=ue(4,24),Wf=ue(7,27),Vf=ue(8,28),Xf=ue(9,29),Yf=ue(30,39),Kf=ue(31,39),Qf=ue(32,39),gc=ue(33,39),zf=ue(34,39),Zf=ue(35,39),ep=ue(36,39),tp=ue(37,39),rp=ue(90,39),np=ue(90,39),ip=ue(40,49),sp=ue(41,49),op=ue(42,49),ap=ue(43,49),cp=ue(44,49),up=ue(45,49),lp=ue(46,49),dp=ue(47,49)});var Yt=Ae((pp,In)=>{"use strict";var Xt=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,Sc=Object.getOwnPropertyNames,bc=Object.prototype.hasOwnProperty,wc=(t,e)=>{for(var r in e)Xt(t,r,{get:e[r],enumerable:!0})},Ec=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Sc(e))!bc.call(t,s)&&s!==r&&Xt(t,s,{get:()=>e[s],enumerable:!(i=yc(e,s))||i.enumerable});return t},Pc=t=>Ec(Xt({},"__esModule",{value:!0}),t),Tn={};wc(Tn,{log:()=>xc,should:()=>Cn,tags:()=>kn,warn:()=>Oc});In.exports=Pc(Tn);var Ac=ht(),kn={warn:(0,Ac.yellow)("prisma:warn")},Cn={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function xc(...t){console.log(...t)}function Oc(t,...e){Cn.warn()&&console.warn(`${kn.warn} ${t}`,...e)}});var Un=Ae((mp,Jn)=>{"use strict";var Zt=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,Tc=Object.getOwnPropertyNames,kc=Object.prototype.hasOwnProperty,Nn=(t,e)=>{for(var r in e)Zt(t,r,{get:e[r],enumerable:!0})},Cc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Tc(e))!kc.call(t,s)&&s!==r&&Zt(t,s,{get:()=>e[s],enumerable:!(i=Rc(e,s))||i.enumerable});return t},Ic=t=>Cc(Zt({},"__esModule",{value:!0}),t),$n={};Nn($n,{Debug:()=>Hn,clearLogs:()=>uu,default:()=>lu,getLogs:()=>cu});Jn.exports=Ic($n);var Kt={};Nn(Kt,{$:()=>Bn,bgBlack:()=>Kc,bgBlue:()=>eu,bgCyan:()=>ru,bgGreen:()=>zc,bgMagenta:()=>tu,bgRed:()=>Qc,bgWhite:()=>nu,bgYellow:()=>Zc,black:()=>Fc,blue:()=>Jc,bold:()=>Gn,cyan:()=>Wc,dim:()=>Dc,gray:()=>Xc,green:()=>Gc,grey:()=>Yc,hidden:()=>Mc,inverse:()=>Lc,italic:()=>Nc,magenta:()=>Uc,red:()=>Bc,reset:()=>jc,strikethrough:()=>qc,underline:()=>$c,white:()=>Vc,yellow:()=>Hc});var Qt,Ln,Mn,qn,Fn=!0;typeof process<"u"&&({FORCE_COLOR:Qt,NODE_DISABLE_COLORS:Ln,NO_COLOR:Mn,TERM:qn}=process.env||{},Fn=process.stdout&&process.stdout.isTTY);var Bn={enabled:!Ln&&Mn==null&&qn!=="dumb"&&(Qt!=null&&Qt!=="0"||Fn)};function le(t,e){let r=new RegExp(`\\x1b\\[${e}m`,"g"),i=`\x1B[${t}m`,s=`\x1B[${e}m`;return function(a){return!Bn.enabled||a==null?a:i+(~(""+a).indexOf(s)?a.replace(r,s+i):a)+s}}var jc=le(0,0),Gn=le(1,22),Dc=le(2,22),Nc=le(3,23),$c=le(4,24),Lc=le(7,27),Mc=le(8,28),qc=le(9,29),Fc=le(30,39),Bc=le(31,39),Gc=le(32,39),Hc=le(33,39),Jc=le(34,39),Uc=le(35,39),Wc=le(36,39),Vc=le(37,39),Xc=le(90,39),Yc=le(90,39),Kc=le(40,49),Qc=le(41,49),zc=le(42,49),Zc=le(43,49),eu=le(44,49),tu=le(45,49),ru=le(46,49),nu=le(47,49),iu=100,jn=["green","yellow","blue","magenta","cyan","red"],Ze=[],Dn=Date.now(),su=0,zt=typeof process<"u"?process.env:{};globalThis.DEBUG??=zt.DEBUG??"";globalThis.DEBUG_COLORS??=zt.DEBUG_COLORS?zt.DEBUG_COLORS==="true":!0;var et={enable(t){typeof t=="string"&&(globalThis.DEBUG=t)},disable(){let t=globalThis.DEBUG;return globalThis.DEBUG="",t},enabled(t){let e=globalThis.DEBUG.split(",").map(s=>s.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=e.some(s=>s===""||s[0]==="-"?!1:t.match(RegExp(s.split("*").join(".*")+"$"))),i=e.some(s=>s===""||s[0]!=="-"?!1:t.match(RegExp(s.slice(1).split("*").join(".*")+"$")));return r&&!i},log:(...t)=>{let[e,r,...i]=t;(console.warn??console.log)(`${e} ${r}`,...i)},formatters:{}};function ou(t){let e={color:jn[su++%jn.length],enabled:et.enabled(t),namespace:t,log:et.log,extend:()=>{}},r=(...i)=>{let{enabled:s,namespace:a,color:u,log:o}=e;if(i.length!==0&&Ze.push([a,...i]),Ze.length>iu&&Ze.shift(),et.enabled(a)||s){let n=i.map(f=>typeof f=="string"?f:au(f)),l=`+${Date.now()-Dn}ms`;Dn=Date.now(),globalThis.DEBUG_COLORS?o(Kt[u](Gn(a)),...n,Kt[u](l)):o(a,...n,l)}};return new Proxy(r,{get:(i,s)=>e[s],set:(i,s,a)=>e[s]=a})}var Hn=new Proxy(ou,{get:(t,e)=>et[e],set:(t,e,r)=>et[e]=r});function au(t,e=2){let r=new Set;return JSON.stringify(t,(i,s)=>{if(typeof s=="object"&&s!==null){if(r.has(s))return"[Circular *]";r.add(s)}else if(typeof s=="bigint")return s.toString();return s},e)}function cu(t=7500){let e=Ze.map(([r,...i])=>`${r} ${i.map(s=>typeof s=="string"?s:JSON.stringify(s)).join(" ")}`).join(`
|
|
27
|
-
`);return e.length<t?e:e.slice(-t)}function uu(){Ze.length=0}var lu=Hn});var ci=Ae((Ep,ai)=>{"use strict";var du=Object.create,St=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,pu=Object.getOwnPropertyNames,mu=Object.getPrototypeOf,hu=Object.prototype.hasOwnProperty,vu=(t,e)=>{for(var r in e)St(t,r,{get:e[r],enumerable:!0})},Xn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of pu(e))!hu.call(t,s)&&s!==r&&St(t,s,{get:()=>e[s],enumerable:!(i=fu(e,s))||i.enumerable});return t},bt=(t,e,r)=>(r=t!=null?du(mu(t)):{},Xn(e||!t||!t.__esModule?St(r,"default",{value:t,enumerable:!0}):r,t)),_u=t=>Xn(St({},"__esModule",{value:!0}),t),Yn={};vu(Yn,{computeLibSSLSpecificPaths:()=>ri,getArchFromUname:()=>si,getBinaryTargetForCurrentPlatform:()=>Tu,getBinaryTargetForCurrentPlatformInternal:()=>ii,getPlatformInfo:()=>Cu,getPlatformInfoMemoized:()=>ar,getSSLVersion:()=>ni,getos:()=>Qn,parseDistro:()=>zn,parseLibSSLVersion:()=>sr,parseOpenSSLVersion:()=>ei,resolveDistro:()=>Zn});ai.exports=_u(Yn);var er=Yt(),gu=bt(Un()),yu=bt(we("child_process")),Kn=bt(we("fs/promises")),tr=bt(we("os")),Su=we("util"),Ie=Symbol.for("@ts-pattern/matcher"),bu=Symbol.for("@ts-pattern/isVariadic"),gt="@ts-pattern/anonymous-select-key",rr=t=>!!(t&&typeof t=="object"),_t=t=>t&&!!t[Ie],ke=(t,e,r)=>{if(_t(t)){let i=t[Ie](),{matched:s,selections:a}=i.match(e);return s&&a&&Object.keys(a).forEach(u=>r(u,a[u])),s}if(rr(t)){if(!rr(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let i=[],s=[],a=[];for(let u of t.keys()){let o=t[u];_t(o)&&o[bu]?a.push(o):a.length?s.push(o):i.push(o)}if(a.length){if(a.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<i.length+s.length)return!1;let u=e.slice(0,i.length),o=s.length===0?[]:e.slice(-s.length),n=e.slice(i.length,s.length===0?1/0:-s.length);return i.every((l,f)=>ke(l,u[f],r))&&s.every((l,f)=>ke(l,o[f],r))&&(a.length===0||ke(a[0],n,r))}return t.length===e.length&&t.every((u,o)=>ke(u,e[o],r))}return Reflect.ownKeys(t).every(i=>{let s=t[i];return(i in e||_t(a=s)&&a[Ie]().matcherType==="optional")&&ke(s,e[i],r);var a})}return Object.is(e,t)},Fe=t=>{var e,r,i;return rr(t)?_t(t)?(e=(r=(i=t[Ie]()).getSelectionKeys)==null?void 0:r.call(i))!=null?e:[]:Array.isArray(t)?tt(t,Fe):tt(Object.values(t),Fe):[]},tt=(t,e)=>t.reduce((r,i)=>r.concat(e(i)),[]);function xe(t){return Object.assign(t,{optional:()=>wu(t),and:e=>fe(t,e),or:e=>Eu(t,e),select:e=>e===void 0?Wn(t):Wn(e,t)})}function wu(t){return xe({[Ie]:()=>({match:e=>{let r={},i=(s,a)=>{r[s]=a};return e===void 0?(Fe(t).forEach(s=>i(s,void 0)),{matched:!0,selections:r}):{matched:ke(t,e,i),selections:r}},getSelectionKeys:()=>Fe(t),matcherType:"optional"})})}function fe(...t){return xe({[Ie]:()=>({match:e=>{let r={},i=(s,a)=>{r[s]=a};return{matched:t.every(s=>ke(s,e,i)),selections:r}},getSelectionKeys:()=>tt(t,Fe),matcherType:"and"})})}function Eu(...t){return xe({[Ie]:()=>({match:e=>{let r={},i=(s,a)=>{r[s]=a};return tt(t,Fe).forEach(s=>i(s,void 0)),{matched:t.some(s=>ke(s,e,i)),selections:r}},getSelectionKeys:()=>tt(t,Fe),matcherType:"or"})})}function ae(t){return{[Ie]:()=>({match:e=>({matched:!!t(e)})})}}function Wn(...t){let e=typeof t[0]=="string"?t[0]:void 0,r=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return xe({[Ie]:()=>({match:i=>{let s={[e??gt]:i};return{matched:r===void 0||ke(r,i,(a,u)=>{s[a]=u}),selections:s}},getSelectionKeys:()=>[e??gt].concat(r===void 0?[]:Fe(r))})})}function Re(t){return typeof t=="number"}function $e(t){return typeof t=="string"}function Le(t){return typeof t=="bigint"}var hp=xe(ae(function(t){return!0})),Me=t=>Object.assign(xe(t),{startsWith:e=>{return Me(fe(t,(r=e,ae(i=>$e(i)&&i.startsWith(r)))));var r},endsWith:e=>{return Me(fe(t,(r=e,ae(i=>$e(i)&&i.endsWith(r)))));var r},minLength:e=>Me(fe(t,(r=>ae(i=>$e(i)&&i.length>=r))(e))),length:e=>Me(fe(t,(r=>ae(i=>$e(i)&&i.length===r))(e))),maxLength:e=>Me(fe(t,(r=>ae(i=>$e(i)&&i.length<=r))(e))),includes:e=>{return Me(fe(t,(r=e,ae(i=>$e(i)&&i.includes(r)))));var r},regex:e=>{return Me(fe(t,(r=e,ae(i=>$e(i)&&!!i.match(r)))));var r}}),vp=Me(ae($e)),Te=t=>Object.assign(xe(t),{between:(e,r)=>Te(fe(t,((i,s)=>ae(a=>Re(a)&&i<=a&&s>=a))(e,r))),lt:e=>Te(fe(t,(r=>ae(i=>Re(i)&&i<r))(e))),gt:e=>Te(fe(t,(r=>ae(i=>Re(i)&&i>r))(e))),lte:e=>Te(fe(t,(r=>ae(i=>Re(i)&&i<=r))(e))),gte:e=>Te(fe(t,(r=>ae(i=>Re(i)&&i>=r))(e))),int:()=>Te(fe(t,ae(e=>Re(e)&&Number.isInteger(e)))),finite:()=>Te(fe(t,ae(e=>Re(e)&&Number.isFinite(e)))),positive:()=>Te(fe(t,ae(e=>Re(e)&&e>0))),negative:()=>Te(fe(t,ae(e=>Re(e)&&e<0)))}),_p=Te(ae(Re)),qe=t=>Object.assign(xe(t),{between:(e,r)=>qe(fe(t,((i,s)=>ae(a=>Le(a)&&i<=a&&s>=a))(e,r))),lt:e=>qe(fe(t,(r=>ae(i=>Le(i)&&i<r))(e))),gt:e=>qe(fe(t,(r=>ae(i=>Le(i)&&i>r))(e))),lte:e=>qe(fe(t,(r=>ae(i=>Le(i)&&i<=r))(e))),gte:e=>qe(fe(t,(r=>ae(i=>Le(i)&&i>=r))(e))),positive:()=>qe(fe(t,ae(e=>Le(e)&&e>0))),negative:()=>qe(fe(t,ae(e=>Le(e)&&e<0)))}),gp=qe(ae(Le)),yp=xe(ae(function(t){return typeof t=="boolean"})),Sp=xe(ae(function(t){return typeof t=="symbol"})),bp=xe(ae(function(t){return t==null})),wp=xe(ae(function(t){return t!=null})),Pu=class extends Error{constructor(t){let e;try{e=JSON.stringify(t)}catch{e=t}super(`Pattern matching error: no pattern matches value ${e}`),this.input=void 0,this.input=t}},nr={matched:!1,value:void 0};function or(t){return new Au(t,nr)}var Au=class ir{constructor(e,r){this.input=void 0,this.state=void 0,this.input=e,this.state=r}with(...e){if(this.state.matched)return this;let r=e[e.length-1],i=[e[0]],s;e.length===3&&typeof e[1]=="function"?s=e[1]:e.length>2&&i.push(...e.slice(1,e.length-1));let a=!1,u={},o=(l,f)=>{a=!0,u[l]=f},n=!i.some(l=>ke(l,this.input,o))||s&&!s(this.input)?nr:{matched:!0,value:r(a?gt in u?u[gt]:u:this.input,this.input)};return new ir(this.input,n)}when(e,r){if(this.state.matched)return this;let i=!!e(this.input);return new ir(this.input,i?{matched:!0,value:r(this.input,this.input)}:nr)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Pu(this.input)}run(){return this.exhaustive()}returnType(){return this}},xu=(0,Su.promisify)(yu.default.exec),Se=(0,gu.default)("prisma:get-platform"),Ou=["1.0.x","1.1.x","3.0.x"];async function Qn(){let t=tr.default.platform(),e=process.arch;if(t==="freebsd"){let u=await yt("freebsd-version");if(u&&u.trim().length>0){let n=/^(\d+)\.?/.exec(u);if(n)return{platform:"freebsd",targetDistro:`freebsd${n[1]}`,arch:e}}}if(t!=="linux")return{platform:t,arch:e};let r=await Zn(),i=await si(),s=ri({arch:e,archFromUname:i,familyDistro:r.familyDistro}),{libssl:a}=await ni(s);return{platform:"linux",libssl:a,arch:e,archFromUname:i,...r}}function zn(t){let e=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,i=e.exec(t),s=i&&i[1]&&i[1].toLowerCase()||"",a=r.exec(t),u=a&&a[1]&&a[1].toLowerCase()||"",o=or({id:s,idLike:u}).with({id:"alpine"},({id:n})=>({targetDistro:"musl",familyDistro:n,originalDistro:n})).with({id:"raspbian"},({id:n})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:n})).with({id:"nixos"},({id:n})=>({targetDistro:"nixos",originalDistro:n,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:n})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:n})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:n})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:n})).when(({idLike:n})=>n.includes("debian")||n.includes("ubuntu"),({id:n})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:n})).when(({idLike:n})=>s==="arch"||n.includes("arch"),({id:n})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:n})).when(({idLike:n})=>n.includes("centos")||n.includes("fedora")||n.includes("rhel")||n.includes("suse"),({id:n})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:n})).otherwise(({id:n})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:n}));return Se(`Found distro info:
|
|
28
|
-
${JSON.stringify(o,null,2)}`),o}async function Zn(){let t="/etc/os-release";try{let e=await Kn.default.readFile(t,{encoding:"utf-8"});return zn(e)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function ei(t){let e=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(t);if(e){let r=`${e[1]}.x`;return ti(r)}}function sr(t){let e=/libssl\.so\.(\d)(\.\d)?/.exec(t);if(e){let r=`${e[1]}${e[2]??".0"}.x`;return ti(r)}}function ti(t){let e=(()=>{if(oi(t))return t;let r=t.split(".");return r[1]="0",r.join(".")})();if(Ou.includes(e))return e}function ri(t){return or(t).with({familyDistro:"musl"},()=>(Se('Trying platform-specific paths for "alpine"'),["/lib","/usr/lib"])).with({familyDistro:"debian"},({archFromUname:e})=>(Se('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${e}-linux-gnu`,`/lib/${e}-linux-gnu`])).with({familyDistro:"rhel"},()=>(Se('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:e,arch:r,archFromUname:i})=>(Se(`Don't know any platform-specific paths for "${e}" on ${r} (${i})`),[]))}async function ni(t){let e='grep -v "libssl.so.0"',r=await Vn(t);if(r){Se(`Found libssl.so file using platform-specific paths: ${r}`);let a=sr(r);if(Se(`The parsed libssl version is: ${a}`),a)return{libssl:a,strategy:"libssl-specific-path"}}Se('Falling back to "ldconfig" and other generic paths');let i=await yt(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${e}`);if(i||(i=await Vn(["/lib64","/usr/lib64","/lib","/usr/lib"])),i){Se(`Found libssl.so file using "ldconfig" or other generic paths: ${i}`);let a=sr(i);if(Se(`The parsed libssl version is: ${a}`),a)return{libssl:a,strategy:"ldconfig"}}let s=await yt("openssl version -v");if(s){Se(`Found openssl binary with version: ${s}`);let a=ei(s);if(Se(`The parsed openssl version is: ${a}`),a)return{libssl:a,strategy:"openssl-binary"}}return Se("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Vn(t){for(let e of t){let r=await Ru(e);if(r)return r}}async function Ru(t){try{return(await Kn.default.readdir(t)).find(r=>r.startsWith("libssl.so.")&&!r.startsWith("libssl.so.0"))}catch(e){if(e.code==="ENOENT")return;throw e}}async function Tu(){let{binaryTarget:t}=await ar();return t}function ku(t){return t.binaryTarget!==void 0}async function Cu(){let{memoized:t,...e}=await ar();return e}var vt={};async function ar(){if(ku(vt))return Promise.resolve({...vt,memoized:!0});let t=await Qn(),e=ii(t);return vt={...t,binaryTarget:e},{...vt,memoized:!1}}function ii(t){let{platform:e,arch:r,archFromUname:i,libssl:s,targetDistro:a,familyDistro:u,originalDistro:o}=t;e==="linux"&&!["x64","arm64"].includes(r)&&(0,er.warn)(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${r}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${i}".`);let n="1.1.x";if(e==="linux"&&s===void 0){let f=or({familyDistro:u}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");(0,er.warn)(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${n}".
|
|
29
|
-
${f}`)}let l="debian";if(e==="linux"&&a===void 0&&Se(`Distro is "${o}". Falling back to Prisma engines built for "${l}".`),e==="darwin"&&r==="arm64")return"darwin-arm64";if(e==="darwin")return"darwin";if(e==="win32")return"windows";if(e==="freebsd")return a;if(e==="openbsd")return"openbsd";if(e==="netbsd")return"netbsd";if(e==="linux"&&a==="nixos")return"linux-nixos";if(e==="linux"&&r==="arm64")return`${a==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${s||n}`;if(e==="linux"&&r==="arm")return`linux-arm-openssl-${s||n}`;if(e==="linux"&&a==="musl"){let f="linux-musl";return!s||oi(s)?f:`${f}-openssl-${s}`}return e==="linux"&&a&&s?`${a}-openssl-${s}`:(e!=="linux"&&(0,er.warn)(`Prisma detected unknown OS "${e}" and may not work as expected. Defaulting to "linux".`),s?`${l}-openssl-${s}`:a?`${a}-openssl-${n}`:`${l}-openssl-${n}`)}async function Iu(t){try{return await t()}catch{return}}function yt(t){return Iu(async()=>{let e=await xu(t);return Se(`Command "${t}" successfully returned "${e.stdout}"`),e.stdout})}async function si(){return typeof tr.default.machine=="function"?tr.default.machine():(await yt("uname -m"))?.trim()}function oi(t){return t.startsWith("1.")}});var gi=Ae((qp,_i)=>{"use strict";var ju=Object.create,wt=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,Nu=Object.getOwnPropertyNames,$u=Object.getPrototypeOf,Lu=Object.prototype.hasOwnProperty,Mu=(t,e)=>{for(var r in e)wt(t,r,{get:e[r],enumerable:!0})},ui=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Nu(e))!Lu.call(t,s)&&s!==r&&wt(t,s,{get:()=>e[s],enumerable:!(i=Du(e,s))||i.enumerable});return t},qu=(t,e,r)=>(r=t!=null?ju($u(t)):{},ui(e||!t||!t.__esModule?wt(r,"default",{value:t,enumerable:!0}):r,t)),Fu=t=>ui(wt({},"__esModule",{value:!0}),t),li={};Mu(li,{link:()=>yl});_i.exports=Fu(li);var Bu=ht(),He=Qe(),ur=qu(we("process")),di=(0,He.__commonJS)({"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(t,e){"use strict";e.exports=(r,i=process.argv)=>{let s=r.startsWith("-")?"":r.length===1?"-":"--",a=i.indexOf(s+r),u=i.indexOf("--");return a!==-1&&(u===-1||a<u)}}}),Gu=(0,He.__commonJS)({"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(t,e){"use strict";var r=(0,He.__require)("os"),i=(0,He.__require)("tty"),s=di(),{env:a}=process,u;s("no-color")||s("no-colors")||s("color=false")||s("color=never")?u=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(u=1),"FORCE_COLOR"in a&&(a.FORCE_COLOR==="true"?u=1:a.FORCE_COLOR==="false"?u=0:u=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function o(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function n(f,p){if(u===0)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(f&&!p&&u===void 0)return 0;let _=u||0;if(a.TERM==="dumb")return _;if(process.platform==="win32"){let A=r.release().split(".");return Number(A[0])>=10&&Number(A[2])>=10586?Number(A[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(A=>A in a)||a.CI_NAME==="codeship"?1:_;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){let A=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:_}function l(f){let p=n(f,f&&f.isTTY);return o(p)}e.exports={supportsColor:l,stdout:o(n(!0,i.isatty(1))),stderr:o(n(!0,i.isatty(2)))}}}),Hu=(0,He.__commonJS)({"../../node_modules/.pnpm/supports-hyperlinks@3.2.0/node_modules/supports-hyperlinks/index.js"(t,e){"use strict";var r=Gu(),i=di();function s(u){if(/^\d{3,4}$/.test(u)){let n=/(\d{1,2})(\d{2})/.exec(u)||[];return{major:0,minor:parseInt(n[1],10),patch:parseInt(n[2],10)}}let o=(u||"").split(".").map(n=>parseInt(n,10));return{major:o[0],minor:o[1],patch:o[2]}}function a(u){let{CI:o,FORCE_HYPERLINK:n,NETLIFY:l,TEAMCITY_VERSION:f,TERM_PROGRAM:p,TERM_PROGRAM_VERSION:_,VTE_VERSION:A,TERM:b}=process.env;if(n)return!(n.length>0&&parseInt(n,10)===0);if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never"))return!1;if(i("hyperlink=true")||i("hyperlink=always")||l)return!0;if(!r.supportsColor(u)||u&&!u.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||o||f)return!1;if(p){let y=s(_||"");switch(p){case"iTerm.app":return y.major===3?y.minor>=1:y.major>3;case"WezTerm":return y.major>=20200620;case"vscode":return y.major>1||y.major===1&&y.minor>=72;case"ghostty":return!0}}if(A){if(A==="0.50.0")return!1;let y=s(A);return y.major>0||y.minor>=50}switch(b){case"alacritty":return!0}return!1}e.exports={supportsHyperlink:a,stdout:a(process.stdout),stderr:a(process.stderr)}}}),fi={};(0,He.__export)(fi,{beep:()=>hl,clearScreen:()=>dl,clearTerminal:()=>fl,cursorBackward:()=>Ku,cursorDown:()=>Xu,cursorForward:()=>Yu,cursorGetPosition:()=>Zu,cursorHide:()=>rl,cursorLeft:()=>hi,cursorMove:()=>Vu,cursorNextLine:()=>el,cursorPrevLine:()=>tl,cursorRestorePosition:()=>zu,cursorSavePosition:()=>Qu,cursorShow:()=>nl,cursorTo:()=>Wu,cursorUp:()=>mi,enterAlternativeScreen:()=>pl,eraseDown:()=>al,eraseEndLine:()=>sl,eraseLine:()=>vi,eraseLines:()=>il,eraseScreen:()=>cr,eraseStartLine:()=>ol,eraseUp:()=>cl,exitAlternativeScreen:()=>ml,iTerm:()=>gl,image:()=>_l,link:()=>vl,scrollDown:()=>ll,scrollUp:()=>ul});var lr=globalThis.window?.document!==void 0,Ap=globalThis.process?.versions?.node!==void 0,xp=globalThis.process?.versions?.bun!==void 0,Op=globalThis.Deno?.version?.deno!==void 0,Rp=globalThis.process?.versions?.electron!==void 0,Tp=globalThis.navigator?.userAgent?.includes("jsdom")===!0,kp=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,Cp=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Ip=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,jp=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,st=globalThis.navigator?.userAgentData?.platform,Dp=st==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Np=st==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",$p=st==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",Lp=st==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),Mp=st==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android",ce="\x1B[",nt="\x1B]",Ke="\x07",rt=";",pi=!lr&&ur.default.env.TERM_PROGRAM==="Apple_Terminal",Ju=!lr&&ur.default.platform==="win32",Uu=lr?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:ur.default.cwd,Wu=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?ce+(t+1)+"G":ce+(e+1)+rt+(t+1)+"H"},Vu=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let r="";return t<0?r+=ce+-t+"D":t>0&&(r+=ce+t+"C"),e<0?r+=ce+-e+"A":e>0&&(r+=ce+e+"B"),r},mi=(t=1)=>ce+t+"A",Xu=(t=1)=>ce+t+"B",Yu=(t=1)=>ce+t+"C",Ku=(t=1)=>ce+t+"D",hi=ce+"G",Qu=pi?"\x1B7":ce+"s",zu=pi?"\x1B8":ce+"u",Zu=ce+"6n",el=ce+"E",tl=ce+"F",rl=ce+"?25l",nl=ce+"?25h",il=t=>{let e="";for(let r=0;r<t;r++)e+=vi+(r<t-1?mi():"");return t&&(e+=hi),e},sl=ce+"K",ol=ce+"1K",vi=ce+"2K",al=ce+"J",cl=ce+"1J",cr=ce+"2J",ul=ce+"S",ll=ce+"T",dl="\x1Bc",fl=Ju?`${cr}${ce}0f`:`${cr}${ce}3J${ce}H`,pl=ce+"?1049h",ml=ce+"?1049l",hl=Ke,vl=(t,e)=>[nt,"8",rt,rt,e,Ke,t,nt,"8",rt,rt,Ke].join(""),_l=(t,e={})=>{let r=`${nt}1337;File=inline=1`;return e.width&&(r+=`;width=${e.width}`),e.height&&(r+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+Buffer.from(t).toString("base64")+Ke},gl={setCwd:(t=Uu())=>`${nt}50;CurrentDir=${t}${Ke}`,annotation(t,e={}){let r=`${nt}1337;`,i=e.x!==void 0,s=e.y!==void 0;if((i||s)&&!(i&&s&&e.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replaceAll("|",""),r+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?r+=(i?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):r+=t,r+Ke}},dr=(0,He.__toESM)(Hu(),1);function it(t,e,{target:r="stdout",...i}={}){return dr.default[r]?fi.link(t,e):i.fallback===!1?t:typeof i.fallback=="function"?i.fallback(t,e):`${t} (\u200B${e}\u200B)`}it.isSupported=dr.default.stdout;it.stderr=(t,e,r={})=>it(t,e,{target:"stderr",...r});it.stderr.isSupported=dr.default.stderr;function yl(t){return it(t,t,{fallback:Bu.underline})}});var wi=Ae((Fp,bi)=>{"use strict";var fr=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,bl=Object.getOwnPropertyNames,wl=Object.prototype.hasOwnProperty,El=(t,e)=>{for(var r in e)fr(t,r,{get:e[r],enumerable:!0})},Pl=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of bl(e))!wl.call(t,s)&&s!==r&&fr(t,s,{get:()=>e[s],enumerable:!(i=Sl(e,s))||i.enumerable});return t},Al=t=>Pl(fr({},"__esModule",{value:!0}),t),yi={};El(yi,{binaryTargets:()=>Si,init_binaryTargets:()=>Ol});bi.exports=Al(yi);var xl=Qe(),Si,Ol=(0,xl.__esm)({"src/binaryTargets.ts"(){Si=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"]}})});var xi=Ae((Up,Ai)=>{"use strict";var hr=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Tl=Object.getOwnPropertyNames,kl=Object.prototype.hasOwnProperty,Cl=(t,e)=>{for(var r in e)hr(t,r,{get:e[r],enumerable:!0})},Il=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Tl(e))!kl.call(t,s)&&s!==r&&hr(t,s,{get:()=>e[s],enumerable:!(i=Rl(e,s))||i.enumerable});return t},jl=t=>Il(hr({},"__esModule",{value:!0}),t),Ei={};Cl(Ei,{assertNodeAPISupported:()=>Dl.assertNodeAPISupported,binaryTargets:()=>Pi.binaryTargets,getBinaryTargetForCurrentPlatform:()=>mr.getBinaryTargetForCurrentPlatform,getNodeAPIName:()=>Nl.getNodeAPIName,getPlatformInfo:()=>mr.getPlatformInfo,getos:()=>mr.getos,jestConsoleContext:()=>pr.jestConsoleContext,jestContext:()=>pr.jestContext,jestProcessContext:()=>pr.jestProcessContext,link:()=>$l.link});Ai.exports=jl(Ei);var Bp=Lr(),pr=hn(),Dl=yn(),Nl=wn(),mr=ci(),$l=gi(),Gp=Yt(),Hp=ht(),Pi=wi(),Jp=Qe();(0,Pi.init_binaryTargets)()});var Vd=Symbol.for("pathe:normalizedAlias"),Ui=/[/\\]/;function Ir(t){let e=t.split(Ui).pop();if(!e)return;let r=e.lastIndexOf(".");return r<=0?e:e.slice(0,r)}var _e={connectionLimit:1,connectTimeout:0,database:"template1",maxIdleConnectionLifetime:0,password:"postgres",poolTimeout:0,socketTimeout:0,sslMode:"disable",username:"postgres"},Wi=`postgres://${_e.username}:${_e.password}@localhost`,Nr=new URLSearchParams({sslmode:_e.sslMode}),Vi=new URLSearchParams({...Object.fromEntries(Nr.entries()),connection_limit:String(_e.connectionLimit),connect_timeout:String(_e.connectTimeout),max_idle_connection_lifetime:String(_e.maxIdleConnectionLifetime),pool_timeout:String(_e.poolTimeout),single_use_connections:"true",socket_timeout:String(_e.socketTimeout)});async function Rt(t,e){let r=t==="database"?e.databasePort:e.shadowDatabasePort;if(e.dryRun)return jr(t,e,{db:null,port:r,server:null});let{debug:i}=e,a=await(t==="shadow_database"?Xi:$r)(e.pgliteDataDirPath,i);i&&a.onNotification((n,l)=>{console.debug(`[${t}][${n}] ${l}`)});let{PGLiteSocketServer:u}=await import("./dist-FF6JPL3Y.js"),o=new u({db:a,debug:i,inspect:i,port:r});i&&(o.addEventListener("listening",n=>{let{detail:l}=n;console.debug(`[${t}] server listening on ${JSON.stringify(l)}`)}),o.addEventListener("connection",n=>{let{clientAddress:l,clientPort:f}=n.detail;console.debug(`[${t}] client connected from ${l}:${f}`)}),o.addEventListener("error",n=>{let{detail:l}=n;console.error(`[${t}] server error:`,l)}));try{await o.start()}catch(n){throw n instanceof Error&&"code"in n&&n.code==="EADDRINUSE"?new Be(r):n}return jr(t,e,{db:a,port:r,server:o})}function jr(t,e,r){let{debug:i}=e,{db:s,port:a,server:u}=r||{};return i&&console.debug(`[${t}] server started on port ${a}`),{..._e,close:async()=>{let o=[];try{await u?.stop(),i&&console.debug(`[${t}] server stopped on port ${a}`)}catch(n){console.error(`[${t}] server stop error`,n),o.push(n)}if(t==="database")try{await s?.syncToFs(),i&&console.debug(`[${t}] synced to filesystem`)}catch(n){console.error(`[${t}] sync error`,n),o.push(n)}try{await s?.close(),i&&console.debug(`[${t}] closed`)}catch(n){console.error(`[${t}] close error`,n),o.push(n)}if(o.length>0)throw new AggregateError(o,`Failed to close ${t} properly`)},connectionString:Dr(a,Nr),dump:async o=>{t==="shadow_database"||!s||await Yi({db:s,debug:i,destinationPath:o})},port:a,prismaORMConnectionString:Dr(a,Vi),terminalCommand:`PGPASSWORD=${_e.password} PGSSLMODE=${_e.sslMode} psql -h localhost -p ${a} -U ${_e.username} -d ${_e.database}`}}function Dr(t,e){return`${Wi}:${t}/${_e.database}?${e.toString()}`}async function $r(t,e){let{PGlite:r}=await import("./dist-44BN73S3.js");return await r.create({database:_e.database,dataDir:t,debug:e?5:void 0,relaxedDurability:!1,username:_e.username})}async function Xi(t,e){let{PGlite:r}=await import("./dist-44BN73S3.js");return await r.create({database:_e.database,dataDir:"memory://",debug:e?5:void 0,relaxedDurability:!1,username:_e.username})}async function Yi(t){let{dataDir:e,db:r,debug:i,destinationPath:s}=t,a=r||await $r(e,i),{pgDump:u}=await import("./pg_dump-F2HW5KLY.js"),o=await u({args:["--schema-only","--no-owner"],fileName:s?Ir(s):void 0,pg:await a.clone()});return s?(i&&console.debug(`[DB] Dumping database to ${s}`),await xr(o,s)):(i&&console.debug("[DB] Dumping database to memory"),await o.text())}var Ri=Ji(xi(),1);import{createServer as Ll}from"http";import{promisify as Ml}from"util";async function Ti(t,e){let{port:r}=e;if(e.dryRun)return Oi(r,null);let i=await ql(r,t,e),{promise:s,reject:a,resolve:u}=at(),{serve:o}=await import("./dist-OWTPHSRP.js"),n=o({createServer:Ll,fetch:i.fetch,overrideGlobalObjects:!1,port:r},u);return n.on("error",l=>{if(typeof l=="object"&&"code"in l&&l.code==="EADDRINUSE")return a(new Be(r));console.error("[Accelerate]",l)}),await s,Oi(r,n)}function Oi(t,e){return{async close(){e&&await Promise.allSettled([Ml(e.close.bind(e))(),Or.stopAll()])},port:t,url:`http://localhost:${t}`}}async function ql(t,e,r){let{debug:i}=r,[{Hono:s},{accelerateRoute:a},{utilityRoute:u}]=await Promise.all([import("./tiny-4VNDEAK3.js"),import("./accelerate-6KR7K7Y5.js"),import("./utility-5QZDATLM.js")]),o=new s,n=await Ri.default.getPlatformInfo();if(i&&console.debug("[Accelerate] platform info: %s",JSON.stringify(n)),i){let{logger:f}=await import("./logger-5NORX5VG.js");o.use("*",f((...p)=>console.log("[Accelerate]",...p)))}o.use("*",async(f,p)=>(f.set("db",e),f.set("debug",!!i),f.set("platform",n),f.set("port",t),f.set("protocol","http"),f.set("serverState",r),f.set("shadowDBPort",r.shadowDatabasePort),await p()));let l=new s;return l.route("/",a),l.route("/",u),o.route("/",l),o}async function ki(t){let e=await Rr.createExclusively(t),[r,i]=await Promise.all([Rt("database",e),Rt("shadow_database",e)]),s=await Ti(r,e),a=`prisma+postgres://localhost:${s.port}/?${new URLSearchParams({api_key:Ar({databaseUrl:r.prismaORMConnectionString,name:e.name,shadowDatabaseUrl:i.prismaORMConnectionString})}).toString()}`,u={database:{connectionString:r.connectionString,prismaORMConnectionString:r.prismaORMConnectionString,terminalCommand:r.terminalCommand},http:{url:s.url},ppg:{url:a},shadowDatabase:{connectionString:i.prismaORMConnectionString,prismaORMConnectionString:i.prismaORMConnectionString,terminalCommand:i.terminalCommand}};return await e.writeServerDump(u),{...u,close:()=>o(e,[s,r,i]),name:e.name};async function o(n,l){let p=(await Promise.allSettled(l.map(_=>_.close()))).filter(_=>_.status==="rejected").map(_=>new Error(_.reason));try{await n.close()}catch(_){p.push(_)}if(p.length>0)throw new AggregateError(p,"Failed to close some servers")}}var Ci="0.9.0";var be={database:"db-port",server:"port",shadow_database:"shadow-db-port"},Ii={...Tr,[be.database]:{alias:"P",description:"Port number the database server will listen on.",required:!1,type:"string"},name:{alias:"n",default:"default",description:"Name of the server. Helps keep state isolated between different projects. Defaults to `default`.",required:!1,type:"string"},[be.server]:{alias:"p",description:"Main port number the Prisma Dev server will listen on.",required:!1,type:"string"},[be.shadow_database]:{description:"Port number the shadow database server will listen on.",required:!1,type:"string"}},Bl=/^[a-zA-Z0-9-_]+$/;function ji(t){let{[be.server]:e,[be.database]:r,[be.shadow_database]:i,debug:s,name:a}=t.args,u=r?Number(r):void 0,o=e?Number(e):void 0,n=i?Number(i):void 0;return e&&Number.isNaN(o)?(console.error(`Invalid server port number provided. Please provide a valid port number in \`--${be.server}\`.`),process.exit(1)):r&&Number.isNaN(u)?(console.error(`Invalid database port number provided. Please provide a valid port number in \`--${be.database}\`.`),process.exit(1)):i&&Number.isNaN(n)?(console.error(`Invalid shadow database port number provided. Please provide a valid port number in \`--${be.shadow_database}\`.`),process.exit(1)):o!=null&&o===u?(console.error(`The server port and database port cannot be the same. Please provide different port numbers in \`--${be.server}\` and/or \`--${be.database}\`.`),process.exit(1)):u!=null&&u===n?(console.error(`The database port and shadow database port cannot be the same. Please provide different port numbers in \`--${be.database}\` and/or \`--${be.shadow_database}\`.`),process.exit(1)):o!=null&&o===n?(console.error(`The server port and shadow database port cannot be the same. Please provide different port numbers in \`--${be.server}\` and/or \`--${be.shadow_database}\`.`),process.exit(1)):Bl.test(a)?{databasePort:u,debug:s,name:a,serverPort:o,shadowDatabasePort:n}:(console.error("Invalid name provided. The name can only contain letters, numbers, dashes, and underscores. Please provide a valid name in `--name`."),process.exit(1))}import{setTimeout as Fd}from"timers/promises";import Oe from"process";import{stripVTControlCharacters as Cd}from"util";var je={};Hi(je,{bgBlack:()=>cd,bgBlue:()=>fd,bgBlueBright:()=>Od,bgCyan:()=>md,bgCyanBright:()=>Td,bgGray:()=>vd,bgGreen:()=>ld,bgGreenBright:()=>Ad,bgMagenta:()=>pd,bgMagentaBright:()=>Rd,bgRed:()=>ud,bgRedBright:()=>Pd,bgWhite:()=>hd,bgWhiteBright:()=>kd,bgYellow:()=>dd,bgYellowBright:()=>xd,black:()=>Zl,blue:()=>nd,blueBright:()=>Sd,bold:()=>Ul,cyan:()=>sd,cyanBright:()=>wd,dim:()=>Wl,gray:()=>ad,green:()=>td,greenBright:()=>gd,hidden:()=>Ql,inverse:()=>Kl,italic:()=>Vl,magenta:()=>id,magentaBright:()=>bd,overline:()=>Yl,red:()=>ed,redBright:()=>_d,reset:()=>Jl,strikethrough:()=>zl,underline:()=>Xl,white:()=>od,whiteBright:()=>Ed,yellow:()=>rd,yellowBright:()=>yd});import Gl from"tty";var Hl=Gl?.WriteStream?.prototype?.hasColors?.()??!1,te=(t,e)=>{if(!Hl)return s=>s;let r=`\x1B[${t}m`,i=`\x1B[${e}m`;return s=>{let a=s+"",u=a.indexOf(i);if(u===-1)return r+a+i;let o=r,n=0;for(;u!==-1;)o+=a.slice(n,u)+r,n=u+i.length,u=a.indexOf(i,n);return o+=a.slice(n)+i,o}},Jl=te(0,0),Ul=te(1,22),Wl=te(2,22),Vl=te(3,23),Xl=te(4,24),Yl=te(53,55),Kl=te(7,27),Ql=te(8,28),zl=te(9,29),Zl=te(30,39),ed=te(31,39),td=te(32,39),rd=te(33,39),nd=te(34,39),id=te(35,39),sd=te(36,39),od=te(37,39),ad=te(90,39),cd=te(40,49),ud=te(41,49),ld=te(42,49),dd=te(43,49),fd=te(44,49),pd=te(45,49),md=te(46,49),hd=te(47,49),vd=te(100,49),_d=te(91,39),gd=te(92,39),yd=te(93,39),Sd=te(94,39),bd=te(95,39),wd=te(96,39),Ed=te(97,39),Pd=te(101,49),Ad=te(102,49),xd=te(103,49),Od=te(104,49),Rd=te(105,49),Td=te(106,49),kd=te(107,49);var ot=Oe.platform!=="win32"||!!Oe.env.WT_SESSION||Oe.env.TERM_PROGRAM==="vscode",Id=t=>!!(t.isTTY&&Oe.env.TERM!=="dumb"&&!("CI"in Oe.env)),jd=je.blue(ot?"\u2139":"i"),Dd=je.green(ot?"\u2714":"\u221A"),Nd=je.yellow(ot?"\u26A0":"\u203C"),$d=je.red(ot?"\u2716":"\xD7"),Ld={frames:ot?["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]:["-","\\","|","/"],interval:80},vr=class{#u;#l;#i=-1;#s;#r;#e;#o;#d=0;#n;#t;#m=0;#f=!1;constructor(e={}){let r=e.spinner??Ld;this.#u=r.frames,this.#l=r.interval,this.#r=e.text??"",this.#e=e.stream??Oe.stderr,this.#o=e.color??"cyan",this.#t=Id(this.#e),this.#n=this.#S.bind(this)}start(e){return e&&(this.#r=e),this.isSpinning?this:(this.#f=!0,this.#v(),this.#c(),this.#g(),this.#t&&(this.#s=setInterval(()=>{this.#c()},this.#l)),this)}stop(e){return this.isSpinning?(this.#f=!1,this.#s&&(clearInterval(this.#s),this.#s=void 0),this.#_(),this.clear(),this.#y(),e&&this.#e.write(`${e}
|
|
30
|
-
`),this):this}#a(e,r){return this.stop(`${e} ${r??this.#r}`)}success(e){return this.#a(Dd,e)}error(e){return this.#a($d,e)}warning(e){return this.#a(Nd,e)}info(e){return this.#a(jd,e)}get isSpinning(){return this.#f}get text(){return this.#r}set text(e){this.#r=e??"",this.#c()}get color(){return this.#o}set color(e){this.#o=e,this.#c()}clear(){if(!this.#t)return this;this.#e.cursorTo(0);for(let e=0;e<this.#d;e++)e>0&&this.#e.moveCursor(0,-1),this.#e.clearLine(1);return this.#d=0,this}#c(){let e=Date.now();(this.#i===-1||e-this.#m>=this.#l)&&(this.#i=++this.#i%this.#u.length,this.#m=e);let r=je[this.#o]??je.cyan,i=this.#u[this.#i],s=`${r(i)} ${this.#r}`;this.#t||(s+=`
|
|
31
|
-
`),this.clear(),this.#p(s),this.#t&&(this.#d=this.#h(s))}#p(e){this.#e.write(e)}#h(e){let r=this.#e.columns??80,i=Cd(e).split(`
|
|
32
|
-
`),s=0;for(let a of i)s+=Math.max(1,Math.ceil(a.length/r));return s}#v(){this.#t&&this.#p("\x1B[?25l")}#_(){this.#t&&this.#p("\x1B[?25h")}#g(){Oe.once("SIGINT",this.#n),Oe.once("SIGTERM",this.#n)}#y(){Oe.off("SIGINT",this.#n),Oe.off("SIGTERM",this.#n)}#S(e){this.isSpinning&&this.stop();let r=e==="SIGINT"?130:e==="SIGTERM"?143:1;Oe.exit(r)}};function _r(t){return new vr(t)}var Md=[{value:"h",label:"print http url"},{value:"t",label:"print tcp urls"},{value:"q",label:"quit"}],gr=6;function Di(t){let e=new Cr({debug:t?.debug,options:Md,render:qd,signal:t?.abortSignal});return{clearPrompt(){Ee.stdout.moveCursor(0,-gr),Ee.stdout.cursorTo(0),Ee.stdout.clearScreenDown()},prompt:e,respond:async r=>{if(kr(r)||r==="q")return await t?.onQuit?.();await t?.onOption?.[r]?.()}}}function qd(){let t=`${this.options.map(e=>`${Ue("inverse",` ${e.value} `)} ${e.label}`).join(" ")}`;return Er(t,{style:{borderColor:"blackBright",borderStyle:"solid"},title:" \u25B3 press a key \u25B3 "})}function Mi(t){let e=_r();return{renderContent:Bd,renderIntro:()=>Gd(t,e),renderOutro:()=>Promise.resolve(Hd(t)),spinner:e}}async function Bd(t){let{abortSignal:e,debug:r,isClosed:i,onQuit:s,server:a,spinner:u}=t;if(u.success(` Great Success! \u{1F609}\u{1F44D}
|
|
33
|
-
|
|
34
|
-
Your ${We} server ${he(a.name)} is ready and listening on ports ${Sr([new URL(a.http.url).port,new URL(a.database.connectionString).port,new URL(a.shadowDatabase.connectionString).port])}.`),!Ot){ge.log(Ni(a)),ge.log($i(a));return}for(;!i();){let{clearPrompt:o,prompt:n,respond:l}=Di({abortSignal:e,debug:r,onOption:{h:()=>ge.log(Ni(a)),t:()=>ge.log($i(a))},onQuit:s}),f=await n.prompt();o(),e.aborted||await l(f)}}async function Gd(t,e){e.start(` Starting ${We} server ${he(t)}...${`
|
|
35
|
-
`.repeat(gr+3)}`),Ot&&await Fd(250)}function Hd(t){ge.log(`\u{1F44B} Buh Bye!
|
|
36
|
-
|
|
37
|
-
Your ${We} server ${he(t)} has been closed successfully.
|
|
38
|
-
`)}function Ni(t){return`\u{1F50C} To connect to your local Prisma Postgres database via HTTP + Prisma ORM
|
|
39
|
-
use the following connection string:
|
|
40
|
-
|
|
41
|
-
${qi("\u{1F4C4} .env:")}
|
|
42
|
-
|
|
43
|
-
${yr("DATABASE_URL",Jd(t.ppg.url))}
|
|
44
|
-
|
|
45
|
-
\u2728 The ${he("api_key")} above does not contain any sensitive information.`}function $i(t){return`\u{1F50C} To connect to your local Prisma Postgres database via TCP + Prisma ORM
|
|
46
|
-
use the following connection strings:
|
|
47
|
-
|
|
48
|
-
${qi("\u{1F4C4} .env:")}
|
|
49
|
-
|
|
50
|
-
${yr("DATABASE_URL",Li(t.database.prismaORMConnectionString))}
|
|
51
|
-
|
|
52
|
-
${yr("SHADOW_DATABASE_URL",Li(t.shadowDatabase.prismaORMConnectionString))}
|
|
53
|
-
|
|
54
|
-
\u{1F418} You can also use the TCP ${he("DATABASE_URL")} with the ${he("pg")} or ${he("postgres.js")} JavaScript drivers!
|
|
55
|
-
|
|
56
|
-
Set the maximum number of connections to ${he(1)}, connect timeout to ${he(0)} and
|
|
57
|
-
idle timeout to the smallest positive value supported.`}function Sr(t){if(t.length===0)return"";let e=[...t].map(Number).sort();return e.length>1&&e.every((r,i)=>i===0||r===e[i-1]+1)?`${he(e[0])}-${he(e.at(-1))}`:t.map(he).join(", ")}function yr(t,e){return`${he(t)}="${e}"`}function Jd(t){return t=new URL(t),`${xt(t.protocol)}//${he(t.hostname)}:${he(t.port)}${Ge(t.pathname)}${Ge(t.search)}`}function Li(t){return t=new URL(t),`${xt(t.protocol)}${Ge(`//${t.username}:${t.password}@`)}${he(t.hostname)}${Ge(":")}${he(t.port)}${Ge(t.pathname)}${Ge(t.search)}`}function qi(t){return Ue("italic",Ue("dim",Ue("green",`# ${t}`)))}async function Et(t,e,r){if(t instanceof At)try{let s=await t.server;if(!s)return await Et("Something went wrong, try again!",e,r);e.warning(` Skipped! \u{1F60C}
|
|
58
|
-
|
|
59
|
-
Your ${We} server ${he(s.name)} is already running and listening on ports ${Sr([s.port,s.databasePort,s.shadowDatabasePort])}.
|
|
4
|
+
Your ${x} server ${u(s.name)} is already running and listening on ports ${E([s.port,s.databasePort,s.shadowDatabasePort])}.
|
|
60
5
|
|
|
61
|
-
To start a different server, use the ${`${
|
|
62
|
-
`);return}catch(s){return await
|
|
6
|
+
To start a different server, use the ${`${u("-n")}/${u("--name")}`} flag with another name.
|
|
7
|
+
`);return}catch(s){return await f(s,o,r)}let{args:t}=r;throw d.error(e instanceof F?`Prisma Dev Error: port number \`${e.port}\` is already in use. Please pass a different port number in the \`--${t.port===String(e.port)?"port":t.databasePort===String(e.port)?"database":"shadow_database"}\` option.`:e),l.exitCode||=1,e}function _(e){l.on?.("uncaughtException",o=>{if("code"in o&&o.code==="ECONNRESET"){e?.debug&&d.error("uncaught ECONNRESET");return}e?.onError?.(o)})}function k(e){let o={shutdownAlreadyStarted:!1};l.once?.("SIGINT",O("SIGINT",e,o)),l.once?.("SIGTERM",O("SIGTERM",e,o))}function O(e,o,r){let{debug:t,onFailure:s,onSuccess:i,server:n}=o;return()=>{if(r.shutdownAlreadyStarted){t&&d.debug(`Received ${e} signal, ignoring.`);return}r.shutdownAlreadyStarted=!0,t&&d.debug(`${e} signal receieved.`),t&&d.log(`
|
|
63
8
|
Closing Prisma Dev...
|
|
64
|
-
`),
|
|
65
|
-
/*! Bundled license information:
|
|
66
|
-
|
|
67
|
-
@prisma/get-platform/dist/chunk-4CHMSIXA.js:
|
|
68
|
-
(*! Bundled license information:
|
|
69
|
-
|
|
70
|
-
is-extglob/index.js:
|
|
71
|
-
(*!
|
|
72
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
73
|
-
*
|
|
74
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
75
|
-
* Licensed under the MIT License.
|
|
76
|
-
*)
|
|
77
|
-
|
|
78
|
-
is-glob/index.js:
|
|
79
|
-
(*!
|
|
80
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
81
|
-
*
|
|
82
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
83
|
-
* Released under the MIT License.
|
|
84
|
-
*)
|
|
85
|
-
|
|
86
|
-
is-number/index.js:
|
|
87
|
-
(*!
|
|
88
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
89
|
-
*
|
|
90
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
91
|
-
* Released under the MIT License.
|
|
92
|
-
*)
|
|
93
|
-
|
|
94
|
-
to-regex-range/index.js:
|
|
95
|
-
(*!
|
|
96
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
97
|
-
*
|
|
98
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
99
|
-
* Released under the MIT License.
|
|
100
|
-
*)
|
|
101
|
-
|
|
102
|
-
fill-range/index.js:
|
|
103
|
-
(*!
|
|
104
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
105
|
-
*
|
|
106
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
107
|
-
* Licensed under the MIT License.
|
|
108
|
-
*)
|
|
109
|
-
|
|
110
|
-
queue-microtask/index.js:
|
|
111
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
112
|
-
|
|
113
|
-
run-parallel/index.js:
|
|
114
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
115
|
-
*)
|
|
116
|
-
*/
|
|
9
|
+
`),l.exitCode=e==="SIGINT"?130:143,n.close().then(()=>{t&&d.debug("Prisma Dev server closed."),e==="SIGINT"&&(l.exitCode=0),i()}).catch(s)}}var B={description:"Spin up a local Prisma Postgres database",name:"prisma dev",version:I},v="\v",b={args:A,meta:B,run:async e=>{let{subCommands:o}=e.cmd,r=o?e.rawArgs.find(m=>!m.startsWith("-")):void 0;if(r&&r!==v&&r in o)return;let{debug:t,name:s,serverPort:i,...n}=T(e),{renderContent:p,renderIntro:c,renderOutro:$,spinner:h}=R(s);try{let m=await U({...n,debug:t,name:s,port:i,renderIntro:c}),g=new AbortController,{isFulfilled:M,promise:G,reject:w,resolve:S}=N({onFulfilled:()=>g.abort()});k({debug:t,onFailure:w,onSuccess:S,server:m}),_({debug:t,onError:w}),await p({abortSignal:g.signal,debug:t,isClosed:M,onQuit:async()=>{await m.close(),S()},server:m,spinner:h}),await G,await $(),l.exitCode||=0}catch(m){await f(m,h,e)}},setup(e){e.args.debug&&(d.level=y.debug),d.options.formatOptions.date=!1},subCommands:{[v]:{},ls:()=>import("./list-URPVLN6C.js").then(e=>e.ListCommand),rm:()=>import("./remove-LXPTJUNN.js").then(e=>e.RemoveCommand),start:()=>import("./start-M7MH244V.js").then(e=>e.StartCommand),stop:()=>import("./stop-LEO7ZSSO.js").then(e=>e.StopCommand)}};async function U(e){let{renderIntro:o,...r}=e,[,t]=await Promise.allSettled([e.renderIntro(),H({...r,persistenceMode:"stateful"})]);if(t.status==="rejected")throw t.reason;return t.value}async function be(e,o){let[r]=e;r==="-v"&&(e[0]="--version"),r&&!(r in b.subCommands)&&r!=="--help"&&r!=="-h"&&r!=="--version"&&r!=="-v"&&e.unshift(v),await P(b,{rawArgs:e})}export{be as run};
|