@turbo/codemod 1.10.14-canary.0 → 1.10.14-canary.1

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/cli.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Ry=Object.create;var Yl=Object.defineProperty;var Oy=Object.getOwnPropertyDescriptor;var Ty=Object.getOwnPropertyNames;var Fy=Object.getPrototypeOf,Py=Object.prototype.hasOwnProperty;var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var By=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ty(r))!Py.call(e,i)&&i!==t&&Yl(e,i,{get:()=>r[i],enumerable:!(n=Oy(r,i))||n.enumerable});return e};var Ie=(e,r,t)=>(t=e!=null?Ry(Fy(e)):{},By(r||!e||!e.__esModule?Yl(t,"default",{value:e,enumerable:!0}):t,e));var qh=ve((KM,Hh)=>{Hh.exports=$h;$h.sync=nE;var Nh=require("fs");function rE(e,r){var t=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function jh(e,r,t){return!e.isSymbolicLink()&&!e.isFile()?!1:rE(r,t)}function $h(e,r,t){Nh.stat(e,function(n,i){t(n,n?!1:jh(i,e,r))})}function nE(e,r){return jh(Nh.statSync(e),e,r)}});var Vh=ve((YM,zh)=>{zh.exports=Uh;Uh.sync=iE;var Gh=require("fs");function Uh(e,r,t){Gh.stat(e,function(n,i){t(n,n?!1:Wh(i,r))})}function iE(e,r){return Wh(Gh.statSync(e),r)}function Wh(e,r){return e.isFile()&&sE(e,r)}function sE(e,r){var t=e.mode,n=e.uid,i=e.gid,c=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),s=parseInt("100",8),o=parseInt("010",8),f=parseInt("001",8),l=s|o,h=t&f||t&o&&i===a||t&s&&n===c||t&l&&c===0;return h}});var Yh=ve((ZM,Kh)=>{var XM=require("fs"),Mi;process.platform==="win32"||global.TESTING_WINDOWS?Mi=qh():Mi=Vh();Kh.exports=Go;Go.sync=oE;function Go(e,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Go(e,r||{},function(c,a){c?i(c):n(a)})})}Mi(e,r||{},function(n,i){n&&(n.code==="EACCES"||r&&r.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function oE(e,r){try{return Mi.sync(e,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var rf=ve((JM,tf)=>{var Kr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Xh=require("path"),aE=Kr?";":":",Zh=Yh(),Jh=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Qh=(e,r)=>{let t=r.colon||aE,n=e.match(/\//)||Kr&&e.match(/\\/)?[""]:[...Kr?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(t)],i=Kr?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Kr?i.split(t):[""];return Kr&&e.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:i}},ef=(e,r,t)=>{typeof r=="function"&&(t=r,r={}),r||(r={});let{pathEnv:n,pathExt:i,pathExtExe:c}=Qh(e,r),a=[],s=f=>new Promise((l,h)=>{if(f===n.length)return r.all&&a.length?l(a):h(Jh(e));let u=n[f],d=/^".*"$/.test(u)?u.slice(1,-1):u,p=Xh.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;l(o(y,f,0))}),o=(f,l,h)=>new Promise((u,d)=>{if(h===i.length)return u(s(l+1));let p=i[h];Zh(f+p,{pathExt:c},(y,b)=>{if(!y&&b)if(r.all)a.push(f+p);else return u(f+p);return u(o(f,l,h+1))})});return t?s(0).then(f=>t(null,f),t):s(0)},uE=(e,r)=>{r=r||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=Qh(e,r),c=[];for(let a=0;a<t.length;a++){let s=t[a],o=/^".*"$/.test(s)?s.slice(1,-1):s,f=Xh.join(o,e),l=!o&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let h=0;h<n.length;h++){let u=l+n[h];try{if(Zh.sync(u,{pathExt:i}))if(r.all)c.push(u);else return u}catch{}}}if(r.all&&c.length)return c;if(r.nothrow)return null;throw Jh(e)};tf.exports=ef;ef.sync=uE});var Wo=ve((QM,Uo)=>{"use strict";var nf=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Uo.exports=nf;Uo.exports.default=nf});var uf=ve((eN,af)=>{"use strict";var sf=require("path"),lE=rf(),cE=Wo();function of(e,r){let t=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,c=i&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let a;try{a=lE.sync(e.command,{path:t[cE({env:t})],pathExt:r?sf.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return a&&(a=sf.resolve(i?e.options.cwd:"",a)),a}function hE(e){return of(e)||of(e,!0)}af.exports=hE});var lf=ve((tN,Vo)=>{"use strict";var zo=/([()\][%!^"`<>&|;, *?])/g;function fE(e){return e=e.replace(zo,"^$1"),e}function pE(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(zo,"^$1"),r&&(e=e.replace(zo,"^$1")),e}Vo.exports.command=fE;Vo.exports.argument=pE});var hf=ve((rN,cf)=>{"use strict";cf.exports=/^#!(.*)/});var pf=ve((nN,ff)=>{"use strict";var dE=hf();ff.exports=(e="")=>{let r=e.match(dE);if(!r)return null;let[t,n]=r[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var mf=ve((iN,df)=>{"use strict";var Ko=require("fs"),mE=pf();function yE(e){let t=Buffer.alloc(150),n;try{n=Ko.openSync(e,"r"),Ko.readSync(n,t,0,150,0),Ko.closeSync(n)}catch{}return mE(t.toString())}df.exports=yE});var vf=ve((sN,bf)=>{"use strict";var gE=require("path"),yf=uf(),gf=lf(),bE=mf(),vE=process.platform==="win32",_E=/\.(?:com|exe)$/i,wE=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function EE(e){e.file=yf(e);let r=e.file&&bE(e.file);return r?(e.args.unshift(e.file),e.command=r,yf(e)):e.file}function SE(e){if(!vE)return e;let r=EE(e),t=!_E.test(r);if(e.options.forceShell||t){let n=wE.test(r);e.command=gE.normalize(e.command),e.command=gf.command(e.command),e.args=e.args.map(c=>gf.argument(c,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function AE(e,r,t){r&&!Array.isArray(r)&&(t=r,r=null),r=r?r.slice(0):[],t=Object.assign({},t);let n={command:e,args:r,options:t,file:void 0,original:{command:e,args:r}};return t.shell?n:SE(n)}bf.exports=AE});var Ef=ve((oN,wf)=>{"use strict";var Yo=process.platform==="win32";function Xo(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function xE(e,r){if(!Yo)return;let t=e.emit;e.emit=function(n,i){if(n==="exit"){let c=_f(i,r,"spawn");if(c)return t.call(e,"error",c)}return t.apply(e,arguments)}}function _f(e,r){return Yo&&e===1&&!r.file?Xo(r.original,"spawn"):null}function CE(e,r){return Yo&&e===1&&!r.file?Xo(r.original,"spawnSync"):null}wf.exports={hookChildProcess:xE,verifyENOENT:_f,verifyENOENTSync:CE,notFoundError:Xo}});var xf=ve((aN,Yr)=>{"use strict";var Sf=require("child_process"),Zo=vf(),Jo=Ef();function Af(e,r,t){let n=Zo(e,r,t),i=Sf.spawn(n.command,n.args,n.options);return Jo.hookChildProcess(i,n),i}function kE(e,r,t){let n=Zo(e,r,t),i=Sf.spawnSync(n.command,n.args,n.options);return i.error=i.error||Jo.verifyENOENTSync(i.status,n),i}Yr.exports=Af;Yr.exports.spawn=Af;Yr.exports.sync=kE;Yr.exports._parse=Zo;Yr.exports._enoent=Jo});var kf=ve((uN,Cf)=>{"use strict";Cf.exports=e=>{let r=typeof e=="string"?`
2
+ "use strict";var Ry=Object.create;var Yl=Object.defineProperty;var Oy=Object.getOwnPropertyDescriptor;var Ty=Object.getOwnPropertyNames;var Fy=Object.getPrototypeOf,Py=Object.prototype.hasOwnProperty;var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var By=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ty(r))!Py.call(e,i)&&i!==t&&Yl(e,i,{get:()=>r[i],enumerable:!(n=Oy(r,i))||n.enumerable});return e};var Ie=(e,r,t)=>(t=e!=null?Ry(Fy(e)):{},By(r||!e||!e.__esModule?Yl(t,"default",{value:e,enumerable:!0}):t,e));var qh=ve((YM,Hh)=>{Hh.exports=$h;$h.sync=nE;var Nh=require("fs");function rE(e,r){var t=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function jh(e,r,t){return!e.isSymbolicLink()&&!e.isFile()?!1:rE(r,t)}function $h(e,r,t){Nh.stat(e,function(n,i){t(n,n?!1:jh(i,e,r))})}function nE(e,r){return jh(Nh.statSync(e),e,r)}});var Vh=ve((XM,zh)=>{zh.exports=Uh;Uh.sync=iE;var Gh=require("fs");function Uh(e,r,t){Gh.stat(e,function(n,i){t(n,n?!1:Wh(i,r))})}function iE(e,r){return Wh(Gh.statSync(e),r)}function Wh(e,r){return e.isFile()&&sE(e,r)}function sE(e,r){var t=e.mode,n=e.uid,i=e.gid,c=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),s=parseInt("100",8),o=parseInt("010",8),f=parseInt("001",8),l=s|o,h=t&f||t&o&&i===a||t&s&&n===c||t&l&&c===0;return h}});var Yh=ve((JM,Kh)=>{var ZM=require("fs"),Mi;process.platform==="win32"||global.TESTING_WINDOWS?Mi=qh():Mi=Vh();Kh.exports=Go;Go.sync=oE;function Go(e,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Go(e,r||{},function(c,a){c?i(c):n(a)})})}Mi(e,r||{},function(n,i){n&&(n.code==="EACCES"||r&&r.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function oE(e,r){try{return Mi.sync(e,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var rf=ve((QM,tf)=>{var Kr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Xh=require("path"),aE=Kr?";":":",Zh=Yh(),Jh=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Qh=(e,r)=>{let t=r.colon||aE,n=e.match(/\//)||Kr&&e.match(/\\/)?[""]:[...Kr?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(t)],i=Kr?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Kr?i.split(t):[""];return Kr&&e.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:i}},ef=(e,r,t)=>{typeof r=="function"&&(t=r,r={}),r||(r={});let{pathEnv:n,pathExt:i,pathExtExe:c}=Qh(e,r),a=[],s=f=>new Promise((l,h)=>{if(f===n.length)return r.all&&a.length?l(a):h(Jh(e));let u=n[f],d=/^".*"$/.test(u)?u.slice(1,-1):u,p=Xh.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;l(o(y,f,0))}),o=(f,l,h)=>new Promise((u,d)=>{if(h===i.length)return u(s(l+1));let p=i[h];Zh(f+p,{pathExt:c},(y,b)=>{if(!y&&b)if(r.all)a.push(f+p);else return u(f+p);return u(o(f,l,h+1))})});return t?s(0).then(f=>t(null,f),t):s(0)},uE=(e,r)=>{r=r||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=Qh(e,r),c=[];for(let a=0;a<t.length;a++){let s=t[a],o=/^".*"$/.test(s)?s.slice(1,-1):s,f=Xh.join(o,e),l=!o&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let h=0;h<n.length;h++){let u=l+n[h];try{if(Zh.sync(u,{pathExt:i}))if(r.all)c.push(u);else return u}catch{}}}if(r.all&&c.length)return c;if(r.nothrow)return null;throw Jh(e)};tf.exports=ef;ef.sync=uE});var Wo=ve((eN,Uo)=>{"use strict";var nf=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Uo.exports=nf;Uo.exports.default=nf});var uf=ve((tN,af)=>{"use strict";var sf=require("path"),lE=rf(),cE=Wo();function of(e,r){let t=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,c=i&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let a;try{a=lE.sync(e.command,{path:t[cE({env:t})],pathExt:r?sf.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return a&&(a=sf.resolve(i?e.options.cwd:"",a)),a}function hE(e){return of(e)||of(e,!0)}af.exports=hE});var lf=ve((rN,Vo)=>{"use strict";var zo=/([()\][%!^"`<>&|;, *?])/g;function fE(e){return e=e.replace(zo,"^$1"),e}function pE(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(zo,"^$1"),r&&(e=e.replace(zo,"^$1")),e}Vo.exports.command=fE;Vo.exports.argument=pE});var hf=ve((nN,cf)=>{"use strict";cf.exports=/^#!(.*)/});var pf=ve((iN,ff)=>{"use strict";var dE=hf();ff.exports=(e="")=>{let r=e.match(dE);if(!r)return null;let[t,n]=r[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var mf=ve((sN,df)=>{"use strict";var Ko=require("fs"),mE=pf();function yE(e){let t=Buffer.alloc(150),n;try{n=Ko.openSync(e,"r"),Ko.readSync(n,t,0,150,0),Ko.closeSync(n)}catch{}return mE(t.toString())}df.exports=yE});var vf=ve((oN,bf)=>{"use strict";var gE=require("path"),yf=uf(),gf=lf(),bE=mf(),vE=process.platform==="win32",_E=/\.(?:com|exe)$/i,wE=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function EE(e){e.file=yf(e);let r=e.file&&bE(e.file);return r?(e.args.unshift(e.file),e.command=r,yf(e)):e.file}function SE(e){if(!vE)return e;let r=EE(e),t=!_E.test(r);if(e.options.forceShell||t){let n=wE.test(r);e.command=gE.normalize(e.command),e.command=gf.command(e.command),e.args=e.args.map(c=>gf.argument(c,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function AE(e,r,t){r&&!Array.isArray(r)&&(t=r,r=null),r=r?r.slice(0):[],t=Object.assign({},t);let n={command:e,args:r,options:t,file:void 0,original:{command:e,args:r}};return t.shell?n:SE(n)}bf.exports=AE});var Ef=ve((aN,wf)=>{"use strict";var Yo=process.platform==="win32";function Xo(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function xE(e,r){if(!Yo)return;let t=e.emit;e.emit=function(n,i){if(n==="exit"){let c=_f(i,r,"spawn");if(c)return t.call(e,"error",c)}return t.apply(e,arguments)}}function _f(e,r){return Yo&&e===1&&!r.file?Xo(r.original,"spawn"):null}function CE(e,r){return Yo&&e===1&&!r.file?Xo(r.original,"spawnSync"):null}wf.exports={hookChildProcess:xE,verifyENOENT:_f,verifyENOENTSync:CE,notFoundError:Xo}});var xf=ve((uN,Yr)=>{"use strict";var Sf=require("child_process"),Zo=vf(),Jo=Ef();function Af(e,r,t){let n=Zo(e,r,t),i=Sf.spawn(n.command,n.args,n.options);return Jo.hookChildProcess(i,n),i}function kE(e,r,t){let n=Zo(e,r,t),i=Sf.spawnSync(n.command,n.args,n.options);return i.error=i.error||Jo.verifyENOENTSync(i.status,n),i}Yr.exports=Af;Yr.exports.spawn=Af;Yr.exports.sync=kE;Yr.exports._parse=Zo;Yr.exports._enoent=Jo});var kf=ve((lN,Cf)=>{"use strict";Cf.exports=e=>{let r=typeof e=="string"?`
3
3
  `:`
4
- `.charCodeAt(),t=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e}});var Of=ve((lN,Un)=>{"use strict";var Gn=require("path"),Df=Wo(),Rf=e=>{e={cwd:process.cwd(),path:process.env[Df()],execPath:process.execPath,...e};let r,t=Gn.resolve(e.cwd),n=[];for(;r!==t;)n.push(Gn.join(t,"node_modules/.bin")),r=t,t=Gn.resolve(t,"..");let i=Gn.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(Gn.delimiter)};Un.exports=Rf;Un.exports.default=Rf;Un.exports.env=e=>{e={env:process.env,...e};let r={...e.env},t=Df({env:r});return e.path=r[t],r[t]=Un.exports(e),r}});var Ff=ve((cN,Qo)=>{"use strict";var Tf=(e,r)=>{for(let t of Reflect.ownKeys(r))Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));return e};Qo.exports=Tf;Qo.exports.default=Tf});var Bf=ve((hN,ji)=>{"use strict";var DE=Ff(),Ni=new WeakMap,Pf=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let t,n=0,i=e.displayName||e.name||"<anonymous>",c=function(...a){if(Ni.set(c,++n),n===1)t=e.apply(this,a),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return t};return DE(c,e),Ni.set(c,n),c};ji.exports=Pf;ji.exports.default=Pf;ji.exports.callCount=e=>{if(!Ni.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ni.get(e)}});var Lf=ve($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.SIGNALS=void 0;var RE=[{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"}];$i.SIGNALS=RE});var ea=ve(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.SIGRTMAX=Xr.getRealtimeSignals=void 0;var OE=function(){let e=Mf-If+1;return Array.from({length:e},TE)};Xr.getRealtimeSignals=OE;var TE=function(e,r){return{name:`SIGRT${r+1}`,number:If+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},If=34,Mf=64;Xr.SIGRTMAX=Mf});var Nf=ve(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.getSignals=void 0;var FE=require("os"),PE=Lf(),BE=ea(),LE=function(){let e=(0,BE.getRealtimeSignals)();return[...PE.SIGNALS,...e].map(IE)};Hi.getSignals=LE;var IE=function({name:e,number:r,description:t,action:n,forced:i=!1,standard:c}){let{signals:{[e]:a}}=FE.constants,s=a!==void 0;return{name:e,number:s?a:r,description:t,supported:s,action:n,forced:i,standard:c}}});var $f=ve(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.signalsByNumber=Zr.signalsByName=void 0;var ME=require("os"),jf=Nf(),NE=ea(),jE=function(){return(0,jf.getSignals)().reduce($E,{})},$E=function(e,{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}){return{...e,[r]:{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}}},HE=jE();Zr.signalsByName=HE;var qE=function(){let e=(0,jf.getSignals)(),r=NE.SIGRTMAX+1,t=Array.from({length:r},(n,i)=>GE(i,e));return Object.assign({},...t)},GE=function(e,r){let t=UE(e,r);if(t===void 0)return{};let{name:n,description:i,supported:c,action:a,forced:s,standard:o}=t;return{[e]:{name:n,number:e,description:i,supported:c,action:a,forced:s,standard:o}}},UE=function(e,r){let t=r.find(({name:n})=>ME.constants.signals[n]===e);return t!==void 0?t:r.find(n=>n.number===e)},WE=qE();Zr.signalsByNumber=WE});var qf=ve((yN,Hf)=>{"use strict";var{signalsByName:zE}=$f(),VE=({timedOut:e,timeout:r,errorCode:t,signal:n,signalDescription:i,exitCode:c,isCanceled:a})=>e?`timed out after ${r} milliseconds`:a?"was canceled":t!==void 0?`failed with ${t}`:n!==void 0?`was killed with ${n} (${i})`:c!==void 0?`failed with exit code ${c}`:"failed",KE=({stdout:e,stderr:r,all:t,error:n,signal:i,exitCode:c,command:a,escapedCommand:s,timedOut:o,isCanceled:f,killed:l,parsed:{options:{timeout:h}}})=>{c=c===null?void 0:c,i=i===null?void 0:i;let u=i===void 0?void 0:zE[i].description,d=n&&n.code,y=`Command ${VE({timedOut:o,timeout:h,errorCode:d,signal:i,signalDescription:u,exitCode:c,isCanceled:f})}: ${a}`,b=Object.prototype.toString.call(n)==="[object Error]",_=b?`${y}
4
+ `.charCodeAt(),t=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e}});var Of=ve((cN,Un)=>{"use strict";var Gn=require("path"),Df=Wo(),Rf=e=>{e={cwd:process.cwd(),path:process.env[Df()],execPath:process.execPath,...e};let r,t=Gn.resolve(e.cwd),n=[];for(;r!==t;)n.push(Gn.join(t,"node_modules/.bin")),r=t,t=Gn.resolve(t,"..");let i=Gn.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(Gn.delimiter)};Un.exports=Rf;Un.exports.default=Rf;Un.exports.env=e=>{e={env:process.env,...e};let r={...e.env},t=Df({env:r});return e.path=r[t],r[t]=Un.exports(e),r}});var Ff=ve((hN,Qo)=>{"use strict";var Tf=(e,r)=>{for(let t of Reflect.ownKeys(r))Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));return e};Qo.exports=Tf;Qo.exports.default=Tf});var Bf=ve((fN,ji)=>{"use strict";var DE=Ff(),Ni=new WeakMap,Pf=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let t,n=0,i=e.displayName||e.name||"<anonymous>",c=function(...a){if(Ni.set(c,++n),n===1)t=e.apply(this,a),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return t};return DE(c,e),Ni.set(c,n),c};ji.exports=Pf;ji.exports.default=Pf;ji.exports.callCount=e=>{if(!Ni.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ni.get(e)}});var Lf=ve($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.SIGNALS=void 0;var RE=[{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"}];$i.SIGNALS=RE});var ea=ve(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.SIGRTMAX=Xr.getRealtimeSignals=void 0;var OE=function(){let e=Mf-If+1;return Array.from({length:e},TE)};Xr.getRealtimeSignals=OE;var TE=function(e,r){return{name:`SIGRT${r+1}`,number:If+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},If=34,Mf=64;Xr.SIGRTMAX=Mf});var Nf=ve(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.getSignals=void 0;var FE=require("os"),PE=Lf(),BE=ea(),LE=function(){let e=(0,BE.getRealtimeSignals)();return[...PE.SIGNALS,...e].map(IE)};Hi.getSignals=LE;var IE=function({name:e,number:r,description:t,action:n,forced:i=!1,standard:c}){let{signals:{[e]:a}}=FE.constants,s=a!==void 0;return{name:e,number:s?a:r,description:t,supported:s,action:n,forced:i,standard:c}}});var $f=ve(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.signalsByNumber=Zr.signalsByName=void 0;var ME=require("os"),jf=Nf(),NE=ea(),jE=function(){return(0,jf.getSignals)().reduce($E,{})},$E=function(e,{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}){return{...e,[r]:{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}}},HE=jE();Zr.signalsByName=HE;var qE=function(){let e=(0,jf.getSignals)(),r=NE.SIGRTMAX+1,t=Array.from({length:r},(n,i)=>GE(i,e));return Object.assign({},...t)},GE=function(e,r){let t=UE(e,r);if(t===void 0)return{};let{name:n,description:i,supported:c,action:a,forced:s,standard:o}=t;return{[e]:{name:n,number:e,description:i,supported:c,action:a,forced:s,standard:o}}},UE=function(e,r){let t=r.find(({name:n})=>ME.constants.signals[n]===e);return t!==void 0?t:r.find(n=>n.number===e)},WE=qE();Zr.signalsByNumber=WE});var qf=ve((gN,Hf)=>{"use strict";var{signalsByName:zE}=$f(),VE=({timedOut:e,timeout:r,errorCode:t,signal:n,signalDescription:i,exitCode:c,isCanceled:a})=>e?`timed out after ${r} milliseconds`:a?"was canceled":t!==void 0?`failed with ${t}`:n!==void 0?`was killed with ${n} (${i})`:c!==void 0?`failed with exit code ${c}`:"failed",KE=({stdout:e,stderr:r,all:t,error:n,signal:i,exitCode:c,command:a,escapedCommand:s,timedOut:o,isCanceled:f,killed:l,parsed:{options:{timeout:h}}})=>{c=c===null?void 0:c,i=i===null?void 0:i;let u=i===void 0?void 0:zE[i].description,d=n&&n.code,y=`Command ${VE({timedOut:o,timeout:h,errorCode:d,signal:i,signalDescription:u,exitCode:c,isCanceled:f})}: ${a}`,b=Object.prototype.toString.call(n)==="[object Error]",_=b?`${y}
5
5
  ${n.message}`:y,g=[_,r,e].filter(Boolean).join(`
6
- `);return b?(n.originalMessage=n.message,n.message=g):n=new Error(g),n.shortMessage=_,n.command=a,n.escapedCommand=s,n.exitCode=c,n.signal=i,n.signalDescription=u,n.stdout=e,n.stderr=r,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!o,n.isCanceled=f,n.killed=l&&!o,n};Hf.exports=KE});var Uf=ve((gN,ta)=>{"use strict";var qi=["stdin","stdout","stderr"],YE=e=>qi.some(r=>e[r]!==void 0),Gf=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return qi.map(n=>e[n]);if(YE(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${qi.map(n=>`\`${n}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let t=Math.max(r.length,qi.length);return Array.from({length:t},(n,i)=>r[i])};ta.exports=Gf;ta.exports.node=e=>{let r=Gf(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var Wf=ve((bN,Gi)=>{Gi.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Gi.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Gi.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Xf=ve((vN,en)=>{var He=global.process,Sr=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Sr(He)?(zf=require("assert"),Jr=Wf(),Vf=/^win/i.test(He.platform),Wn=require("events"),typeof Wn!="function"&&(Wn=Wn.EventEmitter),He.__signal_exit_emitter__?Xe=He.__signal_exit_emitter__:(Xe=He.__signal_exit_emitter__=new Wn,Xe.count=0,Xe.emitted={}),Xe.infinite||(Xe.setMaxListeners(1/0),Xe.infinite=!0),en.exports=function(e,r){if(!Sr(global.process))return function(){};zf.equal(typeof e,"function","a callback must be provided for exit handler"),Qr===!1&&ra();var t="exit";r&&r.alwaysLast&&(t="afterexit");var n=function(){Xe.removeListener(t,e),Xe.listeners("exit").length===0&&Xe.listeners("afterexit").length===0&&Ui()};return Xe.on(t,e),n},Ui=function(){!Qr||!Sr(global.process)||(Qr=!1,Jr.forEach(function(r){try{He.removeListener(r,Wi[r])}catch{}}),He.emit=zi,He.reallyExit=na,Xe.count-=1)},en.exports.unload=Ui,Ar=function(r,t,n){Xe.emitted[r]||(Xe.emitted[r]=!0,Xe.emit(r,t,n))},Wi={},Jr.forEach(function(e){Wi[e]=function(){if(Sr(global.process)){var t=He.listeners(e);t.length===Xe.count&&(Ui(),Ar("exit",null,e),Ar("afterexit",null,e),Vf&&e==="SIGHUP"&&(e="SIGINT"),He.kill(He.pid,e))}}}),en.exports.signals=function(){return Jr},Qr=!1,ra=function(){Qr||!Sr(global.process)||(Qr=!0,Xe.count+=1,Jr=Jr.filter(function(r){try{return He.on(r,Wi[r]),!0}catch{return!1}}),He.emit=Yf,He.reallyExit=Kf)},en.exports.load=ra,na=He.reallyExit,Kf=function(r){Sr(global.process)&&(He.exitCode=r||0,Ar("exit",He.exitCode,null),Ar("afterexit",He.exitCode,null),na.call(He,He.exitCode))},zi=He.emit,Yf=function(r,t){if(r==="exit"&&Sr(global.process)){t!==void 0&&(He.exitCode=t);var n=zi.apply(this,arguments);return Ar("exit",He.exitCode,null),Ar("afterexit",He.exitCode,null),n}else return zi.apply(this,arguments)}):en.exports=function(){return function(){}};var zf,Jr,Vf,Wn,Xe,Ui,Ar,Wi,Qr,ra,na,Kf,zi,Yf});var Jf=ve((_N,Zf)=>{"use strict";var XE=require("os"),ZE=Xf(),JE=1e3*5,QE=(e,r="SIGTERM",t={})=>{let n=e(r);return eS(e,r,t,n),n},eS=(e,r,t,n)=>{if(!tS(r,t,n))return;let i=nS(t),c=setTimeout(()=>{e("SIGKILL")},i);c.unref&&c.unref()},tS=(e,{forceKillAfterTimeout:r},t)=>rS(e)&&r!==!1&&t,rS=e=>e===XE.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",nS=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return JE;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},iS=(e,r)=>{e.kill()&&(r.isCanceled=!0)},sS=(e,r,t)=>{e.kill(r),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},oS=(e,{timeout:r,killSignal:t="SIGTERM"},n)=>{if(r===0||r===void 0)return n;let i,c=new Promise((s,o)=>{i=setTimeout(()=>{sS(e,t,o)},r)}),a=n.finally(()=>{clearTimeout(i)});return Promise.race([c,a])},aS=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},uS=async(e,{cleanup:r,detached:t},n)=>{if(!r||t)return n;let i=ZE(()=>{e.kill()});return n.finally(()=>{i()})};Zf.exports={spawnedKill:QE,spawnedCancel:iS,setupTimeout:oS,validateTimeout:aS,setExitHandler:uS}});var ep=ve((wN,Qf)=>{"use strict";var Bt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Bt.writable=e=>Bt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Bt.readable=e=>Bt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Bt.duplex=e=>Bt.writable(e)&&Bt.readable(e);Bt.transform=e=>Bt.duplex(e)&&typeof e._transform=="function";Qf.exports=Bt});var rp=ve((EN,tp)=>{"use strict";var{PassThrough:lS}=require("stream");tp.exports=e=>{e={...e};let{array:r}=e,{encoding:t}=e,n=t==="buffer",i=!1;r?i=!(t||n):t=t||"utf8",n&&(t=null);let c=new lS({objectMode:i});t&&c.setEncoding(t);let a=0,s=[];return c.on("data",o=>{s.push(o),i?a=s.length:a+=o.length}),c.getBufferedValue=()=>r?s:n?Buffer.concat(s,a):s.join(""),c.getBufferedLength=()=>a,c}});var np=ve((SN,zn)=>{"use strict";var{constants:cS}=require("buffer"),hS=require("stream"),{promisify:fS}=require("util"),pS=rp(),dS=fS(hS.pipeline),Vi=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function ia(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:t}=r,n=pS(r);return await new Promise((i,c)=>{let a=s=>{s&&n.getBufferedLength()<=cS.MAX_LENGTH&&(s.bufferedData=n.getBufferedValue()),c(s)};(async()=>{try{await dS(e,n),i()}catch(s){a(s)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new Vi)})}),n.getBufferedValue()}zn.exports=ia;zn.exports.buffer=(e,r)=>ia(e,{...r,encoding:"buffer"});zn.exports.array=(e,r)=>ia(e,{...r,array:!0});zn.exports.MaxBufferError=Vi});var sp=ve((AN,ip)=>{"use strict";var{PassThrough:mS}=require("stream");ip.exports=function(){var e=[],r=new mS({objectMode:!0});return r.setMaxListeners(0),r.add=t,r.isEmpty=n,r.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(t),r;function t(c){return Array.isArray(c)?(c.forEach(t),this):(e.push(c),c.once("end",i.bind(null,c)),c.once("error",r.emit.bind(r,"error")),c.pipe(r,{end:!1}),this)}function n(){return e.length==0}function i(c){e=e.filter(function(a){return a!==c}),!e.length&&r.readable&&r.end()}}});var lp=ve((xN,up)=>{"use strict";var ap=ep(),op=np(),yS=sp(),gS=(e,r)=>{r===void 0||e.stdin===void 0||(ap(r)?r.pipe(e.stdin):e.stdin.end(r))},bS=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let t=yS();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t},sa=async(e,r)=>{if(e){e.destroy();try{return await r}catch(t){return t.bufferedData}}},oa=(e,{encoding:r,buffer:t,maxBuffer:n})=>{if(!(!e||!t))return r?op(e,{encoding:r,maxBuffer:n}):op.buffer(e,{maxBuffer:n})},vS=async({stdout:e,stderr:r,all:t},{encoding:n,buffer:i,maxBuffer:c},a)=>{let s=oa(e,{encoding:n,buffer:i,maxBuffer:c}),o=oa(r,{encoding:n,buffer:i,maxBuffer:c}),f=oa(t,{encoding:n,buffer:i,maxBuffer:c*2});try{return await Promise.all([a,s,o,f])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},sa(e,s),sa(r,o),sa(t,f)])}},_S=({input:e})=>{if(ap(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};up.exports={handleInput:gS,makeAllStream:bS,getSpawnedResult:vS,validateInputSync:_S}});var hp=ve((CN,cp)=>{"use strict";var wS=(async()=>{})().constructor.prototype,ES=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(wS,e)]),SS=(e,r)=>{for(let[t,n]of ES){let i=typeof r=="function"?(...c)=>Reflect.apply(n.value,r(),c):n.value.bind(r);Reflect.defineProperty(e,t,{...n,value:i})}return e},AS=e=>new Promise((r,t)=>{e.on("exit",(n,i)=>{r({exitCode:n,signal:i})}),e.on("error",n=>{t(n)}),e.stdin&&e.stdin.on("error",n=>{t(n)})});cp.exports={mergePromise:SS,getSpawnedPromise:AS}});var dp=ve((kN,pp)=>{"use strict";var fp=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],xS=/^[\w.-]+$/,CS=/"/g,kS=e=>typeof e!="string"||xS.test(e)?e:`"${e.replace(CS,'\\"')}"`,DS=(e,r)=>fp(e,r).join(" "),RS=(e,r)=>fp(e,r).map(t=>kS(t)).join(" "),OS=/ +/g,TS=e=>{let r=[];for(let t of e.trim().split(OS)){let n=r[r.length-1];n&&n.endsWith("\\")?r[r.length-1]=`${n.slice(0,-1)} ${t}`:r.push(t)}return r};pp.exports={joinCommand:DS,getEscapedCommand:RS,parseCommand:TS}});var ua=ve((DN,tn)=>{"use strict";var FS=require("path"),aa=require("child_process"),PS=xf(),BS=kf(),LS=Of(),IS=Bf(),Ki=qf(),yp=Uf(),{spawnedKill:MS,spawnedCancel:NS,setupTimeout:jS,validateTimeout:$S,setExitHandler:HS}=Jf(),{handleInput:qS,getSpawnedResult:GS,makeAllStream:US,validateInputSync:WS}=lp(),{mergePromise:mp,getSpawnedPromise:zS}=hp(),{joinCommand:gp,parseCommand:bp,getEscapedCommand:vp}=dp(),VS=1e3*1e3*100,KS=({env:e,extendEnv:r,preferLocal:t,localDir:n,execPath:i})=>{let c=r?{...process.env,...e}:e;return t?LS.env({env:c,cwd:n,execPath:i}):c},_p=(e,r,t={})=>{let n=PS._parse(e,r,t);return e=n.command,r=n.args,t=n.options,t={maxBuffer:VS,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=KS(t),t.stdio=yp(t),process.platform==="win32"&&FS.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:t,parsed:n}},Vn=(e,r,t)=>typeof r!="string"&&!Buffer.isBuffer(r)?t===void 0?void 0:"":e.stripFinalNewline?BS(r):r,Yi=(e,r,t)=>{let n=_p(e,r,t),i=gp(e,r),c=vp(e,r);$S(n.options);let a;try{a=aa.spawn(n.file,n.args,n.options)}catch(d){let p=new aa.ChildProcess,y=Promise.reject(Ki({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return mp(p,y)}let s=zS(a),o=jS(a,n.options,s),f=HS(a,n.options,o),l={isCanceled:!1};a.kill=MS.bind(null,a.kill.bind(a)),a.cancel=NS.bind(null,a,l);let u=IS(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:b},_,g,S]=await GS(a,n.options,f),E=Vn(n.options,_),v=Vn(n.options,g),m=Vn(n.options,S);if(d||p!==0||y!==null){let w=Ki({error:d,exitCode:p,signal:y,stdout:E,stderr:v,all:m,command:i,escapedCommand:c,parsed:n,timedOut:b,isCanceled:l.isCanceled,killed:a.killed});if(!n.options.reject)return w;throw w}return{command:i,escapedCommand:c,exitCode:0,stdout:E,stderr:v,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return qS(a,n.options.input),a.all=US(a,n.options),mp(a,u)};tn.exports=Yi;tn.exports.sync=(e,r,t)=>{let n=_p(e,r,t),i=gp(e,r),c=vp(e,r);WS(n.options);let a;try{a=aa.spawnSync(n.file,n.args,n.options)}catch(f){throw Ki({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let s=Vn(n.options,a.stdout,a.error),o=Vn(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let f=Ki({stdout:s,stderr:o,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:c,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:c,exitCode:0,stdout:s,stderr:o,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};tn.exports.command=(e,r)=>{let[t,...n]=bp(e);return Yi(t,n,r)};tn.exports.commandSync=(e,r)=>{let[t,...n]=bp(e);return Yi.sync(t,n,r)};tn.exports.node=(e,r,t={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(t=r,r=[]);let n=yp.node(t),i=process.execArgv.filter(s=>!s.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:a=i}=t;return Yi(c,[...a,e,...Array.isArray(r)?r:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var wp=ve(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.splitWhen=rn.flatten=void 0;function YS(e){return e.reduce((r,t)=>[].concat(r,t),[])}rn.flatten=YS;function XS(e,r){let t=[[]],n=0;for(let i of e)r(i)?(n++,t[n]=[]):t[n].push(i);return t}rn.splitWhen=XS});var Ep=ve(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.isEnoentCodeError=void 0;function ZS(e){return e.code==="ENOENT"}Xi.isEnoentCodeError=ZS});var Sp=ve(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.createDirentFromStats=void 0;var la=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function JS(e,r){return new la(e,r)}Zi.createDirentFromStats=JS});var Ap=ve(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.removeLeadingDotSegment=Lt.escape=Lt.makeAbsolute=Lt.unixify=void 0;var QS=require("path"),eA=2,tA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function rA(e){return e.replace(/\\/g,"/")}Lt.unixify=rA;function nA(e,r){return QS.resolve(e,r)}Lt.makeAbsolute=nA;function iA(e){return e.replace(tA,"\\$2")}Lt.escape=iA;function sA(e){if(e.charAt(0)==="."){let r=e.charAt(1);if(r==="/"||r==="\\")return e.slice(eA)}return e}Lt.removeLeadingDotSegment=sA});var Cp=ve((PN,xp)=>{xp.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(t[2])return!0;r=r.slice(t.index+t[0].length)}return!1}});var Rp=ve((BN,Dp)=>{var oA=Cp(),kp={"{":"}","(":")","[":"]"},aA=function(e){if(e[0]==="!")return!0;for(var r=0,t=-2,n=-2,i=-2,c=-2,a=-2;r<e.length;){if(e[r]==="*"||e[r+1]==="?"&&/[\].+)]/.test(e[r])||n!==-1&&e[r]==="["&&e[r+1]!=="]"&&(n<r&&(n=e.indexOf("]",r)),n>r&&(a===-1||a>n||(a=e.indexOf("\\",r),a===-1||a>n)))||i!==-1&&e[r]==="{"&&e[r+1]!=="}"&&(i=e.indexOf("}",r),i>r&&(a=e.indexOf("\\",r),a===-1||a>i))||c!==-1&&e[r]==="("&&e[r+1]==="?"&&/[:!=]/.test(e[r+2])&&e[r+3]!==")"&&(c=e.indexOf(")",r),c>r&&(a=e.indexOf("\\",r),a===-1||a>c))||t!==-1&&e[r]==="("&&e[r+1]!=="|"&&(t<r&&(t=e.indexOf("|",r)),t!==-1&&e[t+1]!==")"&&(c=e.indexOf(")",t),c>t&&(a=e.indexOf("\\",t),a===-1||a>c))))return!0;if(e[r]==="\\"){var s=e[r+1];r+=2;var o=kp[s];if(o){var f=e.indexOf(o,r);f!==-1&&(r=f+1)}if(e[r]==="!")return!0}else r++}return!1},uA=function(e){if(e[0]==="!")return!0;for(var r=0;r<e.length;){if(/[*?{}()[\]]/.test(e[r]))return!0;if(e[r]==="\\"){var t=e[r+1];r+=2;var n=kp[t];if(n){var i=e.indexOf(n,r);i!==-1&&(r=i+1)}if(e[r]==="!")return!0}else r++}return!1};Dp.exports=function(r,t){if(typeof r!="string"||r==="")return!1;if(oA(r))return!0;var n=aA;return t&&t.strict===!1&&(n=uA),n(r)}});var Tp=ve((LN,Op)=>{"use strict";var lA=Rp(),cA=require("path").posix.dirname,hA=require("os").platform()==="win32",ca="/",fA=/\\/g,pA=/[\{\[].*[\}\]]$/,dA=/(^|[^\\])([\{\[]|\([^\)]+$)/,mA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Op.exports=function(r,t){var n=Object.assign({flipBackslashes:!0},t);n.flipBackslashes&&hA&&r.indexOf(ca)<0&&(r=r.replace(fA,ca)),pA.test(r)&&(r+=ca),r+="a";do r=cA(r);while(lA(r)||dA.test(r));return r.replace(mA,"$1")}});var Ji=ve(St=>{"use strict";St.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;St.find=(e,r)=>e.nodes.find(t=>t.type===r);St.exceedsLimit=(e,r,t=1,n)=>n===!1||!St.isInteger(e)||!St.isInteger(r)?!1:(Number(r)-Number(e))/Number(t)>=n;St.escapeNode=(e,r=0,t)=>{let n=e.nodes[r];n&&(t&&n.type===t||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};St.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);St.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;St.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;St.reduce=e=>e.reduce((r,t)=>(t.type==="text"&&r.push(t.value),t.type==="range"&&(t.type="text"),r),[]);St.flatten=(...e)=>{let r=[],t=n=>{for(let i=0;i<n.length;i++){let c=n[i];Array.isArray(c)?t(c,r):c!==void 0&&r.push(c)}return r};return t(e),r}});var Qi=ve((MN,Pp)=>{"use strict";var Fp=Ji();Pp.exports=(e,r={})=>{let t=(n,i={})=>{let c=r.escapeInvalid&&Fp.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s="";if(n.value)return(c||a)&&Fp.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let o of n.nodes)s+=t(o);return s};return t(e)}});var Lp=ve((NN,Bp)=>{"use strict";Bp.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Up=ve((jN,Gp)=>{"use strict";var Ip=Lp(),xr=(e,r,t)=>{if(Ip(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||e===r)return String(e);if(Ip(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...t};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),c=String(n.shorthand),a=String(n.capture),s=String(n.wrap),o=e+":"+r+"="+i+c+a+s;if(xr.cache.hasOwnProperty(o))return xr.cache[o].result;let f=Math.min(e,r),l=Math.max(e,r);if(Math.abs(f-l)===1){let y=e+"|"+r;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=qp(e)||qp(r),u={min:e,max:r,a:f,b:l},d=[],p=[];if(h&&(u.isPadded=h,u.maxLen=String(u.max).length),f<0){let y=l<0?Math.abs(l):1;p=Mp(y,Math.abs(f),u,n),f=u.a=0}return l>=0&&(d=Mp(f,l,u,n)),u.negatives=p,u.positives=d,u.result=yA(p,d,n),n.capture===!0?u.result=`(${u.result})`:n.wrap!==!1&&d.length+p.length>1&&(u.result=`(?:${u.result})`),xr.cache[o]=u,u.result};function yA(e,r,t){let n=ha(e,r,"-",!1,t)||[],i=ha(r,e,"",!1,t)||[],c=ha(e,r,"-?",!0,t)||[];return n.concat(c).concat(i).join("|")}function gA(e,r){let t=1,n=1,i=jp(e,t),c=new Set([r]);for(;e<=i&&i<=r;)c.add(i),t+=1,i=jp(e,t);for(i=$p(r+1,n)-1;e<i&&i<=r;)c.add(i),n+=1,i=$p(r+1,n)-1;return c=[...c],c.sort(_A),c}function bA(e,r,t){if(e===r)return{pattern:e,count:[],digits:0};let n=vA(e,r),i=n.length,c="",a=0;for(let s=0;s<i;s++){let[o,f]=n[s];o===f?c+=o:o!=="0"||f!=="9"?c+=wA(o,f,t):a++}return a&&(c+=t.shorthand===!0?"\\d":"[0-9]"),{pattern:c,count:[a],digits:i}}function Mp(e,r,t,n){let i=gA(e,r),c=[],a=e,s;for(let o=0;o<i.length;o++){let f=i[o],l=bA(String(a),String(f),n),h="";if(!t.isPadded&&s&&s.pattern===l.pattern){s.count.length>1&&s.count.pop(),s.count.push(l.count[0]),s.string=s.pattern+Hp(s.count),a=f+1;continue}t.isPadded&&(h=EA(f,t,n)),l.string=h+l.pattern+Hp(l.count),c.push(l),a=f+1,s=l}return c}function ha(e,r,t,n,i){let c=[];for(let a of e){let{string:s}=a;!n&&!Np(r,"string",s)&&c.push(t+s),n&&Np(r,"string",s)&&c.push(t+s)}return c}function vA(e,r){let t=[];for(let n=0;n<e.length;n++)t.push([e[n],r[n]]);return t}function _A(e,r){return e>r?1:r>e?-1:0}function Np(e,r,t){return e.some(n=>n[r]===t)}function jp(e,r){return Number(String(e).slice(0,-r)+"9".repeat(r))}function $p(e,r){return e-e%Math.pow(10,r)}function Hp(e){let[r=0,t=""]=e;return t||r>1?`{${r+(t?","+t:"")}}`:""}function wA(e,r,t){return`[${e}${r-e===1?"":"-"}${r}]`}function qp(e){return/^-?(0+)\d/.test(e)}function EA(e,r,t){if(!r.isPadded)return e;let n=Math.abs(r.maxLen-String(e).length),i=t.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}xr.cache={};xr.clearCache=()=>xr.cache={};Gp.exports=xr});var da=ve(($N,Jp)=>{"use strict";var SA=require("util"),Vp=Up(),Wp=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),AA=e=>r=>e===!0?Number(r):String(r),fa=e=>typeof e=="number"||typeof e=="string"&&e!=="",Kn=e=>Number.isInteger(+e),pa=e=>{let r=`${e}`,t=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++t]==="0";);return t>0},xA=(e,r,t)=>typeof e=="string"||typeof r=="string"?!0:t.stringify===!0,CA=(e,r,t)=>{if(r>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?r-1:r,"0")}return t===!1?String(e):e},zp=(e,r)=>{let t=e[0]==="-"?"-":"";for(t&&(e=e.slice(1),r--);e.length<r;)e="0"+e;return t?"-"+e:e},kA=(e,r)=>{e.negatives.sort((a,s)=>a<s?-1:a>s?1:0),e.positives.sort((a,s)=>a<s?-1:a>s?1:0);let t=r.capture?"":"?:",n="",i="",c;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${t}${e.negatives.join("|")})`),n&&i?c=`${n}|${i}`:c=n||i,r.wrap?`(${t}${c})`:c},Kp=(e,r,t,n)=>{if(t)return Vp(e,r,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===r)return i;let c=String.fromCharCode(r);return`[${i}-${c}]`},Yp=(e,r,t)=>{if(Array.isArray(e)){let n=t.wrap===!0,i=t.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Vp(e,r,t)},Xp=(...e)=>new RangeError("Invalid range arguments: "+SA.inspect(...e)),Zp=(e,r,t)=>{if(t.strictRanges===!0)throw Xp([e,r]);return[]},DA=(e,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},RA=(e,r,t=1,n={})=>{let i=Number(e),c=Number(r);if(!Number.isInteger(i)||!Number.isInteger(c)){if(n.strictRanges===!0)throw Xp([e,r]);return[]}i===0&&(i=0),c===0&&(c=0);let a=i>c,s=String(e),o=String(r),f=String(t);t=Math.max(Math.abs(t),1);let l=pa(s)||pa(o)||pa(f),h=l?Math.max(s.length,o.length,f.length):0,u=l===!1&&xA(e,r,n)===!1,d=n.transform||AA(u);if(n.toRegex&&t===1)return Kp(zp(e,h),zp(r,h),!0,n);let p={negatives:[],positives:[]},y=g=>p[g<0?"negatives":"positives"].push(Math.abs(g)),b=[],_=0;for(;a?i>=c:i<=c;)n.toRegex===!0&&t>1?y(i):b.push(CA(d(i,_),h,u)),i=a?i-t:i+t,_++;return n.toRegex===!0?t>1?kA(p,n):Yp(b,null,{wrap:!1,...n}):b},OA=(e,r,t=1,n={})=>{if(!Kn(e)&&e.length>1||!Kn(r)&&r.length>1)return Zp(e,r,n);let i=n.transform||(u=>String.fromCharCode(u)),c=`${e}`.charCodeAt(0),a=`${r}`.charCodeAt(0),s=c>a,o=Math.min(c,a),f=Math.max(c,a);if(n.toRegex&&t===1)return Kp(o,f,!1,n);let l=[],h=0;for(;s?c>=a:c<=a;)l.push(i(c,h)),c=s?c-t:c+t,h++;return n.toRegex===!0?Yp(l,null,{wrap:!1,options:n}):l},es=(e,r,t,n={})=>{if(r==null&&fa(e))return[e];if(!fa(e)||!fa(r))return Zp(e,r,n);if(typeof t=="function")return es(e,r,1,{transform:t});if(Wp(t))return es(e,r,0,t);let i={...n};return i.capture===!0&&(i.wrap=!0),t=t||i.step||1,Kn(t)?Kn(e)&&Kn(r)?RA(e,r,t,i):OA(e,r,Math.max(Math.abs(t),1),i):t!=null&&!Wp(t)?DA(t,i):es(e,r,1,t)};Jp.exports=es});var td=ve((HN,ed)=>{"use strict";var TA=da(),Qp=Ji(),FA=(e,r={})=>{let t=(n,i={})=>{let c=Qp.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s=c===!0||a===!0,o=r.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return o+n.value;if(n.type==="open")return s?o+n.value:"(";if(n.type==="close")return s?o+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Qp.reduce(n.nodes),h=TA(...l,{...r,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=t(l,n);return f};return t(e)};ed.exports=FA});var id=ve((qN,nd)=>{"use strict";var PA=da(),rd=Qi(),nn=Ji(),Cr=(e="",r="",t=!1)=>{let n=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return t?nn.flatten(r).map(i=>`{${i}}`):r;for(let i of e)if(Array.isArray(i))for(let c of i)n.push(Cr(c,r,t));else for(let c of r)t===!0&&typeof c=="string"&&(c=`{${c}}`),n.push(Array.isArray(c)?Cr(i,c,t):i+c);return nn.flatten(n)},BA=(e,r={})=>{let t=r.rangeLimit===void 0?1e3:r.rangeLimit,n=(i,c={})=>{i.queue=[];let a=c,s=c.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,s=a.queue;if(i.invalid||i.dollar){s.push(Cr(s.pop(),rd(i,r)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(Cr(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=nn.reduce(i.nodes);if(nn.exceedsLimit(...h,r.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=PA(...h,r);u.length===0&&(u=rd(i,r)),s.push(Cr(s.pop(),u)),i.nodes=[];return}let o=nn.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let u=i.nodes[h];if(u.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(u.type==="close"){s.push(Cr(s.pop(),f,o));continue}if(u.value&&u.type!=="open"){f.push(Cr(f.pop(),u.value));continue}u.nodes&&n(u,i)}return f};return nn.flatten(n(e))};nd.exports=BA});var od=ve((GN,sd)=>{"use strict";sd.exports={MAX_LENGTH:1024*64,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:`
7
- `,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"}});var hd=ve((UN,cd)=>{"use strict";var LA=Qi(),{MAX_LENGTH:ad,CHAR_BACKSLASH:ma,CHAR_BACKTICK:IA,CHAR_COMMA:MA,CHAR_DOT:NA,CHAR_LEFT_PARENTHESES:jA,CHAR_RIGHT_PARENTHESES:$A,CHAR_LEFT_CURLY_BRACE:HA,CHAR_RIGHT_CURLY_BRACE:qA,CHAR_LEFT_SQUARE_BRACKET:ud,CHAR_RIGHT_SQUARE_BRACKET:ld,CHAR_DOUBLE_QUOTE:GA,CHAR_SINGLE_QUOTE:UA,CHAR_NO_BREAK_SPACE:WA,CHAR_ZERO_WIDTH_NOBREAK_SPACE:zA}=od(),VA=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=r||{},n=typeof t.maxLength=="number"?Math.min(ad,t.maxLength):ad;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},c=[i],a=i,s=i,o=0,f=e.length,l=0,h=0,u,d={},p=()=>e[l++],y=b=>{if(b.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&b.type==="text"){s.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=s,s=b,b};for(y({type:"bos"});l<f;)if(a=c[c.length-1],u=p(),!(u===zA||u===WA)){if(u===ma){y({type:"text",value:(r.keepEscaping?u:"")+p()});continue}if(u===ld){y({type:"text",value:"\\"+u});continue}if(u===ud){o++;let b=!0,_;for(;l<f&&(_=p());){if(u+=_,_===ud){o++;continue}if(_===ma){u+=p();continue}if(_===ld&&(o--,o===0))break}y({type:"text",value:u});continue}if(u===jA){a=y({type:"paren",nodes:[]}),c.push(a),y({type:"text",value:u});continue}if(u===$A){if(a.type!=="paren"){y({type:"text",value:u});continue}a=c.pop(),y({type:"text",value:u}),a=c[c.length-1];continue}if(u===GA||u===UA||u===IA){let b=u,_;for(r.keepQuotes!==!0&&(u="");l<f&&(_=p());){if(_===ma){u+=_+p();continue}if(_===b){r.keepQuotes===!0&&(u+=_);break}u+=_}y({type:"text",value:u});continue}if(u===HA){h++;let _={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||a.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};a=y(_),c.push(a),y({type:"open",value:u});continue}if(u===qA){if(a.type!=="brace"){y({type:"text",value:u});continue}let b="close";a=c.pop(),a.close=!0,y({type:b,value:u}),h--,a=c[c.length-1];continue}if(u===MA&&h>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:LA(a)}]}y({type:"comma",value:u}),a.commas++;continue}if(u===NA&&h>0&&a.commas===0){let b=a.nodes;if(h===0||b.length===0){y({type:"text",value:u});continue}if(s.type==="dot"){if(a.range=[],s.value+=u,s.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,s.type="text";continue}a.ranges++,a.args=[];continue}if(s.type==="range"){b.pop();let _=b[b.length-1];_.value+=s.value+u,s=_,a.ranges--;continue}y({type:"dot",value:u});continue}y({type:"text",value:u})}do if(a=c.pop(),a.type!=="root"){a.nodes.forEach(g=>{g.nodes||(g.type==="open"&&(g.isOpen=!0),g.type==="close"&&(g.isClose=!0),g.nodes||(g.type="text"),g.invalid=!0)});let b=c[c.length-1],_=b.nodes.indexOf(a);b.nodes.splice(_,1,...a.nodes)}while(c.length>0);return y({type:"eos"}),i};cd.exports=VA});var dd=ve((WN,pd)=>{"use strict";var fd=Qi(),KA=td(),YA=id(),XA=hd(),gt=(e,r={})=>{let t=[];if(Array.isArray(e))for(let n of e){let i=gt.create(n,r);Array.isArray(i)?t.push(...i):t.push(i)}else t=[].concat(gt.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(t=[...new Set(t)]),t};gt.parse=(e,r={})=>XA(e,r);gt.stringify=(e,r={})=>fd(typeof e=="string"?gt.parse(e,r):e,r);gt.compile=(e,r={})=>(typeof e=="string"&&(e=gt.parse(e,r)),KA(e,r));gt.expand=(e,r={})=>{typeof e=="string"&&(e=gt.parse(e,r));let t=YA(e,r);return r.noempty===!0&&(t=t.filter(Boolean)),r.nodupes===!0&&(t=[...new Set(t)]),t};gt.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?gt.compile(e,r):gt.expand(e,r);pd.exports=gt});var Yn=ve((zN,vd)=>{"use strict";var ZA=require("path"),It="\\\\/",md=`[^${It}]`,Vt="\\.",JA="\\+",QA="\\?",ts="\\/",ex="(?=.)",yd="[^/]",ya=`(?:${ts}|$)`,gd=`(?:^|${ts})`,ga=`${Vt}{1,2}${ya}`,tx=`(?!${Vt})`,rx=`(?!${gd}${ga})`,nx=`(?!${Vt}{0,1}${ya})`,ix=`(?!${ga})`,sx=`[^.${ts}]`,ox=`${yd}*?`,bd={DOT_LITERAL:Vt,PLUS_LITERAL:JA,QMARK_LITERAL:QA,SLASH_LITERAL:ts,ONE_CHAR:ex,QMARK:yd,END_ANCHOR:ya,DOTS_SLASH:ga,NO_DOT:tx,NO_DOTS:rx,NO_DOT_SLASH:nx,NO_DOTS_SLASH:ix,QMARK_NO_DOT:sx,STAR:ox,START_ANCHOR:gd},ax={...bd,SLASH_LITERAL:`[${It}]`,QMARK:md,STAR:`${md}*?`,DOTS_SLASH:`${Vt}{1,2}(?:[${It}]|$)`,NO_DOT:`(?!${Vt})`,NO_DOTS:`(?!(?:^|[${It}])${Vt}{1,2}(?:[${It}]|$))`,NO_DOT_SLASH:`(?!${Vt}{0,1}(?:[${It}]|$))`,NO_DOTS_SLASH:`(?!${Vt}{1,2}(?:[${It}]|$))`,QMARK_NO_DOT:`[^.${It}]`,START_ANCHOR:`(?:^|[${It}])`,END_ANCHOR:`(?:[${It}]|$)`},ux={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"};vd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ux,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:ZA.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ax:bd}}});var Xn=ve(ht=>{"use strict";var lx=require("path"),cx=process.platform==="win32",{REGEX_BACKSLASH:hx,REGEX_REMOVE_BACKSLASH:fx,REGEX_SPECIAL_CHARS:px,REGEX_SPECIAL_CHARS_GLOBAL:dx}=Yn();ht.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ht.hasRegexChars=e=>px.test(e);ht.isRegexChar=e=>e.length===1&&ht.hasRegexChars(e);ht.escapeRegex=e=>e.replace(dx,"\\$1");ht.toPosixSlashes=e=>e.replace(hx,"/");ht.removeBackslashes=e=>e.replace(fx,r=>r==="\\"?"":r);ht.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ht.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:cx===!0||lx.sep==="\\";ht.escapeLast=(e,r,t)=>{let n=e.lastIndexOf(r,t);return n===-1?e:e[n-1]==="\\"?ht.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ht.removePrefix=(e,r={})=>{let t=e;return t.startsWith("./")&&(t=t.slice(2),r.prefix="./"),t};ht.wrapOutput=(e,r={},t={})=>{let n=t.contains?"":"^",i=t.contains?"":"$",c=`${n}(?:${e})${i}`;return r.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var kd=ve((KN,Cd)=>{"use strict";var _d=Xn(),{CHAR_ASTERISK:ba,CHAR_AT:mx,CHAR_BACKWARD_SLASH:Zn,CHAR_COMMA:yx,CHAR_DOT:va,CHAR_EXCLAMATION_MARK:_a,CHAR_FORWARD_SLASH:xd,CHAR_LEFT_CURLY_BRACE:wa,CHAR_LEFT_PARENTHESES:Ea,CHAR_LEFT_SQUARE_BRACKET:gx,CHAR_PLUS:bx,CHAR_QUESTION_MARK:wd,CHAR_RIGHT_CURLY_BRACE:vx,CHAR_RIGHT_PARENTHESES:Ed,CHAR_RIGHT_SQUARE_BRACKET:_x}=Yn(),Sd=e=>e===xd||e===Zn,Ad=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},wx=(e,r)=>{let t=r||{},n=e.length-1,i=t.parts===!0||t.scanToEnd===!0,c=[],a=[],s=[],o=e,f=-1,l=0,h=0,u=!1,d=!1,p=!1,y=!1,b=!1,_=!1,g=!1,S=!1,E=!1,v=!1,m=0,w,A,x={value:"",depth:0,isGlob:!1},D=()=>f>=n,F=()=>o.charCodeAt(f+1),T=()=>(w=A,o.charCodeAt(++f));for(;f<n;){A=T();let B;if(A===Zn){g=x.backslashes=!0,A=T(),A===wa&&(_=!0);continue}if(_===!0||A===wa){for(m++;D()!==!0&&(A=T());){if(A===Zn){g=x.backslashes=!0,T();continue}if(A===wa){m++;continue}if(_!==!0&&A===va&&(A=T())===va){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(_!==!0&&A===yx){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===vx&&(m--,m===0)){_=!1,u=x.isBrace=!0,v=!0;break}}if(i===!0)continue;break}if(A===xd){if(c.push(f),a.push(x),x={value:"",depth:0,isGlob:!1},v===!0)continue;if(w===va&&f===l+1){l+=2;continue}h=f+1;continue}if(t.noext!==!0&&(A===bx||A===mx||A===ba||A===wd||A===_a)===!0&&F()===Ea){if(p=x.isGlob=!0,y=x.isExtglob=!0,v=!0,A===_a&&f===l&&(E=!0),i===!0){for(;D()!==!0&&(A=T());){if(A===Zn){g=x.backslashes=!0,A=T();continue}if(A===Ed){p=x.isGlob=!0,v=!0;break}}continue}break}if(A===ba){if(w===ba&&(b=x.isGlobstar=!0),p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===wd){if(p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===gx){for(;D()!==!0&&(B=T());){if(B===Zn){g=x.backslashes=!0,T();continue}if(B===_x){d=x.isBracket=!0,p=x.isGlob=!0,v=!0;break}}if(i===!0)continue;break}if(t.nonegate!==!0&&A===_a&&f===l){S=x.negated=!0,l++;continue}if(t.noparen!==!0&&A===Ea){if(p=x.isGlob=!0,i===!0){for(;D()!==!0&&(A=T());){if(A===Ea){g=x.backslashes=!0,A=T();continue}if(A===Ed){v=!0;break}}continue}break}if(p===!0){if(v=!0,i===!0)continue;break}}t.noext===!0&&(y=!1,p=!1);let k=o,O="",P="";l>0&&(O=o.slice(0,l),o=o.slice(l),h-=l),k&&p===!0&&h>0?(k=o.slice(0,h),P=o.slice(h)):p===!0?(k="",P=o):k=o,k&&k!==""&&k!=="/"&&k!==o&&Sd(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),t.unescape===!0&&(P&&(P=_d.removeBackslashes(P)),k&&g===!0&&(k=_d.removeBackslashes(k)));let I={prefix:O,input:e,start:l,base:k,glob:P,isBrace:u,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:E};if(t.tokens===!0&&(I.maxDepth=0,Sd(A)||a.push(x),I.tokens=a),t.parts===!0||t.tokens===!0){let B;for(let H=0;H<c.length;H++){let G=B?B+1:l,Q=c[H],L=e.slice(G,Q);t.tokens&&(H===0&&l!==0?(a[H].isPrefix=!0,a[H].value=O):a[H].value=L,Ad(a[H]),I.maxDepth+=a[H].depth),(H!==0||L!=="")&&s.push(L),B=Q}if(B&&B+1<e.length){let H=e.slice(B+1);s.push(H),t.tokens&&(a[a.length-1].value=H,Ad(a[a.length-1]),I.maxDepth+=a[a.length-1].depth)}I.slashes=c,I.parts=s}return I};Cd.exports=wx});var Od=ve((YN,Rd)=>{"use strict";var rs=Yn(),bt=Xn(),{MAX_LENGTH:ns,POSIX_REGEX_SOURCE:Ex,REGEX_NON_SPECIAL_CHARS:Sx,REGEX_SPECIAL_CHARS_BACKREF:Ax,REPLACEMENTS:Dd}=rs,xx=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let t=`[${e.join("-")}]`;try{new RegExp(t)}catch{return e.map(i=>bt.escapeRegex(i)).join("..")}return t},sn=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,Sa=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Dd[e]||e;let t={...r},n=typeof t.maxLength=="number"?Math.min(ns,t.maxLength):ns,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let c={type:"bos",value:"",output:t.prepend||""},a=[c],s=t.capture?"":"?:",o=bt.isWindows(r),f=rs.globChars(o),l=rs.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:b,NO_DOT_SLASH:_,NO_DOTS_SLASH:g,QMARK:S,QMARK_NO_DOT:E,STAR:v,START_ANCHOR:m}=f,w=ee=>`(${s}(?:(?!${m}${ee.dot?y:h}).)*?)`,A=t.dot?"":b,x=t.dot?S:E,D=t.bash===!0?w(t):v;t.capture&&(D=`(${D})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let F={input:e,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=bt.removePrefix(e,F),i=e.length;let T=[],k=[],O=[],P=c,I,B=()=>F.index===i-1,H=F.peek=(ee=1)=>e[F.index+ee],G=F.advance=()=>e[++F.index]||"",Q=()=>e.slice(F.index+1),L=(ee="",ae=0)=>{F.consumed+=ee,F.index+=ae},M=ee=>{F.output+=ee.output!=null?ee.output:ee.value,L(ee.value)},R=()=>{let ee=1;for(;H()==="!"&&(H(2)!=="("||H(3)==="?");)G(),F.start++,ee++;return ee%2===0?!1:(F.negated=!0,F.start++,!0)},K=ee=>{F[ee]++,O.push(ee)},q=ee=>{F[ee]--,O.pop()},Z=ee=>{if(P.type==="globstar"){let ae=F.braces>0&&(ee.type==="comma"||ee.type==="brace"),oe=ee.extglob===!0||T.length&&(ee.type==="pipe"||ee.type==="paren");ee.type!=="slash"&&ee.type!=="paren"&&!ae&&!oe&&(F.output=F.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=D,F.output+=P.output)}if(T.length&&ee.type!=="paren"&&(T[T.length-1].inner+=ee.value),(ee.value||ee.output)&&M(ee),P&&P.type==="text"&&ee.type==="text"){P.value+=ee.value,P.output=(P.output||"")+ee.value;return}ee.prev=P,a.push(ee),P=ee},N=(ee,ae)=>{let oe={...l[ae],conditions:1,inner:""};oe.prev=P,oe.parens=F.parens,oe.output=F.output;let de=(t.capture?"(":"")+oe.open;K("parens"),Z({type:ee,value:ae,output:F.output?"":p}),Z({type:"paren",extglob:!0,value:G(),output:de}),T.push(oe)},z=ee=>{let ae=ee.close+(t.capture?")":""),oe;if(ee.type==="negate"){let de=D;if(ee.inner&&ee.inner.length>1&&ee.inner.includes("/")&&(de=w(t)),(de!==D||B()||/^\)+$/.test(Q()))&&(ae=ee.close=`)$))${de}`),ee.inner.includes("*")&&(oe=Q())&&/^\.[^\\/.]+$/.test(oe)){let pe=Sa(oe,{...r,fastpaths:!1}).output;ae=ee.close=`)${pe})${de})`}ee.prev.type==="bos"&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:I,output:ae}),q("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let ee=!1,ae=e.replace(Ax,(oe,de,pe,j,W,C)=>j==="\\"?(ee=!0,oe):j==="?"?de?de+j+(W?S.repeat(W.length):""):C===0?x+(W?S.repeat(W.length):""):S.repeat(pe.length):j==="."?h.repeat(pe.length):j==="*"?de?de+j+(W?D:""):D:de?oe:`\\${oe}`);return ee===!0&&(t.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,oe=>oe.length%2===0?"\\\\":oe?"\\":"")),ae===e&&t.contains===!0?(F.output=e,F):(F.output=bt.wrapOutput(ae,F,r),F)}for(;!B();){if(I=G(),I==="\0")continue;if(I==="\\"){let oe=H();if(oe==="/"&&t.bash!==!0||oe==="."||oe===";")continue;if(!oe){I+="\\",Z({type:"text",value:I});continue}let de=/^\\+/.exec(Q()),pe=0;if(de&&de[0].length>2&&(pe=de[0].length,F.index+=pe,pe%2!==0&&(I+="\\")),t.unescape===!0?I=G():I+=G(),F.brackets===0){Z({type:"text",value:I});continue}}if(F.brackets>0&&(I!=="]"||P.value==="["||P.value==="[^")){if(t.posix!==!1&&I===":"){let oe=P.value.slice(1);if(oe.includes("[")&&(P.posix=!0,oe.includes(":"))){let de=P.value.lastIndexOf("["),pe=P.value.slice(0,de),j=P.value.slice(de+2),W=Ex[j];if(W){P.value=pe+W,F.backtrack=!0,G(),!c.output&&a.indexOf(P)===1&&(c.output=p);continue}}}(I==="["&&H()!==":"||I==="-"&&H()==="]")&&(I=`\\${I}`),I==="]"&&(P.value==="["||P.value==="[^")&&(I=`\\${I}`),t.posix===!0&&I==="!"&&P.value==="["&&(I="^"),P.value+=I,M({value:I});continue}if(F.quotes===1&&I!=='"'){I=bt.escapeRegex(I),P.value+=I,M({value:I});continue}if(I==='"'){F.quotes=F.quotes===1?0:1,t.keepQuotes===!0&&Z({type:"text",value:I});continue}if(I==="("){K("parens"),Z({type:"paren",value:I});continue}if(I===")"){if(F.parens===0&&t.strictBrackets===!0)throw new SyntaxError(sn("opening","("));let oe=T[T.length-1];if(oe&&F.parens===oe.parens+1){z(T.pop());continue}Z({type:"paren",value:I,output:F.parens?")":"\\)"}),q("parens");continue}if(I==="["){if(t.nobracket===!0||!Q().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(sn("closing","]"));I=`\\${I}`}else K("brackets");Z({type:"bracket",value:I});continue}if(I==="]"){if(t.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){Z({type:"text",value:I,output:`\\${I}`});continue}if(F.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(sn("opening","["));Z({type:"text",value:I,output:`\\${I}`});continue}q("brackets");let oe=P.value.slice(1);if(P.posix!==!0&&oe[0]==="^"&&!oe.includes("/")&&(I=`/${I}`),P.value+=I,M({value:I}),t.literalBrackets===!1||bt.hasRegexChars(oe))continue;let de=bt.escapeRegex(P.value);if(F.output=F.output.slice(0,-P.value.length),t.literalBrackets===!0){F.output+=de,P.value=de;continue}P.value=`(${s}${de}|${P.value})`,F.output+=P.value;continue}if(I==="{"&&t.nobrace!==!0){K("braces");let oe={type:"brace",value:I,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};k.push(oe),Z(oe);continue}if(I==="}"){let oe=k[k.length-1];if(t.nobrace===!0||!oe){Z({type:"text",value:I,output:I});continue}let de=")";if(oe.dots===!0){let pe=a.slice(),j=[];for(let W=pe.length-1;W>=0&&(a.pop(),pe[W].type!=="brace");W--)pe[W].type!=="dots"&&j.unshift(pe[W].value);de=xx(j,t),F.backtrack=!0}if(oe.comma!==!0&&oe.dots!==!0){let pe=F.output.slice(0,oe.outputIndex),j=F.tokens.slice(oe.tokensIndex);oe.value=oe.output="\\{",I=de="\\}",F.output=pe;for(let W of j)F.output+=W.output||W.value}Z({type:"brace",value:I,output:de}),q("braces"),k.pop();continue}if(I==="|"){T.length>0&&T[T.length-1].conditions++,Z({type:"text",value:I});continue}if(I===","){let oe=I,de=k[k.length-1];de&&O[O.length-1]==="braces"&&(de.comma=!0,oe="|"),Z({type:"comma",value:I,output:oe});continue}if(I==="/"){if(P.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",a.pop(),P=c;continue}Z({type:"slash",value:I,output:d});continue}if(I==="."){if(F.braces>0&&P.type==="dot"){P.value==="."&&(P.output=h);let oe=k[k.length-1];P.type="dots",P.output+=I,P.value+=I,oe.dots=!0;continue}if(F.braces+F.parens===0&&P.type!=="bos"&&P.type!=="slash"){Z({type:"text",value:I,output:h});continue}Z({type:"dot",value:I,output:h});continue}if(I==="?"){if(!(P&&P.value==="(")&&t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("qmark",I);continue}if(P&&P.type==="paren"){let de=H(),pe=I;if(de==="<"&&!bt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(Q()))&&(pe=`\\${I}`),Z({type:"text",value:I,output:pe});continue}if(t.dot!==!0&&(P.type==="slash"||P.type==="bos")){Z({type:"qmark",value:I,output:E});continue}Z({type:"qmark",value:I,output:S});continue}if(I==="!"){if(t.noextglob!==!0&&H()==="("&&(H(2)!=="?"||!/[!=<:]/.test(H(3)))){N("negate",I);continue}if(t.nonegate!==!0&&F.index===0){R();continue}}if(I==="+"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("plus",I);continue}if(P&&P.value==="("||t.regex===!1){Z({type:"plus",value:I,output:u});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||F.parens>0){Z({type:"plus",value:I});continue}Z({type:"plus",value:u});continue}if(I==="@"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){Z({type:"at",extglob:!0,value:I,output:""});continue}Z({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let oe=Sx.exec(Q());oe&&(I+=oe[0],F.index+=oe[0].length),Z({type:"text",value:I});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=I,P.output=D,F.backtrack=!0,F.globstar=!0,L(I);continue}let ee=Q();if(t.noextglob!==!0&&/^\([^?]/.test(ee)){N("star",I);continue}if(P.type==="star"){if(t.noglobstar===!0){L(I);continue}let oe=P.prev,de=oe.prev,pe=oe.type==="slash"||oe.type==="bos",j=de&&(de.type==="star"||de.type==="globstar");if(t.bash===!0&&(!pe||ee[0]&&ee[0]!=="/")){Z({type:"star",value:I,output:""});continue}let W=F.braces>0&&(oe.type==="comma"||oe.type==="brace"),C=T.length&&(oe.type==="pipe"||oe.type==="paren");if(!pe&&oe.type!=="paren"&&!W&&!C){Z({type:"star",value:I,output:""});continue}for(;ee.slice(0,3)==="/**";){let U=e[F.index+4];if(U&&U!=="/")break;ee=ee.slice(3),L("/**",3)}if(oe.type==="bos"&&B()){P.type="globstar",P.value+=I,P.output=w(t),F.output=P.output,F.globstar=!0,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&!j&&B()){F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=w(t)+(t.strictSlashes?")":"|$)"),P.value+=I,F.globstar=!0,F.output+=oe.output+P.output,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&ee[0]==="/"){let U=ee[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=`${w(t)}${d}|${d}${U})`,P.value+=I,F.output+=oe.output+P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}if(oe.type==="bos"&&ee[0]==="/"){P.type="globstar",P.value+=I,P.output=`(?:^|${d}|${w(t)}${d})`,F.output=P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-P.output.length),P.type="globstar",P.output=w(t),P.value+=I,F.output+=P.output,F.globstar=!0,L(I);continue}let ae={type:"star",value:I,output:D};if(t.bash===!0){ae.output=".*?",(P.type==="bos"||P.type==="slash")&&(ae.output=A+ae.output),Z(ae);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&t.regex===!0){ae.output=I,Z(ae);continue}(F.index===F.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(F.output+=_,P.output+=_):t.dot===!0?(F.output+=g,P.output+=g):(F.output+=A,P.output+=A),H()!=="*"&&(F.output+=p,P.output+=p)),Z(ae)}for(;F.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(sn("closing","]"));F.output=bt.escapeLast(F.output,"["),q("brackets")}for(;F.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(sn("closing",")"));F.output=bt.escapeLast(F.output,"("),q("parens")}for(;F.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(sn("closing","}"));F.output=bt.escapeLast(F.output,"{"),q("braces")}if(t.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&Z({type:"maybe_slash",value:"",output:`${d}?`}),F.backtrack===!0){F.output="";for(let ee of F.tokens)F.output+=ee.output!=null?ee.output:ee.value,ee.suffix&&(F.output+=ee.suffix)}return F};Sa.fastpaths=(e,r)=>{let t={...r},n=typeof t.maxLength=="number"?Math.min(ns,t.maxLength):ns,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Dd[e]||e;let c=bt.isWindows(r),{DOT_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:o,DOTS_SLASH:f,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:p}=rs.globChars(c),y=t.dot?h:l,b=t.dot?u:l,_=t.capture?"":"?:",g={negated:!1,prefix:""},S=t.bash===!0?".*?":d;t.capture&&(S=`(${S})`);let E=A=>A.noglobstar===!0?S:`(${_}(?:(?!${p}${A.dot?f:a}).)*?)`,v=A=>{switch(A){case"*":return`${y}${o}${S}`;case".*":return`${a}${o}${S}`;case"*.*":return`${y}${S}${a}${o}${S}`;case"*/*":return`${y}${S}${s}${o}${b}${S}`;case"**":return y+E(t);case"**/*":return`(?:${y}${E(t)}${s})?${b}${o}${S}`;case"**/*.*":return`(?:${y}${E(t)}${s})?${b}${S}${a}${o}${S}`;case"**/.*":return`(?:${y}${E(t)}${s})?${a}${o}${S}`;default:{let x=/^(.*?)\.(\w+)$/.exec(A);if(!x)return;let D=v(x[1]);return D?D+a+x[2]:void 0}}},m=bt.removePrefix(e,g),w=v(m);return w&&t.strictSlashes!==!0&&(w+=`${s}?`),w};Rd.exports=Sa});var Fd=ve((XN,Td)=>{"use strict";var Cx=require("path"),kx=kd(),Aa=Od(),xa=Xn(),Dx=Yn(),Rx=e=>e&&typeof e=="object"&&!Array.isArray(e),Ge=(e,r,t=!1)=>{if(Array.isArray(e)){let l=e.map(u=>Ge(u,r,t));return u=>{for(let d of l){let p=d(u);if(p)return p}return!1}}let n=Rx(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=r||{},c=xa.isWindows(r),a=n?Ge.compileRe(e,r):Ge.makeRe(e,r,!1,!0),s=a.state;delete a.state;let o=()=>!1;if(i.ignore){let l={...r,ignore:null,onMatch:null,onResult:null};o=Ge(i.ignore,l,t)}let f=(l,h=!1)=>{let{isMatch:u,match:d,output:p}=Ge.test(l,a,r,{glob:e,posix:c}),y={glob:e,state:s,regex:a,posix:c,input:l,output:p,match:d,isMatch:u};return typeof i.onResult=="function"&&i.onResult(y),u===!1?(y.isMatch=!1,h?y:!1):o(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return t&&(f.state=s),f};Ge.test=(e,r,t,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=t||{},a=c.format||(i?xa.toPosixSlashes:null),s=e===n,o=s&&a?a(e):e;return s===!1&&(o=a?a(e):e,s=o===n),(s===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?s=Ge.matchBase(e,r,t,i):s=r.exec(o)),{isMatch:!!s,match:s,output:o}};Ge.matchBase=(e,r,t,n=xa.isWindows(t))=>(r instanceof RegExp?r:Ge.makeRe(r,t)).test(Cx.basename(e));Ge.isMatch=(e,r,t)=>Ge(r,t)(e);Ge.parse=(e,r)=>Array.isArray(e)?e.map(t=>Ge.parse(t,r)):Aa(e,{...r,fastpaths:!1});Ge.scan=(e,r)=>kx(e,r);Ge.compileRe=(e,r,t=!1,n=!1)=>{if(t===!0)return e.output;let i=r||{},c=i.contains?"":"^",a=i.contains?"":"$",s=`${c}(?:${e.output})${a}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let o=Ge.toRegex(s,r);return n===!0&&(o.state=e),o};Ge.makeRe=(e,r={},t=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Aa.fastpaths(e,r)),i.output||(i=Aa(e,r)),Ge.compileRe(i,r,t,n)};Ge.toRegex=(e,r)=>{try{let t=r||{};return new RegExp(e,t.flags||(t.nocase?"i":""))}catch(t){if(r&&r.debug===!0)throw t;return/$^/}};Ge.constants=Dx;Td.exports=Ge});var Bd=ve((ZN,Pd)=>{"use strict";Pd.exports=Fd()});var jd=ve((JN,Nd)=>{"use strict";var Id=require("util"),Md=dd(),Mt=Bd(),Ca=Xn(),Ld=e=>e===""||e==="./",qe=(e,r,t)=>{r=[].concat(r),e=[].concat(e);let n=new Set,i=new Set,c=new Set,a=0,s=l=>{c.add(l.output),t&&t.onResult&&t.onResult(l)};for(let l=0;l<r.length;l++){let h=Mt(String(r[l]),{...t,onResult:s},!0),u=h.state.negated||h.state.negatedExtglob;u&&a++;for(let d of e){let p=h(d,!0);(u?!p.isMatch:p.isMatch)&&(u?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let f=(a===r.length?[...c]:[...i]).filter(l=>!n.has(l));if(t&&f.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?r.map(l=>l.replace(/\\/g,"")):r}return f};qe.match=qe;qe.matcher=(e,r)=>Mt(e,r);qe.isMatch=(e,r,t)=>Mt(r,t)(e);qe.any=qe.isMatch;qe.not=(e,r,t={})=>{r=[].concat(r).map(String);let n=new Set,i=[],c=s=>{t.onResult&&t.onResult(s),i.push(s.output)},a=new Set(qe(e,r,{...t,onResult:c}));for(let s of i)a.has(s)||n.add(s);return[...n]};qe.contains=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Id.inspect(e)}"`);if(Array.isArray(r))return r.some(n=>qe.contains(e,n,t));if(typeof r=="string"){if(Ld(e)||Ld(r))return!1;if(e.includes(r)||e.startsWith("./")&&e.slice(2).includes(r))return!0}return qe.isMatch(e,r,{...t,contains:!0})};qe.matchKeys=(e,r,t)=>{if(!Ca.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=qe(Object.keys(e),r,t),i={};for(let c of n)i[c]=e[c];return i};qe.some=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Mt(String(i),t);if(n.some(a=>c(a)))return!0}return!1};qe.every=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Mt(String(i),t);if(!n.every(a=>c(a)))return!1}return!0};qe.all=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Id.inspect(e)}"`);return[].concat(r).every(n=>Mt(n,t)(e))};qe.capture=(e,r,t)=>{let n=Ca.isWindows(t),c=Mt.makeRe(String(e),{...t,capture:!0}).exec(n?Ca.toPosixSlashes(r):r);if(c)return c.slice(1).map(a=>a===void 0?"":a)};qe.makeRe=(...e)=>Mt.makeRe(...e);qe.scan=(...e)=>Mt.scan(...e);qe.parse=(e,r)=>{let t=[];for(let n of[].concat(e||[]))for(let i of Md(String(n),r))t.push(Mt.parse(i,r));return t};qe.braces=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(e)?[e]:Md(e,r)};qe.braceExpand=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return qe.braces(e,{...r,expand:!0})};Nd.exports=qe});var Vd=ve(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.matchAny=Te.convertPatternsToRe=Te.makeRe=Te.getPatternParts=Te.expandBraceExpansion=Te.expandPatternsWithBraceExpansion=Te.isAffectDepthOfReadingPattern=Te.endsWithSlashGlobStar=Te.hasGlobStar=Te.getBaseDirectory=Te.isPatternRelatedToParentDirectory=Te.getPatternsOutsideCurrentDirectory=Te.getPatternsInsideCurrentDirectory=Te.getPositivePatterns=Te.getNegativePatterns=Te.isPositivePattern=Te.isNegativePattern=Te.convertToNegativePattern=Te.convertToPositivePattern=Te.isDynamicPattern=Te.isStaticPattern=void 0;var Ox=require("path"),Tx=Tp(),ka=jd(),$d="**",Fx="\\",Px=/[*?]|^!/,Bx=/\[[^[]*]/,Lx=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Ix=/[!*+?@]\([^(]*\)/,Mx=/,|\.\./;function Hd(e,r={}){return!qd(e,r)}Te.isStaticPattern=Hd;function qd(e,r={}){return e===""?!1:!!(r.caseSensitiveMatch===!1||e.includes(Fx)||Px.test(e)||Bx.test(e)||Lx.test(e)||r.extglob!==!1&&Ix.test(e)||r.braceExpansion!==!1&&Nx(e))}Te.isDynamicPattern=qd;function Nx(e){let r=e.indexOf("{");if(r===-1)return!1;let t=e.indexOf("}",r+1);if(t===-1)return!1;let n=e.slice(r,t);return Mx.test(n)}function jx(e){return is(e)?e.slice(1):e}Te.convertToPositivePattern=jx;function $x(e){return"!"+e}Te.convertToNegativePattern=$x;function is(e){return e.startsWith("!")&&e[1]!=="("}Te.isNegativePattern=is;function Gd(e){return!is(e)}Te.isPositivePattern=Gd;function Hx(e){return e.filter(is)}Te.getNegativePatterns=Hx;function qx(e){return e.filter(Gd)}Te.getPositivePatterns=qx;function Gx(e){return e.filter(r=>!Da(r))}Te.getPatternsInsideCurrentDirectory=Gx;function Ux(e){return e.filter(Da)}Te.getPatternsOutsideCurrentDirectory=Ux;function Da(e){return e.startsWith("..")||e.startsWith("./..")}Te.isPatternRelatedToParentDirectory=Da;function Wx(e){return Tx(e,{flipBackslashes:!1})}Te.getBaseDirectory=Wx;function zx(e){return e.includes($d)}Te.hasGlobStar=zx;function Ud(e){return e.endsWith("/"+$d)}Te.endsWithSlashGlobStar=Ud;function Vx(e){let r=Ox.basename(e);return Ud(e)||Hd(r)}Te.isAffectDepthOfReadingPattern=Vx;function Kx(e){return e.reduce((r,t)=>r.concat(Wd(t)),[])}Te.expandPatternsWithBraceExpansion=Kx;function Wd(e){return ka.braces(e,{expand:!0,nodupes:!0})}Te.expandBraceExpansion=Wd;function Yx(e,r){let{parts:t}=ka.scan(e,Object.assign(Object.assign({},r),{parts:!0}));return t.length===0&&(t=[e]),t[0].startsWith("/")&&(t[0]=t[0].slice(1),t.unshift("")),t}Te.getPatternParts=Yx;function zd(e,r){return ka.makeRe(e,r)}Te.makeRe=zd;function Xx(e,r){return e.map(t=>zd(t,r))}Te.convertPatternsToRe=Xx;function Zx(e,r){return r.some(t=>t.test(e))}Te.matchAny=Zx});var Zd=ve((ej,Xd)=>{"use strict";var Jx=require("stream"),Kd=Jx.PassThrough,Qx=Array.prototype.slice;Xd.exports=eC;function eC(){let e=[],r=Qx.call(arguments),t=!1,n=r[r.length-1];n&&!Array.isArray(n)&&n.pipe==null?r.pop():n={};let i=n.end!==!1,c=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=Kd(n);function s(){for(let l=0,h=arguments.length;l<h;l++)e.push(Yd(arguments[l],n));return o(),this}function o(){if(t)return;t=!0;let l=e.shift();if(!l){process.nextTick(f);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function u(){--h>0||(t=!1,o())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),c&&p.removeListener("error",b),u()}function b(_){a.emit("error",_)}if(p._readableState.endEmitted)return u();p.on("merge2UnpipeEnd",y),p.on("end",y),c&&p.on("error",b),p.pipe(a,{end:!1}),p.resume()}for(let p=0;p<l.length;p++)d(l[p]);u()}function f(){t=!1,a.emit("queueDrain"),i&&a.end()}return a.setMaxListeners(0),a.add=s,a.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),r.length&&s.apply(null,r),a}function Yd(e,r){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)e[t]=Yd(e[t],r);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Kd(r))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Qd=ve(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.merge=void 0;var tC=Zd();function rC(e){let r=tC(e);return e.forEach(t=>{t.once("error",n=>r.emit("error",n))}),r.once("close",()=>Jd(e)),r.once("end",()=>Jd(e)),r}ss.merge=rC;function Jd(e){e.forEach(r=>r.emit("close"))}});var e0=ve(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.isEmpty=on.isString=void 0;function nC(e){return typeof e=="string"}on.isString=nC;function iC(e){return e===""}on.isEmpty=iC});var Kt=ve(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.string=tt.stream=tt.pattern=tt.path=tt.fs=tt.errno=tt.array=void 0;var sC=wp();tt.array=sC;var oC=Ep();tt.errno=oC;var aC=Sp();tt.fs=aC;var uC=Ap();tt.path=uC;var lC=Vd();tt.pattern=lC;var cC=Qd();tt.stream=cC;var hC=e0();tt.string=hC});var n0=ve(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.convertPatternGroupToTask=rt.convertPatternGroupsToTasks=rt.groupPatternsByBaseDirectory=rt.getNegativePatternsAsPositive=rt.getPositivePatterns=rt.convertPatternsToTasks=rt.generate=void 0;var Yt=Kt();function fC(e,r){let t=t0(e),n=r0(e,r.ignore),i=t.filter(o=>Yt.pattern.isStaticPattern(o,r)),c=t.filter(o=>Yt.pattern.isDynamicPattern(o,r)),a=Ra(i,n,!1),s=Ra(c,n,!0);return a.concat(s)}rt.generate=fC;function Ra(e,r,t){let n=[],i=Yt.pattern.getPatternsOutsideCurrentDirectory(e),c=Yt.pattern.getPatternsInsideCurrentDirectory(e),a=Oa(i),s=Oa(c);return n.push(...Ta(a,r,t)),"."in s?n.push(Fa(".",c,r,t)):n.push(...Ta(s,r,t)),n}rt.convertPatternsToTasks=Ra;function t0(e){return Yt.pattern.getPositivePatterns(e)}rt.getPositivePatterns=t0;function r0(e,r){return Yt.pattern.getNegativePatterns(e).concat(r).map(Yt.pattern.convertToPositivePattern)}rt.getNegativePatternsAsPositive=r0;function Oa(e){let r={};return e.reduce((t,n)=>{let i=Yt.pattern.getBaseDirectory(n);return i in t?t[i].push(n):t[i]=[n],t},r)}rt.groupPatternsByBaseDirectory=Oa;function Ta(e,r,t){return Object.keys(e).map(n=>Fa(n,e[n],r,t))}rt.convertPatternGroupsToTasks=Ta;function Fa(e,r,t,n){return{dynamic:n,positive:r,negative:t,base:e,patterns:[].concat(r,t.map(Yt.pattern.convertToNegativePattern))}}rt.convertPatternGroupToTask=Fa});var s0=ve(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.removeDuplicateSlashes=an.transform=void 0;var pC=/(?!^)\/{2,}/g;function dC(e){return e.map(r=>i0(r))}an.transform=dC;function i0(e){return e.replace(pC,"/")}an.removeDuplicateSlashes=i0});var a0=ve(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.read=void 0;function mC(e,r,t){r.fs.lstat(e,(n,i)=>{if(n!==null){o0(t,n);return}if(!i.isSymbolicLink()||!r.followSymbolicLink){Pa(t,i);return}r.fs.stat(e,(c,a)=>{if(c!==null){if(r.throwErrorOnBrokenSymbolicLink){o0(t,c);return}Pa(t,i);return}r.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Pa(t,a)})})}os.read=mC;function o0(e,r){e(r)}function Pa(e,r){e(null,r)}});var u0=ve(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.read=void 0;function yC(e,r){let t=r.fs.lstatSync(e);if(!t.isSymbolicLink()||!r.followSymbolicLink)return t;try{let n=r.fs.statSync(e);return r.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!r.throwErrorOnBrokenSymbolicLink)return t;throw n}}as.read=yC});var l0=ve(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.createFileSystemAdapter=ir.FILE_SYSTEM_ADAPTER=void 0;var us=require("fs");ir.FILE_SYSTEM_ADAPTER={lstat:us.lstat,stat:us.stat,lstatSync:us.lstatSync,statSync:us.statSync};function gC(e){return e===void 0?ir.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ir.FILE_SYSTEM_ADAPTER),e)}ir.createFileSystemAdapter=gC});var c0=ve(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var bC=l0(),Ba=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=bC.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,t){return r!=null?r:t}};La.default=Ba});var kr=ve(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.statSync=sr.stat=sr.Settings=void 0;var h0=a0(),vC=u0(),Ia=c0();sr.Settings=Ia.default;function _C(e,r,t){if(typeof r=="function"){h0.read(e,Ma(),r);return}h0.read(e,Ma(r),t)}sr.stat=_C;function wC(e,r){let t=Ma(r);return vC.read(e,t)}sr.statSync=wC;function Ma(e={}){return e instanceof Ia.default?e:new Ia.default(e)}});var d0=ve((hj,p0)=>{var f0;p0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(f0||(f0=Promise.resolve())).then(e).catch(r=>setTimeout(()=>{throw r},0))});var y0=ve((fj,m0)=>{m0.exports=SC;var EC=d0();function SC(e,r){let t,n,i,c=!0;Array.isArray(e)?(t=[],n=e.length):(i=Object.keys(e),t={},n=i.length);function a(o){function f(){r&&r(o,t),r=null}c?EC(f):f()}function s(o,f,l){t[o]=l,(--n===0||f)&&a(f)}n?i?i.forEach(function(o){e[o](function(f,l){s(o,f,l)})}):e.forEach(function(o,f){o(function(l,h){s(f,l,h)})}):a(null),c=!1}});var Na=ve(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ls=process.versions.node.split(".");if(ls[0]===void 0||ls[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var g0=Number.parseInt(ls[0],10),AC=Number.parseInt(ls[1],10),b0=10,xC=10,CC=g0>b0,kC=g0===b0&&AC>=xC;cs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=CC||kC});var v0=ve(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.createDirentFromStats=void 0;var ja=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function DC(e,r){return new ja(e,r)}hs.createDirentFromStats=DC});var $a=ve(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.fs=void 0;var RC=v0();fs.fs=RC});var Ha=ve(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.joinPathSegments=void 0;function OC(e,r,t){return e.endsWith(t)?e+r:e+t+r}ps.joinPathSegments=OC});var x0=ve(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.readdir=or.readdirWithFileTypes=or.read=void 0;var TC=kr(),_0=y0(),FC=Na(),w0=$a(),E0=Ha();function PC(e,r,t){if(!r.stats&&FC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){S0(e,r,t);return}A0(e,r,t)}or.read=PC;function S0(e,r,t){r.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){ds(t,n);return}let c=i.map(s=>({dirent:s,name:s.name,path:E0.joinPathSegments(e,s.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){qa(t,c);return}let a=c.map(s=>BC(s,r));_0(a,(s,o)=>{if(s!==null){ds(t,s);return}qa(t,o)})})}or.readdirWithFileTypes=S0;function BC(e,r){return t=>{if(!e.dirent.isSymbolicLink()){t(null,e);return}r.fs.stat(e.path,(n,i)=>{if(n!==null){if(r.throwErrorOnBrokenSymbolicLink){t(n);return}t(null,e);return}e.dirent=w0.fs.createDirentFromStats(e.name,i),t(null,e)})}}function A0(e,r,t){r.fs.readdir(e,(n,i)=>{if(n!==null){ds(t,n);return}let c=i.map(a=>{let s=E0.joinPathSegments(e,a,r.pathSegmentSeparator);return o=>{TC.stat(s,r.fsStatSettings,(f,l)=>{if(f!==null){o(f);return}let h={name:a,path:s,dirent:w0.fs.createDirentFromStats(a,l)};r.stats&&(h.stats=l),o(null,h)})}});_0(c,(a,s)=>{if(a!==null){ds(t,a);return}qa(t,s)})})}or.readdir=A0;function ds(e,r){e(r)}function qa(e,r){e(null,r)}});var O0=ve(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.readdir=ar.readdirWithFileTypes=ar.read=void 0;var LC=kr(),IC=Na(),C0=$a(),k0=Ha();function MC(e,r){return!r.stats&&IC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?D0(e,r):R0(e,r)}ar.read=MC;function D0(e,r){return r.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:k0.joinPathSegments(e,n.name,r.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let c=r.fs.statSync(i.path);i.dirent=C0.fs.createDirentFromStats(i.name,c)}catch(c){if(r.throwErrorOnBrokenSymbolicLink)throw c}return i})}ar.readdirWithFileTypes=D0;function R0(e,r){return r.fs.readdirSync(e).map(n=>{let i=k0.joinPathSegments(e,n,r.pathSegmentSeparator),c=LC.statSync(i,r.fsStatSettings),a={name:n,path:i,dirent:C0.fs.createDirentFromStats(n,c)};return r.stats&&(a.stats=c),a})}ar.readdir=R0});var T0=ve(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.createFileSystemAdapter=ur.FILE_SYSTEM_ADAPTER=void 0;var un=require("fs");ur.FILE_SYSTEM_ADAPTER={lstat:un.lstat,stat:un.stat,lstatSync:un.lstatSync,statSync:un.statSync,readdir:un.readdir,readdirSync:un.readdirSync};function NC(e){return e===void 0?ur.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ur.FILE_SYSTEM_ADAPTER),e)}ur.createFileSystemAdapter=NC});var F0=ve(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var jC=require("path"),$C=kr(),HC=T0(),Ga=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=HC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,jC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $C.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};Ua.default=Ga});var ms=ve(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.Settings=lr.scandirSync=lr.scandir=void 0;var P0=x0(),qC=O0(),Wa=F0();lr.Settings=Wa.default;function GC(e,r,t){if(typeof r=="function"){P0.read(e,za(),r);return}P0.read(e,za(r),t)}lr.scandir=GC;function UC(e,r){let t=za(r);return qC.read(e,t)}lr.scandirSync=UC;function za(e={}){return e instanceof Wa.default?e:new Wa.default(e)}});var L0=ve((Ej,B0)=>{"use strict";function WC(e){var r=new e,t=r;function n(){var c=r;return c.next?r=c.next:(r=new e,t=r),c.next=null,c}function i(c){t.next=c,t=c}return{get:n,release:i}}B0.exports=WC});var M0=ve((Sj,Va)=>{"use strict";var zC=L0();function I0(e,r,t){if(typeof e=="function"&&(t=r,r=e,e=null),t<1)throw new Error("fastqueue concurrency must be greater than 1");var n=zC(VC),i=null,c=null,a=0,s=null,o={push:y,drain:At,saturated:At,pause:l,paused:!1,concurrency:t,running:f,resume:d,idle:p,length:h,getQueue:u,unshift:b,empty:At,kill:g,killAndDrain:S,error:E};return o;function f(){return a}function l(){o.paused=!0}function h(){for(var v=i,m=0;v;)v=v.next,m++;return m}function u(){for(var v=i,m=[];v;)m.push(v.value),v=v.next;return m}function d(){if(o.paused){o.paused=!1;for(var v=0;v<o.concurrency;v++)a++,_()}}function p(){return a===0&&o.length()===0}function y(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||At,w.errorHandler=s,a===o.concurrency||o.paused?c?(c.next=w,c=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function b(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||At,a===o.concurrency||o.paused?i?(w.next=i,i=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function _(v){v&&n.release(v);var m=i;m?o.paused?a--:(c===i&&(c=null),i=m.next,m.next=null,r.call(e,m.value,m.worked),c===null&&o.empty()):--a===0&&o.drain()}function g(){i=null,c=null,o.drain=At}function S(){i=null,c=null,o.drain(),o.drain=At}function E(v){s=v}}function At(){}function VC(){this.value=null,this.callback=At,this.next=null,this.release=At,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,c=e.errorHandler,a=e.value;e.value=null,e.callback=At,e.errorHandler&&c(t,a),i.call(e.context,t,n),e.release(e)}}function KC(e,r,t){typeof e=="function"&&(t=r,r=e,e=null);function n(l,h){r.call(this,l).then(function(u){h(null,u)},h)}var i=I0(e,n,t),c=i.push,a=i.unshift;return i.push=s,i.unshift=o,i.drained=f,i;function s(l){var h=new Promise(function(u,d){c(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(At),h}function o(l){var h=new Promise(function(u,d){a(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(At),h}function f(){var l=i.drain,h=new Promise(function(u){i.drain=function(){l(),u()}});return h}}Va.exports=I0;Va.exports.promise=KC});var ys=ve(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.joinPathSegments=Nt.replacePathSegmentSeparator=Nt.isAppliedFilter=Nt.isFatalError=void 0;function YC(e,r){return e.errorFilter===null?!0:!e.errorFilter(r)}Nt.isFatalError=YC;function XC(e,r){return e===null||e(r)}Nt.isAppliedFilter=XC;function ZC(e,r){return e.split(/[/\\]/).join(r)}Nt.replacePathSegmentSeparator=ZC;function JC(e,r,t){return e===""?r:e.endsWith(t)?e+r:e+t+r}Nt.joinPathSegments=JC});var Xa=ve(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var QC=ys(),Ka=class{constructor(r,t){this._root=r,this._settings=t,this._root=QC.replacePathSegmentSeparator(r,t.pathSegmentSeparator)}};Ya.default=Ka});var Qa=ve(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var ek=require("events"),tk=ms(),rk=M0(),gs=ys(),nk=Xa(),Za=class extends nk.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=tk.scandir,this._emitter=new ek.EventEmitter,this._queue=rk(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(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,t){let n={directory:r,base:t};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){t(n,void 0);return}for(let c of i)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!gs.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,t){if(this._isDestroyed||this._isFatalError)return;let n=r.path;t!==void 0&&(r.path=gs.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),gs.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&gs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};Ja.default=Za});var N0=ve(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var ik=Qa(),eu=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new ik.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(t=>{sk(r,t)}),this._reader.onEntry(t=>{this._storage.push(t)}),this._reader.onEnd(()=>{ok(r,this._storage)}),this._reader.read()}};tu.default=eu;function sk(e,r){e(r)}function ok(e,r){e(null,r)}});var j0=ve(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var ak=require("stream"),uk=Qa(),ru=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new uk.default(this._root,this._settings),this._stream=new ak.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};nu.default=ru});var $0=ve(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var lk=ms(),bs=ys(),ck=Xa(),iu=class extends ck.default{constructor(){super(...arguments),this._scandir=lk.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,t){this._queue.add({directory:r,base:t})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,t){try{let n=this._scandir(r,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,t)}catch(n){this._handleError(n)}}_handleError(r){if(bs.isFatalError(this._settings,r))throw r}_handleEntry(r,t){let n=r.path;t!==void 0&&(r.path=bs.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),bs.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&bs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};su.default=iu});var H0=ve(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var hk=$0(),ou=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new hk.default(this._root,this._settings)}read(){return this._reader.read()}};au.default=ou});var q0=ve(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var fk=require("path"),pk=ms(),uu=class{constructor(r={}){this._options=r,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,fk.sep),this.fsScandirSettings=new pk.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};lu.default=uu});var _s=ve(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Settings=jt.walkStream=jt.walkSync=jt.walk=void 0;var G0=N0(),dk=j0(),mk=H0(),cu=q0();jt.Settings=cu.default;function yk(e,r,t){if(typeof r=="function"){new G0.default(e,vs()).read(r);return}new G0.default(e,vs(r)).read(t)}jt.walk=yk;function gk(e,r){let t=vs(r);return new mk.default(e,t).read()}jt.walkSync=gk;function bk(e,r){let t=vs(r);return new dk.default(e,t).read()}jt.walkStream=bk;function vs(e={}){return e instanceof cu.default?e:new cu.default(e)}});var ws=ve(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var vk=require("path"),_k=kr(),U0=Kt(),hu=class{constructor(r){this._settings=r,this._fsStatSettings=new _k.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return vk.resolve(this._settings.cwd,r)}_makeEntry(r,t){let n={name:t,path:t,dirent:U0.fs.createDirentFromStats(t,r)};return this._settings.stats&&(n.stats=r),n}_isFatalError(r){return!U0.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};fu.default=hu});var mu=ve(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var wk=require("stream"),Ek=kr(),Sk=_s(),Ak=ws(),pu=class extends Ak.default{constructor(){super(...arguments),this._walkStream=Sk.walkStream,this._stat=Ek.stat}dynamic(r,t){return this._walkStream(r,t)}static(r,t){let n=r.map(this._getFullEntryPath,this),i=new wk.PassThrough({objectMode:!0});i._write=(c,a,s)=>this._getEntry(n[c],r[c],t).then(o=>{o!==null&&t.entryFilter(o)&&i.push(o),c===n.length-1&&i.end(),s()}).catch(s);for(let c=0;c<n.length;c++)i.write(c);return i}_getEntry(r,t,n){return this._getStat(r).then(i=>this._makeEntry(i,t)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(r){return new Promise((t,n)=>{this._stat(r,this._fsStatSettings,(i,c)=>i===null?t(c):n(i))})}};du.default=pu});var W0=ve(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var xk=_s(),Ck=ws(),kk=mu(),yu=class extends Ck.default{constructor(){super(...arguments),this._walkAsync=xk.walk,this._readerStream=new kk.default(this._settings)}dynamic(r,t){return new Promise((n,i)=>{this._walkAsync(r,t,(c,a)=>{c===null?n(a):i(c)})})}async static(r,t){let n=[],i=this._readerStream.static(r,t);return new Promise((c,a)=>{i.once("error",a),i.on("data",s=>n.push(s)),i.once("end",()=>c(n))})}};gu.default=yu});var z0=ve(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var ln=Kt(),bu=class{constructor(r,t,n){this._patterns=r,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let r=ln.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let t of r){let n=this._getPatternSegments(t),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:t,segments:n,sections:i})}}_getPatternSegments(r){return ln.pattern.getPatternParts(r,this._micromatchOptions).map(n=>ln.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ln.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(r){return ln.array.splitWhen(r,t=>t.dynamic&&ln.pattern.hasGlobStar(t.pattern))}};vu.default=bu});var V0=ve(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Dk=z0(),_u=class extends Dk.default{match(r){let t=r.split("/"),n=t.length,i=this._storage.filter(c=>!c.complete||c.segments.length>n);for(let c of i){let a=c.sections[0];if(!c.complete&&n>a.length||t.every((o,f)=>{let l=c.segments[f];return!!(l.dynamic&&l.patternRe.test(o)||!l.dynamic&&l.pattern===o)}))return!0}return!1}};wu.default=_u});var K0=ve(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var Es=Kt(),Rk=V0(),Eu=class{constructor(r,t){this._settings=r,this._micromatchOptions=t}getFilter(r,t,n){let i=this._getMatcher(t),c=this._getNegativePatternsRe(n);return a=>this._filter(r,a,i,c)}_getMatcher(r){return new Rk.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let t=r.filter(Es.pattern.isAffectDepthOfReadingPattern);return Es.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(r,t,n,i){if(this._isSkippedByDeep(r,t.path)||this._isSkippedSymbolicLink(t))return!1;let c=Es.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(c,n)?!1:this._isSkippedByNegativePatterns(c,i)}_isSkippedByDeep(r,t){return this._settings.deep===1/0?!1:this._getEntryLevel(r,t)>=this._settings.deep}_getEntryLevel(r,t){let n=t.split("/").length;if(r==="")return n;let i=r.split("/").length;return n-i}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,t){return!this._settings.baseNameMatch&&!t.match(r)}_isSkippedByNegativePatterns(r,t){return!Es.pattern.matchAny(r,t)}};Su.default=Eu});var Y0=ve(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var Dr=Kt(),Au=class{constructor(r,t){this._settings=r,this._micromatchOptions=t,this.index=new Map}getFilter(r,t){let n=Dr.pattern.convertPatternsToRe(r,this._micromatchOptions),i=Dr.pattern.convertPatternsToRe(t,this._micromatchOptions);return c=>this._filter(c,n,i)}_filter(r,t,n){if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(r.path,n))return!1;let i=this._settings.baseNameMatch?r.name:r.path,c=r.dirent.isDirectory(),a=this._isMatchToPatterns(i,t,c)&&!this._isMatchToPatterns(r.path,n,c);return this._settings.unique&&a&&this._createIndexRecord(r),a}_isDuplicateEntry(r){return this.index.has(r.path)}_createIndexRecord(r){this.index.set(r.path,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,t){if(!this._settings.absolute)return!1;let n=Dr.path.makeAbsolute(this._settings.cwd,r);return Dr.pattern.matchAny(n,t)}_isMatchToPatterns(r,t,n){let i=Dr.path.removeLeadingDotSegment(r),c=Dr.pattern.matchAny(i,t);return!c&&n?Dr.pattern.matchAny(i+"/",t):c}};xu.default=Au});var X0=ve(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Ok=Kt(),Cu=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return Ok.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};ku.default=Cu});var J0=ve(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var Z0=Kt(),Du=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let t=r.path;return this._settings.absolute&&(t=Z0.path.makeAbsolute(this._settings.cwd,t),t=Z0.path.unixify(t)),this._settings.markDirectories&&r.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:t}):t}};Ru.default=Du});var Ss=ve(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var Tk=require("path"),Fk=K0(),Pk=Y0(),Bk=X0(),Lk=J0(),Ou=class{constructor(r){this._settings=r,this.errorFilter=new Bk.default(this._settings),this.entryFilter=new Pk.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Fk.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Lk.default(this._settings)}_getRootDirectory(r){return Tk.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let t=r.base==="."?"":r.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.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}}};Tu.default=Ou});var Q0=ve(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Ik=W0(),Mk=Ss(),Fu=class extends Mk.default{constructor(){super(...arguments),this._reader=new Ik.default(this._settings)}async read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return(await this.api(t,r,n)).map(c=>n.transform(c))}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Pu.default=Fu});var em=ve(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Nk=require("stream"),jk=mu(),$k=Ss(),Bu=class extends $k.default{constructor(){super(...arguments),this._reader=new jk.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r),i=this.api(t,r,n),c=new Nk.Readable({objectMode:!0,read:()=>{}});return i.once("error",a=>c.emit("error",a)).on("data",a=>c.emit("data",n.transform(a))).once("end",()=>c.emit("end")),c.once("close",()=>i.destroy()),c}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Lu.default=Bu});var tm=ve(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Hk=kr(),qk=_s(),Gk=ws(),Iu=class extends Gk.default{constructor(){super(...arguments),this._walkSync=qk.walkSync,this._statSync=Hk.statSync}dynamic(r,t){return this._walkSync(r,t)}static(r,t){let n=[];for(let i of r){let c=this._getFullEntryPath(i),a=this._getEntry(c,i,t);a===null||!t.entryFilter(a)||n.push(a)}return n}_getEntry(r,t,n){try{let i=this._getStat(r);return this._makeEntry(i,t)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};Mu.default=Iu});var rm=ve(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Uk=tm(),Wk=Ss(),Nu=class extends Wk.default{constructor(){super(...arguments),this._reader=new Uk.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return this.api(t,r,n).map(n.transform)}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};ju.default=Nu});var nm=ve(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var cn=require("fs"),zk=require("os"),Vk=Math.max(zk.cpus().length,1);hn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:cn.lstat,lstatSync:cn.lstatSync,stat:cn.stat,statSync:cn.statSync,readdir:cn.readdir,readdirSync:cn.readdirSync};var $u=class{constructor(r={}){this._options=r,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,Vk),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)}_getValue(r,t){return r===void 0?t:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},hn.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};hn.default=$u});var am=ve((Kj,om)=>{"use strict";var im=n0(),sm=s0(),Kk=Q0(),Yk=em(),Xk=rm(),Hu=nm(),Rr=Kt();async function qu(e,r){fn(e);let t=Gu(e,Kk.default,r),n=await Promise.all(t);return Rr.array.flatten(n)}(function(e){function r(a,s){fn(a);let o=Gu(a,Xk.default,s);return Rr.array.flatten(o)}e.sync=r;function t(a,s){fn(a);let o=Gu(a,Yk.default,s);return Rr.stream.merge(o)}e.stream=t;function n(a,s){fn(a);let o=sm.transform([].concat(a)),f=new Hu.default(s);return im.generate(o,f)}e.generateTasks=n;function i(a,s){fn(a);let o=new Hu.default(s);return Rr.pattern.isDynamicPattern(a,o)}e.isDynamicPattern=i;function c(a){return fn(a),Rr.path.escape(a)}e.escapePath=c})(qu||(qu={}));function Gu(e,r,t){let n=sm.transform([].concat(e)),i=new Hu.default(t),c=im.generate(n,i),a=new r(i);return c.map(a.read,a)}function fn(e){if(![].concat(e).every(n=>Rr.string.isString(n)&&!Rr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}om.exports=qu});var ky=Ie(require("chalk"));var Ly=Object.create,so=Object.defineProperty,Iy=Object.getOwnPropertyDescriptor,My=Object.getOwnPropertyNames,Ny=Object.getPrototypeOf,jy=Object.prototype.hasOwnProperty,le=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),$y=(e,r)=>()=>(e&&(r=e(e=0)),r),te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Xl=(e,r)=>{for(var t in r)so(e,t,{get:r[t],enumerable:!0})},Hy=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of My(r))!jy.call(e,i)&&i!==t&&so(e,i,{get:()=>r[i],enumerable:!(n=Iy(r,i))||n.enumerable});return e},$e=(e,r,t)=>(t=e!=null?Ly(Ny(e)):{},Hy(r||!e||!e.__esModule?so(t,"default",{value:e,enumerable:!0}):t,e)),Y=$y(()=>{});var qy=te((e,r)=>{"use strict";Y();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),vi=te((e,r)=>{"use strict";Y();var t=qy(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),Gy=te((e,r)=>{Y(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),_i=te((e,r)=>{Y();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=le("assert"),c=Gy(),a=/^win/i.test(t.platform),s=le("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_});var Ql=Ie(require("os"),1),Uy=te((e,r)=>{Y(),r.exports=c,c.sync=a;var t=le("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),Wy=te((e,r)=>{Y(),r.exports=n,n.sync=i;var t=le("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),zy=te((e,r)=>{Y();var t=le("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=Uy():n=Wy(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),Vy=te((e,r)=>{Y();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=le("path"),i=t?";":":",c=zy(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,D)=>{if(!x&&D)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),Zl=te((e,r)=>{"use strict";Y();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),Ky=te((e,r)=>{"use strict";Y();var t=le("path"),n=Vy(),i=Zl();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),Yy=te((e,r)=>{"use strict";Y();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),Xy=te((e,r)=>{"use strict";Y(),r.exports=/^#!(.*)/}),Zy=te((e,r)=>{"use strict";Y();var t=Xy();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),Jy=te((e,r)=>{"use strict";Y();var t=le("fs"),n=Zy();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),Qy=te((e,r)=>{"use strict";Y();var t=le("path"),n=Ky(),i=Yy(),c=Jy(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),eg=te((e,r)=>{"use strict";Y();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),tg=te((e,r)=>{"use strict";Y();var t=le("child_process"),n=Qy(),i=eg();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),rg=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n=typeof t=="string"?`
6
+ `);return b?(n.originalMessage=n.message,n.message=g):n=new Error(g),n.shortMessage=_,n.command=a,n.escapedCommand=s,n.exitCode=c,n.signal=i,n.signalDescription=u,n.stdout=e,n.stderr=r,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!o,n.isCanceled=f,n.killed=l&&!o,n};Hf.exports=KE});var Uf=ve((bN,ta)=>{"use strict";var qi=["stdin","stdout","stderr"],YE=e=>qi.some(r=>e[r]!==void 0),Gf=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return qi.map(n=>e[n]);if(YE(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${qi.map(n=>`\`${n}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let t=Math.max(r.length,qi.length);return Array.from({length:t},(n,i)=>r[i])};ta.exports=Gf;ta.exports.node=e=>{let r=Gf(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var Wf=ve((vN,Gi)=>{Gi.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Gi.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Gi.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Xf=ve((_N,en)=>{var He=global.process,Sr=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Sr(He)?(zf=require("assert"),Jr=Wf(),Vf=/^win/i.test(He.platform),Wn=require("events"),typeof Wn!="function"&&(Wn=Wn.EventEmitter),He.__signal_exit_emitter__?Xe=He.__signal_exit_emitter__:(Xe=He.__signal_exit_emitter__=new Wn,Xe.count=0,Xe.emitted={}),Xe.infinite||(Xe.setMaxListeners(1/0),Xe.infinite=!0),en.exports=function(e,r){if(!Sr(global.process))return function(){};zf.equal(typeof e,"function","a callback must be provided for exit handler"),Qr===!1&&ra();var t="exit";r&&r.alwaysLast&&(t="afterexit");var n=function(){Xe.removeListener(t,e),Xe.listeners("exit").length===0&&Xe.listeners("afterexit").length===0&&Ui()};return Xe.on(t,e),n},Ui=function(){!Qr||!Sr(global.process)||(Qr=!1,Jr.forEach(function(r){try{He.removeListener(r,Wi[r])}catch{}}),He.emit=zi,He.reallyExit=na,Xe.count-=1)},en.exports.unload=Ui,Ar=function(r,t,n){Xe.emitted[r]||(Xe.emitted[r]=!0,Xe.emit(r,t,n))},Wi={},Jr.forEach(function(e){Wi[e]=function(){if(Sr(global.process)){var t=He.listeners(e);t.length===Xe.count&&(Ui(),Ar("exit",null,e),Ar("afterexit",null,e),Vf&&e==="SIGHUP"&&(e="SIGINT"),He.kill(He.pid,e))}}}),en.exports.signals=function(){return Jr},Qr=!1,ra=function(){Qr||!Sr(global.process)||(Qr=!0,Xe.count+=1,Jr=Jr.filter(function(r){try{return He.on(r,Wi[r]),!0}catch{return!1}}),He.emit=Yf,He.reallyExit=Kf)},en.exports.load=ra,na=He.reallyExit,Kf=function(r){Sr(global.process)&&(He.exitCode=r||0,Ar("exit",He.exitCode,null),Ar("afterexit",He.exitCode,null),na.call(He,He.exitCode))},zi=He.emit,Yf=function(r,t){if(r==="exit"&&Sr(global.process)){t!==void 0&&(He.exitCode=t);var n=zi.apply(this,arguments);return Ar("exit",He.exitCode,null),Ar("afterexit",He.exitCode,null),n}else return zi.apply(this,arguments)}):en.exports=function(){return function(){}};var zf,Jr,Vf,Wn,Xe,Ui,Ar,Wi,Qr,ra,na,Kf,zi,Yf});var Jf=ve((wN,Zf)=>{"use strict";var XE=require("os"),ZE=Xf(),JE=1e3*5,QE=(e,r="SIGTERM",t={})=>{let n=e(r);return eS(e,r,t,n),n},eS=(e,r,t,n)=>{if(!tS(r,t,n))return;let i=nS(t),c=setTimeout(()=>{e("SIGKILL")},i);c.unref&&c.unref()},tS=(e,{forceKillAfterTimeout:r},t)=>rS(e)&&r!==!1&&t,rS=e=>e===XE.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",nS=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return JE;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},iS=(e,r)=>{e.kill()&&(r.isCanceled=!0)},sS=(e,r,t)=>{e.kill(r),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},oS=(e,{timeout:r,killSignal:t="SIGTERM"},n)=>{if(r===0||r===void 0)return n;let i,c=new Promise((s,o)=>{i=setTimeout(()=>{sS(e,t,o)},r)}),a=n.finally(()=>{clearTimeout(i)});return Promise.race([c,a])},aS=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},uS=async(e,{cleanup:r,detached:t},n)=>{if(!r||t)return n;let i=ZE(()=>{e.kill()});return n.finally(()=>{i()})};Zf.exports={spawnedKill:QE,spawnedCancel:iS,setupTimeout:oS,validateTimeout:aS,setExitHandler:uS}});var ep=ve((EN,Qf)=>{"use strict";var Bt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Bt.writable=e=>Bt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Bt.readable=e=>Bt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Bt.duplex=e=>Bt.writable(e)&&Bt.readable(e);Bt.transform=e=>Bt.duplex(e)&&typeof e._transform=="function";Qf.exports=Bt});var rp=ve((SN,tp)=>{"use strict";var{PassThrough:lS}=require("stream");tp.exports=e=>{e={...e};let{array:r}=e,{encoding:t}=e,n=t==="buffer",i=!1;r?i=!(t||n):t=t||"utf8",n&&(t=null);let c=new lS({objectMode:i});t&&c.setEncoding(t);let a=0,s=[];return c.on("data",o=>{s.push(o),i?a=s.length:a+=o.length}),c.getBufferedValue=()=>r?s:n?Buffer.concat(s,a):s.join(""),c.getBufferedLength=()=>a,c}});var np=ve((AN,zn)=>{"use strict";var{constants:cS}=require("buffer"),hS=require("stream"),{promisify:fS}=require("util"),pS=rp(),dS=fS(hS.pipeline),Vi=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function ia(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:t}=r,n=pS(r);return await new Promise((i,c)=>{let a=s=>{s&&n.getBufferedLength()<=cS.MAX_LENGTH&&(s.bufferedData=n.getBufferedValue()),c(s)};(async()=>{try{await dS(e,n),i()}catch(s){a(s)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new Vi)})}),n.getBufferedValue()}zn.exports=ia;zn.exports.buffer=(e,r)=>ia(e,{...r,encoding:"buffer"});zn.exports.array=(e,r)=>ia(e,{...r,array:!0});zn.exports.MaxBufferError=Vi});var sp=ve((xN,ip)=>{"use strict";var{PassThrough:mS}=require("stream");ip.exports=function(){var e=[],r=new mS({objectMode:!0});return r.setMaxListeners(0),r.add=t,r.isEmpty=n,r.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(t),r;function t(c){return Array.isArray(c)?(c.forEach(t),this):(e.push(c),c.once("end",i.bind(null,c)),c.once("error",r.emit.bind(r,"error")),c.pipe(r,{end:!1}),this)}function n(){return e.length==0}function i(c){e=e.filter(function(a){return a!==c}),!e.length&&r.readable&&r.end()}}});var lp=ve((CN,up)=>{"use strict";var ap=ep(),op=np(),yS=sp(),gS=(e,r)=>{r===void 0||e.stdin===void 0||(ap(r)?r.pipe(e.stdin):e.stdin.end(r))},bS=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let t=yS();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t},sa=async(e,r)=>{if(e){e.destroy();try{return await r}catch(t){return t.bufferedData}}},oa=(e,{encoding:r,buffer:t,maxBuffer:n})=>{if(!(!e||!t))return r?op(e,{encoding:r,maxBuffer:n}):op.buffer(e,{maxBuffer:n})},vS=async({stdout:e,stderr:r,all:t},{encoding:n,buffer:i,maxBuffer:c},a)=>{let s=oa(e,{encoding:n,buffer:i,maxBuffer:c}),o=oa(r,{encoding:n,buffer:i,maxBuffer:c}),f=oa(t,{encoding:n,buffer:i,maxBuffer:c*2});try{return await Promise.all([a,s,o,f])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},sa(e,s),sa(r,o),sa(t,f)])}},_S=({input:e})=>{if(ap(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};up.exports={handleInput:gS,makeAllStream:bS,getSpawnedResult:vS,validateInputSync:_S}});var hp=ve((kN,cp)=>{"use strict";var wS=(async()=>{})().constructor.prototype,ES=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(wS,e)]),SS=(e,r)=>{for(let[t,n]of ES){let i=typeof r=="function"?(...c)=>Reflect.apply(n.value,r(),c):n.value.bind(r);Reflect.defineProperty(e,t,{...n,value:i})}return e},AS=e=>new Promise((r,t)=>{e.on("exit",(n,i)=>{r({exitCode:n,signal:i})}),e.on("error",n=>{t(n)}),e.stdin&&e.stdin.on("error",n=>{t(n)})});cp.exports={mergePromise:SS,getSpawnedPromise:AS}});var dp=ve((DN,pp)=>{"use strict";var fp=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],xS=/^[\w.-]+$/,CS=/"/g,kS=e=>typeof e!="string"||xS.test(e)?e:`"${e.replace(CS,'\\"')}"`,DS=(e,r)=>fp(e,r).join(" "),RS=(e,r)=>fp(e,r).map(t=>kS(t)).join(" "),OS=/ +/g,TS=e=>{let r=[];for(let t of e.trim().split(OS)){let n=r[r.length-1];n&&n.endsWith("\\")?r[r.length-1]=`${n.slice(0,-1)} ${t}`:r.push(t)}return r};pp.exports={joinCommand:DS,getEscapedCommand:RS,parseCommand:TS}});var ua=ve((RN,tn)=>{"use strict";var FS=require("path"),aa=require("child_process"),PS=xf(),BS=kf(),LS=Of(),IS=Bf(),Ki=qf(),yp=Uf(),{spawnedKill:MS,spawnedCancel:NS,setupTimeout:jS,validateTimeout:$S,setExitHandler:HS}=Jf(),{handleInput:qS,getSpawnedResult:GS,makeAllStream:US,validateInputSync:WS}=lp(),{mergePromise:mp,getSpawnedPromise:zS}=hp(),{joinCommand:gp,parseCommand:bp,getEscapedCommand:vp}=dp(),VS=1e3*1e3*100,KS=({env:e,extendEnv:r,preferLocal:t,localDir:n,execPath:i})=>{let c=r?{...process.env,...e}:e;return t?LS.env({env:c,cwd:n,execPath:i}):c},_p=(e,r,t={})=>{let n=PS._parse(e,r,t);return e=n.command,r=n.args,t=n.options,t={maxBuffer:VS,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=KS(t),t.stdio=yp(t),process.platform==="win32"&&FS.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:t,parsed:n}},Vn=(e,r,t)=>typeof r!="string"&&!Buffer.isBuffer(r)?t===void 0?void 0:"":e.stripFinalNewline?BS(r):r,Yi=(e,r,t)=>{let n=_p(e,r,t),i=gp(e,r),c=vp(e,r);$S(n.options);let a;try{a=aa.spawn(n.file,n.args,n.options)}catch(d){let p=new aa.ChildProcess,y=Promise.reject(Ki({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return mp(p,y)}let s=zS(a),o=jS(a,n.options,s),f=HS(a,n.options,o),l={isCanceled:!1};a.kill=MS.bind(null,a.kill.bind(a)),a.cancel=NS.bind(null,a,l);let u=IS(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:b},_,g,S]=await GS(a,n.options,f),E=Vn(n.options,_),v=Vn(n.options,g),m=Vn(n.options,S);if(d||p!==0||y!==null){let w=Ki({error:d,exitCode:p,signal:y,stdout:E,stderr:v,all:m,command:i,escapedCommand:c,parsed:n,timedOut:b,isCanceled:l.isCanceled,killed:a.killed});if(!n.options.reject)return w;throw w}return{command:i,escapedCommand:c,exitCode:0,stdout:E,stderr:v,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return qS(a,n.options.input),a.all=US(a,n.options),mp(a,u)};tn.exports=Yi;tn.exports.sync=(e,r,t)=>{let n=_p(e,r,t),i=gp(e,r),c=vp(e,r);WS(n.options);let a;try{a=aa.spawnSync(n.file,n.args,n.options)}catch(f){throw Ki({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let s=Vn(n.options,a.stdout,a.error),o=Vn(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let f=Ki({stdout:s,stderr:o,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:c,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:c,exitCode:0,stdout:s,stderr:o,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};tn.exports.command=(e,r)=>{let[t,...n]=bp(e);return Yi(t,n,r)};tn.exports.commandSync=(e,r)=>{let[t,...n]=bp(e);return Yi.sync(t,n,r)};tn.exports.node=(e,r,t={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(t=r,r=[]);let n=yp.node(t),i=process.execArgv.filter(s=>!s.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:a=i}=t;return Yi(c,[...a,e,...Array.isArray(r)?r:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var wp=ve(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.splitWhen=rn.flatten=void 0;function YS(e){return e.reduce((r,t)=>[].concat(r,t),[])}rn.flatten=YS;function XS(e,r){let t=[[]],n=0;for(let i of e)r(i)?(n++,t[n]=[]):t[n].push(i);return t}rn.splitWhen=XS});var Ep=ve(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.isEnoentCodeError=void 0;function ZS(e){return e.code==="ENOENT"}Xi.isEnoentCodeError=ZS});var Sp=ve(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.createDirentFromStats=void 0;var la=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function JS(e,r){return new la(e,r)}Zi.createDirentFromStats=JS});var Ap=ve(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.removeLeadingDotSegment=Lt.escape=Lt.makeAbsolute=Lt.unixify=void 0;var QS=require("path"),eA=2,tA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function rA(e){return e.replace(/\\/g,"/")}Lt.unixify=rA;function nA(e,r){return QS.resolve(e,r)}Lt.makeAbsolute=nA;function iA(e){return e.replace(tA,"\\$2")}Lt.escape=iA;function sA(e){if(e.charAt(0)==="."){let r=e.charAt(1);if(r==="/"||r==="\\")return e.slice(eA)}return e}Lt.removeLeadingDotSegment=sA});var Cp=ve((BN,xp)=>{xp.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(t[2])return!0;r=r.slice(t.index+t[0].length)}return!1}});var Rp=ve((LN,Dp)=>{var oA=Cp(),kp={"{":"}","(":")","[":"]"},aA=function(e){if(e[0]==="!")return!0;for(var r=0,t=-2,n=-2,i=-2,c=-2,a=-2;r<e.length;){if(e[r]==="*"||e[r+1]==="?"&&/[\].+)]/.test(e[r])||n!==-1&&e[r]==="["&&e[r+1]!=="]"&&(n<r&&(n=e.indexOf("]",r)),n>r&&(a===-1||a>n||(a=e.indexOf("\\",r),a===-1||a>n)))||i!==-1&&e[r]==="{"&&e[r+1]!=="}"&&(i=e.indexOf("}",r),i>r&&(a=e.indexOf("\\",r),a===-1||a>i))||c!==-1&&e[r]==="("&&e[r+1]==="?"&&/[:!=]/.test(e[r+2])&&e[r+3]!==")"&&(c=e.indexOf(")",r),c>r&&(a=e.indexOf("\\",r),a===-1||a>c))||t!==-1&&e[r]==="("&&e[r+1]!=="|"&&(t<r&&(t=e.indexOf("|",r)),t!==-1&&e[t+1]!==")"&&(c=e.indexOf(")",t),c>t&&(a=e.indexOf("\\",t),a===-1||a>c))))return!0;if(e[r]==="\\"){var s=e[r+1];r+=2;var o=kp[s];if(o){var f=e.indexOf(o,r);f!==-1&&(r=f+1)}if(e[r]==="!")return!0}else r++}return!1},uA=function(e){if(e[0]==="!")return!0;for(var r=0;r<e.length;){if(/[*?{}()[\]]/.test(e[r]))return!0;if(e[r]==="\\"){var t=e[r+1];r+=2;var n=kp[t];if(n){var i=e.indexOf(n,r);i!==-1&&(r=i+1)}if(e[r]==="!")return!0}else r++}return!1};Dp.exports=function(r,t){if(typeof r!="string"||r==="")return!1;if(oA(r))return!0;var n=aA;return t&&t.strict===!1&&(n=uA),n(r)}});var Tp=ve((IN,Op)=>{"use strict";var lA=Rp(),cA=require("path").posix.dirname,hA=require("os").platform()==="win32",ca="/",fA=/\\/g,pA=/[\{\[].*[\}\]]$/,dA=/(^|[^\\])([\{\[]|\([^\)]+$)/,mA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Op.exports=function(r,t){var n=Object.assign({flipBackslashes:!0},t);n.flipBackslashes&&hA&&r.indexOf(ca)<0&&(r=r.replace(fA,ca)),pA.test(r)&&(r+=ca),r+="a";do r=cA(r);while(lA(r)||dA.test(r));return r.replace(mA,"$1")}});var Ji=ve(St=>{"use strict";St.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;St.find=(e,r)=>e.nodes.find(t=>t.type===r);St.exceedsLimit=(e,r,t=1,n)=>n===!1||!St.isInteger(e)||!St.isInteger(r)?!1:(Number(r)-Number(e))/Number(t)>=n;St.escapeNode=(e,r=0,t)=>{let n=e.nodes[r];n&&(t&&n.type===t||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};St.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);St.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;St.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;St.reduce=e=>e.reduce((r,t)=>(t.type==="text"&&r.push(t.value),t.type==="range"&&(t.type="text"),r),[]);St.flatten=(...e)=>{let r=[],t=n=>{for(let i=0;i<n.length;i++){let c=n[i];Array.isArray(c)?t(c,r):c!==void 0&&r.push(c)}return r};return t(e),r}});var Qi=ve((NN,Pp)=>{"use strict";var Fp=Ji();Pp.exports=(e,r={})=>{let t=(n,i={})=>{let c=r.escapeInvalid&&Fp.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s="";if(n.value)return(c||a)&&Fp.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let o of n.nodes)s+=t(o);return s};return t(e)}});var Lp=ve((jN,Bp)=>{"use strict";Bp.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Up=ve(($N,Gp)=>{"use strict";var Ip=Lp(),xr=(e,r,t)=>{if(Ip(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||e===r)return String(e);if(Ip(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...t};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),c=String(n.shorthand),a=String(n.capture),s=String(n.wrap),o=e+":"+r+"="+i+c+a+s;if(xr.cache.hasOwnProperty(o))return xr.cache[o].result;let f=Math.min(e,r),l=Math.max(e,r);if(Math.abs(f-l)===1){let y=e+"|"+r;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=qp(e)||qp(r),u={min:e,max:r,a:f,b:l},d=[],p=[];if(h&&(u.isPadded=h,u.maxLen=String(u.max).length),f<0){let y=l<0?Math.abs(l):1;p=Mp(y,Math.abs(f),u,n),f=u.a=0}return l>=0&&(d=Mp(f,l,u,n)),u.negatives=p,u.positives=d,u.result=yA(p,d,n),n.capture===!0?u.result=`(${u.result})`:n.wrap!==!1&&d.length+p.length>1&&(u.result=`(?:${u.result})`),xr.cache[o]=u,u.result};function yA(e,r,t){let n=ha(e,r,"-",!1,t)||[],i=ha(r,e,"",!1,t)||[],c=ha(e,r,"-?",!0,t)||[];return n.concat(c).concat(i).join("|")}function gA(e,r){let t=1,n=1,i=jp(e,t),c=new Set([r]);for(;e<=i&&i<=r;)c.add(i),t+=1,i=jp(e,t);for(i=$p(r+1,n)-1;e<i&&i<=r;)c.add(i),n+=1,i=$p(r+1,n)-1;return c=[...c],c.sort(_A),c}function bA(e,r,t){if(e===r)return{pattern:e,count:[],digits:0};let n=vA(e,r),i=n.length,c="",a=0;for(let s=0;s<i;s++){let[o,f]=n[s];o===f?c+=o:o!=="0"||f!=="9"?c+=wA(o,f,t):a++}return a&&(c+=t.shorthand===!0?"\\d":"[0-9]"),{pattern:c,count:[a],digits:i}}function Mp(e,r,t,n){let i=gA(e,r),c=[],a=e,s;for(let o=0;o<i.length;o++){let f=i[o],l=bA(String(a),String(f),n),h="";if(!t.isPadded&&s&&s.pattern===l.pattern){s.count.length>1&&s.count.pop(),s.count.push(l.count[0]),s.string=s.pattern+Hp(s.count),a=f+1;continue}t.isPadded&&(h=EA(f,t,n)),l.string=h+l.pattern+Hp(l.count),c.push(l),a=f+1,s=l}return c}function ha(e,r,t,n,i){let c=[];for(let a of e){let{string:s}=a;!n&&!Np(r,"string",s)&&c.push(t+s),n&&Np(r,"string",s)&&c.push(t+s)}return c}function vA(e,r){let t=[];for(let n=0;n<e.length;n++)t.push([e[n],r[n]]);return t}function _A(e,r){return e>r?1:r>e?-1:0}function Np(e,r,t){return e.some(n=>n[r]===t)}function jp(e,r){return Number(String(e).slice(0,-r)+"9".repeat(r))}function $p(e,r){return e-e%Math.pow(10,r)}function Hp(e){let[r=0,t=""]=e;return t||r>1?`{${r+(t?","+t:"")}}`:""}function wA(e,r,t){return`[${e}${r-e===1?"":"-"}${r}]`}function qp(e){return/^-?(0+)\d/.test(e)}function EA(e,r,t){if(!r.isPadded)return e;let n=Math.abs(r.maxLen-String(e).length),i=t.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}xr.cache={};xr.clearCache=()=>xr.cache={};Gp.exports=xr});var da=ve((HN,Jp)=>{"use strict";var SA=require("util"),Vp=Up(),Wp=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),AA=e=>r=>e===!0?Number(r):String(r),fa=e=>typeof e=="number"||typeof e=="string"&&e!=="",Kn=e=>Number.isInteger(+e),pa=e=>{let r=`${e}`,t=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++t]==="0";);return t>0},xA=(e,r,t)=>typeof e=="string"||typeof r=="string"?!0:t.stringify===!0,CA=(e,r,t)=>{if(r>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?r-1:r,"0")}return t===!1?String(e):e},zp=(e,r)=>{let t=e[0]==="-"?"-":"";for(t&&(e=e.slice(1),r--);e.length<r;)e="0"+e;return t?"-"+e:e},kA=(e,r)=>{e.negatives.sort((a,s)=>a<s?-1:a>s?1:0),e.positives.sort((a,s)=>a<s?-1:a>s?1:0);let t=r.capture?"":"?:",n="",i="",c;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${t}${e.negatives.join("|")})`),n&&i?c=`${n}|${i}`:c=n||i,r.wrap?`(${t}${c})`:c},Kp=(e,r,t,n)=>{if(t)return Vp(e,r,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===r)return i;let c=String.fromCharCode(r);return`[${i}-${c}]`},Yp=(e,r,t)=>{if(Array.isArray(e)){let n=t.wrap===!0,i=t.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Vp(e,r,t)},Xp=(...e)=>new RangeError("Invalid range arguments: "+SA.inspect(...e)),Zp=(e,r,t)=>{if(t.strictRanges===!0)throw Xp([e,r]);return[]},DA=(e,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},RA=(e,r,t=1,n={})=>{let i=Number(e),c=Number(r);if(!Number.isInteger(i)||!Number.isInteger(c)){if(n.strictRanges===!0)throw Xp([e,r]);return[]}i===0&&(i=0),c===0&&(c=0);let a=i>c,s=String(e),o=String(r),f=String(t);t=Math.max(Math.abs(t),1);let l=pa(s)||pa(o)||pa(f),h=l?Math.max(s.length,o.length,f.length):0,u=l===!1&&xA(e,r,n)===!1,d=n.transform||AA(u);if(n.toRegex&&t===1)return Kp(zp(e,h),zp(r,h),!0,n);let p={negatives:[],positives:[]},y=g=>p[g<0?"negatives":"positives"].push(Math.abs(g)),b=[],_=0;for(;a?i>=c:i<=c;)n.toRegex===!0&&t>1?y(i):b.push(CA(d(i,_),h,u)),i=a?i-t:i+t,_++;return n.toRegex===!0?t>1?kA(p,n):Yp(b,null,{wrap:!1,...n}):b},OA=(e,r,t=1,n={})=>{if(!Kn(e)&&e.length>1||!Kn(r)&&r.length>1)return Zp(e,r,n);let i=n.transform||(u=>String.fromCharCode(u)),c=`${e}`.charCodeAt(0),a=`${r}`.charCodeAt(0),s=c>a,o=Math.min(c,a),f=Math.max(c,a);if(n.toRegex&&t===1)return Kp(o,f,!1,n);let l=[],h=0;for(;s?c>=a:c<=a;)l.push(i(c,h)),c=s?c-t:c+t,h++;return n.toRegex===!0?Yp(l,null,{wrap:!1,options:n}):l},es=(e,r,t,n={})=>{if(r==null&&fa(e))return[e];if(!fa(e)||!fa(r))return Zp(e,r,n);if(typeof t=="function")return es(e,r,1,{transform:t});if(Wp(t))return es(e,r,0,t);let i={...n};return i.capture===!0&&(i.wrap=!0),t=t||i.step||1,Kn(t)?Kn(e)&&Kn(r)?RA(e,r,t,i):OA(e,r,Math.max(Math.abs(t),1),i):t!=null&&!Wp(t)?DA(t,i):es(e,r,1,t)};Jp.exports=es});var td=ve((qN,ed)=>{"use strict";var TA=da(),Qp=Ji(),FA=(e,r={})=>{let t=(n,i={})=>{let c=Qp.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s=c===!0||a===!0,o=r.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return o+n.value;if(n.type==="open")return s?o+n.value:"(";if(n.type==="close")return s?o+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Qp.reduce(n.nodes),h=TA(...l,{...r,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=t(l,n);return f};return t(e)};ed.exports=FA});var id=ve((GN,nd)=>{"use strict";var PA=da(),rd=Qi(),nn=Ji(),Cr=(e="",r="",t=!1)=>{let n=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return t?nn.flatten(r).map(i=>`{${i}}`):r;for(let i of e)if(Array.isArray(i))for(let c of i)n.push(Cr(c,r,t));else for(let c of r)t===!0&&typeof c=="string"&&(c=`{${c}}`),n.push(Array.isArray(c)?Cr(i,c,t):i+c);return nn.flatten(n)},BA=(e,r={})=>{let t=r.rangeLimit===void 0?1e3:r.rangeLimit,n=(i,c={})=>{i.queue=[];let a=c,s=c.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,s=a.queue;if(i.invalid||i.dollar){s.push(Cr(s.pop(),rd(i,r)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(Cr(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=nn.reduce(i.nodes);if(nn.exceedsLimit(...h,r.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=PA(...h,r);u.length===0&&(u=rd(i,r)),s.push(Cr(s.pop(),u)),i.nodes=[];return}let o=nn.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let u=i.nodes[h];if(u.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(u.type==="close"){s.push(Cr(s.pop(),f,o));continue}if(u.value&&u.type!=="open"){f.push(Cr(f.pop(),u.value));continue}u.nodes&&n(u,i)}return f};return nn.flatten(n(e))};nd.exports=BA});var od=ve((UN,sd)=>{"use strict";sd.exports={MAX_LENGTH:1024*64,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:`
7
+ `,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"}});var hd=ve((WN,cd)=>{"use strict";var LA=Qi(),{MAX_LENGTH:ad,CHAR_BACKSLASH:ma,CHAR_BACKTICK:IA,CHAR_COMMA:MA,CHAR_DOT:NA,CHAR_LEFT_PARENTHESES:jA,CHAR_RIGHT_PARENTHESES:$A,CHAR_LEFT_CURLY_BRACE:HA,CHAR_RIGHT_CURLY_BRACE:qA,CHAR_LEFT_SQUARE_BRACKET:ud,CHAR_RIGHT_SQUARE_BRACKET:ld,CHAR_DOUBLE_QUOTE:GA,CHAR_SINGLE_QUOTE:UA,CHAR_NO_BREAK_SPACE:WA,CHAR_ZERO_WIDTH_NOBREAK_SPACE:zA}=od(),VA=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=r||{},n=typeof t.maxLength=="number"?Math.min(ad,t.maxLength):ad;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},c=[i],a=i,s=i,o=0,f=e.length,l=0,h=0,u,d={},p=()=>e[l++],y=b=>{if(b.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&b.type==="text"){s.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=s,s=b,b};for(y({type:"bos"});l<f;)if(a=c[c.length-1],u=p(),!(u===zA||u===WA)){if(u===ma){y({type:"text",value:(r.keepEscaping?u:"")+p()});continue}if(u===ld){y({type:"text",value:"\\"+u});continue}if(u===ud){o++;let b=!0,_;for(;l<f&&(_=p());){if(u+=_,_===ud){o++;continue}if(_===ma){u+=p();continue}if(_===ld&&(o--,o===0))break}y({type:"text",value:u});continue}if(u===jA){a=y({type:"paren",nodes:[]}),c.push(a),y({type:"text",value:u});continue}if(u===$A){if(a.type!=="paren"){y({type:"text",value:u});continue}a=c.pop(),y({type:"text",value:u}),a=c[c.length-1];continue}if(u===GA||u===UA||u===IA){let b=u,_;for(r.keepQuotes!==!0&&(u="");l<f&&(_=p());){if(_===ma){u+=_+p();continue}if(_===b){r.keepQuotes===!0&&(u+=_);break}u+=_}y({type:"text",value:u});continue}if(u===HA){h++;let _={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||a.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};a=y(_),c.push(a),y({type:"open",value:u});continue}if(u===qA){if(a.type!=="brace"){y({type:"text",value:u});continue}let b="close";a=c.pop(),a.close=!0,y({type:b,value:u}),h--,a=c[c.length-1];continue}if(u===MA&&h>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:LA(a)}]}y({type:"comma",value:u}),a.commas++;continue}if(u===NA&&h>0&&a.commas===0){let b=a.nodes;if(h===0||b.length===0){y({type:"text",value:u});continue}if(s.type==="dot"){if(a.range=[],s.value+=u,s.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,s.type="text";continue}a.ranges++,a.args=[];continue}if(s.type==="range"){b.pop();let _=b[b.length-1];_.value+=s.value+u,s=_,a.ranges--;continue}y({type:"dot",value:u});continue}y({type:"text",value:u})}do if(a=c.pop(),a.type!=="root"){a.nodes.forEach(g=>{g.nodes||(g.type==="open"&&(g.isOpen=!0),g.type==="close"&&(g.isClose=!0),g.nodes||(g.type="text"),g.invalid=!0)});let b=c[c.length-1],_=b.nodes.indexOf(a);b.nodes.splice(_,1,...a.nodes)}while(c.length>0);return y({type:"eos"}),i};cd.exports=VA});var dd=ve((zN,pd)=>{"use strict";var fd=Qi(),KA=td(),YA=id(),XA=hd(),gt=(e,r={})=>{let t=[];if(Array.isArray(e))for(let n of e){let i=gt.create(n,r);Array.isArray(i)?t.push(...i):t.push(i)}else t=[].concat(gt.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(t=[...new Set(t)]),t};gt.parse=(e,r={})=>XA(e,r);gt.stringify=(e,r={})=>fd(typeof e=="string"?gt.parse(e,r):e,r);gt.compile=(e,r={})=>(typeof e=="string"&&(e=gt.parse(e,r)),KA(e,r));gt.expand=(e,r={})=>{typeof e=="string"&&(e=gt.parse(e,r));let t=YA(e,r);return r.noempty===!0&&(t=t.filter(Boolean)),r.nodupes===!0&&(t=[...new Set(t)]),t};gt.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?gt.compile(e,r):gt.expand(e,r);pd.exports=gt});var Yn=ve((VN,vd)=>{"use strict";var ZA=require("path"),It="\\\\/",md=`[^${It}]`,Vt="\\.",JA="\\+",QA="\\?",ts="\\/",ex="(?=.)",yd="[^/]",ya=`(?:${ts}|$)`,gd=`(?:^|${ts})`,ga=`${Vt}{1,2}${ya}`,tx=`(?!${Vt})`,rx=`(?!${gd}${ga})`,nx=`(?!${Vt}{0,1}${ya})`,ix=`(?!${ga})`,sx=`[^.${ts}]`,ox=`${yd}*?`,bd={DOT_LITERAL:Vt,PLUS_LITERAL:JA,QMARK_LITERAL:QA,SLASH_LITERAL:ts,ONE_CHAR:ex,QMARK:yd,END_ANCHOR:ya,DOTS_SLASH:ga,NO_DOT:tx,NO_DOTS:rx,NO_DOT_SLASH:nx,NO_DOTS_SLASH:ix,QMARK_NO_DOT:sx,STAR:ox,START_ANCHOR:gd},ax={...bd,SLASH_LITERAL:`[${It}]`,QMARK:md,STAR:`${md}*?`,DOTS_SLASH:`${Vt}{1,2}(?:[${It}]|$)`,NO_DOT:`(?!${Vt})`,NO_DOTS:`(?!(?:^|[${It}])${Vt}{1,2}(?:[${It}]|$))`,NO_DOT_SLASH:`(?!${Vt}{0,1}(?:[${It}]|$))`,NO_DOTS_SLASH:`(?!${Vt}{1,2}(?:[${It}]|$))`,QMARK_NO_DOT:`[^.${It}]`,START_ANCHOR:`(?:^|[${It}])`,END_ANCHOR:`(?:[${It}]|$)`},ux={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"};vd.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ux,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:ZA.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ax:bd}}});var Xn=ve(ht=>{"use strict";var lx=require("path"),cx=process.platform==="win32",{REGEX_BACKSLASH:hx,REGEX_REMOVE_BACKSLASH:fx,REGEX_SPECIAL_CHARS:px,REGEX_SPECIAL_CHARS_GLOBAL:dx}=Yn();ht.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ht.hasRegexChars=e=>px.test(e);ht.isRegexChar=e=>e.length===1&&ht.hasRegexChars(e);ht.escapeRegex=e=>e.replace(dx,"\\$1");ht.toPosixSlashes=e=>e.replace(hx,"/");ht.removeBackslashes=e=>e.replace(fx,r=>r==="\\"?"":r);ht.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ht.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:cx===!0||lx.sep==="\\";ht.escapeLast=(e,r,t)=>{let n=e.lastIndexOf(r,t);return n===-1?e:e[n-1]==="\\"?ht.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ht.removePrefix=(e,r={})=>{let t=e;return t.startsWith("./")&&(t=t.slice(2),r.prefix="./"),t};ht.wrapOutput=(e,r={},t={})=>{let n=t.contains?"":"^",i=t.contains?"":"$",c=`${n}(?:${e})${i}`;return r.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var kd=ve((YN,Cd)=>{"use strict";var _d=Xn(),{CHAR_ASTERISK:ba,CHAR_AT:mx,CHAR_BACKWARD_SLASH:Zn,CHAR_COMMA:yx,CHAR_DOT:va,CHAR_EXCLAMATION_MARK:_a,CHAR_FORWARD_SLASH:xd,CHAR_LEFT_CURLY_BRACE:wa,CHAR_LEFT_PARENTHESES:Ea,CHAR_LEFT_SQUARE_BRACKET:gx,CHAR_PLUS:bx,CHAR_QUESTION_MARK:wd,CHAR_RIGHT_CURLY_BRACE:vx,CHAR_RIGHT_PARENTHESES:Ed,CHAR_RIGHT_SQUARE_BRACKET:_x}=Yn(),Sd=e=>e===xd||e===Zn,Ad=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},wx=(e,r)=>{let t=r||{},n=e.length-1,i=t.parts===!0||t.scanToEnd===!0,c=[],a=[],s=[],o=e,f=-1,l=0,h=0,u=!1,d=!1,p=!1,y=!1,b=!1,_=!1,g=!1,S=!1,E=!1,v=!1,m=0,w,A,x={value:"",depth:0,isGlob:!1},D=()=>f>=n,F=()=>o.charCodeAt(f+1),T=()=>(w=A,o.charCodeAt(++f));for(;f<n;){A=T();let B;if(A===Zn){g=x.backslashes=!0,A=T(),A===wa&&(_=!0);continue}if(_===!0||A===wa){for(m++;D()!==!0&&(A=T());){if(A===Zn){g=x.backslashes=!0,T();continue}if(A===wa){m++;continue}if(_!==!0&&A===va&&(A=T())===va){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(_!==!0&&A===yx){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===vx&&(m--,m===0)){_=!1,u=x.isBrace=!0,v=!0;break}}if(i===!0)continue;break}if(A===xd){if(c.push(f),a.push(x),x={value:"",depth:0,isGlob:!1},v===!0)continue;if(w===va&&f===l+1){l+=2;continue}h=f+1;continue}if(t.noext!==!0&&(A===bx||A===mx||A===ba||A===wd||A===_a)===!0&&F()===Ea){if(p=x.isGlob=!0,y=x.isExtglob=!0,v=!0,A===_a&&f===l&&(E=!0),i===!0){for(;D()!==!0&&(A=T());){if(A===Zn){g=x.backslashes=!0,A=T();continue}if(A===Ed){p=x.isGlob=!0,v=!0;break}}continue}break}if(A===ba){if(w===ba&&(b=x.isGlobstar=!0),p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===wd){if(p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===gx){for(;D()!==!0&&(B=T());){if(B===Zn){g=x.backslashes=!0,T();continue}if(B===_x){d=x.isBracket=!0,p=x.isGlob=!0,v=!0;break}}if(i===!0)continue;break}if(t.nonegate!==!0&&A===_a&&f===l){S=x.negated=!0,l++;continue}if(t.noparen!==!0&&A===Ea){if(p=x.isGlob=!0,i===!0){for(;D()!==!0&&(A=T());){if(A===Ea){g=x.backslashes=!0,A=T();continue}if(A===Ed){v=!0;break}}continue}break}if(p===!0){if(v=!0,i===!0)continue;break}}t.noext===!0&&(y=!1,p=!1);let k=o,O="",P="";l>0&&(O=o.slice(0,l),o=o.slice(l),h-=l),k&&p===!0&&h>0?(k=o.slice(0,h),P=o.slice(h)):p===!0?(k="",P=o):k=o,k&&k!==""&&k!=="/"&&k!==o&&Sd(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),t.unescape===!0&&(P&&(P=_d.removeBackslashes(P)),k&&g===!0&&(k=_d.removeBackslashes(k)));let I={prefix:O,input:e,start:l,base:k,glob:P,isBrace:u,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:E};if(t.tokens===!0&&(I.maxDepth=0,Sd(A)||a.push(x),I.tokens=a),t.parts===!0||t.tokens===!0){let B;for(let H=0;H<c.length;H++){let G=B?B+1:l,Q=c[H],L=e.slice(G,Q);t.tokens&&(H===0&&l!==0?(a[H].isPrefix=!0,a[H].value=O):a[H].value=L,Ad(a[H]),I.maxDepth+=a[H].depth),(H!==0||L!=="")&&s.push(L),B=Q}if(B&&B+1<e.length){let H=e.slice(B+1);s.push(H),t.tokens&&(a[a.length-1].value=H,Ad(a[a.length-1]),I.maxDepth+=a[a.length-1].depth)}I.slashes=c,I.parts=s}return I};Cd.exports=wx});var Od=ve((XN,Rd)=>{"use strict";var rs=Yn(),bt=Xn(),{MAX_LENGTH:ns,POSIX_REGEX_SOURCE:Ex,REGEX_NON_SPECIAL_CHARS:Sx,REGEX_SPECIAL_CHARS_BACKREF:Ax,REPLACEMENTS:Dd}=rs,xx=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let t=`[${e.join("-")}]`;try{new RegExp(t)}catch{return e.map(i=>bt.escapeRegex(i)).join("..")}return t},sn=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,Sa=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Dd[e]||e;let t={...r},n=typeof t.maxLength=="number"?Math.min(ns,t.maxLength):ns,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let c={type:"bos",value:"",output:t.prepend||""},a=[c],s=t.capture?"":"?:",o=bt.isWindows(r),f=rs.globChars(o),l=rs.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:b,NO_DOT_SLASH:_,NO_DOTS_SLASH:g,QMARK:S,QMARK_NO_DOT:E,STAR:v,START_ANCHOR:m}=f,w=ee=>`(${s}(?:(?!${m}${ee.dot?y:h}).)*?)`,A=t.dot?"":b,x=t.dot?S:E,D=t.bash===!0?w(t):v;t.capture&&(D=`(${D})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let F={input:e,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=bt.removePrefix(e,F),i=e.length;let T=[],k=[],O=[],P=c,I,B=()=>F.index===i-1,H=F.peek=(ee=1)=>e[F.index+ee],G=F.advance=()=>e[++F.index]||"",Q=()=>e.slice(F.index+1),L=(ee="",ae=0)=>{F.consumed+=ee,F.index+=ae},M=ee=>{F.output+=ee.output!=null?ee.output:ee.value,L(ee.value)},R=()=>{let ee=1;for(;H()==="!"&&(H(2)!=="("||H(3)==="?");)G(),F.start++,ee++;return ee%2===0?!1:(F.negated=!0,F.start++,!0)},K=ee=>{F[ee]++,O.push(ee)},q=ee=>{F[ee]--,O.pop()},Z=ee=>{if(P.type==="globstar"){let ae=F.braces>0&&(ee.type==="comma"||ee.type==="brace"),oe=ee.extglob===!0||T.length&&(ee.type==="pipe"||ee.type==="paren");ee.type!=="slash"&&ee.type!=="paren"&&!ae&&!oe&&(F.output=F.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=D,F.output+=P.output)}if(T.length&&ee.type!=="paren"&&(T[T.length-1].inner+=ee.value),(ee.value||ee.output)&&M(ee),P&&P.type==="text"&&ee.type==="text"){P.value+=ee.value,P.output=(P.output||"")+ee.value;return}ee.prev=P,a.push(ee),P=ee},N=(ee,ae)=>{let oe={...l[ae],conditions:1,inner:""};oe.prev=P,oe.parens=F.parens,oe.output=F.output;let de=(t.capture?"(":"")+oe.open;K("parens"),Z({type:ee,value:ae,output:F.output?"":p}),Z({type:"paren",extglob:!0,value:G(),output:de}),T.push(oe)},z=ee=>{let ae=ee.close+(t.capture?")":""),oe;if(ee.type==="negate"){let de=D;if(ee.inner&&ee.inner.length>1&&ee.inner.includes("/")&&(de=w(t)),(de!==D||B()||/^\)+$/.test(Q()))&&(ae=ee.close=`)$))${de}`),ee.inner.includes("*")&&(oe=Q())&&/^\.[^\\/.]+$/.test(oe)){let pe=Sa(oe,{...r,fastpaths:!1}).output;ae=ee.close=`)${pe})${de})`}ee.prev.type==="bos"&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:I,output:ae}),q("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let ee=!1,ae=e.replace(Ax,(oe,de,pe,j,W,C)=>j==="\\"?(ee=!0,oe):j==="?"?de?de+j+(W?S.repeat(W.length):""):C===0?x+(W?S.repeat(W.length):""):S.repeat(pe.length):j==="."?h.repeat(pe.length):j==="*"?de?de+j+(W?D:""):D:de?oe:`\\${oe}`);return ee===!0&&(t.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,oe=>oe.length%2===0?"\\\\":oe?"\\":"")),ae===e&&t.contains===!0?(F.output=e,F):(F.output=bt.wrapOutput(ae,F,r),F)}for(;!B();){if(I=G(),I==="\0")continue;if(I==="\\"){let oe=H();if(oe==="/"&&t.bash!==!0||oe==="."||oe===";")continue;if(!oe){I+="\\",Z({type:"text",value:I});continue}let de=/^\\+/.exec(Q()),pe=0;if(de&&de[0].length>2&&(pe=de[0].length,F.index+=pe,pe%2!==0&&(I+="\\")),t.unescape===!0?I=G():I+=G(),F.brackets===0){Z({type:"text",value:I});continue}}if(F.brackets>0&&(I!=="]"||P.value==="["||P.value==="[^")){if(t.posix!==!1&&I===":"){let oe=P.value.slice(1);if(oe.includes("[")&&(P.posix=!0,oe.includes(":"))){let de=P.value.lastIndexOf("["),pe=P.value.slice(0,de),j=P.value.slice(de+2),W=Ex[j];if(W){P.value=pe+W,F.backtrack=!0,G(),!c.output&&a.indexOf(P)===1&&(c.output=p);continue}}}(I==="["&&H()!==":"||I==="-"&&H()==="]")&&(I=`\\${I}`),I==="]"&&(P.value==="["||P.value==="[^")&&(I=`\\${I}`),t.posix===!0&&I==="!"&&P.value==="["&&(I="^"),P.value+=I,M({value:I});continue}if(F.quotes===1&&I!=='"'){I=bt.escapeRegex(I),P.value+=I,M({value:I});continue}if(I==='"'){F.quotes=F.quotes===1?0:1,t.keepQuotes===!0&&Z({type:"text",value:I});continue}if(I==="("){K("parens"),Z({type:"paren",value:I});continue}if(I===")"){if(F.parens===0&&t.strictBrackets===!0)throw new SyntaxError(sn("opening","("));let oe=T[T.length-1];if(oe&&F.parens===oe.parens+1){z(T.pop());continue}Z({type:"paren",value:I,output:F.parens?")":"\\)"}),q("parens");continue}if(I==="["){if(t.nobracket===!0||!Q().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(sn("closing","]"));I=`\\${I}`}else K("brackets");Z({type:"bracket",value:I});continue}if(I==="]"){if(t.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){Z({type:"text",value:I,output:`\\${I}`});continue}if(F.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(sn("opening","["));Z({type:"text",value:I,output:`\\${I}`});continue}q("brackets");let oe=P.value.slice(1);if(P.posix!==!0&&oe[0]==="^"&&!oe.includes("/")&&(I=`/${I}`),P.value+=I,M({value:I}),t.literalBrackets===!1||bt.hasRegexChars(oe))continue;let de=bt.escapeRegex(P.value);if(F.output=F.output.slice(0,-P.value.length),t.literalBrackets===!0){F.output+=de,P.value=de;continue}P.value=`(${s}${de}|${P.value})`,F.output+=P.value;continue}if(I==="{"&&t.nobrace!==!0){K("braces");let oe={type:"brace",value:I,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};k.push(oe),Z(oe);continue}if(I==="}"){let oe=k[k.length-1];if(t.nobrace===!0||!oe){Z({type:"text",value:I,output:I});continue}let de=")";if(oe.dots===!0){let pe=a.slice(),j=[];for(let W=pe.length-1;W>=0&&(a.pop(),pe[W].type!=="brace");W--)pe[W].type!=="dots"&&j.unshift(pe[W].value);de=xx(j,t),F.backtrack=!0}if(oe.comma!==!0&&oe.dots!==!0){let pe=F.output.slice(0,oe.outputIndex),j=F.tokens.slice(oe.tokensIndex);oe.value=oe.output="\\{",I=de="\\}",F.output=pe;for(let W of j)F.output+=W.output||W.value}Z({type:"brace",value:I,output:de}),q("braces"),k.pop();continue}if(I==="|"){T.length>0&&T[T.length-1].conditions++,Z({type:"text",value:I});continue}if(I===","){let oe=I,de=k[k.length-1];de&&O[O.length-1]==="braces"&&(de.comma=!0,oe="|"),Z({type:"comma",value:I,output:oe});continue}if(I==="/"){if(P.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",a.pop(),P=c;continue}Z({type:"slash",value:I,output:d});continue}if(I==="."){if(F.braces>0&&P.type==="dot"){P.value==="."&&(P.output=h);let oe=k[k.length-1];P.type="dots",P.output+=I,P.value+=I,oe.dots=!0;continue}if(F.braces+F.parens===0&&P.type!=="bos"&&P.type!=="slash"){Z({type:"text",value:I,output:h});continue}Z({type:"dot",value:I,output:h});continue}if(I==="?"){if(!(P&&P.value==="(")&&t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("qmark",I);continue}if(P&&P.type==="paren"){let de=H(),pe=I;if(de==="<"&&!bt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(Q()))&&(pe=`\\${I}`),Z({type:"text",value:I,output:pe});continue}if(t.dot!==!0&&(P.type==="slash"||P.type==="bos")){Z({type:"qmark",value:I,output:E});continue}Z({type:"qmark",value:I,output:S});continue}if(I==="!"){if(t.noextglob!==!0&&H()==="("&&(H(2)!=="?"||!/[!=<:]/.test(H(3)))){N("negate",I);continue}if(t.nonegate!==!0&&F.index===0){R();continue}}if(I==="+"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("plus",I);continue}if(P&&P.value==="("||t.regex===!1){Z({type:"plus",value:I,output:u});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||F.parens>0){Z({type:"plus",value:I});continue}Z({type:"plus",value:u});continue}if(I==="@"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){Z({type:"at",extglob:!0,value:I,output:""});continue}Z({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let oe=Sx.exec(Q());oe&&(I+=oe[0],F.index+=oe[0].length),Z({type:"text",value:I});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=I,P.output=D,F.backtrack=!0,F.globstar=!0,L(I);continue}let ee=Q();if(t.noextglob!==!0&&/^\([^?]/.test(ee)){N("star",I);continue}if(P.type==="star"){if(t.noglobstar===!0){L(I);continue}let oe=P.prev,de=oe.prev,pe=oe.type==="slash"||oe.type==="bos",j=de&&(de.type==="star"||de.type==="globstar");if(t.bash===!0&&(!pe||ee[0]&&ee[0]!=="/")){Z({type:"star",value:I,output:""});continue}let W=F.braces>0&&(oe.type==="comma"||oe.type==="brace"),C=T.length&&(oe.type==="pipe"||oe.type==="paren");if(!pe&&oe.type!=="paren"&&!W&&!C){Z({type:"star",value:I,output:""});continue}for(;ee.slice(0,3)==="/**";){let U=e[F.index+4];if(U&&U!=="/")break;ee=ee.slice(3),L("/**",3)}if(oe.type==="bos"&&B()){P.type="globstar",P.value+=I,P.output=w(t),F.output=P.output,F.globstar=!0,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&!j&&B()){F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=w(t)+(t.strictSlashes?")":"|$)"),P.value+=I,F.globstar=!0,F.output+=oe.output+P.output,L(I);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&ee[0]==="/"){let U=ee[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(oe.output+P.output).length),oe.output=`(?:${oe.output}`,P.type="globstar",P.output=`${w(t)}${d}|${d}${U})`,P.value+=I,F.output+=oe.output+P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}if(oe.type==="bos"&&ee[0]==="/"){P.type="globstar",P.value+=I,P.output=`(?:^|${d}|${w(t)}${d})`,F.output=P.output,F.globstar=!0,L(I+G()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-P.output.length),P.type="globstar",P.output=w(t),P.value+=I,F.output+=P.output,F.globstar=!0,L(I);continue}let ae={type:"star",value:I,output:D};if(t.bash===!0){ae.output=".*?",(P.type==="bos"||P.type==="slash")&&(ae.output=A+ae.output),Z(ae);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&t.regex===!0){ae.output=I,Z(ae);continue}(F.index===F.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(F.output+=_,P.output+=_):t.dot===!0?(F.output+=g,P.output+=g):(F.output+=A,P.output+=A),H()!=="*"&&(F.output+=p,P.output+=p)),Z(ae)}for(;F.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(sn("closing","]"));F.output=bt.escapeLast(F.output,"["),q("brackets")}for(;F.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(sn("closing",")"));F.output=bt.escapeLast(F.output,"("),q("parens")}for(;F.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(sn("closing","}"));F.output=bt.escapeLast(F.output,"{"),q("braces")}if(t.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&Z({type:"maybe_slash",value:"",output:`${d}?`}),F.backtrack===!0){F.output="";for(let ee of F.tokens)F.output+=ee.output!=null?ee.output:ee.value,ee.suffix&&(F.output+=ee.suffix)}return F};Sa.fastpaths=(e,r)=>{let t={...r},n=typeof t.maxLength=="number"?Math.min(ns,t.maxLength):ns,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Dd[e]||e;let c=bt.isWindows(r),{DOT_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:o,DOTS_SLASH:f,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:p}=rs.globChars(c),y=t.dot?h:l,b=t.dot?u:l,_=t.capture?"":"?:",g={negated:!1,prefix:""},S=t.bash===!0?".*?":d;t.capture&&(S=`(${S})`);let E=A=>A.noglobstar===!0?S:`(${_}(?:(?!${p}${A.dot?f:a}).)*?)`,v=A=>{switch(A){case"*":return`${y}${o}${S}`;case".*":return`${a}${o}${S}`;case"*.*":return`${y}${S}${a}${o}${S}`;case"*/*":return`${y}${S}${s}${o}${b}${S}`;case"**":return y+E(t);case"**/*":return`(?:${y}${E(t)}${s})?${b}${o}${S}`;case"**/*.*":return`(?:${y}${E(t)}${s})?${b}${S}${a}${o}${S}`;case"**/.*":return`(?:${y}${E(t)}${s})?${a}${o}${S}`;default:{let x=/^(.*?)\.(\w+)$/.exec(A);if(!x)return;let D=v(x[1]);return D?D+a+x[2]:void 0}}},m=bt.removePrefix(e,g),w=v(m);return w&&t.strictSlashes!==!0&&(w+=`${s}?`),w};Rd.exports=Sa});var Fd=ve((ZN,Td)=>{"use strict";var Cx=require("path"),kx=kd(),Aa=Od(),xa=Xn(),Dx=Yn(),Rx=e=>e&&typeof e=="object"&&!Array.isArray(e),Ge=(e,r,t=!1)=>{if(Array.isArray(e)){let l=e.map(u=>Ge(u,r,t));return u=>{for(let d of l){let p=d(u);if(p)return p}return!1}}let n=Rx(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=r||{},c=xa.isWindows(r),a=n?Ge.compileRe(e,r):Ge.makeRe(e,r,!1,!0),s=a.state;delete a.state;let o=()=>!1;if(i.ignore){let l={...r,ignore:null,onMatch:null,onResult:null};o=Ge(i.ignore,l,t)}let f=(l,h=!1)=>{let{isMatch:u,match:d,output:p}=Ge.test(l,a,r,{glob:e,posix:c}),y={glob:e,state:s,regex:a,posix:c,input:l,output:p,match:d,isMatch:u};return typeof i.onResult=="function"&&i.onResult(y),u===!1?(y.isMatch=!1,h?y:!1):o(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return t&&(f.state=s),f};Ge.test=(e,r,t,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=t||{},a=c.format||(i?xa.toPosixSlashes:null),s=e===n,o=s&&a?a(e):e;return s===!1&&(o=a?a(e):e,s=o===n),(s===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?s=Ge.matchBase(e,r,t,i):s=r.exec(o)),{isMatch:!!s,match:s,output:o}};Ge.matchBase=(e,r,t,n=xa.isWindows(t))=>(r instanceof RegExp?r:Ge.makeRe(r,t)).test(Cx.basename(e));Ge.isMatch=(e,r,t)=>Ge(r,t)(e);Ge.parse=(e,r)=>Array.isArray(e)?e.map(t=>Ge.parse(t,r)):Aa(e,{...r,fastpaths:!1});Ge.scan=(e,r)=>kx(e,r);Ge.compileRe=(e,r,t=!1,n=!1)=>{if(t===!0)return e.output;let i=r||{},c=i.contains?"":"^",a=i.contains?"":"$",s=`${c}(?:${e.output})${a}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let o=Ge.toRegex(s,r);return n===!0&&(o.state=e),o};Ge.makeRe=(e,r={},t=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Aa.fastpaths(e,r)),i.output||(i=Aa(e,r)),Ge.compileRe(i,r,t,n)};Ge.toRegex=(e,r)=>{try{let t=r||{};return new RegExp(e,t.flags||(t.nocase?"i":""))}catch(t){if(r&&r.debug===!0)throw t;return/$^/}};Ge.constants=Dx;Td.exports=Ge});var Bd=ve((JN,Pd)=>{"use strict";Pd.exports=Fd()});var jd=ve((QN,Nd)=>{"use strict";var Id=require("util"),Md=dd(),Mt=Bd(),Ca=Xn(),Ld=e=>e===""||e==="./",qe=(e,r,t)=>{r=[].concat(r),e=[].concat(e);let n=new Set,i=new Set,c=new Set,a=0,s=l=>{c.add(l.output),t&&t.onResult&&t.onResult(l)};for(let l=0;l<r.length;l++){let h=Mt(String(r[l]),{...t,onResult:s},!0),u=h.state.negated||h.state.negatedExtglob;u&&a++;for(let d of e){let p=h(d,!0);(u?!p.isMatch:p.isMatch)&&(u?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let f=(a===r.length?[...c]:[...i]).filter(l=>!n.has(l));if(t&&f.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?r.map(l=>l.replace(/\\/g,"")):r}return f};qe.match=qe;qe.matcher=(e,r)=>Mt(e,r);qe.isMatch=(e,r,t)=>Mt(r,t)(e);qe.any=qe.isMatch;qe.not=(e,r,t={})=>{r=[].concat(r).map(String);let n=new Set,i=[],c=s=>{t.onResult&&t.onResult(s),i.push(s.output)},a=new Set(qe(e,r,{...t,onResult:c}));for(let s of i)a.has(s)||n.add(s);return[...n]};qe.contains=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Id.inspect(e)}"`);if(Array.isArray(r))return r.some(n=>qe.contains(e,n,t));if(typeof r=="string"){if(Ld(e)||Ld(r))return!1;if(e.includes(r)||e.startsWith("./")&&e.slice(2).includes(r))return!0}return qe.isMatch(e,r,{...t,contains:!0})};qe.matchKeys=(e,r,t)=>{if(!Ca.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=qe(Object.keys(e),r,t),i={};for(let c of n)i[c]=e[c];return i};qe.some=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Mt(String(i),t);if(n.some(a=>c(a)))return!0}return!1};qe.every=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Mt(String(i),t);if(!n.every(a=>c(a)))return!1}return!0};qe.all=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Id.inspect(e)}"`);return[].concat(r).every(n=>Mt(n,t)(e))};qe.capture=(e,r,t)=>{let n=Ca.isWindows(t),c=Mt.makeRe(String(e),{...t,capture:!0}).exec(n?Ca.toPosixSlashes(r):r);if(c)return c.slice(1).map(a=>a===void 0?"":a)};qe.makeRe=(...e)=>Mt.makeRe(...e);qe.scan=(...e)=>Mt.scan(...e);qe.parse=(e,r)=>{let t=[];for(let n of[].concat(e||[]))for(let i of Md(String(n),r))t.push(Mt.parse(i,r));return t};qe.braces=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(e)?[e]:Md(e,r)};qe.braceExpand=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return qe.braces(e,{...r,expand:!0})};Nd.exports=qe});var Vd=ve(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.matchAny=Te.convertPatternsToRe=Te.makeRe=Te.getPatternParts=Te.expandBraceExpansion=Te.expandPatternsWithBraceExpansion=Te.isAffectDepthOfReadingPattern=Te.endsWithSlashGlobStar=Te.hasGlobStar=Te.getBaseDirectory=Te.isPatternRelatedToParentDirectory=Te.getPatternsOutsideCurrentDirectory=Te.getPatternsInsideCurrentDirectory=Te.getPositivePatterns=Te.getNegativePatterns=Te.isPositivePattern=Te.isNegativePattern=Te.convertToNegativePattern=Te.convertToPositivePattern=Te.isDynamicPattern=Te.isStaticPattern=void 0;var Ox=require("path"),Tx=Tp(),ka=jd(),$d="**",Fx="\\",Px=/[*?]|^!/,Bx=/\[[^[]*]/,Lx=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Ix=/[!*+?@]\([^(]*\)/,Mx=/,|\.\./;function Hd(e,r={}){return!qd(e,r)}Te.isStaticPattern=Hd;function qd(e,r={}){return e===""?!1:!!(r.caseSensitiveMatch===!1||e.includes(Fx)||Px.test(e)||Bx.test(e)||Lx.test(e)||r.extglob!==!1&&Ix.test(e)||r.braceExpansion!==!1&&Nx(e))}Te.isDynamicPattern=qd;function Nx(e){let r=e.indexOf("{");if(r===-1)return!1;let t=e.indexOf("}",r+1);if(t===-1)return!1;let n=e.slice(r,t);return Mx.test(n)}function jx(e){return is(e)?e.slice(1):e}Te.convertToPositivePattern=jx;function $x(e){return"!"+e}Te.convertToNegativePattern=$x;function is(e){return e.startsWith("!")&&e[1]!=="("}Te.isNegativePattern=is;function Gd(e){return!is(e)}Te.isPositivePattern=Gd;function Hx(e){return e.filter(is)}Te.getNegativePatterns=Hx;function qx(e){return e.filter(Gd)}Te.getPositivePatterns=qx;function Gx(e){return e.filter(r=>!Da(r))}Te.getPatternsInsideCurrentDirectory=Gx;function Ux(e){return e.filter(Da)}Te.getPatternsOutsideCurrentDirectory=Ux;function Da(e){return e.startsWith("..")||e.startsWith("./..")}Te.isPatternRelatedToParentDirectory=Da;function Wx(e){return Tx(e,{flipBackslashes:!1})}Te.getBaseDirectory=Wx;function zx(e){return e.includes($d)}Te.hasGlobStar=zx;function Ud(e){return e.endsWith("/"+$d)}Te.endsWithSlashGlobStar=Ud;function Vx(e){let r=Ox.basename(e);return Ud(e)||Hd(r)}Te.isAffectDepthOfReadingPattern=Vx;function Kx(e){return e.reduce((r,t)=>r.concat(Wd(t)),[])}Te.expandPatternsWithBraceExpansion=Kx;function Wd(e){return ka.braces(e,{expand:!0,nodupes:!0})}Te.expandBraceExpansion=Wd;function Yx(e,r){let{parts:t}=ka.scan(e,Object.assign(Object.assign({},r),{parts:!0}));return t.length===0&&(t=[e]),t[0].startsWith("/")&&(t[0]=t[0].slice(1),t.unshift("")),t}Te.getPatternParts=Yx;function zd(e,r){return ka.makeRe(e,r)}Te.makeRe=zd;function Xx(e,r){return e.map(t=>zd(t,r))}Te.convertPatternsToRe=Xx;function Zx(e,r){return r.some(t=>t.test(e))}Te.matchAny=Zx});var Zd=ve((tj,Xd)=>{"use strict";var Jx=require("stream"),Kd=Jx.PassThrough,Qx=Array.prototype.slice;Xd.exports=eC;function eC(){let e=[],r=Qx.call(arguments),t=!1,n=r[r.length-1];n&&!Array.isArray(n)&&n.pipe==null?r.pop():n={};let i=n.end!==!1,c=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=Kd(n);function s(){for(let l=0,h=arguments.length;l<h;l++)e.push(Yd(arguments[l],n));return o(),this}function o(){if(t)return;t=!0;let l=e.shift();if(!l){process.nextTick(f);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function u(){--h>0||(t=!1,o())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),c&&p.removeListener("error",b),u()}function b(_){a.emit("error",_)}if(p._readableState.endEmitted)return u();p.on("merge2UnpipeEnd",y),p.on("end",y),c&&p.on("error",b),p.pipe(a,{end:!1}),p.resume()}for(let p=0;p<l.length;p++)d(l[p]);u()}function f(){t=!1,a.emit("queueDrain"),i&&a.end()}return a.setMaxListeners(0),a.add=s,a.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),r.length&&s.apply(null,r),a}function Yd(e,r){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)e[t]=Yd(e[t],r);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Kd(r))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Qd=ve(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.merge=void 0;var tC=Zd();function rC(e){let r=tC(e);return e.forEach(t=>{t.once("error",n=>r.emit("error",n))}),r.once("close",()=>Jd(e)),r.once("end",()=>Jd(e)),r}ss.merge=rC;function Jd(e){e.forEach(r=>r.emit("close"))}});var e0=ve(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.isEmpty=on.isString=void 0;function nC(e){return typeof e=="string"}on.isString=nC;function iC(e){return e===""}on.isEmpty=iC});var Kt=ve(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.string=tt.stream=tt.pattern=tt.path=tt.fs=tt.errno=tt.array=void 0;var sC=wp();tt.array=sC;var oC=Ep();tt.errno=oC;var aC=Sp();tt.fs=aC;var uC=Ap();tt.path=uC;var lC=Vd();tt.pattern=lC;var cC=Qd();tt.stream=cC;var hC=e0();tt.string=hC});var n0=ve(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.convertPatternGroupToTask=rt.convertPatternGroupsToTasks=rt.groupPatternsByBaseDirectory=rt.getNegativePatternsAsPositive=rt.getPositivePatterns=rt.convertPatternsToTasks=rt.generate=void 0;var Yt=Kt();function fC(e,r){let t=t0(e),n=r0(e,r.ignore),i=t.filter(o=>Yt.pattern.isStaticPattern(o,r)),c=t.filter(o=>Yt.pattern.isDynamicPattern(o,r)),a=Ra(i,n,!1),s=Ra(c,n,!0);return a.concat(s)}rt.generate=fC;function Ra(e,r,t){let n=[],i=Yt.pattern.getPatternsOutsideCurrentDirectory(e),c=Yt.pattern.getPatternsInsideCurrentDirectory(e),a=Oa(i),s=Oa(c);return n.push(...Ta(a,r,t)),"."in s?n.push(Fa(".",c,r,t)):n.push(...Ta(s,r,t)),n}rt.convertPatternsToTasks=Ra;function t0(e){return Yt.pattern.getPositivePatterns(e)}rt.getPositivePatterns=t0;function r0(e,r){return Yt.pattern.getNegativePatterns(e).concat(r).map(Yt.pattern.convertToPositivePattern)}rt.getNegativePatternsAsPositive=r0;function Oa(e){let r={};return e.reduce((t,n)=>{let i=Yt.pattern.getBaseDirectory(n);return i in t?t[i].push(n):t[i]=[n],t},r)}rt.groupPatternsByBaseDirectory=Oa;function Ta(e,r,t){return Object.keys(e).map(n=>Fa(n,e[n],r,t))}rt.convertPatternGroupsToTasks=Ta;function Fa(e,r,t,n){return{dynamic:n,positive:r,negative:t,base:e,patterns:[].concat(r,t.map(Yt.pattern.convertToNegativePattern))}}rt.convertPatternGroupToTask=Fa});var s0=ve(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.removeDuplicateSlashes=an.transform=void 0;var pC=/(?!^)\/{2,}/g;function dC(e){return e.map(r=>i0(r))}an.transform=dC;function i0(e){return e.replace(pC,"/")}an.removeDuplicateSlashes=i0});var a0=ve(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.read=void 0;function mC(e,r,t){r.fs.lstat(e,(n,i)=>{if(n!==null){o0(t,n);return}if(!i.isSymbolicLink()||!r.followSymbolicLink){Pa(t,i);return}r.fs.stat(e,(c,a)=>{if(c!==null){if(r.throwErrorOnBrokenSymbolicLink){o0(t,c);return}Pa(t,i);return}r.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Pa(t,a)})})}os.read=mC;function o0(e,r){e(r)}function Pa(e,r){e(null,r)}});var u0=ve(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.read=void 0;function yC(e,r){let t=r.fs.lstatSync(e);if(!t.isSymbolicLink()||!r.followSymbolicLink)return t;try{let n=r.fs.statSync(e);return r.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!r.throwErrorOnBrokenSymbolicLink)return t;throw n}}as.read=yC});var l0=ve(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.createFileSystemAdapter=ir.FILE_SYSTEM_ADAPTER=void 0;var us=require("fs");ir.FILE_SYSTEM_ADAPTER={lstat:us.lstat,stat:us.stat,lstatSync:us.lstatSync,statSync:us.statSync};function gC(e){return e===void 0?ir.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ir.FILE_SYSTEM_ADAPTER),e)}ir.createFileSystemAdapter=gC});var c0=ve(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var bC=l0(),Ba=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=bC.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,t){return r!=null?r:t}};La.default=Ba});var kr=ve(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.statSync=sr.stat=sr.Settings=void 0;var h0=a0(),vC=u0(),Ia=c0();sr.Settings=Ia.default;function _C(e,r,t){if(typeof r=="function"){h0.read(e,Ma(),r);return}h0.read(e,Ma(r),t)}sr.stat=_C;function wC(e,r){let t=Ma(r);return vC.read(e,t)}sr.statSync=wC;function Ma(e={}){return e instanceof Ia.default?e:new Ia.default(e)}});var d0=ve((fj,p0)=>{var f0;p0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(f0||(f0=Promise.resolve())).then(e).catch(r=>setTimeout(()=>{throw r},0))});var y0=ve((pj,m0)=>{m0.exports=SC;var EC=d0();function SC(e,r){let t,n,i,c=!0;Array.isArray(e)?(t=[],n=e.length):(i=Object.keys(e),t={},n=i.length);function a(o){function f(){r&&r(o,t),r=null}c?EC(f):f()}function s(o,f,l){t[o]=l,(--n===0||f)&&a(f)}n?i?i.forEach(function(o){e[o](function(f,l){s(o,f,l)})}):e.forEach(function(o,f){o(function(l,h){s(f,l,h)})}):a(null),c=!1}});var Na=ve(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ls=process.versions.node.split(".");if(ls[0]===void 0||ls[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var g0=Number.parseInt(ls[0],10),AC=Number.parseInt(ls[1],10),b0=10,xC=10,CC=g0>b0,kC=g0===b0&&AC>=xC;cs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=CC||kC});var v0=ve(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.createDirentFromStats=void 0;var ja=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function DC(e,r){return new ja(e,r)}hs.createDirentFromStats=DC});var $a=ve(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.fs=void 0;var RC=v0();fs.fs=RC});var Ha=ve(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.joinPathSegments=void 0;function OC(e,r,t){return e.endsWith(t)?e+r:e+t+r}ps.joinPathSegments=OC});var x0=ve(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.readdir=or.readdirWithFileTypes=or.read=void 0;var TC=kr(),_0=y0(),FC=Na(),w0=$a(),E0=Ha();function PC(e,r,t){if(!r.stats&&FC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){S0(e,r,t);return}A0(e,r,t)}or.read=PC;function S0(e,r,t){r.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){ds(t,n);return}let c=i.map(s=>({dirent:s,name:s.name,path:E0.joinPathSegments(e,s.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){qa(t,c);return}let a=c.map(s=>BC(s,r));_0(a,(s,o)=>{if(s!==null){ds(t,s);return}qa(t,o)})})}or.readdirWithFileTypes=S0;function BC(e,r){return t=>{if(!e.dirent.isSymbolicLink()){t(null,e);return}r.fs.stat(e.path,(n,i)=>{if(n!==null){if(r.throwErrorOnBrokenSymbolicLink){t(n);return}t(null,e);return}e.dirent=w0.fs.createDirentFromStats(e.name,i),t(null,e)})}}function A0(e,r,t){r.fs.readdir(e,(n,i)=>{if(n!==null){ds(t,n);return}let c=i.map(a=>{let s=E0.joinPathSegments(e,a,r.pathSegmentSeparator);return o=>{TC.stat(s,r.fsStatSettings,(f,l)=>{if(f!==null){o(f);return}let h={name:a,path:s,dirent:w0.fs.createDirentFromStats(a,l)};r.stats&&(h.stats=l),o(null,h)})}});_0(c,(a,s)=>{if(a!==null){ds(t,a);return}qa(t,s)})})}or.readdir=A0;function ds(e,r){e(r)}function qa(e,r){e(null,r)}});var O0=ve(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.readdir=ar.readdirWithFileTypes=ar.read=void 0;var LC=kr(),IC=Na(),C0=$a(),k0=Ha();function MC(e,r){return!r.stats&&IC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?D0(e,r):R0(e,r)}ar.read=MC;function D0(e,r){return r.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:k0.joinPathSegments(e,n.name,r.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let c=r.fs.statSync(i.path);i.dirent=C0.fs.createDirentFromStats(i.name,c)}catch(c){if(r.throwErrorOnBrokenSymbolicLink)throw c}return i})}ar.readdirWithFileTypes=D0;function R0(e,r){return r.fs.readdirSync(e).map(n=>{let i=k0.joinPathSegments(e,n,r.pathSegmentSeparator),c=LC.statSync(i,r.fsStatSettings),a={name:n,path:i,dirent:C0.fs.createDirentFromStats(n,c)};return r.stats&&(a.stats=c),a})}ar.readdir=R0});var T0=ve(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.createFileSystemAdapter=ur.FILE_SYSTEM_ADAPTER=void 0;var un=require("fs");ur.FILE_SYSTEM_ADAPTER={lstat:un.lstat,stat:un.stat,lstatSync:un.lstatSync,statSync:un.statSync,readdir:un.readdir,readdirSync:un.readdirSync};function NC(e){return e===void 0?ur.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ur.FILE_SYSTEM_ADAPTER),e)}ur.createFileSystemAdapter=NC});var F0=ve(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var jC=require("path"),$C=kr(),HC=T0(),Ga=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=HC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,jC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $C.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};Ua.default=Ga});var ms=ve(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.Settings=lr.scandirSync=lr.scandir=void 0;var P0=x0(),qC=O0(),Wa=F0();lr.Settings=Wa.default;function GC(e,r,t){if(typeof r=="function"){P0.read(e,za(),r);return}P0.read(e,za(r),t)}lr.scandir=GC;function UC(e,r){let t=za(r);return qC.read(e,t)}lr.scandirSync=UC;function za(e={}){return e instanceof Wa.default?e:new Wa.default(e)}});var L0=ve((Sj,B0)=>{"use strict";function WC(e){var r=new e,t=r;function n(){var c=r;return c.next?r=c.next:(r=new e,t=r),c.next=null,c}function i(c){t.next=c,t=c}return{get:n,release:i}}B0.exports=WC});var M0=ve((Aj,Va)=>{"use strict";var zC=L0();function I0(e,r,t){if(typeof e=="function"&&(t=r,r=e,e=null),t<1)throw new Error("fastqueue concurrency must be greater than 1");var n=zC(VC),i=null,c=null,a=0,s=null,o={push:y,drain:At,saturated:At,pause:l,paused:!1,concurrency:t,running:f,resume:d,idle:p,length:h,getQueue:u,unshift:b,empty:At,kill:g,killAndDrain:S,error:E};return o;function f(){return a}function l(){o.paused=!0}function h(){for(var v=i,m=0;v;)v=v.next,m++;return m}function u(){for(var v=i,m=[];v;)m.push(v.value),v=v.next;return m}function d(){if(o.paused){o.paused=!1;for(var v=0;v<o.concurrency;v++)a++,_()}}function p(){return a===0&&o.length()===0}function y(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||At,w.errorHandler=s,a===o.concurrency||o.paused?c?(c.next=w,c=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function b(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||At,a===o.concurrency||o.paused?i?(w.next=i,i=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function _(v){v&&n.release(v);var m=i;m?o.paused?a--:(c===i&&(c=null),i=m.next,m.next=null,r.call(e,m.value,m.worked),c===null&&o.empty()):--a===0&&o.drain()}function g(){i=null,c=null,o.drain=At}function S(){i=null,c=null,o.drain(),o.drain=At}function E(v){s=v}}function At(){}function VC(){this.value=null,this.callback=At,this.next=null,this.release=At,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,c=e.errorHandler,a=e.value;e.value=null,e.callback=At,e.errorHandler&&c(t,a),i.call(e.context,t,n),e.release(e)}}function KC(e,r,t){typeof e=="function"&&(t=r,r=e,e=null);function n(l,h){r.call(this,l).then(function(u){h(null,u)},h)}var i=I0(e,n,t),c=i.push,a=i.unshift;return i.push=s,i.unshift=o,i.drained=f,i;function s(l){var h=new Promise(function(u,d){c(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(At),h}function o(l){var h=new Promise(function(u,d){a(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(At),h}function f(){var l=i.drain,h=new Promise(function(u){i.drain=function(){l(),u()}});return h}}Va.exports=I0;Va.exports.promise=KC});var ys=ve(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.joinPathSegments=Nt.replacePathSegmentSeparator=Nt.isAppliedFilter=Nt.isFatalError=void 0;function YC(e,r){return e.errorFilter===null?!0:!e.errorFilter(r)}Nt.isFatalError=YC;function XC(e,r){return e===null||e(r)}Nt.isAppliedFilter=XC;function ZC(e,r){return e.split(/[/\\]/).join(r)}Nt.replacePathSegmentSeparator=ZC;function JC(e,r,t){return e===""?r:e.endsWith(t)?e+r:e+t+r}Nt.joinPathSegments=JC});var Xa=ve(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var QC=ys(),Ka=class{constructor(r,t){this._root=r,this._settings=t,this._root=QC.replacePathSegmentSeparator(r,t.pathSegmentSeparator)}};Ya.default=Ka});var Qa=ve(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var ek=require("events"),tk=ms(),rk=M0(),gs=ys(),nk=Xa(),Za=class extends nk.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=tk.scandir,this._emitter=new ek.EventEmitter,this._queue=rk(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(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,t){let n={directory:r,base:t};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){t(n,void 0);return}for(let c of i)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!gs.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,t){if(this._isDestroyed||this._isFatalError)return;let n=r.path;t!==void 0&&(r.path=gs.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),gs.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&gs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};Ja.default=Za});var N0=ve(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var ik=Qa(),eu=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new ik.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(t=>{sk(r,t)}),this._reader.onEntry(t=>{this._storage.push(t)}),this._reader.onEnd(()=>{ok(r,this._storage)}),this._reader.read()}};tu.default=eu;function sk(e,r){e(r)}function ok(e,r){e(null,r)}});var j0=ve(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var ak=require("stream"),uk=Qa(),ru=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new uk.default(this._root,this._settings),this._stream=new ak.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};nu.default=ru});var $0=ve(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var lk=ms(),bs=ys(),ck=Xa(),iu=class extends ck.default{constructor(){super(...arguments),this._scandir=lk.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,t){this._queue.add({directory:r,base:t})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,t){try{let n=this._scandir(r,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,t)}catch(n){this._handleError(n)}}_handleError(r){if(bs.isFatalError(this._settings,r))throw r}_handleEntry(r,t){let n=r.path;t!==void 0&&(r.path=bs.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),bs.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&bs.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};su.default=iu});var H0=ve(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var hk=$0(),ou=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new hk.default(this._root,this._settings)}read(){return this._reader.read()}};au.default=ou});var q0=ve(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var fk=require("path"),pk=ms(),uu=class{constructor(r={}){this._options=r,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,fk.sep),this.fsScandirSettings=new pk.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};lu.default=uu});var _s=ve(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Settings=jt.walkStream=jt.walkSync=jt.walk=void 0;var G0=N0(),dk=j0(),mk=H0(),cu=q0();jt.Settings=cu.default;function yk(e,r,t){if(typeof r=="function"){new G0.default(e,vs()).read(r);return}new G0.default(e,vs(r)).read(t)}jt.walk=yk;function gk(e,r){let t=vs(r);return new mk.default(e,t).read()}jt.walkSync=gk;function bk(e,r){let t=vs(r);return new dk.default(e,t).read()}jt.walkStream=bk;function vs(e={}){return e instanceof cu.default?e:new cu.default(e)}});var ws=ve(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var vk=require("path"),_k=kr(),U0=Kt(),hu=class{constructor(r){this._settings=r,this._fsStatSettings=new _k.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return vk.resolve(this._settings.cwd,r)}_makeEntry(r,t){let n={name:t,path:t,dirent:U0.fs.createDirentFromStats(t,r)};return this._settings.stats&&(n.stats=r),n}_isFatalError(r){return!U0.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};fu.default=hu});var mu=ve(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var wk=require("stream"),Ek=kr(),Sk=_s(),Ak=ws(),pu=class extends Ak.default{constructor(){super(...arguments),this._walkStream=Sk.walkStream,this._stat=Ek.stat}dynamic(r,t){return this._walkStream(r,t)}static(r,t){let n=r.map(this._getFullEntryPath,this),i=new wk.PassThrough({objectMode:!0});i._write=(c,a,s)=>this._getEntry(n[c],r[c],t).then(o=>{o!==null&&t.entryFilter(o)&&i.push(o),c===n.length-1&&i.end(),s()}).catch(s);for(let c=0;c<n.length;c++)i.write(c);return i}_getEntry(r,t,n){return this._getStat(r).then(i=>this._makeEntry(i,t)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(r){return new Promise((t,n)=>{this._stat(r,this._fsStatSettings,(i,c)=>i===null?t(c):n(i))})}};du.default=pu});var W0=ve(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var xk=_s(),Ck=ws(),kk=mu(),yu=class extends Ck.default{constructor(){super(...arguments),this._walkAsync=xk.walk,this._readerStream=new kk.default(this._settings)}dynamic(r,t){return new Promise((n,i)=>{this._walkAsync(r,t,(c,a)=>{c===null?n(a):i(c)})})}async static(r,t){let n=[],i=this._readerStream.static(r,t);return new Promise((c,a)=>{i.once("error",a),i.on("data",s=>n.push(s)),i.once("end",()=>c(n))})}};gu.default=yu});var z0=ve(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var ln=Kt(),bu=class{constructor(r,t,n){this._patterns=r,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let r=ln.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let t of r){let n=this._getPatternSegments(t),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:t,segments:n,sections:i})}}_getPatternSegments(r){return ln.pattern.getPatternParts(r,this._micromatchOptions).map(n=>ln.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ln.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(r){return ln.array.splitWhen(r,t=>t.dynamic&&ln.pattern.hasGlobStar(t.pattern))}};vu.default=bu});var V0=ve(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Dk=z0(),_u=class extends Dk.default{match(r){let t=r.split("/"),n=t.length,i=this._storage.filter(c=>!c.complete||c.segments.length>n);for(let c of i){let a=c.sections[0];if(!c.complete&&n>a.length||t.every((o,f)=>{let l=c.segments[f];return!!(l.dynamic&&l.patternRe.test(o)||!l.dynamic&&l.pattern===o)}))return!0}return!1}};wu.default=_u});var K0=ve(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var Es=Kt(),Rk=V0(),Eu=class{constructor(r,t){this._settings=r,this._micromatchOptions=t}getFilter(r,t,n){let i=this._getMatcher(t),c=this._getNegativePatternsRe(n);return a=>this._filter(r,a,i,c)}_getMatcher(r){return new Rk.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let t=r.filter(Es.pattern.isAffectDepthOfReadingPattern);return Es.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(r,t,n,i){if(this._isSkippedByDeep(r,t.path)||this._isSkippedSymbolicLink(t))return!1;let c=Es.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(c,n)?!1:this._isSkippedByNegativePatterns(c,i)}_isSkippedByDeep(r,t){return this._settings.deep===1/0?!1:this._getEntryLevel(r,t)>=this._settings.deep}_getEntryLevel(r,t){let n=t.split("/").length;if(r==="")return n;let i=r.split("/").length;return n-i}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,t){return!this._settings.baseNameMatch&&!t.match(r)}_isSkippedByNegativePatterns(r,t){return!Es.pattern.matchAny(r,t)}};Su.default=Eu});var Y0=ve(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var Dr=Kt(),Au=class{constructor(r,t){this._settings=r,this._micromatchOptions=t,this.index=new Map}getFilter(r,t){let n=Dr.pattern.convertPatternsToRe(r,this._micromatchOptions),i=Dr.pattern.convertPatternsToRe(t,this._micromatchOptions);return c=>this._filter(c,n,i)}_filter(r,t,n){if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(r.path,n))return!1;let i=this._settings.baseNameMatch?r.name:r.path,c=r.dirent.isDirectory(),a=this._isMatchToPatterns(i,t,c)&&!this._isMatchToPatterns(r.path,n,c);return this._settings.unique&&a&&this._createIndexRecord(r),a}_isDuplicateEntry(r){return this.index.has(r.path)}_createIndexRecord(r){this.index.set(r.path,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,t){if(!this._settings.absolute)return!1;let n=Dr.path.makeAbsolute(this._settings.cwd,r);return Dr.pattern.matchAny(n,t)}_isMatchToPatterns(r,t,n){let i=Dr.path.removeLeadingDotSegment(r),c=Dr.pattern.matchAny(i,t);return!c&&n?Dr.pattern.matchAny(i+"/",t):c}};xu.default=Au});var X0=ve(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Ok=Kt(),Cu=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return Ok.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};ku.default=Cu});var J0=ve(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var Z0=Kt(),Du=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let t=r.path;return this._settings.absolute&&(t=Z0.path.makeAbsolute(this._settings.cwd,t),t=Z0.path.unixify(t)),this._settings.markDirectories&&r.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:t}):t}};Ru.default=Du});var Ss=ve(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var Tk=require("path"),Fk=K0(),Pk=Y0(),Bk=X0(),Lk=J0(),Ou=class{constructor(r){this._settings=r,this.errorFilter=new Bk.default(this._settings),this.entryFilter=new Pk.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Fk.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Lk.default(this._settings)}_getRootDirectory(r){return Tk.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let t=r.base==="."?"":r.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.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}}};Tu.default=Ou});var Q0=ve(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Ik=W0(),Mk=Ss(),Fu=class extends Mk.default{constructor(){super(...arguments),this._reader=new Ik.default(this._settings)}async read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return(await this.api(t,r,n)).map(c=>n.transform(c))}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Pu.default=Fu});var em=ve(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Nk=require("stream"),jk=mu(),$k=Ss(),Bu=class extends $k.default{constructor(){super(...arguments),this._reader=new jk.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r),i=this.api(t,r,n),c=new Nk.Readable({objectMode:!0,read:()=>{}});return i.once("error",a=>c.emit("error",a)).on("data",a=>c.emit("data",n.transform(a))).once("end",()=>c.emit("end")),c.once("close",()=>i.destroy()),c}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Lu.default=Bu});var tm=ve(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Hk=kr(),qk=_s(),Gk=ws(),Iu=class extends Gk.default{constructor(){super(...arguments),this._walkSync=qk.walkSync,this._statSync=Hk.statSync}dynamic(r,t){return this._walkSync(r,t)}static(r,t){let n=[];for(let i of r){let c=this._getFullEntryPath(i),a=this._getEntry(c,i,t);a===null||!t.entryFilter(a)||n.push(a)}return n}_getEntry(r,t,n){try{let i=this._getStat(r);return this._makeEntry(i,t)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};Mu.default=Iu});var rm=ve(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Uk=tm(),Wk=Ss(),Nu=class extends Wk.default{constructor(){super(...arguments),this._reader=new Uk.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return this.api(t,r,n).map(n.transform)}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};ju.default=Nu});var nm=ve(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var cn=require("fs"),zk=require("os"),Vk=Math.max(zk.cpus().length,1);hn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:cn.lstat,lstatSync:cn.lstatSync,stat:cn.stat,statSync:cn.statSync,readdir:cn.readdir,readdirSync:cn.readdirSync};var $u=class{constructor(r={}){this._options=r,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,Vk),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)}_getValue(r,t){return r===void 0?t:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},hn.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};hn.default=$u});var am=ve((Yj,om)=>{"use strict";var im=n0(),sm=s0(),Kk=Q0(),Yk=em(),Xk=rm(),Hu=nm(),Rr=Kt();async function qu(e,r){fn(e);let t=Gu(e,Kk.default,r),n=await Promise.all(t);return Rr.array.flatten(n)}(function(e){function r(a,s){fn(a);let o=Gu(a,Xk.default,s);return Rr.array.flatten(o)}e.sync=r;function t(a,s){fn(a);let o=Gu(a,Yk.default,s);return Rr.stream.merge(o)}e.stream=t;function n(a,s){fn(a);let o=sm.transform([].concat(a)),f=new Hu.default(s);return im.generate(o,f)}e.generateTasks=n;function i(a,s){fn(a);let o=new Hu.default(s);return Rr.pattern.isDynamicPattern(a,o)}e.isDynamicPattern=i;function c(a){return fn(a),Rr.path.escape(a)}e.escapePath=c})(qu||(qu={}));function Gu(e,r,t){let n=sm.transform([].concat(e)),i=new Hu.default(t),c=im.generate(n,i),a=new r(i);return c.map(a.read,a)}function fn(e){if(![].concat(e).every(n=>Rr.string.isString(n)&&!Rr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}om.exports=qu});var ky=Ie(require("chalk"));var Ly=Object.create,so=Object.defineProperty,Iy=Object.getOwnPropertyDescriptor,My=Object.getOwnPropertyNames,Ny=Object.getPrototypeOf,jy=Object.prototype.hasOwnProperty,le=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),$y=(e,r)=>()=>(e&&(r=e(e=0)),r),te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Xl=(e,r)=>{for(var t in r)so(e,t,{get:r[t],enumerable:!0})},Hy=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of My(r))!jy.call(e,i)&&i!==t&&so(e,i,{get:()=>r[i],enumerable:!(n=Iy(r,i))||n.enumerable});return e},$e=(e,r,t)=>(t=e!=null?Ly(Ny(e)):{},Hy(r||!e||!e.__esModule?so(t,"default",{value:e,enumerable:!0}):t,e)),Y=$y(()=>{});var qy=te((e,r)=>{"use strict";Y();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),vi=te((e,r)=>{"use strict";Y();var t=qy(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),Gy=te((e,r)=>{Y(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),_i=te((e,r)=>{Y();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=le("assert"),c=Gy(),a=/^win/i.test(t.platform),s=le("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_});var Ql=Ie(require("os"),1),Uy=te((e,r)=>{Y(),r.exports=c,c.sync=a;var t=le("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),Wy=te((e,r)=>{Y(),r.exports=n,n.sync=i;var t=le("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),zy=te((e,r)=>{Y();var t=le("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=Uy():n=Wy(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),Vy=te((e,r)=>{Y();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=le("path"),i=t?";":":",c=zy(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,D)=>{if(!x&&D)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),Zl=te((e,r)=>{"use strict";Y();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),Ky=te((e,r)=>{"use strict";Y();var t=le("path"),n=Vy(),i=Zl();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),Yy=te((e,r)=>{"use strict";Y();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),Xy=te((e,r)=>{"use strict";Y(),r.exports=/^#!(.*)/}),Zy=te((e,r)=>{"use strict";Y();var t=Xy();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),Jy=te((e,r)=>{"use strict";Y();var t=le("fs"),n=Zy();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),Qy=te((e,r)=>{"use strict";Y();var t=le("path"),n=Ky(),i=Yy(),c=Jy(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),eg=te((e,r)=>{"use strict";Y();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),tg=te((e,r)=>{"use strict";Y();var t=le("child_process"),n=Qy(),i=eg();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),rg=te((e,r)=>{"use strict";Y(),r.exports=t=>{let n=typeof t=="string"?`
8
8
  `:`
9
9
  `.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),ng=te((e,r)=>{"use strict";Y();var t=le("path"),n=Zl(),i=c=>{c={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...c};let a,s=t.resolve(c.cwd),o=[];for(;a!==s;)o.push(t.join(s,"node_modules/.bin")),a=s,s=t.resolve(s,"..");let f=t.resolve(c.cwd,c.execPath,"..");return o.push(f),o.concat(c.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=c=>{c={env:process.env,...c};let a={...c.env},s=n({env:a});return c.path=a[s],a[s]=r.exports(c),a}}),ig=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),Jl=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let c=i-n+1;return Array.from({length:c},t)};e.getRealtimeSignals=r;var t=function(c,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),sg=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=le("os"),t=ig(),n=Jl(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(c)};e.getSignals=i;var c=function({name:a,number:s,description:o,action:f,forced:l=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:s,description:o,supported:d,action:f,forced:l,standard:h}}}),og=te(e=>{"use strict";Y(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=le("os"),t=sg(),n=Jl(),i=function(){return(0,t.getSignals)().reduce(c,{})},c=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var s=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>o(y,h));return Object.assign({},...d)},o=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},l=s();e.signalsByNumber=l}),ag=te((e,r)=>{"use strict";Y();var{signalsByName:t}=og(),n=({timedOut:c,timeout:a,errorCode:s,signal:o,signalDescription:f,exitCode:l,isCanceled:h})=>c?`timed out after ${a} milliseconds`:h?"was canceled":s!==void 0?`failed with ${s}`:o!==void 0?`was killed with ${o} (${f})`:l!==void 0?`failed with exit code ${l}`:"failed",i=({stdout:c,stderr:a,all:s,error:o,signal:f,exitCode:l,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{l=l===null?void 0:l,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=o&&o.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:l,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(o)==="[object Error]",v=E?`${S}
10
10
  ${o.message}`:S,m=[v,a,c].filter(Boolean).join(`
@@ -74,7 +74,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}
74
74
  `+e.slice(i,c),i=c+1),a=s;return o+=`
75
75
  `,e.length-i>r&&a>i?o+=e.slice(i,a)+`
76
76
  `+e.slice(a+1):o+=e.slice(i),o.slice(1)}function Vw(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=Nn(e,i),n=et[t],!n&&qn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||Nw(t);return r}function Kw(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(zt(e,r,s,!1,!1)||typeof s>"u"&&zt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function ih(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(zt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&zt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Do(e,r)),e.dump&&$n===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function Yw(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),zt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),zt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function Xw(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new lt("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=Do(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),zt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&$n===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=Do(e,r)),zt(e,r+1,l,!0,h)&&(e.dump&&$n===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function sh(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,kh.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(Dh.call(s.represent,o))n=s.represent[o](r,o);else throw new lt("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function zt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,sh(e,t,!1)||sh(e,t,!0);var s=kh.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(Xw(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(Yw(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?ih(e,r-1,e.dump,i):ih(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(Kw(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&Ww(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new lt("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function Zw(e,r){var t=[],n=[],i,c;for(Oo(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Oo(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Oo(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Oo(e[n[i]],r,t)}function Jw(e,r){r=r||{};var t=new $w(r);t.noRefs||Zw(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),zt(t,0,n,!0,!0)?t.dump+`
77
- `:""}var Qw=Jw,eE={dump:Qw};function qo(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var G4=Ch.load,U4=Ch.loadAll,W4=eE.dump;var z4=qo("safeLoad","load"),V4=qo("safeLoadAll","loadAll"),K4=qo("safeDump","dump");var Y4=$e(Fv());Y();var Dy=require("commander");var Ii={name:"@turbo/codemod",version:"1.10.14-canary.0",description:"Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-codemod"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","add-transformer":"plop","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{axios:"0.27.2",chalk:"2.4.2",commander:"^9.5.0",diff:"^5.1.0","find-up":"4.1.0","fs-extra":"^10.0.0","gradient-string":"^2.0.0",inquirer:"^8.2.4","inquirer-file-tree-selection-prompt":"^1.0.19","is-git-clean":"^1.1.0",ora:"4.1.1",semver:"^7.3.7","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/gen":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/chalk-animation":"^1.6.0","@types/diff":"^5.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^8.2.0","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/semver":"^7.3.9","@types/uuid":"^9.0.0",deepmerge:"^4.2.2",jest:"^27.4.3",plop:"^3.1.1",semver:"^7.3.5","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var On=Ie(require("os")),Sy=require("child_process"),ot=Ie(require("chalk")),Ay=require("inquirer");var H2=require("stream"),q2=require("util"),Sn=Ie(require("path"),1),ut=require("fs-extra"),X1=Ie(ua(),1),Z1=Ie(require("path"),1),J1=require("fs-extra"),Q1=Ie(require("chalk"),1),dr=Ie(require("path"),1),Lr=require("fs-extra"),ey=Ie(am(),1);function Sm(e){return typeof e=="undefined"||e===null}function Zk(e){return typeof e=="object"&&e!==null}function Jk(e){return Array.isArray(e)?e:Sm(e)?[]:[e]}function Qk(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function eD(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function tD(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var rD=Sm,nD=Zk,iD=Jk,sD=eD,oD=tD,aD=Qk,Ke={isNothing:rD,isObject:nD,toArray:iD,repeat:sD,isNegativeZero:oD,extend:aD};function Am(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
77
+ `:""}var Qw=Jw,eE={dump:Qw};function qo(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var G4=Ch.load,U4=Ch.loadAll,W4=eE.dump;var z4=qo("safeLoad","load"),V4=qo("safeLoadAll","loadAll"),K4=qo("safeDump","dump");var Y4=$e(Fv());Y();var Dy=require("commander");var Ii={name:"@turbo/codemod",version:"1.10.14-canary.1",description:"Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-codemod"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","add-transformer":"plop","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{axios:"0.27.2",chalk:"2.4.2",commander:"^9.5.0",diff:"^5.1.0","find-up":"4.1.0","fs-extra":"^10.0.0","gradient-string":"^2.0.0",inquirer:"^8.2.4","inquirer-file-tree-selection-prompt":"^1.0.19","is-git-clean":"^1.1.0",ora:"4.1.1",semver:"^7.3.7","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/gen":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/chalk-animation":"^1.6.0","@types/diff":"^5.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^8.2.0","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/semver":"^7.3.9","@types/uuid":"^9.0.0",deepmerge:"^4.2.2",jest:"^27.4.3",plop:"^3.1.1",semver:"^7.3.5","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var On=Ie(require("os")),Sy=require("child_process"),ot=Ie(require("chalk")),Ay=require("inquirer");var H2=require("stream"),q2=require("util"),Sn=Ie(require("path"),1),ut=require("fs-extra"),X1=Ie(ua(),1),Z1=Ie(require("path"),1),J1=require("fs-extra"),Q1=Ie(require("chalk"),1),dr=Ie(require("path"),1),Lr=require("fs-extra"),ey=Ie(am(),1);function Sm(e){return typeof e=="undefined"||e===null}function Zk(e){return typeof e=="object"&&e!==null}function Jk(e){return Array.isArray(e)?e:Sm(e)?[]:[e]}function Qk(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function eD(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function tD(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var rD=Sm,nD=Zk,iD=Jk,sD=eD,oD=tD,aD=Qk,Ke={isNothing:rD,isObject:nD,toArray:iD,repeat:sD,isNegativeZero:oD,extend:aD};function Am(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
78
78
 
79
79
  `+e.mark.snippet),n+" "+t):n}function Qn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Am(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Qn.prototype=Object.create(Error.prototype);Qn.prototype.constructor=Qn;Qn.prototype.toString=function(r){return this.name+": "+Am(this,r)};var at=Qn;function Uu(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function Wu(e,r){return Ke.repeat(" ",r-e.length)+e}function uD(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=Uu(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ke.repeat(" ",r.indent)+Wu((e.line-o+1).toString(),l)+" | "+f.str+`
80
80
  `+s;for(f=Uu(e.buffer,n[a],i[a],e.position,h),s+=Ke.repeat(" ",r.indent)+Wu((e.line+1).toString(),l)+" | "+f.str+`
@@ -109,7 +109,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}
109
109
  `:`
110
110
  `.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),$O=re((e,r)=>{"use strict";J();var t=ce("path"),n=O2(),i=c=>{c={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...c};let a,s=t.resolve(c.cwd),o=[];for(;a!==s;)o.push(t.join(s,"node_modules/.bin")),a=s,s=t.resolve(s,"..");let f=t.resolve(c.cwd,c.execPath,"..");return o.push(f),o.concat(c.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=c=>{c={env:process.env,...c};let a={...c.env},s=n({env:a});return c.path=a[s],a[s]=r.exports(c),a}}),HO=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),T2=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let c=i-n+1;return Array.from({length:c},t)};e.getRealtimeSignals=r;var t=function(c,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),qO=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=ce("os"),t=HO(),n=T2(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(c)};e.getSignals=i;var c=function({name:a,number:s,description:o,action:f,forced:l=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:s,description:o,supported:d,action:f,forced:l,standard:h}}}),GO=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=ce("os"),t=qO(),n=T2(),i=function(){return(0,t.getSignals)().reduce(c,{})},c=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var s=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>o(y,h));return Object.assign({},...d)},o=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},l=s();e.signalsByNumber=l}),UO=re((e,r)=>{"use strict";J();var{signalsByName:t}=GO(),n=({timedOut:c,timeout:a,errorCode:s,signal:o,signalDescription:f,exitCode:l,isCanceled:h})=>c?`timed out after ${a} milliseconds`:h?"was canceled":s!==void 0?`failed with ${s}`:o!==void 0?`was killed with ${o} (${f})`:l!==void 0?`failed with exit code ${l}`:"failed",i=({stdout:c,stderr:a,all:s,error:o,signal:f,exitCode:l,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{l=l===null?void 0:l,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=o&&o.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:l,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(o)==="[object Error]",v=E?`${S}
111
111
  ${o.message}`:S,m=[v,a,c].filter(Boolean).join(`
112
- `);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),WO=re((e,r)=>{"use strict";J();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),zO=re((e,r)=>{"use strict";J();var t=ce("os"),n=R2(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;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},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({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})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),VO=re((e,r)=>{"use strict";J();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),KO=re((e,r)=>{"use strict";J();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),YO=re((e,r)=>{"use strict";J();var{constants:t}=ce("buffer"),n=ce("stream"),{promisify:i}=ce("util"),c=KO(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),XO=re((e,r)=>{"use strict";J();var{PassThrough:t}=ce("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),ZO=re((e,r)=>{"use strict";J();var t=VO(),n=YO(),i=XO(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),JO=re((e,r)=>{"use strict";J();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),QO=re((e,r)=>{"use strict";J();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),eT=re((e,r)=>{"use strict";J();var t=ce("path"),n=ce("child_process"),i=NO(),c=jO(),a=$O(),s=D2(),o=UO(),f=WO(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=zO(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=ZO(),{mergePromise:S,getSpawnedPromise:E}=JO(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=QO(),A=1e3*1e3*100,x=({env:k,extendEnv:O,preferLocal:P,localDir:I,execPath:B})=>{let H=O?{...process.env,...k}:k;return P?a.env({env:H,cwd:I,execPath:B}):H},D=(k,O,P={})=>{let I=i._parse(k,O,P);return k=I.command,O=I.args,P=I.options,P={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:P.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...P},P.env=x(P),P.stdio=f(P),process.platform==="win32"&&t.basename(k,".exe")==="cmd"&&O.unshift("/q"),{file:k,args:O,options:P,parsed:I}},F=(k,O,P)=>typeof O!="string"&&!Buffer.isBuffer(O)?P===void 0?void 0:"":k.stripFinalNewline?c(O):O,T=(k,O,P)=>{let I=D(k,O,P),B=v(k,O),H=w(k,O);d(I.options);let G;try{G=n.spawn(I.file,I.args,I.options)}catch(q){let Z=new n.ChildProcess,N=Promise.reject(o({error:q,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1}));return S(Z,N)}let Q=E(G),L=u(G,I.options,Q),M=p(G,I.options,L),R={isCanceled:!1};G.kill=l.bind(null,G.kill.bind(G)),G.cancel=h.bind(null,G,R);let K=s(async()=>{let[{error:q,exitCode:Z,signal:N,timedOut:z},ee,ae,oe]=await b(G,I.options,M),de=F(I.options,ee),pe=F(I.options,ae),j=F(I.options,oe);if(q||Z!==0||N!==null){let W=o({error:q,exitCode:Z,signal:N,stdout:de,stderr:pe,all:j,command:B,escapedCommand:H,parsed:I,timedOut:z,isCanceled:R.isCanceled,killed:G.killed});if(!I.options.reject)return W;throw W}return{command:B,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(G,I.options.input),G.all=_(G,I.options),S(G,K)};r.exports=T,r.exports.sync=(k,O,P)=>{let I=D(k,O,P),B=v(k,O),H=w(k,O);g(I.options);let G;try{G=n.spawnSync(I.file,I.args,I.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1})}let Q=F(I.options,G.stdout,G.error),L=F(I.options,G.stderr,G.error);if(G.error||G.status!==0||G.signal!==null){let M=o({stdout:Q,stderr:L,error:G.error,signal:G.signal,exitCode:G.status,command:B,escapedCommand:H,parsed:I,timedOut:G.error&&G.error.code==="ETIMEDOUT",isCanceled:!1,killed:G.signal!==null});if(!I.options.reject)return M;throw M}return{command:B,escapedCommand:H,exitCode:0,stdout:Q,stderr:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(k,O)=>{let[P,...I]=m(k);return T(P,I,O)},r.exports.commandSync=(k,O)=>{let[P,...I]=m(k);return T.sync(P,I,O)},r.exports.node=(k,O,P={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(P=O,O=[]);let I=f.node(P),B=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:G=B}=P;return T(H,[...G,k,...Array.isArray(O)?O:[]],{...P,stdin:void 0,stdout:void 0,stderr:void 0,stdio:I,shell:!1})}});J();var Xj=Je(eT());var tT=re((e,r)=>{"use strict";J();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),rT=re((e,r)=>{"use strict";J(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),F2=re((e,r)=>{J();var t=rT(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),nT=re((e,r)=>{J();var t=F2();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),iT=re((e,r)=>{J();var t=F2(),n=nT(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),sT=re((e,r)=>{"use strict";J();var t=iT(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),oT=re((e,r)=>{"use strict";J(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),aT=re((e,r)=>{"use strict";J();var t=ce("os"),n=oT(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),uT=re((e,r)=>{"use strict";J();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
112
+ `);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),WO=re((e,r)=>{"use strict";J();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),zO=re((e,r)=>{"use strict";J();var t=ce("os"),n=R2(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;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},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({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})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),VO=re((e,r)=>{"use strict";J();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),KO=re((e,r)=>{"use strict";J();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),YO=re((e,r)=>{"use strict";J();var{constants:t}=ce("buffer"),n=ce("stream"),{promisify:i}=ce("util"),c=KO(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),XO=re((e,r)=>{"use strict";J();var{PassThrough:t}=ce("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),ZO=re((e,r)=>{"use strict";J();var t=VO(),n=YO(),i=XO(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),JO=re((e,r)=>{"use strict";J();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),QO=re((e,r)=>{"use strict";J();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),eT=re((e,r)=>{"use strict";J();var t=ce("path"),n=ce("child_process"),i=NO(),c=jO(),a=$O(),s=D2(),o=UO(),f=WO(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=zO(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=ZO(),{mergePromise:S,getSpawnedPromise:E}=JO(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=QO(),A=1e3*1e3*100,x=({env:k,extendEnv:O,preferLocal:P,localDir:I,execPath:B})=>{let H=O?{...process.env,...k}:k;return P?a.env({env:H,cwd:I,execPath:B}):H},D=(k,O,P={})=>{let I=i._parse(k,O,P);return k=I.command,O=I.args,P=I.options,P={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:P.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...P},P.env=x(P),P.stdio=f(P),process.platform==="win32"&&t.basename(k,".exe")==="cmd"&&O.unshift("/q"),{file:k,args:O,options:P,parsed:I}},F=(k,O,P)=>typeof O!="string"&&!Buffer.isBuffer(O)?P===void 0?void 0:"":k.stripFinalNewline?c(O):O,T=(k,O,P)=>{let I=D(k,O,P),B=v(k,O),H=w(k,O);d(I.options);let G;try{G=n.spawn(I.file,I.args,I.options)}catch(q){let Z=new n.ChildProcess,N=Promise.reject(o({error:q,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1}));return S(Z,N)}let Q=E(G),L=u(G,I.options,Q),M=p(G,I.options,L),R={isCanceled:!1};G.kill=l.bind(null,G.kill.bind(G)),G.cancel=h.bind(null,G,R);let K=s(async()=>{let[{error:q,exitCode:Z,signal:N,timedOut:z},ee,ae,oe]=await b(G,I.options,M),de=F(I.options,ee),pe=F(I.options,ae),j=F(I.options,oe);if(q||Z!==0||N!==null){let W=o({error:q,exitCode:Z,signal:N,stdout:de,stderr:pe,all:j,command:B,escapedCommand:H,parsed:I,timedOut:z,isCanceled:R.isCanceled,killed:G.killed});if(!I.options.reject)return W;throw W}return{command:B,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(G,I.options.input),G.all=_(G,I.options),S(G,K)};r.exports=T,r.exports.sync=(k,O,P)=>{let I=D(k,O,P),B=v(k,O),H=w(k,O);g(I.options);let G;try{G=n.spawnSync(I.file,I.args,I.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:B,escapedCommand:H,parsed:I,timedOut:!1,isCanceled:!1,killed:!1})}let Q=F(I.options,G.stdout,G.error),L=F(I.options,G.stderr,G.error);if(G.error||G.status!==0||G.signal!==null){let M=o({stdout:Q,stderr:L,error:G.error,signal:G.signal,exitCode:G.status,command:B,escapedCommand:H,parsed:I,timedOut:G.error&&G.error.code==="ETIMEDOUT",isCanceled:!1,killed:G.signal!==null});if(!I.options.reject)return M;throw M}return{command:B,escapedCommand:H,exitCode:0,stdout:Q,stderr:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(k,O)=>{let[P,...I]=m(k);return T(P,I,O)},r.exports.commandSync=(k,O)=>{let[P,...I]=m(k);return T.sync(P,I,O)},r.exports.node=(k,O,P={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(P=O,O=[]);let I=f.node(P),B=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:G=B}=P;return T(H,[...G,k,...Array.isArray(O)?O:[]],{...P,stdin:void 0,stdout:void 0,stderr:void 0,stdio:I,shell:!1})}});J();var Zj=Je(eT());var tT=re((e,r)=>{"use strict";J();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),rT=re((e,r)=>{"use strict";J(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),F2=re((e,r)=>{J();var t=rT(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),nT=re((e,r)=>{J();var t=F2();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),iT=re((e,r)=>{J();var t=F2(),n=nT(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),sT=re((e,r)=>{"use strict";J();var t=iT(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),oT=re((e,r)=>{"use strict";J(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),aT=re((e,r)=>{"use strict";J();var t=ce("os"),n=oT(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),uT=re((e,r)=>{"use strict";J();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
113
113
  `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(c,(_,g,S)=>g?s(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),js=re((e,r)=>{"use strict";J();var t=tT(),n=sT(),i=aT().stdout,c=uT(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),f=Object.create(null);function l(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return l(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}l(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))o.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[s[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(o.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[s[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return c(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports}),lT=re((e,r)=>{"use strict";J(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),P2=re((e,r)=>{J();var t=lT(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:o}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:s}),Object.defineProperty(i[a],"labels",{value:o})}i.rgb.hsl=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(s,o,f),h=Math.max(s,o,f),u=h-l,d,p;h===l?d=0:s===h?d=(o-f)/u:o===h?d=2+(f-s)/u:f===h&&(d=4+(s-o)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+h)/2;return h===l?p=0:y<=.5?p=u/(h+l):p=u/(2-h-l),[d,p*100,y*100]},i.rgb.hsv=function(a){let s,o,f,l,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,h=0):(h=b/y,s=_(u),o=_(d),f=_(p),u===y?l=f-o:d===y?l=1/3+s-f:p===y&&(l=2/3+o-s),l<0?l+=1:l>1&&(l-=1)),[l*360,h*100,y*100]},i.rgb.hwb=function(a){let s=a[0],o=a[1],f=a[2],l=i.rgb.hsl(a)[0],h=1/255*Math.min(s,Math.min(o,f));return f=1-1/255*Math.max(s,Math.max(o,f)),[l,h*100,f*100]},i.rgb.cmyk=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(1-s,1-o,1-f),h=(1-s-l)/(1-l)||0,u=(1-o-l)/(1-l)||0,d=(1-f-l)/(1-l)||0;return[h*100,u*100,d*100,l*100]};function c(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}i.rgb.keyword=function(a){let s=n[a];if(s)return s;let o=1/0,f;for(let l of Object.keys(t)){let h=t[l],u=c(a,h);u<o&&(o=u,f=l)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let l=s*.4124+o*.3576+f*.1805,h=s*.2126+o*.7152+f*.0722,u=s*.0193+o*.1192+f*.9505;return[l*100,h*100,u*100]},i.rgb.lab=function(a){let s=i.rgb.xyz(a),o=s[0],f=s[1],l=s[2];o/=95.047,f/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let h=116*f-16,u=500*(o-f),d=200*(f-l);return[h,u,d]},i.hsl.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l,h,u;if(o===0)return u=f*255,[u,u,u];f<.5?l=f*(1+o):l=f+o-f*o;let d=2*f-l,p=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(l-d)*6*h:2*h<1?u=l:3*h<2?u=d+(l-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=o,h=Math.max(f,.01);f*=2,o*=f<=1?f:2-f,l*=h<=1?h:2-h;let u=(f+o)/2,d=f===0?2*l/(h+l):2*o/(f+o);return[s,d*100,u*100]},i.hsv.rgb=function(a){let s=a[0]/60,o=a[1]/100,f=a[2]/100,l=Math.floor(s)%6,h=s-Math.floor(s),u=255*f*(1-o),d=255*f*(1-o*h),p=255*f*(1-o*(1-h));switch(f*=255,l){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=Math.max(f,.01),h,u;u=(2-o)*f;let d=(2-o)*l;return h=o*l,h/=d<=1?d:2-d,h=h||0,u/=2,[s,h*100,u*100]},i.hwb.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l=o+f,h;l>1&&(o/=l,f/=l);let u=Math.floor(6*s),d=1-f;h=6*s-u,u&1&&(h=1-h);let p=o+h*(d-o),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=o;break;case 1:y=p,b=d,_=o;break;case 2:y=o,b=d,_=p;break;case 3:y=o,b=p,_=d;break;case 4:y=p,b=o,_=d;break;case 5:y=d,b=o,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l=a[3]/100,h=1-Math.min(1,s*(1-l)+l),u=1-Math.min(1,o*(1-l)+l),d=1-Math.min(1,f*(1-l)+l);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l,h,u;return l=s*3.2406+o*-1.5372+f*-.4986,h=s*-.9689+o*1.8758+f*.0415,u=s*.0557+o*-.204+f*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,l=Math.min(Math.max(0,l),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[l*255,h*255,u*255]},i.xyz.lab=function(a){let s=a[0],o=a[1],f=a[2];s/=95.047,o/=100,f/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let l=116*o-16,h=500*(s-o),u=200*(o-f);return[l,h,u]},i.lab.xyz=function(a){let s=a[0],o=a[1],f=a[2],l,h,u;h=(s+16)/116,l=o/500+h,u=h-f/200;let d=h**3,p=l**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,l=p>.008856?p:(l-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,l*=95.047,h*=100,u*=108.883,[l,h,u]},i.lab.lch=function(a){let s=a[0],o=a[1],f=a[2],l;l=Math.atan2(f,o)*360/2/Math.PI,l<0&&(l+=360);let h=Math.sqrt(o*o+f*f);return[s,h,l]},i.lch.lab=function(a){let s=a[0],o=a[1],f=a[2]/360*2*Math.PI,l=o*Math.cos(f),h=o*Math.sin(f);return[s,l,h]},i.rgb.ansi16=function(a,s=null){let[o,f,l]=a,h=s===null?i.rgb.hsv(a)[2]:s;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(l/255)<<2|Math.round(f/255)<<1|Math.round(o/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let s=a[0],o=a[1],f=a[2];return s===o&&o===f?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(o/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let o=(~~(a>50)+1)*.5,f=(s&1)*o*255,l=(s>>1&1)*o*255,h=(s>>2&1)*o*255;return[f,l,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let s,o=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,l=s%6/5*255;return[o,f,l]},i.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let o=s[0];s[0].length===3&&(o=o.split("").map(d=>d+d).join(""));let f=parseInt(o,16),l=f>>16&255,h=f>>8&255,u=f&255;return[l,h,u]},i.rgb.hcg=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.max(Math.max(s,o),f),h=Math.min(Math.min(s,o),f),u=l-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:l===s?p=(o-f)/u%6:l===o?p=2+(f-s)/u:p=4+(s-o)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=o<.5?2*s*o:2*s*(1-o),l=0;return f<1&&(l=(o-.5*f)/(1-f)),[a[0],f*100,l*100]},i.hsv.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=s*o,l=0;return f<1&&(l=(o-f)/(1-f)),[a[0],f*100,l*100]},i.hcg.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100;if(o===0)return[f*255,f*255,f*255];let l=[0,0,0],h=s%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:l[0]=1,l[1]=u,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=u;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=u,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return p=(1-o)*f,[(o*l[0]+p)*255,(o*l[1]+p)*255,(o*l[2]+p)*255]},i.hcg.hsv=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s),l=0;return f>0&&(l=s/f),[a[0],l*100,f*100]},i.hcg.hsl=function(a){let s=a[1]/100,o=a[2]/100*(1-s)+.5*s,f=0;return o>0&&o<.5?f=s/(2*o):o>=.5&&o<1&&(f=s/(2*(1-o))),[a[0],f*100,o*100]},i.hcg.hwb=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s);return[a[0],(f-s)*100,(1-f)*100]},i.hwb.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=1-o,l=f-s,h=0;return l<1&&(h=(f-l)/(1-l)),[a[0],l*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,o=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),cT=re((e,r)=>{J();var t=P2();function n(){let s={},o=Object.keys(t);for(let f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){let o=n(),f=[s];for(o[s].distance=0;f.length;){let l=f.pop(),h=Object.keys(t[l]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){let f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;for(;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){let o=i(s),f={},l=Object.keys(o);for(let h=l.length,u=0;u<h;u++){let d=l[u];o[d].parent!==null&&(f[d]=a(d,o))}return f}}),hT=re((e,r)=>{J();var t=P2(),n=cT(),i={},c=Object.keys(t);function a(o){let f=function(...l){let h=l[0];return h==null?h:(h.length>1&&(l=h),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){let f=function(...l){let h=l[0];if(h==null)return h;h.length>1&&(l=h);let u=o(l);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(o=>{i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});let f=n(o);Object.keys(f).forEach(l=>{let h=f[l];i[o][l]=s(h),i[o][l].raw=a(h)})}),r.exports=i}),B2=re((e,r)=>{"use strict";J();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},c=h=>h,a=(h,u,d)=>[h,u,d],s=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},o,f=(h,u,d,p)=>{o===void 0&&(o=hT());let y=p?10:0,b={};for(let[_,g]of Object.entries(o)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function l(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",s(u.color,"ansi",()=>f(t,"ansi16",c,!1)),s(u.color,"ansi256",()=>f(n,"ansi256",c,!1)),s(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),s(u.bgColor,"ansi",()=>f(t,"ansi16",c,!0)),s(u.bgColor,"ansi256",()=>f(n,"ansi256",c,!0)),s(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:l})}),fT=re((e,r)=>{"use strict";J(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1||c<a)}}),L2=re((e,r)=>{"use strict";J();var t=ce("os"),n=ce("tty"),i=fT(),{env:c}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?a=1:c.FORCE_COLOR==="false"?a=0:a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function s(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!h&&a===void 0)return 0;let u=a||0;if(c.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:u}function f(l){let h=o(l,l&&l.isTTY);return s(h)}r.exports={supportsColor:f,stdout:s(o(!0,n.isatty(1))),stderr:s(o(!0,n.isatty(2)))}}),pT=re((e,r)=>{"use strict";J();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
114
114
  `:`
115
115
  `)+a,o=s+1,s=i.indexOf(`
@@ -131,19 +131,19 @@ GFS4: `),console.error(g)}),t[s]||(u=global[s]||[],l(t,u),t.close=function(g){fu
131
131
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),s.checkPaths(T,k,"copy",O,(I,B)=>{if(I)return P(I);let{srcStat:H,destStat:G}=B;s.checkParentPaths(T,H,k,"copy",Q=>{if(Q)return P(Q);l(T,k,O,(L,M)=>{if(L)return P(L);if(!M)return P();f(G,T,k,O,P)})})})}function f(T,k,O,P,I){let B=n.dirname(O);c(B,(H,G)=>{if(H)return I(H);if(G)return h(T,k,O,P,I);i(B,Q=>Q?I(Q):h(T,k,O,P,I))})}function l(T,k,O,P){if(!O.filter)return P(null,!0);Promise.resolve(O.filter(T,k)).then(I=>P(null,I),I=>P(I))}function h(T,k,O,P,I){(P.dereference?t.stat:t.lstat)(k,(B,H)=>B?I(B):H.isDirectory()?v(H,T,k,O,P,I):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,T,k,O,P,I):H.isSymbolicLink()?D(T,k,O,P,I):H.isSocket()?I(new Error(`Cannot copy a socket file: ${k}`)):H.isFIFO()?I(new Error(`Cannot copy a FIFO pipe: ${k}`)):I(new Error(`Unknown file: ${k}`)))}function u(T,k,O,P,I,B){return k?d(T,O,P,I,B):p(T,O,P,I,B)}function d(T,k,O,P,I){if(P.overwrite)t.unlink(O,B=>B?I(B):p(T,k,O,P,I));else return P.errorOnExist?I(new Error(`'${O}' already exists`)):I()}function p(T,k,O,P,I){t.copyFile(k,O,B=>B?I(B):P.preserveTimestamps?y(T.mode,k,O,I):S(O,T.mode,I))}function y(T,k,O,P){return b(T)?_(O,T,I=>I?P(I):g(T,k,O,P)):g(T,k,O,P)}function b(T){return(T&128)===0}function _(T,k,O){return S(T,k|128,O)}function g(T,k,O,P){E(k,O,I=>I?P(I):S(O,T,P))}function S(T,k,O){return t.chmod(T,k,O)}function E(T,k,O){t.stat(T,(P,I)=>P?O(P):a(k,I.atime,I.mtime,O))}function v(T,k,O,P,I,B){return k?w(O,P,I,B):m(T.mode,O,P,I,B)}function m(T,k,O,P,I){t.mkdir(O,B=>{if(B)return I(B);w(k,O,P,H=>H?I(H):S(O,T,I))})}function w(T,k,O,P){t.readdir(T,(I,B)=>I?P(I):A(B,T,k,O,P))}function A(T,k,O,P,I){let B=T.pop();return B?x(T,B,k,O,P,I):I()}function x(T,k,O,P,I,B){let H=n.join(O,k),G=n.join(P,k);l(H,G,I,(Q,L)=>{if(Q)return B(Q);if(!L)return A(T,O,P,I,B);s.checkPaths(H,G,"copy",I,(M,R)=>{if(M)return B(M);let{destStat:K}=R;h(K,H,G,I,q=>q?B(q):A(T,O,P,I,B))})})}function D(T,k,O,P,I){t.readlink(k,(B,H)=>{if(B)return I(B);if(P.dereference&&(H=n.resolve(process.cwd(),H)),T)t.readlink(O,(G,Q)=>G?G.code==="EINVAL"||G.code==="UNKNOWN"?t.symlink(H,O,I):I(G):(P.dereference&&(Q=n.resolve(process.cwd(),Q)),s.isSrcSubdir(H,Q)?I(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${Q}'.`)):s.isSrcSubdir(Q,H)?I(new Error(`Cannot overwrite '${Q}' with '${H}'.`)):F(H,O,I)));else return t.symlink(H,O,I)})}function F(T,k,O){t.unlink(k,P=>P?O(P):t.symlink(T,k,O))}r.exports=o}),e3=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=qt().mkdirsSync,c=$2().utimesMillisSync,a=Cn();function s(w,A,x){typeof x=="function"&&(x={filter:x}),x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
132
132
 
133
133
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:D,destStat:F}=a.checkPathsSync(w,A,"copy",x);if(a.checkParentPathsSync(w,D,A,"copy"),x.filter&&!x.filter(w,A))return;let T=n.dirname(A);return t.existsSync(T)||i(T),o(F,w,A,x)}function o(w,A,x,D){let F=(D.dereference?t.statSync:t.lstatSync)(A);if(F.isDirectory())return _(F,w,A,x,D);if(F.isFile()||F.isCharacterDevice()||F.isBlockDevice())return f(F,w,A,x,D);if(F.isSymbolicLink())return v(w,A,x,D);throw F.isSocket()?new Error(`Cannot copy a socket file: ${A}`):F.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${A}`):new Error(`Unknown file: ${A}`)}function f(w,A,x,D,F){return A?l(w,x,D,F):h(w,x,D,F)}function l(w,A,x,D){if(D.overwrite)return t.unlinkSync(x),h(w,A,x,D);if(D.errorOnExist)throw new Error(`'${x}' already exists`)}function h(w,A,x,D){return t.copyFileSync(A,x),D.preserveTimestamps&&u(w.mode,A,x),y(x,w.mode)}function u(w,A,x){return d(w)&&p(x,w),b(A,x)}function d(w){return(w&128)===0}function p(w,A){return y(w,A|128)}function y(w,A){return t.chmodSync(w,A)}function b(w,A){let x=t.statSync(w);return c(A,x.atime,x.mtime)}function _(w,A,x,D,F){return A?S(x,D,F):g(w.mode,x,D,F)}function g(w,A,x,D){return t.mkdirSync(x),S(A,x,D),y(x,w)}function S(w,A,x){t.readdirSync(w).forEach(D=>E(D,w,A,x))}function E(w,A,x,D){let F=n.join(A,w),T=n.join(x,w);if(D.filter&&!D.filter(F,T))return;let{destStat:k}=a.checkPathsSync(F,T,"copy",D);return o(k,F,T,D)}function v(w,A,x,D){let F=t.readlinkSync(A);if(D.dereference&&(F=n.resolve(process.cwd(),F)),w){let T;try{T=t.readlinkSync(x)}catch(k){if(k.code==="EINVAL"||k.code==="UNKNOWN")return t.symlinkSync(F,x);throw k}if(D.dereference&&(T=n.resolve(process.cwd(),T)),a.isSrcSubdir(F,T))throw new Error(`Cannot copy '${F}' to a subdirectory of itself, '${T}'.`);if(a.isSrcSubdir(T,F))throw new Error(`Cannot overwrite '${T}' with '${F}'.`);return m(F,x)}else return t.symlinkSync(F,x)}function m(w,A){return t.unlinkSync(A),t.symlinkSync(w,A)}r.exports=s}),ml=re((e,r)=>{"use strict";J();var t=_t().fromCallback;r.exports={copy:t(QT()),copySync:e3()}}),$s=re((e,r)=>{"use strict";J();var t=je(),n=_t().fromCallback;function i(a,s){t.rm(a,{recursive:!0,force:!0},s)}function c(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:c}}),t3=re((e,r)=>{"use strict";J();var t=_t().fromPromise,n=xn(),i=ce("path"),c=qt(),a=$s(),s=t(async function(f){let l;try{l=await n.readdir(f)}catch{return c.mkdirs(f)}return Promise.all(l.map(h=>a.remove(i.join(f,h))))});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),r3=re((e,r)=>{"use strict";J();var t=_t().fromCallback,n=ce("path"),i=je(),c=qt();function a(o,f){function l(){i.writeFile(o,"",h=>{if(h)return f(h);f()})}i.stat(o,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(o);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?c.mkdirs(d,b=>{if(b)return f(b);l()}):f(p);y.isDirectory()?l():i.readdir(d,b=>{if(b)return f(b)})})})}function s(o){let f;try{f=i.statSync(o)}catch{}if(f&&f.isFile())return;let l=n.dirname(o);try{i.statSync(l).isDirectory()||i.readdirSync(l)}catch(h){if(h&&h.code==="ENOENT")c.mkdirsSync(l);else throw h}i.writeFileSync(o,"")}r.exports={createFile:t(a),createFileSync:s}}),n3=re((e,r)=>{"use strict";J();var t=_t().fromCallback,n=ce("path"),i=je(),c=qt(),a=Br().pathExists,{areIdentical:s}=Cn();function o(l,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(l,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&s(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(l,h);c.mkdirs(g,v=>{if(v)return u(v);d(l,h)})})})})}function f(l,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(l);if(u&&s(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||c.mkdirsSync(d),i.linkSync(l,h)}r.exports={createLink:t(o),createLinkSync:f}}),i3=re((e,r)=>{"use strict";J();var t=ce("path"),n=je(),i=Br().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),s3=re((e,r)=>{"use strict";J();var t=je();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),o3=re((e,r)=>{"use strict";J();var t=_t().fromCallback,n=ce("path"),i=xn(),c=qt(),a=c.mkdirs,s=c.mkdirsSync,o=i3(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=s3(),u=h.symlinkType,d=h.symlinkTypeSync,p=Br().pathExists,{areIdentical:y}=Cn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,A)=>{!w&&A.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([x,D])=>{if(y(x,D))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,A)=>{if(w)return m(w);S=A.toDst,u(A.toCwd,v,(x,D)=>{if(x)return m(x);let F=n.dirname(E);p(F,(T,k)=>{if(T)return m(T);if(k)return i.symlink(S,E,D,m);a(F,O=>{if(O)return m(O);i.symlink(S,E,D,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let x=i.statSync(S),D=i.statSync(E);if(y(x,D))return}let w=l(S,E);S=w.toDst,v=d(w.toCwd,v);let A=n.dirname(E);return i.existsSync(A)||s(A),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),a3=re((e,r)=>{"use strict";J();var{createFile:t,createFileSync:n}=r3(),{createLink:i,createLinkSync:c}=n3(),{createSymlink:a,createSymlinkSync:s}=o3();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:c,ensureLink:i,ensureLinkSync:c,createSymlink:a,createSymlinkSync:s,ensureSymlink:a,ensureSymlinkSync:s}}),yl=re((e,r)=>{J();function t(i,{EOL:c=`
134
- `,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),u3=re((e,r)=>{J();var t;try{t=je()}catch{t=ce("fs")}var n=_t(),{stringify:i,stripBom:c}=yl();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),l3=re((e,r)=>{"use strict";J();var t=u3();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),gl=re((e,r)=>{"use strict";J();var t=_t().fromCallback,n=je(),i=ce("path"),c=qt(),a=Br().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),c3=re((e,r)=>{"use strict";J();var{stringify:t}=yl(),{outputFile:n}=gl();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),h3=re((e,r)=>{"use strict";J();var{stringify:t}=yl(),{outputFileSync:n}=gl();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),f3=re((e,r)=>{"use strict";J();var t=_t().fromPromise,n=l3();n.outputJson=t(c3()),n.outputJsonSync=h3(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),p3=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=ml().copy,c=$s().remove,a=qt().mkdirp,s=Br().pathExists,o=Cn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),d3=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=ml().copySync,c=$s().removeSync,a=qt().mkdirpSync,s=Cn();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),m3=re((e,r)=>{"use strict";J();var t=_t().fromCallback;r.exports={move:t(p3()),moveSync:d3()}}),Hs=re((e,r)=>{"use strict";J(),r.exports={...xn(),...ml(),...t3(),...a3(),...f3(),...qt(),...m3(),...gl(),...Br(),...$s()}});J();var Zj=Je(Hs());J();var Jj=Je(Hs()),Qj=Je(js());J();var pi=re((e,r)=>{"use strict";J();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),bl=re((e,r)=>{"use strict";J();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),D=Symbol("destroyed"),F=Symbol("emitData"),T=Symbol("emitEnd"),k=Symbol("emitEnd2"),O=Symbol("async"),P=K=>Promise.resolve().then(K),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=I&&Symbol.iterator||Symbol("iterator not implemented"),G=K=>K==="end"||K==="finish"||K==="prefinish",Q=K=>K instanceof ArrayBuffer||typeof K=="object"&&K.constructor&&K.constructor.name==="ArrayBuffer"&&K.byteLength>=0,L=K=>!Buffer.isBuffer(K)&&ArrayBuffer.isView(K),M=class{constructor(K,q,Z){this.src=K,this.dest=q,this.opts=Z,this.ondrain=()=>K[S](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(K,q,Z){super(K,q,Z),this.proxyErrors=N=>q.emit("error",N),K.on("error",this.proxyErrors)}};r.exports=class G2 extends i{constructor(q){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=q&&q.objectMode||!1,this[x]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[D]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new c(q):null,this[E].length&&(this[E]=this[E].map(Z=>this[b].write(Z)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[x]}set objectMode(q){this[x]=this[x]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,Z,N){if(this[a])throw new Error("write after end");if(this[D])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Z=="function"&&(N=Z,Z="utf8"),Z||(Z="utf8");let z=this[O]?P:ee=>ee();return!this[x]&&!Buffer.isBuffer(q)&&(L(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):Q(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&z(N),this.flowing):q.length?(typeof q=="string"&&!(Z===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,Z)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&z(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&z(N),this.flowing)}read(q){if(this[D])return null;if(this[m]===0||q===0||q>this[m])return this[s](),null;this[x]&&(q=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Z=this[u](q||null,this[E][0]);return this[s](),Z}[u](q,Z){return q===Z.length||q===null?this[A]():(this[E][0]=Z.slice(q),Z=Z.slice(0,q),this[m]-=q),this.emit("data",Z),!this[E].length&&!this[a]&&this.emit("drain"),Z}end(q,Z,N){return typeof q=="function"&&(N=q,q=null),typeof Z=="function"&&(N=Z,Z="utf8"),q&&this.write(q,Z),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[D]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[D]}get flowing(){return this[_]}get paused(){return this[g]}[w](q){this[x]?this[m]+=1:this[m]+=q.length,this[E].push(q)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](q){do;while(this[p](this[A]()));!q&&!this[E].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,Z){if(this[D])return;let N=this[o];return Z=Z||{},q===t.stdout||q===t.stderr?Z.end=!1:Z.end=Z.end!==!1,Z.proxyErrors=!!Z.proxyErrors,N?Z.end&&q.end():(this[v].push(Z.proxyErrors?new R(this,q,Z):new M(this,q,Z)),this[O]?P(()=>this[S]()):this[S]()),q}unpipe(q){let Z=this[v].find(N=>N.dest===q);Z&&(this[v].splice(this[v].indexOf(Z),1),Z.unpipe())}addListener(q,Z){return this.on(q,Z)}on(q,Z){let N=super.on(q,Z);return q==="data"&&!this[v].length&&!this.flowing?this[S]():q==="readable"&&this[m]!==0?super.emit("readable"):G(q)&&this[o]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[l]&&(this[O]?P(()=>Z.call(this,this[l])):Z.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[D]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(q,Z,...N){if(q!=="error"&&q!=="close"&&q!==D&&this[D])return;if(q==="data")return Z?this[O]?P(()=>this[F](Z)):this[F](Z):!1;if(q==="end")return this[T]();if(q==="close"){if(this[h]=!0,!this[o]&&!this[D])return;let ee=super.emit("close");return this.removeAllListeners("close"),ee}else if(q==="error"){this[l]=Z;let ee=super.emit("error",Z);return this[s](),ee}else if(q==="resume"){let ee=super.emit("resume");return this[s](),ee}else if(q==="finish"||q==="prefinish"){let ee=super.emit(q);return this.removeAllListeners(q),ee}let z=super.emit(q,Z,...N);return this[s](),z}[F](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let Z=super.emit("data",q);return this[s](),Z}[T](){this[o]||(this[o]=!0,this.readable=!1,this[O]?P(()=>this[k]()):this[k]())}[k](){if(this[b]){let Z=this[b].end();if(Z){for(let N of this[v])N.dest.write(Z);super.emit("data",Z)}}for(let Z of this[v])Z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[x]||(q.dataLength=0);let Z=this.promise();return this.on("data",N=>{q.push(N),this[x]||(q.dataLength+=N.length)}),Z.then(()=>q)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,Z)=>{this.on(D,()=>Z(new Error("stream destroyed"))),this.on("error",N=>Z(N)),this.on("end",()=>q())})}[B](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[a])return Promise.resolve({done:!0});let Z=null,N=null,z=de=>{this.removeListener("data",ee),this.removeListener("end",ae),N(de)},ee=de=>{this.removeListener("error",z),this.removeListener("end",ae),this.pause(),Z({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",z),this.removeListener("data",ee),Z({done:!0})},oe=()=>z(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Z=de,this.once(D,oe),this.once("error",z),this.once("end",ae),this.once("data",ee)})}}}[H](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[D]?(q?this.emit("error",q):this.emit(D),this):(this[D]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),q?this.emit("error",q):this.emit(D),this)}static isStream(q){return!!q&&(q instanceof G2||q instanceof i||q instanceof n&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),y3=re((e,r)=>{J();var t=ce("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),U2=re((e,r)=>{"use strict";J();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),D=Symbol("emitEnd"),F=Symbol("emitEnd2"),T=Symbol("async"),k=M=>Promise.resolve().then(M),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=O&&Symbol.iterator||Symbol("iterator not implemented"),B=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,G=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),Q=class{constructor(M,R,K){this.src=M,this.dest=R,this.opts=K,this.ondrain=()=>M[S](),R.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},L=class extends Q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,R,K){super(M,R,K),this.proxyErrors=q=>R.emit("error",q),M.on("error",this.proxyErrors)}};r.exports=class W2 extends i{constructor(R){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=R&&R.objectMode||!1,this[w]?this[y]=null:this[y]=R&&R.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=R&&!!R.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(R){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&R!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==R&&(this[b]=R?new c(R):null,this.buffer.length&&(this.buffer=this.buffer.map(K=>this[b].write(K)))),this[y]=R}setEncoding(R){this.encoding=R}get objectMode(){return this[w]}set objectMode(R){this[w]=this[w]||!!R}get async(){return this[T]}set async(R){this[T]=this[T]||!!R}write(R,K,q){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof K=="function"&&(q=K,K="utf8"),K||(K="utf8");let Z=this[T]?k:N=>N();return!this[w]&&!Buffer.isBuffer(R)&&(G(R)?R=Buffer.from(R.buffer,R.byteOffset,R.byteLength):H(R)?R=Buffer.from(R):typeof R!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):R.length?(typeof R=="string"&&!(K===this[y]&&!this[b].lastNeed)&&(R=Buffer.from(R,K)),Buffer.isBuffer(R)&&this[y]&&(R=this[b].write(R)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(R){if(this[A])return null;if(this[E]===0||R===0||R>this[E])return this[s](),null;this[w]&&(R=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let K=this[u](R||null,this.buffer[0]);return this[s](),K}[u](R,K){return R===K.length||R===null?this[m]():(this.buffer[0]=K.slice(R),K=K.slice(0,R),this[E]-=R),this.emit("data",K),!this.buffer.length&&!this[a]&&this.emit("drain"),K}end(R,K,q){return typeof R=="function"&&(q=R,R=null),typeof K=="function"&&(q=K,K="utf8"),R&&this.write(R,K),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](R){this[w]?this[E]+=1:this[E]+=R.length,this.buffer.push(R)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](R){do;while(this[p](this[m]()));!R&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](R){return R?(this.emit("data",R),this.flowing):!1}pipe(R,K){if(this[A])return;let q=this[o];return K=K||{},R===t.stdout||R===t.stderr?K.end=!1:K.end=K.end!==!1,K.proxyErrors=!!K.proxyErrors,q?K.end&&R.end():(this.pipes.push(K.proxyErrors?new L(this,R,K):new Q(this,R,K)),this[T]?k(()=>this[S]()):this[S]()),R}unpipe(R){let K=this.pipes.find(q=>q.dest===R);K&&(this.pipes.splice(this.pipes.indexOf(K),1),K.unpipe())}addListener(R,K){return this.on(R,K)}on(R,K){let q=super.on(R,K);return R==="data"&&!this.pipes.length&&!this.flowing?this[S]():R==="readable"&&this[E]!==0?super.emit("readable"):B(R)&&this[o]?(super.emit(R),this.removeAllListeners(R)):R==="error"&&this[l]&&(this[T]?k(()=>K.call(this,this[l])):K.call(this,this[l])),q}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(R,K,...q){if(R!=="error"&&R!=="close"&&R!==A&&this[A])return;if(R==="data")return K?this[T]?k(()=>this[x](K)):this[x](K):!1;if(R==="end")return this[D]();if(R==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(R==="error"){this[l]=K;let N=super.emit("error",K);return this[s](),N}else if(R==="resume"){let N=super.emit("resume");return this[s](),N}else if(R==="finish"||R==="prefinish"){let N=super.emit(R);return this.removeAllListeners(R),N}let Z=super.emit(R,K,...q);return this[s](),Z}[x](R){for(let q of this.pipes)q.dest.write(R)===!1&&this.pause();let K=super.emit("data",R);return this[s](),K}[D](){this[o]||(this[o]=!0,this.readable=!1,this[T]?k(()=>this[F]()):this[F]())}[F](){if(this[b]){let K=this[b].end();if(K){for(let q of this.pipes)q.dest.write(K);super.emit("data",K)}}for(let K of this.pipes)K.end();let R=super.emit("end");return this.removeAllListeners("end"),R}collect(){let R=[];this[w]||(R.dataLength=0);let K=this.promise();return this.on("data",q=>{R.push(q),this[w]||(R.dataLength+=q.length)}),K.then(()=>R)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(R=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?R.join(""):Buffer.concat(R,R.dataLength))}promise(){return new Promise((R,K)=>{this.on(A,()=>K(new Error("stream destroyed"))),this.on("error",q=>K(q)),this.on("end",()=>R())})}[P](){return{next:()=>{let R=this.read();if(R!==null)return Promise.resolve({done:!1,value:R});if(this[a])return Promise.resolve({done:!0});let K=null,q=null,Z=ae=>{this.removeListener("data",N),this.removeListener("end",z),q(ae)},N=ae=>{this.removeListener("error",Z),this.removeListener("end",z),this.pause(),K({value:ae,done:!!this[a]})},z=()=>{this.removeListener("error",Z),this.removeListener("data",N),K({done:!0})},ee=()=>Z(new Error("stream destroyed"));return new Promise((ae,oe)=>{q=oe,K=ae,this.once(A,ee),this.once("error",Z),this.once("end",z),this.once("data",N)})}}}[I](){return{next:()=>{let R=this.read();return{value:R,done:R===null}}}}destroy(R){return this[A]?(R?this.emit("error",R):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),R?this.emit("error",R):this.emit(A),this)}static isStream(R){return!!R&&(R instanceof W2||R instanceof i||R instanceof n&&(typeof R.pipe=="function"||typeof R.write=="function"&&typeof R.end=="function"))}}}),z2=re(e=>{"use strict";J();var r=ce("assert"),t=ce("buffer").Buffer,n=ce("zlib"),i=e.constants=y3(),c=U2(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(B,H){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[g]=!1,this[f]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new n[H](B)}catch(G){throw new o(G)}this[p]=G=>{this[y]||(this[y]=!0,this.close(),this.emit("error",G))},this[d].on("error",G=>this[p](new o(G))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[u]),this.write(Object.assign(t.alloc(0),{[l]:B})))}end(B,H,G){return B&&this.write(B,H),this.flush(this[h]),this[g]=!0,super.end(null,null,G)}get ended(){return this[g]}write(B,H,G){if(typeof H=="function"&&(G=H,H="utf8"),typeof B=="string"&&(B=t.from(B,H)),this[y])return;r(this[d],"zlib binding closed");let Q=this[d]._handle,L=Q.close;Q.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=q=>q;let R;try{let q=typeof B[l]=="number"?B[l]:this[l];R=this[d]._processChunk(B,q),t.concat=a}catch(q){t.concat=a,this[p](new o(q))}finally{this[d]&&(this[d]._handle=Q,Q.close=L,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new o(q)));let K;if(R)if(Array.isArray(R)&&R.length>0){K=this[s](t.from(R[0]));for(let q=1;q<R.length;q++)K=this[s](R[q])}else K=this[s](t.from(R));return G&&G(),K}[s](B){return super.write(B)}},v=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.Z_NO_FLUSH,B.finishFlush=B.finishFlush||i.Z_FINISH,super(B,H),this[u]=i.Z_FULL_FLUSH,this[b]=B.level,this[_]=B.strategy}params(B,H){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==B||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let G=this[d].flush;this[d].flush=(Q,L)=>{this.flush(Q),L()};try{this[d].params(B,H)}finally{this[d].flush=G}this[d]&&(this[b]=B,this[_]=H)}}}},m=class extends v{constructor(B){super(B,"Deflate")}},w=class extends v{constructor(B){super(B,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(B){super(B,"Gzip"),this[A]=B&&!!B.portable}[s](B){return this[A]?(this[A]=!1,B[9]=255,super[s](B)):super[s](B)}},D=class extends v{constructor(B){super(B,"Gunzip")}},F=class extends v{constructor(B){super(B,"DeflateRaw")}},T=class extends v{constructor(B){super(B,"InflateRaw")}},k=class extends v{constructor(B){super(B,"Unzip")}},O=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||i.BROTLI_OPERATION_FINISH,super(B,H),this[u]=i.BROTLI_OPERATION_FLUSH}},P=class extends O{constructor(B){super(B,"BrotliCompress")}},I=class extends O{constructor(B){super(B,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=D,e.DeflateRaw=F,e.InflateRaw=T,e.Unzip=k,typeof n.BrotliCompress=="function"?(e.BrotliCompress=P,e.BrotliDecompress=I):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),di=re((e,r)=>{J();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),vl=re((e,r)=>{"use strict";J();var t=bl(),n=di(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),V2=re(e=>{"use strict";J(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),g3=re((e,r)=>{"use strict";J();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),mi=re((e,r)=>{"use strict";J();var t=V2(),n=ce("path").posix,i=g3(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,D){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,A||0,x,D):w&&this.set(w)}decode(w,A,x,D){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](D,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let T=f(w,A+345,155);this.path=T+"/"+this.path}else{let T=f(w,A+345,130);T&&(this.path=T+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let F=8*32;for(let T=A;T<A+148;T++)F+=w[T];for(let T=A+156;T<A+512;T++)F+=w[T];this.cksumValid=F===this.cksum,this.cksum===null&&F===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,D=o(this.path||"",x),F=D[0],T=D[1];this.needPax=D[2],this.needPax=m(w,A,100,F)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,T)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,T)||this.needPax:(this.needPax=m(w,A+345,130,T)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let k=8*32;for(let O=A;O<A+148;O++)k+=w[O];for(let O=A+156;O<A+512;O++)k+=w[O];return this.cksum=k,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,D="",F,T=n.parse(w).root||".";if(Buffer.byteLength(x)<100)F=[x,D,!1];else{D=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(D)<=A?F=[x,D,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(D)<=A?F=[x.slice(0,100-1),D,!0]:(x=n.join(n.basename(D),x),D=n.dirname(D));while(D!==T&&!F);F||(F=[w.slice(0,100-1),"",!0])}return F},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,D)=>D===null?!1:D>y[x]||D<0?(i.encode(D,w.slice(A,A+x)),!0):(_(w,A,x,D),!1),_=(w,A,x,D)=>w.write(g(D,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,D)=>D===null?!1:b(w,A,x,D.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,D)=>D===null?!1:(w.write(D+v,A,x,"utf8"),D.length!==Buffer.byteLength(D)||D.length>x);r.exports=s}),_l=re((e,r)=>{"use strict";J();var t=mi(),n=ce("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
134
+ `,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),u3=re((e,r)=>{J();var t;try{t=je()}catch{t=ce("fs")}var n=_t(),{stringify:i,stripBom:c}=yl();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),l3=re((e,r)=>{"use strict";J();var t=u3();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),gl=re((e,r)=>{"use strict";J();var t=_t().fromCallback,n=je(),i=ce("path"),c=qt(),a=Br().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),c3=re((e,r)=>{"use strict";J();var{stringify:t}=yl(),{outputFile:n}=gl();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),h3=re((e,r)=>{"use strict";J();var{stringify:t}=yl(),{outputFileSync:n}=gl();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),f3=re((e,r)=>{"use strict";J();var t=_t().fromPromise,n=l3();n.outputJson=t(c3()),n.outputJsonSync=h3(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),p3=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=ml().copy,c=$s().remove,a=qt().mkdirp,s=Br().pathExists,o=Cn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),d3=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=ml().copySync,c=$s().removeSync,a=qt().mkdirpSync,s=Cn();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),m3=re((e,r)=>{"use strict";J();var t=_t().fromCallback;r.exports={move:t(p3()),moveSync:d3()}}),Hs=re((e,r)=>{"use strict";J(),r.exports={...xn(),...ml(),...t3(),...a3(),...f3(),...qt(),...m3(),...gl(),...Br(),...$s()}});J();var Jj=Je(Hs());J();var Qj=Je(Hs()),e$=Je(js());J();var pi=re((e,r)=>{"use strict";J();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),bl=re((e,r)=>{"use strict";J();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),D=Symbol("destroyed"),F=Symbol("emitData"),T=Symbol("emitEnd"),k=Symbol("emitEnd2"),O=Symbol("async"),P=K=>Promise.resolve().then(K),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=I&&Symbol.iterator||Symbol("iterator not implemented"),G=K=>K==="end"||K==="finish"||K==="prefinish",Q=K=>K instanceof ArrayBuffer||typeof K=="object"&&K.constructor&&K.constructor.name==="ArrayBuffer"&&K.byteLength>=0,L=K=>!Buffer.isBuffer(K)&&ArrayBuffer.isView(K),M=class{constructor(K,q,Z){this.src=K,this.dest=q,this.opts=Z,this.ondrain=()=>K[S](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(K,q,Z){super(K,q,Z),this.proxyErrors=N=>q.emit("error",N),K.on("error",this.proxyErrors)}};r.exports=class G2 extends i{constructor(q){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=q&&q.objectMode||!1,this[x]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[D]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new c(q):null,this[E].length&&(this[E]=this[E].map(Z=>this[b].write(Z)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[x]}set objectMode(q){this[x]=this[x]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,Z,N){if(this[a])throw new Error("write after end");if(this[D])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Z=="function"&&(N=Z,Z="utf8"),Z||(Z="utf8");let z=this[O]?P:ee=>ee();return!this[x]&&!Buffer.isBuffer(q)&&(L(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):Q(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&z(N),this.flowing):q.length?(typeof q=="string"&&!(Z===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,Z)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[w](q),this[m]!==0&&this.emit("readable"),N&&z(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&z(N),this.flowing)}read(q){if(this[D])return null;if(this[m]===0||q===0||q>this[m])return this[s](),null;this[x]&&(q=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Z=this[u](q||null,this[E][0]);return this[s](),Z}[u](q,Z){return q===Z.length||q===null?this[A]():(this[E][0]=Z.slice(q),Z=Z.slice(0,q),this[m]-=q),this.emit("data",Z),!this[E].length&&!this[a]&&this.emit("drain"),Z}end(q,Z,N){return typeof q=="function"&&(N=q,q=null),typeof Z=="function"&&(N=Z,Z="utf8"),q&&this.write(q,Z),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[D]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[D]}get flowing(){return this[_]}get paused(){return this[g]}[w](q){this[x]?this[m]+=1:this[m]+=q.length,this[E].push(q)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](q){do;while(this[p](this[A]()));!q&&!this[E].length&&!this[a]&&this.emit("drain")}[p](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,Z){if(this[D])return;let N=this[o];return Z=Z||{},q===t.stdout||q===t.stderr?Z.end=!1:Z.end=Z.end!==!1,Z.proxyErrors=!!Z.proxyErrors,N?Z.end&&q.end():(this[v].push(Z.proxyErrors?new R(this,q,Z):new M(this,q,Z)),this[O]?P(()=>this[S]()):this[S]()),q}unpipe(q){let Z=this[v].find(N=>N.dest===q);Z&&(this[v].splice(this[v].indexOf(Z),1),Z.unpipe())}addListener(q,Z){return this.on(q,Z)}on(q,Z){let N=super.on(q,Z);return q==="data"&&!this[v].length&&!this.flowing?this[S]():q==="readable"&&this[m]!==0?super.emit("readable"):G(q)&&this[o]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[l]&&(this[O]?P(()=>Z.call(this,this[l])):Z.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[D]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(q,Z,...N){if(q!=="error"&&q!=="close"&&q!==D&&this[D])return;if(q==="data")return Z?this[O]?P(()=>this[F](Z)):this[F](Z):!1;if(q==="end")return this[T]();if(q==="close"){if(this[h]=!0,!this[o]&&!this[D])return;let ee=super.emit("close");return this.removeAllListeners("close"),ee}else if(q==="error"){this[l]=Z;let ee=super.emit("error",Z);return this[s](),ee}else if(q==="resume"){let ee=super.emit("resume");return this[s](),ee}else if(q==="finish"||q==="prefinish"){let ee=super.emit(q);return this.removeAllListeners(q),ee}let z=super.emit(q,Z,...N);return this[s](),z}[F](q){for(let N of this[v])N.dest.write(q)===!1&&this.pause();let Z=super.emit("data",q);return this[s](),Z}[T](){this[o]||(this[o]=!0,this.readable=!1,this[O]?P(()=>this[k]()):this[k]())}[k](){if(this[b]){let Z=this[b].end();if(Z){for(let N of this[v])N.dest.write(Z);super.emit("data",Z)}}for(let Z of this[v])Z.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[x]||(q.dataLength=0);let Z=this.promise();return this.on("data",N=>{q.push(N),this[x]||(q.dataLength+=N.length)}),Z.then(()=>q)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,Z)=>{this.on(D,()=>Z(new Error("stream destroyed"))),this.on("error",N=>Z(N)),this.on("end",()=>q())})}[B](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[a])return Promise.resolve({done:!0});let Z=null,N=null,z=de=>{this.removeListener("data",ee),this.removeListener("end",ae),N(de)},ee=de=>{this.removeListener("error",z),this.removeListener("end",ae),this.pause(),Z({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",z),this.removeListener("data",ee),Z({done:!0})},oe=()=>z(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Z=de,this.once(D,oe),this.once("error",z),this.once("end",ae),this.once("data",ee)})}}}[H](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[D]?(q?this.emit("error",q):this.emit(D),this):(this[D]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),q?this.emit("error",q):this.emit(D),this)}static isStream(q){return!!q&&(q instanceof G2||q instanceof i||q instanceof n&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),y3=re((e,r)=>{J();var t=ce("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),U2=re((e,r)=>{"use strict";J();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),D=Symbol("emitEnd"),F=Symbol("emitEnd2"),T=Symbol("async"),k=M=>Promise.resolve().then(M),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=O&&Symbol.iterator||Symbol("iterator not implemented"),B=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,G=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),Q=class{constructor(M,R,K){this.src=M,this.dest=R,this.opts=K,this.ondrain=()=>M[S](),R.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},L=class extends Q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,R,K){super(M,R,K),this.proxyErrors=q=>R.emit("error",q),M.on("error",this.proxyErrors)}};r.exports=class W2 extends i{constructor(R){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=R&&R.objectMode||!1,this[w]?this[y]=null:this[y]=R&&R.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=R&&!!R.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(R){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&R!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==R&&(this[b]=R?new c(R):null,this.buffer.length&&(this.buffer=this.buffer.map(K=>this[b].write(K)))),this[y]=R}setEncoding(R){this.encoding=R}get objectMode(){return this[w]}set objectMode(R){this[w]=this[w]||!!R}get async(){return this[T]}set async(R){this[T]=this[T]||!!R}write(R,K,q){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof K=="function"&&(q=K,K="utf8"),K||(K="utf8");let Z=this[T]?k:N=>N();return!this[w]&&!Buffer.isBuffer(R)&&(G(R)?R=Buffer.from(R.buffer,R.byteOffset,R.byteLength):H(R)?R=Buffer.from(R):typeof R!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):R.length?(typeof R=="string"&&!(K===this[y]&&!this[b].lastNeed)&&(R=Buffer.from(R,K)),Buffer.isBuffer(R)&&this[y]&&(R=this[b].write(R)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[E]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(R){if(this[A])return null;if(this[E]===0||R===0||R>this[E])return this[s](),null;this[w]&&(R=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let K=this[u](R||null,this.buffer[0]);return this[s](),K}[u](R,K){return R===K.length||R===null?this[m]():(this.buffer[0]=K.slice(R),K=K.slice(0,R),this[E]-=R),this.emit("data",K),!this.buffer.length&&!this[a]&&this.emit("drain"),K}end(R,K,q){return typeof R=="function"&&(q=R,R=null),typeof K=="function"&&(q=K,K="utf8"),R&&this.write(R,K),q&&this.once("end",q),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](R){this[w]?this[E]+=1:this[E]+=R.length,this.buffer.push(R)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](R){do;while(this[p](this[m]()));!R&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](R){return R?(this.emit("data",R),this.flowing):!1}pipe(R,K){if(this[A])return;let q=this[o];return K=K||{},R===t.stdout||R===t.stderr?K.end=!1:K.end=K.end!==!1,K.proxyErrors=!!K.proxyErrors,q?K.end&&R.end():(this.pipes.push(K.proxyErrors?new L(this,R,K):new Q(this,R,K)),this[T]?k(()=>this[S]()):this[S]()),R}unpipe(R){let K=this.pipes.find(q=>q.dest===R);K&&(this.pipes.splice(this.pipes.indexOf(K),1),K.unpipe())}addListener(R,K){return this.on(R,K)}on(R,K){let q=super.on(R,K);return R==="data"&&!this.pipes.length&&!this.flowing?this[S]():R==="readable"&&this[E]!==0?super.emit("readable"):B(R)&&this[o]?(super.emit(R),this.removeAllListeners(R)):R==="error"&&this[l]&&(this[T]?k(()=>K.call(this,this[l])):K.call(this,this[l])),q}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(R,K,...q){if(R!=="error"&&R!=="close"&&R!==A&&this[A])return;if(R==="data")return K?this[T]?k(()=>this[x](K)):this[x](K):!1;if(R==="end")return this[D]();if(R==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(R==="error"){this[l]=K;let N=super.emit("error",K);return this[s](),N}else if(R==="resume"){let N=super.emit("resume");return this[s](),N}else if(R==="finish"||R==="prefinish"){let N=super.emit(R);return this.removeAllListeners(R),N}let Z=super.emit(R,K,...q);return this[s](),Z}[x](R){for(let q of this.pipes)q.dest.write(R)===!1&&this.pause();let K=super.emit("data",R);return this[s](),K}[D](){this[o]||(this[o]=!0,this.readable=!1,this[T]?k(()=>this[F]()):this[F]())}[F](){if(this[b]){let K=this[b].end();if(K){for(let q of this.pipes)q.dest.write(K);super.emit("data",K)}}for(let K of this.pipes)K.end();let R=super.emit("end");return this.removeAllListeners("end"),R}collect(){let R=[];this[w]||(R.dataLength=0);let K=this.promise();return this.on("data",q=>{R.push(q),this[w]||(R.dataLength+=q.length)}),K.then(()=>R)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(R=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?R.join(""):Buffer.concat(R,R.dataLength))}promise(){return new Promise((R,K)=>{this.on(A,()=>K(new Error("stream destroyed"))),this.on("error",q=>K(q)),this.on("end",()=>R())})}[P](){return{next:()=>{let R=this.read();if(R!==null)return Promise.resolve({done:!1,value:R});if(this[a])return Promise.resolve({done:!0});let K=null,q=null,Z=ae=>{this.removeListener("data",N),this.removeListener("end",z),q(ae)},N=ae=>{this.removeListener("error",Z),this.removeListener("end",z),this.pause(),K({value:ae,done:!!this[a]})},z=()=>{this.removeListener("error",Z),this.removeListener("data",N),K({done:!0})},ee=()=>Z(new Error("stream destroyed"));return new Promise((ae,oe)=>{q=oe,K=ae,this.once(A,ee),this.once("error",Z),this.once("end",z),this.once("data",N)})}}}[I](){return{next:()=>{let R=this.read();return{value:R,done:R===null}}}}destroy(R){return this[A]?(R?this.emit("error",R):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),R?this.emit("error",R):this.emit(A),this)}static isStream(R){return!!R&&(R instanceof W2||R instanceof i||R instanceof n&&(typeof R.pipe=="function"||typeof R.write=="function"&&typeof R.end=="function"))}}}),z2=re(e=>{"use strict";J();var r=ce("assert"),t=ce("buffer").Buffer,n=ce("zlib"),i=e.constants=y3(),c=U2(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(B,H){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[g]=!1,this[f]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new n[H](B)}catch(G){throw new o(G)}this[p]=G=>{this[y]||(this[y]=!0,this.close(),this.emit("error",G))},this[d].on("error",G=>this[p](new o(G))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[u]),this.write(Object.assign(t.alloc(0),{[l]:B})))}end(B,H,G){return B&&this.write(B,H),this.flush(this[h]),this[g]=!0,super.end(null,null,G)}get ended(){return this[g]}write(B,H,G){if(typeof H=="function"&&(G=H,H="utf8"),typeof B=="string"&&(B=t.from(B,H)),this[y])return;r(this[d],"zlib binding closed");let Q=this[d]._handle,L=Q.close;Q.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=q=>q;let R;try{let q=typeof B[l]=="number"?B[l]:this[l];R=this[d]._processChunk(B,q),t.concat=a}catch(q){t.concat=a,this[p](new o(q))}finally{this[d]&&(this[d]._handle=Q,Q.close=L,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[p](new o(q)));let K;if(R)if(Array.isArray(R)&&R.length>0){K=this[s](t.from(R[0]));for(let q=1;q<R.length;q++)K=this[s](R[q])}else K=this[s](t.from(R));return G&&G(),K}[s](B){return super.write(B)}},v=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.Z_NO_FLUSH,B.finishFlush=B.finishFlush||i.Z_FINISH,super(B,H),this[u]=i.Z_FULL_FLUSH,this[b]=B.level,this[_]=B.strategy}params(B,H){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==B||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let G=this[d].flush;this[d].flush=(Q,L)=>{this.flush(Q),L()};try{this[d].params(B,H)}finally{this[d].flush=G}this[d]&&(this[b]=B,this[_]=H)}}}},m=class extends v{constructor(B){super(B,"Deflate")}},w=class extends v{constructor(B){super(B,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(B){super(B,"Gzip"),this[A]=B&&!!B.portable}[s](B){return this[A]?(this[A]=!1,B[9]=255,super[s](B)):super[s](B)}},D=class extends v{constructor(B){super(B,"Gunzip")}},F=class extends v{constructor(B){super(B,"DeflateRaw")}},T=class extends v{constructor(B){super(B,"InflateRaw")}},k=class extends v{constructor(B){super(B,"Unzip")}},O=class extends E{constructor(B,H){B=B||{},B.flush=B.flush||i.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||i.BROTLI_OPERATION_FINISH,super(B,H),this[u]=i.BROTLI_OPERATION_FLUSH}},P=class extends O{constructor(B){super(B,"BrotliCompress")}},I=class extends O{constructor(B){super(B,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=D,e.DeflateRaw=F,e.InflateRaw=T,e.Unzip=k,typeof n.BrotliCompress=="function"?(e.BrotliCompress=P,e.BrotliDecompress=I):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),di=re((e,r)=>{J();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),vl=re((e,r)=>{"use strict";J();var t=bl(),n=di(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),V2=re(e=>{"use strict";J(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),g3=re((e,r)=>{"use strict";J();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),mi=re((e,r)=>{"use strict";J();var t=V2(),n=ce("path").posix,i=g3(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,D){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,A||0,x,D):w&&this.set(w)}decode(w,A,x,D){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](D,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let T=f(w,A+345,155);this.path=T+"/"+this.path}else{let T=f(w,A+345,130);T&&(this.path=T+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let F=8*32;for(let T=A;T<A+148;T++)F+=w[T];for(let T=A+156;T<A+512;T++)F+=w[T];this.cksumValid=F===this.cksum,this.cksum===null&&F===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,D=o(this.path||"",x),F=D[0],T=D[1];this.needPax=D[2],this.needPax=m(w,A,100,F)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,T)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,T)||this.needPax:(this.needPax=m(w,A+345,130,T)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let k=8*32;for(let O=A;O<A+148;O++)k+=w[O];for(let O=A+156;O<A+512;O++)k+=w[O];return this.cksum=k,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,D="",F,T=n.parse(w).root||".";if(Buffer.byteLength(x)<100)F=[x,D,!1];else{D=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(D)<=A?F=[x,D,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(D)<=A?F=[x.slice(0,100-1),D,!0]:(x=n.join(n.basename(D),x),D=n.dirname(D));while(D!==T&&!F);F||(F=[w.slice(0,100-1),"",!0])}return F},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,D)=>D===null?!1:D>y[x]||D<0?(i.encode(D,w.slice(A,A+x)),!0):(_(w,A,x,D),!1),_=(w,A,x,D)=>w.write(g(D,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,D)=>D===null?!1:b(w,A,x,D.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,D)=>D===null?!1:(w.write(D+v,A,x,"utf8"),D.length!==Buffer.byteLength(D)||D.length>x);r.exports=s}),_l=re((e,r)=>{"use strict";J();var t=mi(),n=ce("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
135
135
  `,h=Buffer.byteLength(l),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+l}};i.parse=(o,f,l)=>new i(c(a(o),f),l);var c=(o,f)=>f?Object.keys(o).reduce((l,h)=>(l[h]=o[h],l),f):o,a=o=>o.replace(/\n$/,"").split(`
136
136
  `).reduce(s,Object.create(null)),s=(o,f)=>{let l=parseInt(f,10);if(l!==Buffer.byteLength(f)+1)return o;f=f.slice((l+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return o;let d=h.join("=");return o[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,o};r.exports=i}),yi=re((e,r)=>{J(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),wl=re((e,r)=>{"use strict";J(),r.exports=t=>class extends t{warn(n,i,c={}){this.file&&(c.file=this.file),this.cwd&&(c.cwd=this.cwd),c.code=i instanceof Error&&i.code||n,c.tarCode=n,!this.strict&&c.recoverable!==!1?(i instanceof Error&&(c=Object.assign(i,c),i=i.message),this.emit("warn",c.tarCode,i,c)):i instanceof Error?this.emit("error",Object.assign(i,c)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),c))}}}),K2=re((e,r)=>{"use strict";J();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,s)=>[a,n[s]])),c=new Map(n.map((a,s)=>[a,t[s]]));r.exports={encode:a=>t.reduce((s,o)=>s.split(o).join(i.get(o)),a),decode:a=>n.reduce((s,o)=>s.split(o).join(c.get(o)),a)}}),Y2=re((e,r)=>{J();var{isAbsolute:t,parse:n}=ce("path").win32;r.exports=i=>{let c="",a=n(i);for(;t(i)||a.root;){let s=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(s.length),c+=s,a=n(i)}return[c,i]}}),b3=re((e,r)=>{"use strict";J(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),X2=re((e,r)=>{"use strict";J();var t=bl(),n=_l(),i=mi(),c=ce("fs"),a=ce("path"),s=di(),o=yi(),f=(M,R)=>R?(M=s(M).replace(/^\.(\/|$)/,""),o(R)+"/"+M):s(M),l=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),A=Symbol("close"),x=Symbol("mode"),D=Symbol("awaitDrain"),F=Symbol("ondrain"),T=Symbol("prefix"),k=Symbol("hadError"),O=wl(),P=K2(),I=Y2(),B=b3(),H=O(class extends t{constructor(M,R){if(R=R||{},super(R),typeof M!="string")throw new TypeError("path is required");this.path=s(M),this.portable=!!R.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=R.maxReadSize||l,this.linkCache=R.linkCache||new Map,this.statCache=R.statCache||new Map,this.preservePaths=!!R.preservePaths,this.cwd=s(R.cwd||process.cwd()),this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.mtime=R.mtime||null,this.prefix=R.prefix?s(R.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.win32=!!R.win32||process.platform==="win32",this.win32&&(this.path=P.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=s(R.absolute||a.resolve(this.cwd,M)),this.path===""&&(this.path="./"),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(M,...R){return M==="error"&&(this[k]=!0),super.emit(M,...R)}[g](){c.lstat(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[S](R)})}[S](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=L(M),this.emit("stat",M),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[x](M){return B(M,this.type==="Directory",this.portable)}[T](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[x](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[p](){c.readlink(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[v](R)})}[v](M){this.linkpath=s(M),this[b](),this.end()}[y](M){this.type="Link",this.linkpath=s(a.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let R=this.linkCache.get(M);if(R.indexOf(this.cwd)===0)return this[y](R)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){c.open(this.absolute,"r",(M,R)=>{if(M)return this.emit("error",M);this[w](R)})}[w](M){if(this.fd=M,this[k])return this[A]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let R=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(R),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:M,buf:R,offset:K,length:q,pos:Z}=this;c.read(M,R,K,q,Z,(N,z)=>{if(N)return this[A](()=>this.emit("error",N));this[E](z)})}[A](M){c.close(this.fd,M)}[E](M){if(M<=0&&this.remain>0){let K=new Error("encountered unexpected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M>this.remain){let K=new Error("did not encounter expected EOF");return K.path=this.absolute,K.syscall="read",K.code="EOF",this[A](()=>this.emit("error",K))}if(M===this.remain)for(let K=M;K<this.length&&M<this.blockRemain;K++)this.buf[K+this.offset]=0,M++,this.remain++;let R=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(R)?this[F]():this[D](()=>this[F]())}[D](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let R=new Error("writing more data than expected");return R.path=this.absolute,this.emit("error",R)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[F](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](M=>M?this.emit("error",M):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_]()}}),G=class extends H{[g](){this[S](c.lstatSync(this.absolute))}[p](){this[v](c.readlinkSync(this.absolute))}[m](){this[w](c.openSync(this.absolute,"r"))}[_](){let M=!0;try{let{fd:R,buf:K,offset:q,length:Z,pos:N}=this,z=c.readSync(R,K,q,Z,N);this[E](z),M=!1}finally{if(M)try{this[A](()=>{})}catch{}}}[D](M){M()}[A](M){c.closeSync(this.fd),M()}},Q=O(class extends t{constructor(M,R){R=R||{},super(R),this.preservePaths=!!R.preservePaths,this.portable=!!R.portable,this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.readEntry=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=R.prefix||null,this.path=s(M.path),this.mode=this[x](M.mode),this.uid=this.portable?null:M.uid,this.gid=this.portable?null:M.gid,this.uname=this.portable?null:M.uname,this.gname=this.portable?null:M.gname,this.size=M.size,this.mtime=this.noMtime?null:R.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=s(M.linkpath),typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let K=!1;if(!this.preservePaths){let[q,Z]=I(this.path);q&&(this.path=Z,K=q)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),K&&this.warn("TAR_ENTRY_INFO",`stripping ${K} from absolute path`,{entry:this,path:K+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),M.pipe(this)}[T](M){return f(M,this.prefix)}[x](M){return B(M,this.type==="Directory",this.portable)}write(M){let R=M.length;if(R>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=R,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});H.Sync=G,H.Tar=Q;var L=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=H}),v3=re((e,r)=>{"use strict";J(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),Z2=re((e,r)=>{"use strict";J(),r.exports=t,t.Node=a,t.create=t;function t(s){var o=this;if(o instanceof t||(o=new t),o.tail=null,o.head=null,o.length=0,s&&typeof s.forEach=="function")s.forEach(function(h){o.push(h)});else if(arguments.length>0)for(var f=0,l=arguments.length;f<l;f++)o.push(arguments[f]);return o}t.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var o=s.next,f=s.prev;return o&&(o.prev=f),f&&(f.next=o),s===this.head&&(this.head=o),s===this.tail&&(this.tail=f),s.list.length--,s.next=null,s.prev=null,s.list=null,o},t.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var o=this.head;s.list=this,s.next=o,o&&(o.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},t.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var o=this.tail;s.list=this,s.prev=o,o&&(o.next=s),this.tail=s,this.head||(this.head=s),this.length++}},t.prototype.push=function(){for(var s=0,o=arguments.length;s<o;s++)i(this,arguments[s]);return this.length},t.prototype.unshift=function(){for(var s=0,o=arguments.length;s<o;s++)c(this,arguments[s]);return this.length},t.prototype.pop=function(){if(this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},t.prototype.shift=function(){if(this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},t.prototype.forEach=function(s,o){o=o||this;for(var f=this.head,l=0;f!==null;l++)s.call(o,f.value,l,this),f=f.next},t.prototype.forEachReverse=function(s,o){o=o||this;for(var f=this.tail,l=this.length-1;f!==null;l--)s.call(o,f.value,l,this),f=f.prev},t.prototype.get=function(s){for(var o=0,f=this.head;f!==null&&o<s;o++)f=f.next;if(o===s&&f!==null)return f.value},t.prototype.getReverse=function(s){for(var o=0,f=this.tail;f!==null&&o<s;o++)f=f.prev;if(o===s&&f!==null)return f.value},t.prototype.map=function(s,o){o=o||this;for(var f=new t,l=this.head;l!==null;)f.push(s.call(o,l.value,this)),l=l.next;return f},t.prototype.mapReverse=function(s,o){o=o||this;for(var f=new t,l=this.tail;l!==null;)f.push(s.call(o,l.value,this)),l=l.prev;return f},t.prototype.reduce=function(s,o){var f,l=this.head;if(arguments.length>1)f=o;else if(this.head)l=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)f=s(f,l.value,h),l=l.next;return f},t.prototype.reduceReverse=function(s,o){var f,l=this.tail;if(arguments.length>1)f=o;else if(this.tail)l=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)f=s(f,l.value,h),l=l.prev;return f},t.prototype.toArray=function(){for(var s=new Array(this.length),o=0,f=this.head;f!==null;o++)s[o]=f.value,f=f.next;return s},t.prototype.toArrayReverse=function(){for(var s=new Array(this.length),o=0,f=this.tail;f!==null;o++)s[o]=f.value,f=f.prev;return s},t.prototype.slice=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(;h!==null&&l<o;l++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=this.length,h=this.tail;h!==null&&l>o;l--)h=h.prev;for(;h!==null&&l>s;l--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(s,o,...f){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(var u=[],l=0;h&&l<o;l++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<f.length;l++)h=n(this,h,f[l]);return u},t.prototype.reverse=function(){for(var s=this.head,o=this.tail,f=s;f!==null;f=f.prev){var l=f.prev;f.prev=f.next,f.next=l}return this.head=o,this.tail=s,this};function n(s,o,f){var l=o===s.head?new a(f,null,o,s):new a(f,o,o.next,s);return l.next===null&&(s.tail=l),l.prev===null&&(s.head=l),s.length++,l}function i(s,o){s.tail=new a(o,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function c(s,o){s.head=new a(o,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function a(s,o,f,l){if(!(this instanceof a))return new a(s,o,f,l);this.list=l,this.value=s,o?(o.next=this,this.prev=o):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{v3()(t)}catch{}}),El=re((e,r)=>{"use strict";J();var t=class{constructor(L,M){this.path=L||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=bl(),i=z2(),c=vl(),a=X2(),s=a.Sync,o=a.Tar,f=Z2(),l=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),A=Symbol("onreaddir"),x=Symbol("pipe"),D=Symbol("entry"),F=Symbol("entryOpt"),T=Symbol("writeEntryClass"),k=Symbol("write"),O=Symbol("ondrain"),P=ce("fs"),I=ce("path"),B=wl(),H=di(),G=B(class extends n{constructor(L){super(L),L=L||Object.create(null),this.opt=L,this.file=L.file||"",this.cwd=L.cwd||process.cwd(),this.maxReadSize=L.maxReadSize,this.preservePaths=!!L.preservePaths,this.strict=!!L.strict,this.noPax=!!L.noPax,this.prefix=H(L.prefix||""),this.linkCache=L.linkCache||new Map,this.statCache=L.statCache||new Map,this.readdirCache=L.readdirCache||new Map,this[T]=a,typeof L.onwarn=="function"&&this.on("warn",L.onwarn),this.portable=!!L.portable,this.zip=null,L.gzip?(typeof L.gzip!="object"&&(L.gzip={}),this.portable&&(L.gzip.portable=!0),this.zip=new i.Gzip(L.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[O]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!L.noDirRecurse,this.follow=!!L.follow,this.noMtime=!!L.noMtime,this.mtime=L.mtime||null,this.filter=typeof L.filter=="function"?L.filter:M=>!0,this[d]=new f,this[g]=0,this.jobs=+L.jobs||4,this[b]=!1,this[u]=!1}[k](L){return super.write(L)}add(L){return this.write(L),this}end(L){return L&&this.write(L),this[u]=!0,this[y](),this}write(L){if(this[u])throw new Error("write after end");return L instanceof c?this[v](L):this[E](L),this.flowing}[v](L){let M=H(I.resolve(this.cwd,L.path));if(!this.filter(L.path,L))L.resume();else{let R=new t(L.path,M,!1);R.entry=new o(L,this[F](R)),R.entry.on("end",K=>this[S](R)),this[g]+=1,this[d].push(R)}this[y]()}[E](L){let M=H(I.resolve(this.cwd,L));this[d].push(new t(L,M)),this[y]()}[m](L){L.pending=!0,this[g]+=1;let M=this.follow?"stat":"lstat";P[M](L.absolute,(R,K)=>{L.pending=!1,this[g]-=1,R?this.emit("error",R):this[h](L,K)})}[h](L,M){this.statCache.set(L.absolute,M),L.stat=M,this.filter(L.path,M)||(L.ignore=!0),this[y]()}[w](L){L.pending=!0,this[g]+=1,P.readdir(L.absolute,(M,R)=>{if(L.pending=!1,this[g]-=1,M)return this.emit("error",M);this[A](L,R)})}[A](L,M){this.readdirCache.set(L.absolute,M),L.readdir=M,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let L=this[d].head;L!==null&&this[g]<this.jobs;L=L.next)if(this[_](L.value),L.value.ignore){let M=L.next;this[d].removeNode(L),L.next=M}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](L){this[d].shift(),this[g]-=1,this[y]()}[_](L){if(!L.pending){if(L.entry){L===this[p]&&!L.piped&&this[x](L);return}if(L.stat||(this.statCache.has(L.absolute)?this[h](L,this.statCache.get(L.absolute)):this[m](L)),!!L.stat&&!L.ignore&&!(!this.noDirRecurse&&L.stat.isDirectory()&&!L.readdir&&(this.readdirCache.has(L.absolute)?this[A](L,this.readdirCache.get(L.absolute)):this[w](L),!L.readdir))){if(L.entry=this[D](L),!L.entry){L.ignore=!0;return}L===this[p]&&!L.piped&&this[x](L)}}}[F](L){return{onwarn:(M,R,K)=>this.warn(M,R,K),noPax:this.noPax,cwd:this.cwd,absolute:L.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[D](L){this[g]+=1;try{return new this[T](L.path,this[F](L)).on("end",()=>this[S](L)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[O](){this[p]&&this[p].entry&&this[p].entry.resume()}[x](L){L.piped=!0,L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)});let M=L.entry,R=this.zip;R?M.on("data",K=>{R.write(K)||M.pause()}):M.on("data",K=>{super.write(K)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Q=class extends G{constructor(L){super(L),this[T]=s}pause(){}resume(){}[m](L){let M=this.follow?"statSync":"lstatSync";this[h](L,P[M](L.absolute))}[w](L,M){this[A](L,P.readdirSync(L.absolute))}[x](L){let M=L.entry,R=this.zip;L.readdir&&L.readdir.forEach(K=>{let q=L.path,Z=q==="./"?"":q.replace(/\/*$/,"/");this[E](Z+K)}),R?M.on("data",K=>{R.write(K)}):M.on("data",K=>{super[k](K)})}};G.Sync=Q,r.exports=G}),gi=re(e=>{"use strict";J();var r=U2(),t=ce("events").EventEmitter,n=ce("fs"),i=n.writev;if(!i){let L=process.binding("fs"),M=L.FSReqWrap||L.FSReqCallback;i=(R,K,q,Z)=>{let N=(ee,ae)=>Z(ee,ae,K),z=new M;z.oncomplete=N,L.writeBuffers(R,K,q,z)}}var c=Symbol("_autoClose"),a=Symbol("_close"),s=Symbol("_ended"),o=Symbol("_fd"),f=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),A=Symbol("_read"),x=Symbol("_readSize"),D=Symbol("_reading"),F=Symbol("_remain"),T=Symbol("_size"),k=Symbol("_write"),O=Symbol("_writing"),P=Symbol("_defaultFlag"),I=Symbol("_errored"),B=class extends r{constructor(L,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof L!="string")throw new TypeError("path must be a string");this[I]=!1,this[o]=typeof M.fd=="number"?M.fd:null,this[v]=L,this[x]=M.readSize||16*1024*1024,this[D]=!1,this[T]=typeof M.size=="number"?M.size:1/0,this[F]=this[T],this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[o]=="number"?this[A]():this[E]()}get fd(){return this[o]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(L,M)=>this[_](L,M))}[_](L,M){L?this[b](L):(this[o]=M,this.emit("open",M),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[x],this[F]))}[A](){if(!this[D]){this[D]=!0;let L=this[d]();if(L.length===0)return process.nextTick(()=>this[g](null,0,L));n.read(this[o],L,0,L.length,null,(M,R,K)=>this[g](M,R,K))}}[g](L,M,R){this[D]=!1,L?this[b](L):this[u](M,R)&&this[A]()}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}[b](L){this[D]=!0,this[a](),this.emit("error",L)}[u](L,M){let R=!1;return this[F]-=L,L>0&&(R=super.write(L<M.length?M.slice(0,L):M)),(L===0||this[F]<=0)&&(R=!1,this[a](),super.end()),R}emit(L,M){switch(L){case"prefinish":case"finish":break;case"drain":typeof this[o]=="number"&&this[A]();break;case"error":return this[I]?void 0:(this[I]=!0,super.emit(L,M));default:return super.emit(L,M)}}},H=class extends B{[E](){let L=!0;try{this[_](null,n.openSync(this[v],"r")),L=!1}finally{L&&this[a]()}}[A](){let L=!0;try{if(!this[D]){this[D]=!0;do{let M=this[d](),R=M.length===0?0:n.readSync(this[o],M,0,M.length,null);if(!this[u](R,M))break}while(!0);this[D]=!1}L=!1}finally{L&&this[a]()}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}},G=class extends t{constructor(L,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[I]=!1,this[O]=!1,this[s]=!1,this[y]=!1,this[w]=[],this[v]=L,this[o]=typeof M.fd=="number"?M.fd:null,this[p]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0;let R=this[m]!==null?"r+":"w";this[P]=M.flags===void 0,this[l]=this[P]?R:M.flags,this[o]===null&&this[E]()}emit(L,M){if(L==="error"){if(this[I])return;this[I]=!0}return super.emit(L,M)}get fd(){return this[o]}get path(){return this[v]}[b](L){this[a](),this[O]=!0,this.emit("error",L)}[E](){n.open(this[v],this[l],this[p],(L,M)=>this[_](L,M))}[_](L,M){this[P]&&this[l]==="r+"&&L&&L.code==="ENOENT"?(this[l]="w",this[E]()):L?this[b](L):(this[o]=M,this.emit("open",M),this[h]())}end(L,M){return L&&this.write(L,M),this[s]=!0,!this[O]&&!this[w].length&&typeof this[o]=="number"&&this[S](null,0),this}write(L,M){return typeof L=="string"&&(L=Buffer.from(L,M)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[o]===null||this[O]||this[w].length?(this[w].push(L),this[y]=!0,!1):(this[O]=!0,this[k](L),!0)}[k](L){n.write(this[o],L,0,L.length,this[m],(M,R)=>this[S](M,R))}[S](L,M){L?this[b](L):(this[m]!==null&&(this[m]+=M),this[w].length?this[h]():(this[O]=!1,this[s]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[s]&&this[S](null,0);else if(this[w].length===1)this[k](this[w].pop());else{let L=this[w];this[w]=[],i(this[o],L,this[m],(M,R)=>this[S](M,R))}}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.close(L,M=>M?this.emit("error",M):this.emit("close"))}}},Q=class extends G{[E](){let L;if(this[P]&&this[l]==="r+")try{L=n.openSync(this[v],this[l],this[p])}catch(M){if(M.code==="ENOENT")return this[l]="w",this[E]();throw M}else L=n.openSync(this[v],this[l],this[p]);this[_](null,L)}[a](){if(this[c]&&typeof this[o]=="number"){let L=this[o];this[o]=null,n.closeSync(L),this.emit("close")}}[k](L){let M=!0;try{this[S](null,n.writeSync(this[o],L,0,L.length,this[m])),M=!1}finally{if(M)try{this[a]()}catch{}}}};e.ReadStream=B,e.ReadStreamSync=H,e.WriteStream=G,e.WriteStreamSync=Q}),Sl=re((e,r)=>{"use strict";J();var t=wl(),n=mi(),i=ce("events"),c=Z2(),a=1024*1024,s=vl(),o=_l(),f=z2(),{nextTick:l}=ce("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),A=Symbol("emittedEnd"),x=Symbol("emit"),D=Symbol("unzip"),F=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),k=Symbol("consumeBody"),O=Symbol("consumeMeta"),P=Symbol("consumeHeader"),I=Symbol("consuming"),B=Symbol("bufferConcat"),H=Symbol("maybeEnd"),G=Symbol("writing"),Q=Symbol("aborted"),L=Symbol("onDone"),M=Symbol("sawValidEntry"),R=Symbol("sawNullBlock"),K=Symbol("sawEOF"),q=Symbol("closeStream"),Z=N=>!0;r.exports=t(class extends i{constructor(N){N=N||{},super(N),this.file=N.file||"",this[M]=null,this.on(L,z=>{(this[u]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(L,N.ondone):this.on(L,z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!N.strict,this.maxMetaEntrySize=N.maxMetaEntrySize||a,this.filter=typeof N.filter=="function"?N.filter:Z,this.writable=!0,this.readable=!1,this[m]=new c,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[D]=null,this[Q]=!1,this[R]=!1,this[K]=!1,this.on("end",()=>this[q]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[P](N,z){this[M]===null&&(this[M]=!1);let ee;try{ee=new n(N,z,this[_],this[g])}catch(ae){return this.warn("TAR_ENTRY_INVALID",ae)}if(ee.nullBlock)this[R]?(this[K]=!0,this[u]==="begin"&&(this[u]="header"),this[x]("eof")):(this[R]=!0,this[x]("nullBlock"));else if(this[R]=!1,!ee.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:ee});else if(!ee.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:ee});else{let ae=ee.type;if(/^(Symbolic)?Link$/.test(ae)&&!ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:ee});else if(!/^(Symbolic)?Link$/.test(ae)&&ee.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:ee});else{let oe=this[d]=new s(ee,this[_],this[g]);if(!this[M])if(oe.remain){let de=()=>{oe.invalid||(this[M]=!0)};oe.on("end",de)}else this[M]=!0;oe.meta?oe.size>this.maxMetaEntrySize?(oe.ignore=!0,this[x]("ignoredEntry",oe),this[u]="ignore",oe.resume()):oe.size>0&&(this[S]="",oe.on("data",de=>this[S]+=de),this[u]="meta"):(this[_]=null,oe.ignore=oe.ignore||!this.filter(oe.path,oe),oe.ignore?(this[x]("ignoredEntry",oe),this[u]=oe.remain?"ignore":"header",oe.resume()):(oe.remain?this[u]="body":(this[u]="header",oe.end()),this[p]?this[m].push(oe):(this[m].push(oe),this[y]())))}}}[q](){l(()=>this.emit("close"))}[b](N){let z=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",ee=>this[y]()),z=!1)):(this[p]=null,z=!1),z}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[G]||this.emit("drain"):N.once("drain",z=>this.emit("drain"))}}[k](N,z){let ee=this[d],ae=ee.blockRemain,oe=ae>=N.length&&z===0?N:N.slice(z,z+ae);return ee.write(oe),ee.blockRemain||(this[u]="header",this[d]=null,ee.end()),oe.length}[O](N,z){let ee=this[d],ae=this[k](N,z);return this[d]||this[E](ee),ae}[x](N,z,ee){!this[m].length&&!this[p]?this.emit(N,z,ee):this[m].push([N,z,ee])}[E](N){switch(this[x]("meta",this[S]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=o.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=o.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[Q]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[Q])return;if(this[D]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<h.length)return this[v]=N,!0;for(let ee=0;this[D]===null&&ee<h.length;ee++)N[ee]!==h[ee]&&(this[D]=!1);if(this[D]===null){let ee=this[w];this[w]=!1,this[D]=new f.Unzip,this[D].on("data",oe=>this[F](oe)),this[D].on("error",oe=>this.abort(oe)),this[D].on("end",oe=>{this[w]=!0,this[F]()}),this[G]=!0;let ae=this[D][ee?"end":"write"](N);return this[G]=!1,ae}}this[G]=!0,this[D]?this[D].write(N):this[F](N),this[G]=!1;let z=this[m].length?!1:this[p]?this[p].flowing:!0;return!z&&!this[m].length&&this[p].once("drain",ee=>this.emit("drain")),z}[B](N){N&&!this[Q]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[H](){if(this[w]&&!this[A]&&!this[Q]&&!this[I]){this[A]=!0;let N=this[d];if(N&&N.blockRemain){let z=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${z} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[x](L)}}[F](N){if(this[I])this[B](N);else if(!N&&!this[v])this[H]();else{if(this[I]=!0,this[v]){this[B](N);let z=this[v];this[v]=null,this[T](z)}else this[T](N);for(;this[v]&&this[v].length>=512&&!this[Q]&&!this[K];){let z=this[v];this[v]=null,this[T](z)}this[I]=!1}(!this[v]||this[w])&&this[H]()}[T](N){let z=0,ee=N.length;for(;z+512<=ee&&!this[Q]&&!this[K];)switch(this[u]){case"begin":case"header":this[P](N,z),z+=512;break;case"ignore":case"body":z+=this[k](N,z);break;case"meta":z+=this[O](N,z);break;default:throw new Error("invalid state: "+this[u])}z<ee&&(this[v]?this[v]=Buffer.concat([N.slice(z),this[v]]):this[v]=N.slice(z))}end(N){this[Q]||(this[D]?this[D].end(N):(this[w]=!0,this.write(N)))}})}),Al=re((e,r)=>{"use strict";J();var t=pi(),n=Sl(),i=ce("fs"),c=gi(),a=ce("path"),s=yi();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||o(b),b.file&&b.sync?l(b):b.file?h(b,y):u(b)};var o=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},l=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),_3=re((e,r)=>{"use strict";J();var t=pi(),n=El(),i=gi(),c=Al(),a=ce("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?s(b,p):b.file?o(b,p,y):b.sync?h(b,p):u(b,p)};var s=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},o=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return l(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?c({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return c({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return l(y,p),y}}),J2=re((e,r)=>{"use strict";J();var t=pi(),n=El(),i=ce("fs"),c=gi(),a=Al(),s=ce("path"),o=mi();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let A=0,x=0;A<512;A+=x){if(x=i.readSync(g,v,A,v.length-A,S+A),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!x)break e}let m=new o(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,l(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},l=(p,y,b,_,g)=>{let S=new c.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(T,k)=>{T?i.close(E,O=>m(T)):m(null,k)},A=0;if(v===0)return w(null,0);let x=0,D=Buffer.alloc(512),F=(T,k)=>{if(T)return w(T);if(x+=k,x<512&&k)return i.read(E,D,x,D.length-x,A+x,F);if(A===0&&D[0]===31&&D[1]===139)return w(new Error("cannot append to compressed archives"));if(x<512)return w(null,A);let O=new o(D);if(!O.cksumValid)return w(null,A);let P=512*Math.ceil(O.size/512);if(A+P+512>v||(A+=P+512,A>=v))return w(null,A);p.mtimeCache&&p.mtimeCache.set(O.path,O.mtime),x=0,i.read(E,D,0,512,A,F)};i.read(E,D,0,512,A,F)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(A,x)=>{if(A&&A.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(A)return v(A);i.fstat(x,(D,F)=>{if(D)return i.close(x,()=>v(D));g(x,F.size,(T,k)=>{if(T)return v(T);let O=new c.WriteStream(p.file,{fd:x,start:k});_.pipe(O),O.on("error",v),O.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:s.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:s.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),w3=re((e,r)=>{"use strict";J();var t=pi(),n=J2();r.exports=(c,a,s)=>{let o=t(c);if(!o.file)throw new TypeError("file is required");if(o.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(o),n(o,a,s)};var i=c=>{let a=c.filter;c.mtimeCache||(c.mtimeCache=new Map),c.filter=a?(s,o)=>a(s,o)&&!(c.mtimeCache.get(s)>o.mtime):(s,o)=>!(c.mtimeCache.get(s)>o.mtime)}}),E3=re((e,r)=>{J();var{promisify:t}=ce("util"),n=ce("fs"),i=c=>{if(!c)c={mode:511,fs:n};else if(typeof c=="object")c={mode:511,fs:n,...c};else if(typeof c=="number")c={mode:c,fs:n};else if(typeof c=="string")c={mode:parseInt(c,8),fs:n};else throw new TypeError("invalid options argument");return c.mkdir=c.mkdir||c.fs.mkdir||n.mkdir,c.mkdirAsync=t(c.mkdir),c.stat=c.stat||c.fs.stat||n.stat,c.statAsync=t(c.stat),c.statSync=c.statSync||c.fs.statSync||n.statSync,c.mkdirSync=c.mkdirSync||c.fs.mkdirSync||n.mkdirSync,c};r.exports=i}),S3=re((e,r)=>{J();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=ce("path"),c=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let s=/[*|"<>?:]/,{root:o}=i(a);if(s.test(a.substr(o.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=c}),A3=re((e,r)=>{J();var{dirname:t}=ce("path"),n=(c,a,s=void 0)=>s===a?Promise.resolve():c.statAsync(a).then(o=>o.isDirectory()?s:void 0,o=>o.code==="ENOENT"?n(c,t(a),a):void 0),i=(c,a,s=void 0)=>{if(s!==a)try{return c.statSync(a).isDirectory()?s:void 0}catch(o){return o.code==="ENOENT"?i(c,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),Q2=re((e,r)=>{J();var{dirname:t}=ce("path"),n=(c,a,s)=>{a.recursive=!1;let o=t(c);return o===c?a.mkdirAsync(c,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(c,a).then(()=>s||c,f=>{if(f.code==="ENOENT")return n(o,a).then(l=>n(c,a,l));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(c).then(l=>{if(l.isDirectory())return s;throw f},()=>{throw f})})},i=(c,a,s)=>{let o=t(c);if(a.recursive=!1,o===c)try{return a.mkdirSync(c,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(c,a),s||c}catch(f){if(f.code==="ENOENT")return i(c,a,i(o,a,s));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(c).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),x3=re((e,r)=>{J();var{dirname:t}=ce("path"),{findMade:n,findMadeSync:i}=A3(),{mkdirpManual:c,mkdirpManualSync:a}=Q2(),s=(f,l)=>(l.recursive=!0,t(f)===f?l.mkdirAsync(f,l):n(l,f).then(h=>l.mkdirAsync(f,l).then(()=>h).catch(u=>{if(u.code==="ENOENT")return c(f,l);throw u}))),o=(f,l)=>{if(l.recursive=!0,t(f)===f)return l.mkdirSync(f,l);let h=i(l,f);try{return l.mkdirSync(f,l),h}catch(u){if(u.code==="ENOENT")return a(f,l);throw u}};r.exports={mkdirpNative:s,mkdirpNativeSync:o}}),C3=re((e,r)=>{J();var t=ce("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),c=+i[0]>10||+i[0]==10&&+i[1]>=12,a=c?o=>o.mkdir===t.mkdir:()=>!1,s=c?o=>o.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:s}}),k3=re((e,r)=>{J();var t=E3(),n=S3(),{mkdirpNative:i,mkdirpNativeSync:c}=x3(),{mkdirpManual:a,mkdirpManualSync:s}=Q2(),{useNative:o,useNativeSync:f}=C3(),l=(u,d)=>(u=n(u),d=t(d),o(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?c(u,d):s(u,d));l.sync=h,l.native=(u,d)=>i(n(u),t(d)),l.manual=(u,d)=>a(n(u),t(d)),l.nativeSync=(u,d)=>c(n(u),t(d)),l.manualSync=(u,d)=>s(n(u),t(d)),r.exports=l}),D3=re((e,r)=>{"use strict";J();var t=ce("fs"),n=ce("path"),i=t.lchown?"lchown":"chown",c=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s=(S,E,v)=>{try{return t[c](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},o=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,l=a?(S,E,v)=>{try{return s(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;o(S,E,v)}}:(S,E,v)=>s(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(A,x)=>{if(A)return w(A.code!=="ENOENT"?A:null);x.name=E,y(S,x,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,A=>{if(A)return w(A);let x=n.resolve(S,E.name);p(x,v,m,w)});else{let A=n.resolve(S,E.name);p(A,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,A)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!A.length)return p(S,E,v,m);let x=A.length,D=null,F=T=>{if(!D){if(T)return m(D=T);if(--x===0)return p(S,E,v,m)}};A.forEach(T=>y(S,T,E,v,F))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),l(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return l(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),l(S,E,v)};r.exports=b,b.sync=g}),R3=re((e,r)=>{"use strict";J();var t=k3(),n=ce("fs"),i=ce("path"),c=D3(),a=di(),s=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},o=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),l=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new o(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),A=b.preserve,x=b.unlink,D=b.cache,F=a(b.cwd),T=(O,P)=>{O?_(O):(l(D,y,!0),P&&w?c(P,v,m,I=>T(I)):E?n.chmod(y,S,_):_())};if(D&&f(D,y)===!0)return T();if(y===F)return h(y,T);if(A)return t(y,{mode:S}).then(O=>T(null,O),T);let k=a(i.relative(F,y)).split("/");u(F,k,S,D,x,F,null,T)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),A=a(i.resolve(y+"/"+w));if(f(g,A))return u(A,b,_,g,S,E,v,m);n.mkdir(A,_,d(A,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(A,x)=>{if(A)A.path=A.path&&a(A.path),m(A);else if(x.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,D=>{if(D)return m(D);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(x.isSymbolicLink())return m(new s(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new o(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,A=b.unlink,x=b.cache,D=a(b.cwd),F=O=>{l(x,y,!0),O&&m&&c.sync(O,E,v),S&&n.chmodSync(y,g)};if(x&&f(x,y)===!0)return F();if(y===D)return p(D),F();if(w)return F(t.sync(y,g));let T=a(i.relative(D,y)).split("/"),k=null;for(let O=T.shift(),P=D;O&&(P+="/"+O);O=T.shift())if(P=a(i.resolve(P)),!f(x,P))try{n.mkdirSync(P,g),k=k||P,l(x,P,!0)}catch{let I=n.lstatSync(P);if(I.isDirectory()){l(x,P,!0);continue}else if(A){n.unlinkSync(P),n.mkdirSync(P,g),k=k||P,l(x,P,!0);continue}else if(I.isSymbolicLink())return new s(P,P+"/"+T.join("/"))}return F(k)}}),e1=re((e,r)=>{J();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),O3=re((e,r)=>{J();var t=ce("assert"),n=e1(),i=yi(),{join:c}=ce("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,s=a==="win32";r.exports=()=>{let o=new Map,f=new Map,l=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=c(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>o.get(g)),dirs:[..._.dirs].map(g=>o.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=o.get(E);t.equal(v[0],b),v.length===1?o.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=o.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?o.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=s?["win32 parallelization disabled"]:b.map(S=>n(i(c(S))).toLowerCase());let g=new Set(b.map(S=>l(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=o.get(S);E?E.push(_):o.set(S,[_])}),g.forEach(S=>{let E=o.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):o.set(S,[new Set([_])])}),p(_)}}}}),T3=re((e,r)=>{J();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||ce("fs"),{O_CREAT:c,O_TRUNC:a,O_WRONLY:s,UV_FS_O_FILEMAP:o=0}=i.constants,f=n&&!!o,l=512*1024,h=o|a|c|s;r.exports=f?u=>u<l?h:"w":()=>"w"}),t1=re((e,r)=>{"use strict";J();var t=ce("assert"),n=Sl(),i=ce("fs"),c=gi(),a=ce("path"),s=R3(),o=K2(),f=O3(),l=Y2(),h=di(),u=yi(),d=e1(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),A=Symbol("hardlink"),x=Symbol("unsupported"),D=Symbol("checkPath"),F=Symbol("mkdir"),T=Symbol("onError"),k=Symbol("pending"),O=Symbol("pend"),P=Symbol("unpend"),I=Symbol("ended"),B=Symbol("maybeClose"),H=Symbol("skip"),G=Symbol("doChown"),Q=Symbol("uid"),L=Symbol("gid"),M=Symbol("checkedCwd"),R=ce("crypto"),K=T3(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Z=q==="win32",N=(C,U)=>{if(!Z)return i.unlink(C,U);let X=C+".DELETE."+R.randomBytes(16).toString("hex");i.rename(C,X,ne=>{if(ne)return U(ne);i.unlink(X,U)})},z=C=>{if(!Z)return i.unlinkSync(C);let U=C+".DELETE."+R.randomBytes(16).toString("hex");i.renameSync(C,U),i.unlinkSync(U)},ee=(C,U,X)=>C===C>>>0?C:U===U>>>0?U:X,ae=C=>d(u(h(C))).toLowerCase(),oe=(C,U)=>{U=ae(U);for(let X of C.keys()){let ne=ae(X);(ne===U||ne.indexOf(U+"/")===0)&&C.delete(X)}},de=C=>{for(let U of C.keys())C.delete(U)},pe=class extends n{constructor(C){if(C||(C={}),C.ondone=U=>{this[I]=!0,this[B]()},super(C),this[M]=!1,this.reservations=f(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[k]=0,this[I]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||Z,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=h(a.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",U=>this[p](U))}warn(C,U,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,U,X)}[B](){this[I]&&this[k]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[D](C){if(this.strip){let U=h(C.path).split("/");if(U.length<this.strip)return!1;if(C.path=U.slice(this.strip).join("/"),C.type==="Link"){let X=h(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let U=h(C.path),X=U.split("/");if(X.includes("..")||Z&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:U}),!1;let[ne,me]=l(U);ne&&(C.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:C,path:U}))}if(a.isAbsolute(C.path)?C.absolute=h(a.resolve(C.path)):C.absolute=h(a.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:h(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:U}=a.win32.parse(C.absolute);C.absolute=U+o.encode(C.absolute.slice(U.length));let{root:X}=a.win32.parse(C.path);C.path=X+o.encode(C.path.slice(X.length))}return!0}[p](C){if(!this[D](C))return C.resume();switch(t.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[x](C)}}[T](C,U){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:U}),this[P](),U.resume())}[F](C,U,X){s(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:U,noChmod:this.noChmod},X)}[G](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Q](C){return ee(this.uid,C.uid,this.processUid)}[L](C){return ee(this.gid,C.gid,this.processGid)}[E](C,U){let X=C.mode&4095||this.fmode,ne=new c.WriteStream(C.absolute,{flags:K(C.size),mode:X,autoClose:!1});ne.on("error",ie=>{ne.fd&&i.close(ne.fd,()=>{}),ne.write=()=>!0,this[T](ie,C),U()});let me=1,se=ie=>{if(ie){ne.fd&&i.close(ne.fd,()=>{}),this[T](ie,C),U();return}--me===0&&i.close(ne.fd,ye=>{ye?this[T](ye,C):this[P](),U()})};ne.on("finish",ie=>{let ye=C.absolute,we=ne.fd;if(C.mtime&&!this.noMtime){me++;let xe=C.atime||new Date,V=C.mtime;i.futimes(we,xe,V,$=>$?i.utimes(ye,xe,V,ue=>se(ue&&$)):se())}if(this[G](C)){me++;let xe=this[Q](C),V=this[L](C);i.fchown(we,xe,V,$=>$?i.chown(ye,xe,V,ue=>se(ue&&$)):se())}se()});let fe=this.transform&&this.transform(C)||C;fe!==C&&(fe.on("error",ie=>{this[T](ie,C),U()}),C.pipe(fe)),fe.pipe(ne)}[v](C,U){let X=C.mode&4095||this.dmode;this[F](C.absolute,X,ne=>{if(ne){this[T](ne,C),U();return}let me=1,se=fe=>{--me===0&&(U(),this[P](),C.resume())};C.mtime&&!this.noMtime&&(me++,i.utimes(C.absolute,C.atime||new Date,C.mtime,se)),this[G](C)&&(me++,i.chown(C.absolute,this[Q](C),this[L](C),se)),se()})}[x](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[w](C,U){this[m](C,C.linkpath,"symlink",U)}[A](C,U){let X=h(a.resolve(this.cwd,C.linkpath));this[m](C,X,"link",U)}[O](){this[k]++}[P](){this[k]--,this[B]()}[H](C){this[P](),C.resume()}[g](C,U){return C.type==="File"&&!this.unlink&&U.isFile()&&U.nlink<=1&&!Z}[y](C){this[O]();let U=[C.path];C.linkpath&&U.push(C.linkpath),this.reservations.reserve(U,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?de(this.dirCache):C.type!=="Directory"&&oe(this.dirCache,C.absolute)}[b](C,U){this[_](C);let X=fe=>{this[_](C),U(fe)},ne=()=>{this[F](this.cwd,this.dmode,fe=>{if(fe){this[T](fe,C),X();return}this[M]=!0,me()})},me=()=>{if(C.absolute!==this.cwd){let fe=h(a.dirname(C.absolute));if(fe!==this.cwd)return this[F](fe,this.dmode,ie=>{if(ie){this[T](ie,C),X();return}se()})}se()},se=()=>{i.lstat(C.absolute,(fe,ie)=>{if(ie&&(this.keep||this.newer&&ie.mtime>C.mtime)){this[H](C),X();return}if(fe||this[g](C,ie))return this[S](null,C,X);if(ie.isDirectory()){if(C.type==="Directory"){let ye=!this.noChmod&&C.mode&&(ie.mode&4095)!==C.mode,we=xe=>this[S](xe,C,X);return ye?i.chmod(C.absolute,C.mode,we):we()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ye=>this[S](ye,C,X))}if(C.absolute===this.cwd)return this[S](null,C,X);N(C.absolute,ye=>this[S](ye,C,X))})};this[M]?me():ne()}[S](C,U,X){if(C){this[T](C,U),X();return}switch(U.type){case"File":case"OldFile":case"ContiguousFile":return this[E](U,X);case"Link":return this[A](U,X);case"SymbolicLink":return this[w](U,X);case"Directory":case"GNUDumpDir":return this[v](U,X)}}[m](C,U,X,ne){i[X](U,C.absolute,me=>{me?this[T](me,C):(this[P](),C.resume()),ne()})}},j=C=>{try{return[null,C()]}catch(U){return[U,null]}},W=class extends pe{[S](C,U){return super[S](C,U,()=>{})}[y](C){if(this[_](C),!this[M]){let me=this[F](this.cwd,this.dmode);if(me)return this[T](me,C);this[M]=!0}if(C.absolute!==this.cwd){let me=h(a.dirname(C.absolute));if(me!==this.cwd){let se=this[F](me,this.dmode);if(se)return this[T](se,C)}}let[U,X]=j(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[H](C);if(U||this[g](C,X))return this[S](null,C);if(X.isDirectory()){if(C.type==="Directory"){let se=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[fe]=se?j(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[S](fe,C)}let[me]=j(()=>i.rmdirSync(C.absolute));this[S](me,C)}let[ne]=C.absolute===this.cwd?[]:j(()=>z(C.absolute));this[S](ne,C)}[E](C,U){let X=C.mode&4095||this.fmode,ne=fe=>{let ie;try{i.closeSync(me)}catch(ye){ie=ye}(fe||ie)&&this[T](fe||ie,C),U()},me;try{me=i.openSync(C.absolute,K(C.size),X)}catch(fe){return ne(fe)}let se=this.transform&&this.transform(C)||C;se!==C&&(se.on("error",fe=>this[T](fe,C)),C.pipe(se)),se.on("data",fe=>{try{i.writeSync(me,fe,0,fe.length)}catch(ie){ne(ie)}}),se.on("end",fe=>{let ie=null;if(C.mtime&&!this.noMtime){let ye=C.atime||new Date,we=C.mtime;try{i.futimesSync(me,ye,we)}catch(xe){try{i.utimesSync(C.absolute,ye,we)}catch{ie=xe}}}if(this[G](C)){let ye=this[Q](C),we=this[L](C);try{i.fchownSync(me,ye,we)}catch(xe){try{i.chownSync(C.absolute,ye,we)}catch{ie=ie||xe}}}ne(ie)})}[v](C,U){let X=C.mode&4095||this.dmode,ne=this[F](C.absolute,X);if(ne){this[T](ne,C),U();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[G](C))try{i.chownSync(C.absolute,this[Q](C),this[L](C))}catch{}U(),C.resume()}[F](C,U){try{return s.sync(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:U})}catch(X){return X}}[m](C,U,X,ne){try{i[X+"Sync"](U,C.absolute),ne(),C.resume()}catch(me){return this[T](me,C)}}};pe.Sync=W,r.exports=pe}),F3=re((e,r)=>{"use strict";J();var t=pi(),n=t1(),i=ce("fs"),c=gi(),a=ce("path"),s=yi();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&o(b,p),b.file&&b.sync?f(b):b.file?l(b,y):b.sync?h(b):u(b)};var o=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new c.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},l=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),P3=re(e=>{"use strict";J(),e.c=e.create=_3(),e.r=e.replace=J2(),e.t=e.list=Al(),e.u=e.update=w3(),e.x=e.extract=F3(),e.Pack=El(),e.Unpack=t1(),e.Parse=Sl(),e.ReadEntry=vl(),e.WriteEntry=X2(),e.Header=mi(),e.Pax=_l(),e.types=V2()}),mr=re((e,r)=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function c(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function s(m){return a.includes(m)}function o(m){return w=>typeof w===m}var{toString:f}=Object.prototype,l=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(c(w))return w},h=m=>w=>l(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=l(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");var d=o("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=o("bigint"),u.function_=o("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=o("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,A,x,D;return(D=(x=(A=(w=m)===null||w===void 0?void 0:w.constructor)===null||A===void 0?void 0:A.isBuffer)===null||x===void 0?void 0:x.call(A,m))!==null&&D!==void 0?D:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,A;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((A=m)===null||A===void 0?void 0:A.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,A;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((A=m)===null||A===void 0?void 0:A.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>l(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||s(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(l(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,A,x,D;return m?m===((A=(w=m)[Symbol.observable])===null||A===void 0?void 0:A.call(w))||m===((D=(x=m)["@@observable"])===null||D===void 0?void 0:D.call(x)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,A)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(A.length===0)throw new TypeError("Invalid number of values");return m.call(A,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(A=>E(Array.prototype.some,A,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,A,x={})=>{if(!m){let{multipleValues:D}=x,F=D?`received values of types ${[...new Set(A.map(T=>`\`${u(T)}\``))].join(", ")}`:`received value of type \`${u(A)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${F}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),B3=re((e,r)=>{"use strict";J();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...c)=>new n((a,s,o)=>{c.push(o),i(...c).then(a,s)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((c,a)=>{this._reject=a;let s=l=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,c(l))},o=l=>{this._isPending=!1,a(l)},f=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(s,o,f)})}then(i,c){return this._promise.then(i,c)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let c of this._cancelHandlers)c()}catch(c){this._reject(c);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),L3=re((e,r)=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,c)=>{let a;typeof c=="function"?a={connect:c}:a=c;let s=typeof a.connect=="function",o=typeof a.secureConnect=="function",f=typeof a.close=="function",l=()=>{s&&a.connect(),t(i)&&o&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),I3=re((e,r)=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var t=L3(),n=ce("util"),i=Number(process.versions.node.split(".")[0]),c=a=>{if(a.timings)return a.timings;let s={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=s;let o=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(s.error=Date.now(),s.phases.total=s.error-s.start,u.emit=d),d(p,...y))};o(a);let f=()=>{s.abort=Date.now(),(!s.response||i>=13)&&(s.phases.total=Date.now()-s.start)};a.prependOnceListener("abort",f);let l=u=>{if(s.socket=Date.now(),s.phases.wait=s.socket-s.start,n.types.isProxy(u))return;let d=()=>{s.lookup=Date.now(),s.phases.dns=s.lookup-s.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{s.connect=Date.now(),s.lookup===void 0&&(u.removeListener("lookup",d),s.lookup=s.connect,s.phases.dns=s.lookup-s.socket),s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now(),s.phases.tls=s.secureConnect-s.connect}})};a.socket?l(a.socket):a.prependOnceListener("socket",l);let h=()=>{var u;s.upload=Date.now(),s.phases.request=s.upload-((u=s.secureConnect)!==null&&u!==void 0?u:s.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{s.response=Date.now(),s.phases.firstByte=s.response-s.upload,u.timings=s,o(u),u.prependOnceListener("end",()=>{s.end=Date.now(),s.phases.download=s.end-s.response,s.phases.total=s.end-s.start}),u.prependOnceListener("aborted",f)}),s};e.default=c,r.exports=c,r.exports.default=c}),M3=re((e,r)=>{"use strict";J();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:c},lookup:a}=ce("dns"),{promisify:s}=ce("util"),o=ce("os"),f=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(o.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:A=new c,lookup:x=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=A,this._dnsLookup=s(x),this._resolver instanceof c?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=s(this._resolver.resolve4.bind(this._resolver)),this._resolve6=s(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let D=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);D.unref&&D.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(A=>A.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(A=>A.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async T=>{try{return await T}catch(k){if(k.code==="ENODATA"||k.code==="ENOTFOUND")return[];throw k}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(T=>v(T))),A=0,x=0,D=0,F=Date.now();for(let T of m)T.family=4,T.expires=F+T.ttl*1e3,A=Math.max(A,T.ttl);for(let T of w)T.family=6,T.expires=F+T.ttl*1e3,x=Math.max(x,T.ttl);return m.length>0?w.length>0?D=Math.min(A,x):D=A:D=x,{entries:[...m,...w],cacheTtl:D}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let A=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw A.cause=w,A}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[A,x]of this._cache){let D=x[h];w>=D?this._cache.delete(A):D<m&&(m=D)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),N3=re((e,r)=>{"use strict";J();var t="text/plain",n="us-ascii",i=(s,o)=>o.some(f=>f instanceof RegExp?f.test(s):f===s),c=(s,{stripHash:o})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!f)throw new Error(`Invalid URL: ${s}`);let{type:l,data:h,hash:u}=f.groups,d=l.split(";");u=o?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(s,o)=>{if(o={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...o},s=s.trim(),/^data:/i.test(s))return c(s,o);if(/^view-source:/i.test(s))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=s.startsWith("//");!f&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,o.defaultProtocol));let l=new URL(s);if(o.forceHttp&&o.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(o.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),o.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),o.stripAuthentication&&(l.username="",l.password=""),o.stripHash?l.hash="":o.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(o.removeDirectoryIndex===!0&&(o.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(o.removeDirectoryIndex)&&o.removeDirectoryIndex.length>0){let u=l.pathname.split("/"),d=u[u.length-1];i(d,o.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),l.pathname=u.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),o.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(o.removeQueryParameters))for(let u of[...l.searchParams.keys()])i(u,o.removeQueryParameters)&&l.searchParams.delete(u);o.removeQueryParameters===!0&&(l.search=""),o.sortQueryParameters&&l.searchParams.sort(),o.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let h=s;return s=l.toString(),!o.removeSingleSlash&&l.pathname==="/"&&!h.endsWith("/")&&l.hash===""&&(s=s.replace(/\/$/,"")),(o.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&o.removeSingleSlash&&(s=s.replace(/\/$/,"")),f&&!o.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),o.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s};r.exports=a}),j3=re((e,r)=>{J(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){c[a]=n[a]}),c;function c(){for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];var o=n.apply(this,a),f=a[a.length-1];return typeof o=="function"&&o!==f&&Object.keys(f).forEach(function(l){o[l]=f[l]}),o}}}),r1=re((e,r)=>{J();var t=j3();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(c){var a=function(){return a.called?a.value:(a.called=!0,a.value=c.apply(this,arguments))};return a.called=!1,a}function i(c){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=c.apply(this,arguments)},s=c.name||"Function wrapped with `once`";return a.onceError=s+" shouldn't be called more than once",a.called=!1,a}}),$3=re((e,r)=>{J();var t=r1(),n=function(){},i=function(s){return s.setHeader&&typeof s.abort=="function"},c=function(s){return s.stdio&&Array.isArray(s.stdio)&&s.stdio.length===3},a=function(s,o,f){if(typeof o=="function")return a(s,null,o);o||(o={}),f=t(f||n);var l=s._writableState,h=s._readableState,u=o.readable||o.readable!==!1&&s.readable,d=o.writable||o.writable!==!1&&s.writable,p=!1,y=function(){s.writable||b()},b=function(){d=!1,u||f.call(s)},_=function(){u=!1,d||f.call(s)},g=function(w){f.call(s,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(s,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(s,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return f.call(s,new Error("premature close"))}},m=function(){s.req.on("finish",b)};return i(s)?(s.on("complete",b),s.on("abort",E),s.req?m():s.on("request",m)):d&&!l&&(s.on("end",y),s.on("close",y)),c(s)&&s.on("exit",g),s.on("end",_),s.on("finish",b),o.error!==!1&&s.on("error",S),s.on("close",E),function(){p=!0,s.removeListener("complete",b),s.removeListener("abort",E),s.removeListener("request",m),s.req&&s.req.removeListener("finish",b),s.removeListener("end",y),s.removeListener("close",y),s.removeListener("finish",b),s.removeListener("exit",g),s.removeListener("end",_),s.removeListener("error",S),s.removeListener("close",E)}};r.exports=a}),H3=re((e,r)=>{J();var t=r1(),n=$3(),i=ce("fs"),c=function(){},a=/^v?\.0/.test(process.version),s=function(p){return typeof p=="function"},o=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||c)||p instanceof(i.WriteStream||c))&&s(p.close)},f=function(p){return p.setHeader&&s(p.abort)},l=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,o(p))return p.close(c);if(f(p))return p.abort();if(s(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=s(p[p.length-1]||c)&&p.pop()||c;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return l(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),q3=re((e,r)=>{"use strict";J();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),G3=re((e,r)=>{"use strict";J();var{constants:t}=ce("buffer"),n=H3(),i=q3(),c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(s,o){if(!s)return Promise.reject(new Error("Expected a stream"));o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,l;return await new Promise((h,u)=>{let d=p=>{p&&l.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=l.getBufferedValue()),u(p)};l=n(s,i(o),p=>{if(p){d(p);return}h()}),l.on("data",()=>{l.getBufferedLength()>f&&d(new c)})}),l.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(s,o)=>a(s,{...o,encoding:"buffer"}),r.exports.array=(s,o)=>a(s,{...o,array:!0}),r.exports.MaxBufferError=c}),U3=re((e,r)=>{"use strict";J();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(h){let u=parseInt(h,10);return isFinite(u)?u:0}function o(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function l(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)c[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+s(this._rescc["stale-if-error"]),d=h+s(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&o(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),xl=re((e,r)=>{"use strict";J(),r.exports=t=>{let n={};for(let[i,c]of Object.entries(t))n[i.toLowerCase()]=c;return n}}),W3=re((e,r)=>{"use strict";J();var t=ce("stream").Readable,n=xl(),i=class extends t{constructor(c,a,s,o){if(typeof c!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof o!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=c,this.headers=n(a),this.body=s,this.url=o}_read(){this.push(this.body),this.push(null)}};r.exports=i}),z3=re((e,r)=>{"use strict";J();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let c=new Set(Object.keys(n).concat(t));for(let a of c)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),V3=re((e,r)=>{"use strict";J();var t=ce("stream").PassThrough,n=z3(),i=c=>{if(!(c&&c.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(c,a),c.pipe(a)};r.exports=i}),K3=re(e=>{J(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var c=!0;for(var a in t){var s=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!s&&(c||(n+=","),c=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),Y3=re((e,r)=>{"use strict";J();var t=ce("events"),n=K3(),i=s=>{let o={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let f=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(ce(o[f]))(s)}return new Map},c=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(s,{emitErrors:o=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof s=="string"?{uri:s}:s,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&o&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let l=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return c.includes(this.opts.store.opts.dialect)||c.findIndex(s=>this.opts.store.opts.url.includes(s))>=0}_getKeyPrefix(s){return`${this.opts.namespace}:${s}`}_getKeyPrefixArray(s){return s.map(o=>`${this.opts.namespace}:${o}`)}_getKeyUnprefix(s){return s.split(":").splice(1).join(":")}get(s,o){let{store:f}=this.opts,l=Array.isArray(s),h=l?this._getKeyPrefixArray(s):this._getKeyPrefix(s);if(l&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):o&&o.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>l?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(l){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(s).then(()=>{}),d.push(void 0)):d.push(o&&o.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(s).then(()=>{}):o&&o.raw?u:u.value}})}set(s,o,f){let l=this._getKeyPrefix(s);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof o=="symbol"&&this.emit("error","symbol cannot be serialized"),o={value:o,expires:u},this.opts.serialize(o)}).then(u=>h.set(l,u,f)).then(()=>!0)}delete(s){let{store:o}=this.opts;if(Array.isArray(s)){let l=this._getKeyPrefixArray(s);if(o.deleteMany===void 0){let h=[];for(let u of l)h.push(o.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>o.deleteMany(l))}let f=this._getKeyPrefix(s);return Promise.resolve().then(()=>o.delete(f))}clear(){let{store:s}=this.opts;return Promise.resolve().then(()=>s.clear())}has(s){let o=this._getKeyPrefix(s),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(o):await f.get(o)!==void 0)}disconnect(){let{store:s}=this.opts;if(typeof s.disconnect=="function")return s.disconnect()}};r.exports=a}),X3=re((e,r)=>{"use strict";J();var t=ce("events"),n=ce("url"),i=N3(),c=G3(),a=U3(),s=W3(),o=xl(),f=V3(),l=Y3(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[A,...x]=(y.path||"").split("?"),D=x.length>0?`?${x.join("?")}`:"";_=d({...y,pathname:A,search:D})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=o(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=A=>{m=!0;let x=!1,D,F=new Promise(k=>{D=()=>{x||(x=!0,k())}}),T=k=>{if(v&&!A.forceRefresh){k.status=k.statusCode;let P=a.fromObject(v.cachePolicy).revalidatedPolicy(A,k);if(!P.modified){let I=P.policy.responseHeaders();k=new s(v.statusCode,I,v.body,v.url),k.cachePolicy=P.policy,k.fromCache=!0}}k.fromCache||(k.cachePolicy=new a(A,k,A),k.fromCache=!1);let O;A.cache&&k.cachePolicy.storable()?(O=f(k),(async()=>{try{let P=c.buffer(k);if(await Promise.race([F,new Promise(G=>k.once("end",G))]),x)return;let I=await P,B={cachePolicy:k.cachePolicy.toObject(),url:k.url,statusCode:k.fromCache?v.statusCode:k.statusCode,body:I},H=A.strictTtl?k.cachePolicy.timeToLive():void 0;A.maxTtl&&(H=H?Math.min(H,A.maxTtl):A.maxTtl),await this.cache.set(E,B,H)}catch(P){g.emit("error",new h.CacheError(P))}})()):A.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(P){g.emit("error",new h.CacheError(P))}})(),g.emit("response",O||k),typeof b=="function"&&b(O||k)};try{let k=p(A,T);k.once("error",D),k.once("abort",D),g.emit("request",k)}catch(k){g.emit("error",new h.RequestError(k))}};return(async()=>{let A=async D=>{await Promise.resolve();let F=D.cache?await this.cache.get(E):void 0;if(typeof F>"u")return w(D);let T=a.fromObject(F.cachePolicy);if(T.satisfiesWithoutRevalidation(D)&&!D.forceRefresh){let k=T.responseHeaders(),O=new s(F.statusCode,k,F.body,F.url);O.cachePolicy=T,O.fromCache=!0,g.emit("response",O),typeof b=="function"&&b(O)}else v=F,D.headers=T.revalidationHeaders(D),w(D)},x=D=>g.emit("error",new h.CacheError(D));this.cache.once("error",x),g.on("response",()=>this.cache.removeListener("error",x));try{await A(y)}catch(D){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(D))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),Z3=re((e,r)=>{"use strict";J();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let c=new Set(Object.keys(n).concat(t)),a={};for(let s of c)s in i||(a[s]={get(){let o=n[s];return typeof o=="function"?o.bind(n):o},set(o){n[s]=o},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),J3=re((e,r)=>{"use strict";J();var{Transform:t,PassThrough:n}=ce("stream"),i=ce("zlib"),c=Z3();r.exports=a=>{let s=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s))return a;let o=s==="br";if(o&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,l=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=o?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),c(a,h),a.pipe(l).pipe(u).pipe(h),h}}),n1=re((e,r)=>{"use strict";J();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[c,a]of this.oldCache.entries())this.onEviction(c,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),i1=re((e,r)=>{"use strict";J();var t=ce("events"),n=ce("tls"),i=ce("http2"),c=n1(),a=Symbol("currentStreamsCount"),s=Symbol("request"),o=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[o].length<S[o].length&&E[o].every(v=>S[o].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[o].length<E[o].length&&S[o].every(v=>E[o].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let A=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?A:!A});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new c({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of l)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),A=_.normalizeOrigin(g,S&&S.servername);if(A===void 0){for(let{reject:F}of E)F(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let F=this.sessions[w],T=-1,k=-1,O;for(let P of F){let I=P.remoteSettings.maxConcurrentStreams;if(I<T)break;if(P[o].includes(A)){let B=P[a];if(B>=I||P[f]||P.destroyed)continue;O||(T=I),B>k&&(O=P,k=B)}}if(O){if(E.length!==1){for(let{reject:P}of E){let I=new Error(`Expected the length of listeners to be 1, got ${E.length}.
137
137
  Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}E[0].resolve(O);return}}if(w in this.queue){if(A in this.queue[w]){this.queue[w][A].listeners.push(...E),this._tryToCreateNewSession(w,A);return}}else this.queue[w]={};let x=()=>{w in this.queue&&this.queue[w][A]===D&&(delete this.queue[w][A],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},D=()=>{let F=`${A}:${w}`,T=!1;try{let k=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(F),...S});k[a]=0,k[f]=!1;let O=()=>k[a]<k.remoteSettings.maxConcurrentStreams,P=!0;k.socket.once("session",B=>{this.tlsSessionCache.set(F,B)}),k.once("error",B=>{for(let{reject:H}of E)H(B);this.tlsSessionCache.delete(F)}),k.setTimeout(this.timeout,()=>{k.destroy()}),k.once("close",()=>{if(T){P&&this._freeSessionsCount--,this._sessionsCount--;let B=this.sessions[w];B.splice(B.indexOf(k),1),B.length===0&&delete this.sessions[w]}else{let B=new Error("Session closed without receiving a SETTINGS frame");B.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:H}of E)H(B);x()}this._tryToCreateNewSession(w,A)});let I=()=>{if(!(!(w in this.queue)||!O())){for(let B of k[o])if(B in this.queue[w]){let{listeners:H}=this.queue[w][B];for(;H.length!==0&&O();)H.shift().resolve(k);let G=this.queue[w];if(G[B].listeners.length===0&&(delete G[B],Object.keys(G).length===0)){delete this.queue[w];break}if(!O())break}}};k.on("origin",()=>{k[o]=k.originSet,O()&&(I(),d(this.sessions[w],k))}),k.once("remoteSettings",()=>{if(k.ref(),k.unref(),this._sessionsCount++,D.destroyed){let B=new Error("Agent has been destroyed");for(let H of E)H.reject(B);k.destroy();return}k[o]=k.originSet;{let B=this.sessions;if(w in B){let H=B[w];H.splice(h(H,k,u),0,k)}else B[w]=[k]}this._freeSessionsCount+=1,T=!0,this.emit("session",k),I(),x(),k[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&k.close(),E.length!==0&&(this.getSession(A,S,E),E.length=0),k.on("remoteSettings",()=>{I(),d(this.sessions[w],k)})}),k[s]=k.request,k.request=(B,H)=>{if(k[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let G=k[s](B,H);return k.ref(),++k[a],k[a]===k.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,G.once("close",()=>{if(P=O(),--k[a],!k.destroyed&&!k.closed&&(p(this.sessions[w],k),O()&&!k.closed)){P||(this._freeSessionsCount++,P=!0);let Q=k[a]===0;Q&&k.unref(),Q&&(this._freeSessionsCount>this.maxFreeSessions||k[f])?k.close():(d(this.sessions[w],k),I())}}),G}}catch(k){for(let O of E)O.reject(k);x()}};D.listeners=E,D.completed=!1,D.destroyed=!1,this.queue[w][A]=D,this._tryToCreateNewSession(w,A)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:A=>{try{m(A.request(E,v))}catch(x){w(x)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),s1=re((e,r)=>{"use strict";J();var{Readable:t}=ce("stream"),n=class extends t{constructor(i,c){super({highWaterMark:c,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,c){return this.req.setTimeout(i,c),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),o1=re((e,r)=>{"use strict";J(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),Q3=re((e,r)=>{"use strict";J(),r.exports=(t,n,i)=>{for(let c of i)t.on(c,(...a)=>n.emit(c,...a))}}),eF=re((e,r)=>{"use strict";J(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),tF=re((e,r)=>{"use strict";J();var t=(n,i,c)=>{r.exports[i]=class extends n{constructor(...a){super(typeof c=="string"?c:c(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",c=n[1],a=Array.isArray(c);return a&&(c=`${c.slice(0,-1).join(", ")} or ${c.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${c}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),a1=re((e,r)=>{"use strict";J();var t=ce("http2"),{Writable:n}=ce("stream"),{Agent:i,globalAgent:c}=i1(),a=s1(),s=o1(),o=Q3(),f=eF(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=tF(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),A=Symbol("flushedHeaders"),x=Symbol("jobs"),D=/^[\^`\-\w!#$%&*+.|~]+$/,F=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends n{constructor(k,O,P){super({autoDestroy:!1});let I=typeof k=="string"||k instanceof URL;if(I&&(k=s(k instanceof URL?k:new URL(k))),typeof O=="function"||O===void 0?(P=O,O=I?k:{...k}):O={...k,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=c;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new h(O.protocol,"https:");let B=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,H=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:G}=O;if(O.timeout=void 0,this[E]=Object.create(null),this[x]=[],this.socket=null,this.connection=null,this.method=O.method||"GET",this.path=O.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,O.headers)for(let[Q,L]of Object.entries(O.headers))this.setHeader(Q,L);O.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[w]=O,B===443?(this[v]=`https://${H}`,":authority"in this[E]||(this[E][":authority"]=H)):(this[v]=`https://${H}:${B}`,":authority"in this[E]||(this[E][":authority"]=`${H}:${B}`)),G&&this.setTimeout(G),P&&this.once("response",P),this[A]=!1}get method(){return this[E][_]}set method(k){k&&(this[E][_]=k.toUpperCase())}get path(){return this[E][g]}set path(k){k&&(this[E][g]=k)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(k,O,P){if(this._mustNotHaveABody){P(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let I=()=>this._request.write(k,O,P);this._request?I():this[x].push(I)}_final(k){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){k();return}this._request.end(k)};this._request?O():this[x].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(k,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(k)}async flushHeaders(){if(this[A]||this.destroyed)return;this[A]=!0;let k=this.method===S,O=P=>{if(this._request=P,this.destroyed){P.destroy();return}k||o(P,this,["timeout","continue","close","error"]);let I=H=>(...G)=>{!this.writable&&!this.destroyed?H(...G):this.once("finish",()=>{H(...G)})};P.once("response",I((H,G,Q)=>{let L=new a(this.socket,P.readableHighWaterMark);this.res=L,L.req=this,L.statusCode=H[b],L.headers=H,L.rawHeaders=Q,L.once("end",()=>{this.aborted?(L.aborted=!0,L.emit("aborted")):(L.complete=!0,L.socket=null,L.connection=null)}),k?(L.upgrade=!0,this.emit("connect",L,P,Buffer.alloc(0))?this.emit("close"):P.destroy()):(P.on("data",M=>{!L._dumped&&!L.push(M)&&P.pause()}),P.once("end",()=>{L.push(null)}),this.emit("response",L)||L._dump())})),P.once("headers",I(H=>this.emit("information",{statusCode:H[b]}))),P.once("trailers",I((H,G,Q)=>{let{res:L}=this;L.trailers=H,L.rawTrailers=Q}));let{socket:B}=P.session;this.socket=B,this.connection=B;for(let H of this[x])H();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[E]))}catch(P){this.emit("error",P)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[w],this[E]))}catch(P){this.emit("error",P)}}}getHeader(k){if(typeof k!="string")throw new l("name","string",k);return this[E][k.toLowerCase()]}get headersSent(){return this[A]}removeHeader(k){if(typeof k!="string")throw new l("name","string",k);if(this.headersSent)throw new u("remove");delete this[E][k.toLowerCase()]}setHeader(k,O){if(this.headersSent)throw new u("set");if(typeof k!="string"||!D.test(k)&&!f(k))throw new d("Header name",k);if(typeof O>"u")throw new p(O,k);if(F.test(O))throw new y("header content",k);this[E][k.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(k,O){let P=()=>this._request.setTimeout(k,O);return this._request?P():this[x].push(P),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(k){}};r.exports=T}),rF=re((e,r)=>{"use strict";J();var t=ce("tls");r.exports=(n={},i=t.connect)=>new Promise((c,a)=>{let s=!1,o,f=async()=>{await h,o.off("timeout",l),o.off("error",a),n.resolveSocket?(c({alpnProtocol:o.alpnProtocol,socket:o,timeout:s}),s&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),c({alpnProtocol:o.alpnProtocol,timeout:s}))},l=async()=>{s=!0,f()},h=(async()=>{try{o=await i(n,f),o.on("error",a),o.once("timeout",l)}catch(u){a(u)}})()})}),nF=re((e,r)=>{"use strict";J();var t=ce("net");r.exports=n=>{let i=n.host,c=n.headers&&n.headers.host;return c&&(c.startsWith("[")?c.indexOf("]")===-1?i=c:i=c.slice(1,-1):i=c.split(":",1)[0]),t.isIP(i)?"":i}}),iF=re((e,r)=>{"use strict";J();var t=ce("http"),n=ce("https"),i=rF(),c=n1(),a=a1(),s=nF(),o=o1(),f=new c({maxSize:100}),l=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(l.has(p))return(await l.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);l.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return l.delete(p),S}catch(g){throw l.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=o(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||s(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),sF=re((e,r)=>{"use strict";J();var t=ce("http2"),n=i1(),i=a1(),c=s1(),a=iF(),s=(f,l,h)=>new i(f,l,h),o=(f,l,h)=>{let u=new i(f,l,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:c,...n,request:s,get:o,auto:a}}),u1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),oF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("fs"),t=ce("util"),n=mr(),i=u1(),c=t.promisify(r.stat);e.default=async(a,s)=>{if(s&&"content-length"in s)return Number(s["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:o}=await c(a.path);return o===0?void 0:o}}}),l1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let c={};for(let a of i)c[a]=(...s)=>{n.emit(a,...s)},t.on(a,c[a]);return()=>{for(let a of i)t.off(a,c[a])}}e.default=r}),aF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:c}=t;n.removeListener(i,c)}r.length=0}}}}),uF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=ce("net"),t=aF(),n=Symbol("reentry"),i=()=>{},c=class extends Error{constructor(a,s){super(`Timeout awaiting '${s}' for ${a}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=c,e.default=(a,s,o)=>{if(n in a)return i;a[n]=!0;let f=[],{once:l,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=o,y=(_,g)=>{a.destroy(new c(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),l(a,"response",_=>{l(_,"end",b)}),typeof s.request<"u"&&u(s.request,y,"request"),typeof s.socket<"u"){let _=()=>{y(s.socket,"socket")};a.setTimeout(s.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return l(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof s.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(s.lookup,y,"lookup");l(_,"lookup",v)}if(typeof s.connect<"u"){let v=()=>u(s.connect,y,"connect");E?l(_,"connect",v()):l(_,"lookup",m=>{m===null&&l(_,"connect",v())})}typeof s.secureConnect<"u"&&o.protocol==="https:"&&l(_,"connect",()=>{let v=u(s.secureConnect,y,"secureConnect");l(_,"secureConnect",v)})}if(typeof s.send<"u"){let E=()=>u(s.send,y,"send");_.connecting?l(_,"connect",()=>{l(a,"upload-complete",E())}):l(a,"upload-complete",E())}}),typeof s.response<"u"&&l(a,"upload-complete",()=>{let _=u(s.response,y,"response");l(a,"response",_)}),b}}),lF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),cF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var c,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(c=i.hostname)!==null&&c!==void 0?c:i.host)!==null&&a!==void 0?a:""}`}let s=new r.URL(n);if(i.path){let o=i.path.indexOf("?");o===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,o),i.search=i.path.slice(o+1)),delete i.path}for(let o of t)i[o]&&(s[o]=i[o].toString());return s}}),hF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),c1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let c of t)n.push(c),i+=Buffer.byteLength(c);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),fF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),h1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),pF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),dF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:c}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(c)?(n.retry={...n.retry,...c},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(c)&&(n.retry.limit=c),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),mF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:c})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),s=n.errorCodes.includes(i.code),o=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!s&&!o)return 0;if(i.response){if(c)return n.maxRetryAfter===void 0||c>n.maxRetryAfter?0:c;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),Ts=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=ce("util"),t=ce("stream"),n=ce("fs"),i=ce("url"),c=ce("http"),a=ce("http"),s=ce("https"),o=I3(),f=M3(),l=X3(),h=J3(),u=sF(),d=xl(),p=mr(),y=oF(),b=u1(),_=l1(),g=uF(),S=lF(),E=cF(),v=hF(),m=c1(),w=fF(),A=h1(),x=pF(),D=dF(),F=mF(),T,k=Symbol("request"),O=Symbol("response"),P=Symbol("responseSize"),I=Symbol("downloadedSize"),B=Symbol("bodySize"),H=Symbol("uploadedSize"),G=Symbol("serverResponsesPiped"),Q=Symbol("unproxyEvents"),L=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),R=Symbol("startedReading"),K=Symbol("stopReading"),q=Symbol("triggerRead"),Z=Symbol("body"),N=Symbol("jobs"),z=Symbol("originalResponse"),ee=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ae=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function oe(V){for(let $ in V){let ue=V[$];if(!p.default.string(ue)&&!p.default.number(ue)&&!p.default.boolean(ue)&&!p.default.null_(ue)&&!p.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function de(V){return p.default.object(V)&&!("statusCode"in V)}var pe=new v.default,j=async V=>new Promise(($,ue)=>{let _e=ge=>{ue(ge)};V.pending||$(),V.once("error",_e),V.once("ready",()=>{V.off("error",_e),$()})}),W=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(V,$)=>{let ue={};for(let _e of V)if(_e)for(let ge of C)ge in _e&&(ue[ge]={writable:!0,configurable:!0,enumerable:!1,value:_e[ge]});Object.defineProperties($,ue)};var U=class extends Error{constructor(V,$,ue){var _e,ge;if(super(V),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(_e=$.code)!==null&&_e!==void 0?_e:"ERR_GOT_REQUEST_ERROR",ue instanceof xe?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(ge=this.request)===null||ge===void 0?void 0:ge.timings,p.default.string($.stack)&&p.default.string(this.stack)){let he=this.stack.indexOf(this.message)+this.message.length,be=this.stack.slice(he).split(`
138
138
  `).reverse(),Ee=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
139
139
  `).reverse();for(;Ee.length!==0&&Ee[0]===be[0];)be.shift();this.stack=`${this.stack.slice(0,he)}${be.reverse().join(`
140
140
  `)}${Ee.reverse().join(`
141
- `)}`}}};e.RequestError=U;var X=class extends U{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends U{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends U{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends U{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends U{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends U{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends U{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[I]=0,this[H]=0,this.requestInitialized=!1,this[G]=new Set,this.redirects=[],this[K]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Ne}=this.options;if(!Ne)throw new TypeError("Missing `url` property");if(this.requestUrl=Ne.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[k])===null||Ae===void 0||Ae.destroy();return}for(let Le of this[N])Le();this[N].length=0,this.requestInitialized=!0}catch(Ne){if(Ne instanceof U){this._beforeError(Ne);return}this.destroyed||this.destroy(Ne)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Be=$.searchParams[Fe];Be===null?Se.append(Fe,""):Be!==void 0&&Se.append(Fe,Be)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Be)=>{Se.has(Be)||Se.append(Be,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Be=>{let Ce=$.url;if(!Ce.href.startsWith(Be))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Be}: ${Ce.href}`);$.url=new i.URL(Be+Ce.href.slice(Se.length)),Se=Be},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Ne}=$;if(Ne){let{setCookie:Se,getCookieString:Fe}=Ne;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Le}=$;if(Le&&(pe.has(Le)||pe.set(Le,new l((Se,Fe)=>{let Be=Se[k](Se,Fe);return p.default.promise(Be)&&(Be.once=(Ce,ke)=>{if(Ce==="error")Be.catch(ke);else if(Ce==="abort")(async()=>{try{(await Be).once("abort",ke)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Ce}`);return Be}),Be},Le))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)T||(T=new f.default),$.dnsCache=T;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let Gt=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!Gt)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),D.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Z]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Z]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Z]=V.stringifyJson(V.json));let Ae=await y.default(this[Z],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[B]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[z]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[L]=ge.isFromCache,this[P]=Number(V.headers["content-length"])||void 0,this[O]=V,V.once("end",()=>{this[P]=this[I],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&W.has(_e)){if(V.resume(),this[k]&&(this[M](),delete this[k],this[Q]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Z]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Le){return Le.protocol==="unix:"||Le.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Ne=Ae.toString();if(decodeURI(Ne),!be(ue)&&be(Ae)){this._beforeError(new U("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Ne),$.url=Ae;for(let Le of $.hooks.beforeRedirect)await Le($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[G])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Ne=V.headers[Ee];Ae&&be.setHeader(Ee,Ne)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new U(Ee.message,Ee,this),this._beforeError(Ee)}),this[Q]=_.default(V,this,we),this[k]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Z],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let ke in be)if(p.default.undefined(be[ke]))delete be[ke];else if(p.default.null_(be[ke]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${ke}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let ke=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(ke)&&(he.headers.cookie=ke)}for(let ke of he.hooks.beforeRequest){let Ut=await ke(he);if(!p.default.undefined(Ut)){he.request=()=>Ut;break}}he.body&&this[Z]!==he.body&&(this[Z]=he.body);let{agent:Ee,request:Ae,timeout:Ne,url:Le}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Le.hostname==="unix"){let ke=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Le.pathname}${Le.search}`);if(ke!=null&&ke.groups){let{socketPath:Ut,path:io}=ke.groups;Object.assign(he,{socketPath:Ut,path:io,host:""})}}let Gt=Le.protocol==="https:",Se;he.http2?Se=u.auto:Se=Gt?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Be=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[Gt?"https":"http"]),he[k]=Fe,delete he.request,delete he.timeout;let Ce=he;if(Ce.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,Ce.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,Ce.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,Ce.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{Ce.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(Ce.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(Ce.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(Ce.ca=he.https.certificateAuthority),he.https.certificate&&(Ce.cert=he.https.certificate),he.https.key&&(Ce.key=he.https.key),he.https.passphrase&&(Ce.passphrase=he.https.passphrase),he.https.pfx&&(Ce.pfx=he.https.pfx));try{let ke=await Be(Le,Ce);p.default.undefined(ke)&&(ke=Se(Le,Ce)),he.request=Ae,he.timeout=Ne,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete Ce.rejectUnauthorized,he.https.checkServerIdentity&&delete Ce.checkServerIdentity,he.https.certificateAuthority&&delete Ce.ca,he.https.certificate&&delete Ce.cert,he.https.key&&delete Ce.key,he.https.passphrase&&delete Ce.passphrase,he.https.pfx&&delete Ce.pfx),de(ke)?this._onRequest(ke):this.writable?(this.once("finish",()=>{this._onResponse(ke)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(ke)}catch(ke){throw ke instanceof l.CacheError?new me(ke,this):new U(ke.message,ke,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new U($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[K])return;let{options:$}=this,ue=this.retryCount+1;this[K]=!0,V instanceof U||(V=new U(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:F.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new U(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new U(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[ee]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[q]=!0;let V=this[O];if(V&&!this[K]){V.readableLength&&(this[q]=!1);let $;for(;($=V.read())!==null;){this[I]+=$.length,this[R]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[k].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[k].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(k in this)){V();return}if(this[k].destroyed){V();return}this[k].end(ue=>{ue||(this[B]=this[H],this.emit("uploadProgress",this.uploadProgress),this[k].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[K]=!0,clearTimeout(this[ee]),k in this&&(this[M](),!((ue=this[O])===null||ue===void 0)&&ue.complete||this[k].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof U)&&(V=new U(V.message,V,this)),$(V)}get _isAboutToError(){return this[K]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[k])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[z])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[k])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[P]?V=this[I]/this[P]:this[P]===this[I]?V=1:V=0,{percent:V,transferred:this[I],total:this[P]}}get uploadProgress(){let V;return this[B]?V=this[H]/this[B]:this[B]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[B]}}get timings(){var V;return(V=this[k])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[L]}pipe(V,$){if(this[R])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[G].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[G].delete(V),super.unpipe(V),this}};e.default=xe}),Fs=re(e=>{"use strict";J();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=Ts(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t(Ts(),e)}),yF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=Fs(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),f1=re(e=>{"use strict";J();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=ce("events"),i=mr(),c=B3(),a=Fs(),s=yF(),o=Ts(),f=l1(),l=c1(),h=h1(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async T=>{var k;if(T.retryCount=A,T.request.aborted)return;let O;try{O=await l.default(x),T.rawBody=O}catch{return}if(x._isAboutToError)return;let P=((k=T.headers["content-encoding"])!==null&&k!==void 0?k:"").toLowerCase(),I=["gzip","deflate","br"].includes(P),{options:B}=x;if(I&&!B.decompress)T.body=O;else try{T.body=s.default(T,B.responseType,B.parseJson,B.encoding)}catch(H){if(T.body=O.toString(),h.isResponseOk(T)){x._beforeError(H);return}}try{for(let[H,G]of B.hooks.afterResponse.entries())T=await G(T,async Q=>{let L=o.default.normalizeArguments(void 0,{...Q,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);L.hooks.afterResponse=L.hooks.afterResponse.slice(0,H);for(let R of L.hooks.beforeRetry)await R(L);let M=d(L);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=T,!h.isResponseOk(T)){x._beforeError(new a.HTTPError(T));return}x.destroy(),E(x.options.resolveBodyOnly?T.body:T)});let D=T=>{if(g.isCanceled)return;let{options:k}=x;if(T instanceof a.HTTPError&&!k.throwHttpErrors){let{response:O}=T;E(x.options.resolveBodyOnly?O.body:O);return}v(T)};x.once("error",D);let F=x.options.body;x.once("retry",(T,k)=>{var O,P;if(F===((O=k.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((P=k.request)===null||P===void 0?void 0:P.options.body)){D(k);return}w(T)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(Fs(),e)}),gF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=Fs();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),bF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),vF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0})}),h2=re(e=>{"use strict";J();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=mr(),i=f1(),c=gF(),a=Ts(),s=bF(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:D,catch:F,finally:T}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=D,x.catch=F,x.finally=T}return A});let g=(E,v={},m)=>{var w,A;let x=0,D=F=>_.handlers[x++](F,x===_.handlers.length?u:D);if(n.default.plainObject(E)){let F={...E,...v};a.setNonEnumerableProperties([E,v],F),v=F,E=void 0}try{let F;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(k){F=k}let T=l(E,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,F)throw new i.RequestError(F.message,F,T);return D(T)}catch(F){if(v.isStream)throw F;return c.default(F,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,D=0;for(;D<w.requestLimit;){D!==0&&await f(w.backoff);let F=await g(void 0,void 0,m),T=await w.transform(F),k=[];for(let P of T)if(w.filter(P,A,k)&&(!w.shouldContinue(P,A,k)||(yield P,w.stackAllItems&&A.push(P),k.push(P),--x<=0)))return;let O=w.paginate(F,A,k);if(O===!1)return;O===F.request.options?m=F.request.options:O!==void 0&&(m=l(void 0,O,m)),D++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(vF(),e)}),_F=re((e,r)=>{"use strict";J();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=ce("url"),c=h2(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(h2(),e),n(f1(),e)});J();var e$=Je(P3()),t$=Je(_F()),r$=(0,q2.promisify)(H2.Stream.pipeline);J();var n$=Je(Hs()),wF=re((e,r)=>{J();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),EF=re(e=>{J();var r=wF();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),SF=re((e,r)=>{J(),r.exports=EF()}),AF=re((e,r)=>{J();var t=SF();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});J();var i$=Je(AF()),s$=Je(js()),o$=Je(Hs());J();var xF=re((e,r)=>{J();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),CF=re((e,r)=>{J();var t=xF().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=Object.defineProperty||function(I,B,H){I[B]=H.value},o=typeof Symbol=="function"?Symbol:{},f=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",h=o.toStringTag||"@@toStringTag";function u(I,B,H){return Object.defineProperty(I,B,{value:H,enumerable:!0,configurable:!0,writable:!0}),I[B]}try{u({},"")}catch{u=function(I,B,H){return I[B]=H}}function d(I,B,H,G){var Q=B&&B.prototype instanceof b?B:b,L=Object.create(Q.prototype),M=new k(G||[]);return s(L,"_invoke",{value:x(I,H,M)}),L}function p(I,B,H){try{return{type:"normal",arg:I.call(B,H)}}catch(G){return{type:"throw",arg:G}}}i.wrap=d;var y={};function b(){}function _(){}function g(){}var S={};u(S,f,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(O([])));v&&v!==c&&a.call(v,f)&&(S=v);var m=g.prototype=b.prototype=Object.create(S);function w(I){["next","throw","return"].forEach(function(B){u(I,B,function(H){return this._invoke(B,H)})})}function A(I,B){function H(Q,L,M,R){var K=p(I[Q],I,L);if(K.type!=="throw"){var q=K.arg,Z=q.value;return Z&&t(Z)=="object"&&a.call(Z,"__await")?B.resolve(Z.__await).then(function(N){H("next",N,M,R)},function(N){H("throw",N,M,R)}):B.resolve(Z).then(function(N){q.value=N,M(q)},function(N){return H("throw",N,M,R)})}R(K.arg)}var G;s(this,"_invoke",{value:function(Q,L){function M(){return new B(function(R,K){H(Q,L,R,K)})}return G=G?G.then(M,M):M()}})}function x(I,B,H){var G="suspendedStart";return function(Q,L){if(G==="executing")throw new Error("Generator is already running");if(G==="completed"){if(Q==="throw")throw L;return P()}for(H.method=Q,H.arg=L;;){var M=H.delegate;if(M){var R=D(M,H);if(R){if(R===y)continue;return R}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(G==="suspendedStart")throw G="completed",H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);G="executing";var K=p(I,B,H);if(K.type==="normal"){if(G=H.done?"completed":"suspendedYield",K.arg===y)continue;return{value:K.arg,done:H.done}}K.type==="throw"&&(G="completed",H.method="throw",H.arg=K.arg)}}}function D(I,B){var H=B.method,G=I.iterator[H];if(G===void 0)return B.delegate=null,H==="throw"&&I.iterator.return&&(B.method="return",B.arg=void 0,D(I,B),B.method==="throw")||H!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+H+"' method")),y;var Q=p(G,I.iterator,B.arg);if(Q.type==="throw")return B.method="throw",B.arg=Q.arg,B.delegate=null,y;var L=Q.arg;return L?L.done?(B[I.resultName]=L.value,B.next=I.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,y):L:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,y)}function F(I){var B={tryLoc:I[0]};1 in I&&(B.catchLoc=I[1]),2 in I&&(B.finallyLoc=I[2],B.afterLoc=I[3]),this.tryEntries.push(B)}function T(I){var B=I.completion||{};B.type="normal",delete B.arg,I.completion=B}function k(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(F,this),this.reset(!0)}function O(I){if(I){var B=I[f];if(B)return B.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var H=-1,G=function Q(){for(;++H<I.length;)if(a.call(I,H))return Q.value=I[H],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return G.next=G}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=g,s(m,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,h,"GeneratorFunction"),i.isGeneratorFunction=function(I){var B=typeof I=="function"&&I.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},i.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,g):(I.__proto__=g,u(I,h,"GeneratorFunction")),I.prototype=Object.create(m),I},i.awrap=function(I){return{__await:I}},w(A.prototype),u(A.prototype,l,function(){return this}),i.AsyncIterator=A,i.async=function(I,B,H,G,Q){Q===void 0&&(Q=Promise);var L=new A(d(I,B,H,G),Q);return i.isGeneratorFunction(B)?L:L.next().then(function(M){return M.done?M.value:L.next()})},w(m),u(m,h,"Generator"),u(m,f,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),i.keys=function(I){var B=Object(I),H=[];for(var G in B)H.push(G);return H.reverse(),function Q(){for(;H.length;){var L=H.pop();if(L in B)return Q.value=L,Q.done=!1,Q}return Q.done=!0,Q}},i.values=O,k.prototype={constructor:k,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!I)for(var B in this)B.charAt(0)==="t"&&a.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var B=this;function H(K,q){return L.type="throw",L.arg=I,B.next=K,q&&(B.method="next",B.arg=void 0),!!q}for(var G=this.tryEntries.length-1;G>=0;--G){var Q=this.tryEntries[G],L=Q.completion;if(Q.tryLoc==="root")return H("end");if(Q.tryLoc<=this.prev){var M=a.call(Q,"catchLoc"),R=a.call(Q,"finallyLoc");if(M&&R){if(this.prev<Q.catchLoc)return H(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return H(Q.finallyLoc)}else if(M){if(this.prev<Q.catchLoc)return H(Q.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return H(Q.finallyLoc)}}}},abrupt:function(I,B){for(var H=this.tryEntries.length-1;H>=0;--H){var G=this.tryEntries[H];if(G.tryLoc<=this.prev&&a.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var Q=G;break}}Q&&(I==="break"||I==="continue")&&Q.tryLoc<=B&&B<=Q.finallyLoc&&(Q=null);var L=Q?Q.completion:{};return L.type=I,L.arg=B,Q?(this.method="next",this.next=Q.finallyLoc,y):this.complete(L)},complete:function(I,B){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&B&&(this.next=B),y},finish:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),T(H),y}},catch:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===I){var G=H.completion;if(G.type==="throw"){var Q=G.arg;T(H)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function(I,B,H){return this.delegate={iterator:O(I),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=void 0),y}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),kF=re((e,r)=>{J();var t=CF()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),DF=re((e,r)=>{"use strict";J();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),RF=re((e,r)=>{"use strict";J();var t=DF(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),OF=re((e,r)=>{"use strict";J();var t=RF(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),TF=re((e,r)=>{"use strict";J();var t=ce("path"),n=ce("fs"),{promisify:i}=ce("util"),c=OF(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),FF=re((e,r)=>{"use strict";J();var t=ce("fs"),{promisify:n}=ce("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),PF=re((e,r)=>{"use strict";J();var t=ce("path"),n=TF(),i=FF(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),wt=re(e=>{"use strict";J(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),p1=re(e=>{"use strict";J();var r=wt().fromCallback,t=je(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),d1=re((e,r)=>{"use strict";J();var t=ce("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),BF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=d1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),LF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=d1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),xt=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=t(BF()),i=LF();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),m1=re((e,r)=>{"use strict";J();var t=je(),n=ce("os"),i=ce("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),qs=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,D)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:D}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,D)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:D}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:D,destStat:F}=x;return F&&F.ino&&F.dev&&F.ino===D.ino&&F.dev===D.dev?w(new Error("Source and destination must not be the same.")):D.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:D,destStat:F})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),D=n.resolve(n.dirname(m));if(D===x||D===n.parse(D).root)return A();h()?t.stat(D,{bigint:!0},(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,D,w,A)):t.stat(D,(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,D,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let D;try{h()?D=t.statSync(x,{bigint:!0}):D=t.statSync(x)}catch(F){if(F.code==="ENOENT")return;throw F}if(D.ino&&D.dev&&D.ino===v.ino&&D.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,D)=>A&&w[D]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),IF=re((e,r)=>{"use strict";J(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),MF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=xt().mkdirsSync,c=m1().utimesMillisSync,a=qs();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
141
+ `)}`}}};e.RequestError=U;var X=class extends U{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends U{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends U{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends U{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends U{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends U{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends U{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[I]=0,this[H]=0,this.requestInitialized=!1,this[G]=new Set,this.redirects=[],this[K]=!1,this[q]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Ne}=this.options;if(!Ne)throw new TypeError("Missing `url` property");if(this.requestUrl=Ne.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[k])===null||Ae===void 0||Ae.destroy();return}for(let Le of this[N])Le();this[N].length=0,this.requestInitialized=!0}catch(Ne){if(Ne instanceof U){this._beforeError(Ne);return}this.destroyed||this.destroy(Ne)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Be=$.searchParams[Fe];Be===null?Se.append(Fe,""):Be!==void 0&&Se.append(Fe,Be)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Be)=>{Se.has(Be)||Se.append(Be,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Be=>{let Ce=$.url;if(!Ce.href.startsWith(Be))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Be}: ${Ce.href}`);$.url=new i.URL(Be+Ce.href.slice(Se.length)),Se=Be},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Ne}=$;if(Ne){let{setCookie:Se,getCookieString:Fe}=Ne;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Le}=$;if(Le&&(pe.has(Le)||pe.set(Le,new l((Se,Fe)=>{let Be=Se[k](Se,Fe);return p.default.promise(Be)&&(Be.once=(Ce,ke)=>{if(Ce==="error")Be.catch(ke);else if(Ce==="abort")(async()=>{try{(await Be).once("abort",ke)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Ce}`);return Be}),Be},Le))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)T||(T=new f.default),$.dnsCache=T;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let Gt=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!Gt)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),D.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Z]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Z]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Z]=V.stringifyJson(V.json));let Ae=await y.default(this[Z],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[B]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[z]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[L]=ge.isFromCache,this[P]=Number(V.headers["content-length"])||void 0,this[O]=V,V.once("end",()=>{this[P]=this[I],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&W.has(_e)){if(V.resume(),this[k]&&(this[M](),delete this[k],this[Q]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Z]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Le){return Le.protocol==="unix:"||Le.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Ne=Ae.toString();if(decodeURI(Ne),!be(ue)&&be(Ae)){this._beforeError(new U("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Ne),$.url=Ae;for(let Le of $.hooks.beforeRedirect)await Le($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[G])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Ne=V.headers[Ee];Ae&&be.setHeader(Ee,Ne)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new U(Ee.message,Ee,this),this._beforeError(Ee)}),this[Q]=_.default(V,this,we),this[k]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Z],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let ke in be)if(p.default.undefined(be[ke]))delete be[ke];else if(p.default.null_(be[ke]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${ke}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let ke=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(ke)&&(he.headers.cookie=ke)}for(let ke of he.hooks.beforeRequest){let Ut=await ke(he);if(!p.default.undefined(Ut)){he.request=()=>Ut;break}}he.body&&this[Z]!==he.body&&(this[Z]=he.body);let{agent:Ee,request:Ae,timeout:Ne,url:Le}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Le.hostname==="unix"){let ke=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Le.pathname}${Le.search}`);if(ke!=null&&ke.groups){let{socketPath:Ut,path:io}=ke.groups;Object.assign(he,{socketPath:Ut,path:io,host:""})}}let Gt=Le.protocol==="https:",Se;he.http2?Se=u.auto:Se=Gt?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Be=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[Gt?"https":"http"]),he[k]=Fe,delete he.request,delete he.timeout;let Ce=he;if(Ce.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,Ce.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,Ce.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,Ce.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{Ce.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(Ce.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(Ce.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(Ce.ca=he.https.certificateAuthority),he.https.certificate&&(Ce.cert=he.https.certificate),he.https.key&&(Ce.key=he.https.key),he.https.passphrase&&(Ce.passphrase=he.https.passphrase),he.https.pfx&&(Ce.pfx=he.https.pfx));try{let ke=await Be(Le,Ce);p.default.undefined(ke)&&(ke=Se(Le,Ce)),he.request=Ae,he.timeout=Ne,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete Ce.rejectUnauthorized,he.https.checkServerIdentity&&delete Ce.checkServerIdentity,he.https.certificateAuthority&&delete Ce.ca,he.https.certificate&&delete Ce.cert,he.https.key&&delete Ce.key,he.https.passphrase&&delete Ce.passphrase,he.https.pfx&&delete Ce.pfx),de(ke)?this._onRequest(ke):this.writable?(this.once("finish",()=>{this._onResponse(ke)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(ke)}catch(ke){throw ke instanceof l.CacheError?new me(ke,this):new U(ke.message,ke,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new U($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[K])return;let{options:$}=this,ue=this.retryCount+1;this[K]=!0,V instanceof U||(V=new U(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:F.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new U(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new U(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[ee]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[q]=!0;let V=this[O];if(V&&!this[K]){V.readableLength&&(this[q]=!1);let $;for(;($=V.read())!==null;){this[I]+=$.length,this[R]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[k].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[k].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(k in this)){V();return}if(this[k].destroyed){V();return}this[k].end(ue=>{ue||(this[B]=this[H],this.emit("uploadProgress",this.uploadProgress),this[k].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[K]=!0,clearTimeout(this[ee]),k in this&&(this[M](),!((ue=this[O])===null||ue===void 0)&&ue.complete||this[k].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof U)&&(V=new U(V.message,V,this)),$(V)}get _isAboutToError(){return this[K]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[k])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[z])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[k])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[P]?V=this[I]/this[P]:this[P]===this[I]?V=1:V=0,{percent:V,transferred:this[I],total:this[P]}}get uploadProgress(){let V;return this[B]?V=this[H]/this[B]:this[B]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[B]}}get timings(){var V;return(V=this[k])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[L]}pipe(V,$){if(this[R])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[G].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[G].delete(V),super.unpipe(V),this}};e.default=xe}),Fs=re(e=>{"use strict";J();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=Ts(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t(Ts(),e)}),yF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=Fs(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),f1=re(e=>{"use strict";J();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=ce("events"),i=mr(),c=B3(),a=Fs(),s=yF(),o=Ts(),f=l1(),l=c1(),h=h1(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async T=>{var k;if(T.retryCount=A,T.request.aborted)return;let O;try{O=await l.default(x),T.rawBody=O}catch{return}if(x._isAboutToError)return;let P=((k=T.headers["content-encoding"])!==null&&k!==void 0?k:"").toLowerCase(),I=["gzip","deflate","br"].includes(P),{options:B}=x;if(I&&!B.decompress)T.body=O;else try{T.body=s.default(T,B.responseType,B.parseJson,B.encoding)}catch(H){if(T.body=O.toString(),h.isResponseOk(T)){x._beforeError(H);return}}try{for(let[H,G]of B.hooks.afterResponse.entries())T=await G(T,async Q=>{let L=o.default.normalizeArguments(void 0,{...Q,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);L.hooks.afterResponse=L.hooks.afterResponse.slice(0,H);for(let R of L.hooks.beforeRetry)await R(L);let M=d(L);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=T,!h.isResponseOk(T)){x._beforeError(new a.HTTPError(T));return}x.destroy(),E(x.options.resolveBodyOnly?T.body:T)});let D=T=>{if(g.isCanceled)return;let{options:k}=x;if(T instanceof a.HTTPError&&!k.throwHttpErrors){let{response:O}=T;E(x.options.resolveBodyOnly?O.body:O);return}v(T)};x.once("error",D);let F=x.options.body;x.once("retry",(T,k)=>{var O,P;if(F===((O=k.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((P=k.request)===null||P===void 0?void 0:P.options.body)){D(k);return}w(T)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(Fs(),e)}),gF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=Fs();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),bF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),vF=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0})}),h2=re(e=>{"use strict";J();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=mr(),i=f1(),c=gF(),a=Ts(),s=bF(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:D,catch:F,finally:T}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=D,x.catch=F,x.finally=T}return A});let g=(E,v={},m)=>{var w,A;let x=0,D=F=>_.handlers[x++](F,x===_.handlers.length?u:D);if(n.default.plainObject(E)){let F={...E,...v};a.setNonEnumerableProperties([E,v],F),v=F,E=void 0}try{let F;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(k){F=k}let T=l(E,v,m!=null?m:_.options);if(T[a.kIsNormalizedAlready]=!0,F)throw new i.RequestError(F.message,F,T);return D(T)}catch(F){if(v.isStream)throw F;return c.default(F,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,D=0;for(;D<w.requestLimit;){D!==0&&await f(w.backoff);let F=await g(void 0,void 0,m),T=await w.transform(F),k=[];for(let P of T)if(w.filter(P,A,k)&&(!w.shouldContinue(P,A,k)||(yield P,w.stackAllItems&&A.push(P),k.push(P),--x<=0)))return;let O=w.paginate(F,A,k);if(O===!1)return;O===F.request.options?m=F.request.options:O!==void 0&&(m=l(void 0,O,m)),D++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(vF(),e)}),_F=re((e,r)=>{"use strict";J();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=ce("url"),c=h2(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(h2(),e),n(f1(),e)});J();var t$=Je(P3()),r$=Je(_F()),n$=(0,q2.promisify)(H2.Stream.pipeline);J();var i$=Je(Hs()),wF=re((e,r)=>{J();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),EF=re(e=>{J();var r=wF();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),SF=re((e,r)=>{J(),r.exports=EF()}),AF=re((e,r)=>{J();var t=SF();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});J();var s$=Je(AF()),o$=Je(js()),a$=Je(Hs());J();var xF=re((e,r)=>{J();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),CF=re((e,r)=>{J();var t=xF().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=Object.defineProperty||function(I,B,H){I[B]=H.value},o=typeof Symbol=="function"?Symbol:{},f=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",h=o.toStringTag||"@@toStringTag";function u(I,B,H){return Object.defineProperty(I,B,{value:H,enumerable:!0,configurable:!0,writable:!0}),I[B]}try{u({},"")}catch{u=function(I,B,H){return I[B]=H}}function d(I,B,H,G){var Q=B&&B.prototype instanceof b?B:b,L=Object.create(Q.prototype),M=new k(G||[]);return s(L,"_invoke",{value:x(I,H,M)}),L}function p(I,B,H){try{return{type:"normal",arg:I.call(B,H)}}catch(G){return{type:"throw",arg:G}}}i.wrap=d;var y={};function b(){}function _(){}function g(){}var S={};u(S,f,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(O([])));v&&v!==c&&a.call(v,f)&&(S=v);var m=g.prototype=b.prototype=Object.create(S);function w(I){["next","throw","return"].forEach(function(B){u(I,B,function(H){return this._invoke(B,H)})})}function A(I,B){function H(Q,L,M,R){var K=p(I[Q],I,L);if(K.type!=="throw"){var q=K.arg,Z=q.value;return Z&&t(Z)=="object"&&a.call(Z,"__await")?B.resolve(Z.__await).then(function(N){H("next",N,M,R)},function(N){H("throw",N,M,R)}):B.resolve(Z).then(function(N){q.value=N,M(q)},function(N){return H("throw",N,M,R)})}R(K.arg)}var G;s(this,"_invoke",{value:function(Q,L){function M(){return new B(function(R,K){H(Q,L,R,K)})}return G=G?G.then(M,M):M()}})}function x(I,B,H){var G="suspendedStart";return function(Q,L){if(G==="executing")throw new Error("Generator is already running");if(G==="completed"){if(Q==="throw")throw L;return P()}for(H.method=Q,H.arg=L;;){var M=H.delegate;if(M){var R=D(M,H);if(R){if(R===y)continue;return R}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(G==="suspendedStart")throw G="completed",H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);G="executing";var K=p(I,B,H);if(K.type==="normal"){if(G=H.done?"completed":"suspendedYield",K.arg===y)continue;return{value:K.arg,done:H.done}}K.type==="throw"&&(G="completed",H.method="throw",H.arg=K.arg)}}}function D(I,B){var H=B.method,G=I.iterator[H];if(G===void 0)return B.delegate=null,H==="throw"&&I.iterator.return&&(B.method="return",B.arg=void 0,D(I,B),B.method==="throw")||H!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+H+"' method")),y;var Q=p(G,I.iterator,B.arg);if(Q.type==="throw")return B.method="throw",B.arg=Q.arg,B.delegate=null,y;var L=Q.arg;return L?L.done?(B[I.resultName]=L.value,B.next=I.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,y):L:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,y)}function F(I){var B={tryLoc:I[0]};1 in I&&(B.catchLoc=I[1]),2 in I&&(B.finallyLoc=I[2],B.afterLoc=I[3]),this.tryEntries.push(B)}function T(I){var B=I.completion||{};B.type="normal",delete B.arg,I.completion=B}function k(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(F,this),this.reset(!0)}function O(I){if(I){var B=I[f];if(B)return B.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var H=-1,G=function Q(){for(;++H<I.length;)if(a.call(I,H))return Q.value=I[H],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return G.next=G}}return{next:P}}function P(){return{value:void 0,done:!0}}return _.prototype=g,s(m,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,h,"GeneratorFunction"),i.isGeneratorFunction=function(I){var B=typeof I=="function"&&I.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},i.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,g):(I.__proto__=g,u(I,h,"GeneratorFunction")),I.prototype=Object.create(m),I},i.awrap=function(I){return{__await:I}},w(A.prototype),u(A.prototype,l,function(){return this}),i.AsyncIterator=A,i.async=function(I,B,H,G,Q){Q===void 0&&(Q=Promise);var L=new A(d(I,B,H,G),Q);return i.isGeneratorFunction(B)?L:L.next().then(function(M){return M.done?M.value:L.next()})},w(m),u(m,h,"Generator"),u(m,f,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),i.keys=function(I){var B=Object(I),H=[];for(var G in B)H.push(G);return H.reverse(),function Q(){for(;H.length;){var L=H.pop();if(L in B)return Q.value=L,Q.done=!1,Q}return Q.done=!0,Q}},i.values=O,k.prototype={constructor:k,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!I)for(var B in this)B.charAt(0)==="t"&&a.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var B=this;function H(K,q){return L.type="throw",L.arg=I,B.next=K,q&&(B.method="next",B.arg=void 0),!!q}for(var G=this.tryEntries.length-1;G>=0;--G){var Q=this.tryEntries[G],L=Q.completion;if(Q.tryLoc==="root")return H("end");if(Q.tryLoc<=this.prev){var M=a.call(Q,"catchLoc"),R=a.call(Q,"finallyLoc");if(M&&R){if(this.prev<Q.catchLoc)return H(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return H(Q.finallyLoc)}else if(M){if(this.prev<Q.catchLoc)return H(Q.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return H(Q.finallyLoc)}}}},abrupt:function(I,B){for(var H=this.tryEntries.length-1;H>=0;--H){var G=this.tryEntries[H];if(G.tryLoc<=this.prev&&a.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var Q=G;break}}Q&&(I==="break"||I==="continue")&&Q.tryLoc<=B&&B<=Q.finallyLoc&&(Q=null);var L=Q?Q.completion:{};return L.type=I,L.arg=B,Q?(this.method="next",this.next=Q.finallyLoc,y):this.complete(L)},complete:function(I,B){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&B&&(this.next=B),y},finish:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),T(H),y}},catch:function(I){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===I){var G=H.completion;if(G.type==="throw"){var Q=G.arg;T(H)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function(I,B,H){return this.delegate={iterator:O(I),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=void 0),y}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),kF=re((e,r)=>{J();var t=CF()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),DF=re((e,r)=>{"use strict";J();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),RF=re((e,r)=>{"use strict";J();var t=DF(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),OF=re((e,r)=>{"use strict";J();var t=RF(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),TF=re((e,r)=>{"use strict";J();var t=ce("path"),n=ce("fs"),{promisify:i}=ce("util"),c=OF(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),FF=re((e,r)=>{"use strict";J();var t=ce("fs"),{promisify:n}=ce("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),PF=re((e,r)=>{"use strict";J();var t=ce("path"),n=TF(),i=FF(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),wt=re(e=>{"use strict";J(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),p1=re(e=>{"use strict";J();var r=wt().fromCallback,t=je(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),d1=re((e,r)=>{"use strict";J();var t=ce("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),BF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=d1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),LF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=d1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),xt=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=t(BF()),i=LF();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),m1=re((e,r)=>{"use strict";J();var t=je(),n=ce("os"),i=ce("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),qs=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,D)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:D}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,D)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:D}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:D,destStat:F}=x;return F&&F.ino&&F.dev&&F.ino===D.ino&&F.dev===D.dev?w(new Error("Source and destination must not be the same.")):D.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:D,destStat:F})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),D=n.resolve(n.dirname(m));if(D===x||D===n.parse(D).root)return A();h()?t.stat(D,{bigint:!0},(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,D,w,A)):t.stat(D,(F,T)=>F?F.code==="ENOENT"?A():A(F):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,D,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let D;try{h()?D=t.statSync(x,{bigint:!0}):D=t.statSync(x)}catch(F){if(F.code==="ENOENT")return;throw F}if(D.ino&&D.dev&&D.ino===v.ino&&D.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,D)=>A&&w[D]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),IF=re((e,r)=>{"use strict";J(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),MF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=xt().mkdirsSync,c=m1().utimesMillisSync,a=qs();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
142
142
 
143
143
  see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:A,destStat:x}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,A,m,"copy"),o(x,v,m,w)}function o(v,m,w,A){if(A.filter&&!A.filter(m,w))return;let x=n.dirname(w);return t.existsSync(x)||i(x),f(v,m,w,A)}function f(v,m,w,A){if(!(A.filter&&!A.filter(m,w)))return l(v,m,w,A)}function l(v,m,w,A){let x=(A.dereference?t.statSync:t.lstatSync)(m);if(x.isDirectory())return y(x,v,m,w,A);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return h(x,v,m,w,A);if(x.isSymbolicLink())return S(v,m,w,A)}function h(v,m,w,A,x){return m?u(v,w,A,x):d(v,w,A,x)}function u(v,m,w,A){if(A.overwrite)return t.unlinkSync(w),d(v,m,w,A);if(A.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,A){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),A.preserveTimestamps?c(w,v.atime,v.mtime):void 0):p(v,m,w,A)}function p(v,m,w,A){let x=IF()(65536),D=t.openSync(m,"r"),F=t.openSync(w,"w",v.mode),T=0;for(;T<v.size;){let k=t.readSync(D,x,0,65536,T);t.writeSync(F,x,0,k),T+=k}A.preserveTimestamps&&t.futimesSync(F,v.atime,v.mtime),t.closeSync(D),t.closeSync(F)}function y(v,m,w,A,x){if(!m)return b(v,w,A,x);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${A}' with directory '${w}'.`);return _(w,A,x)}function b(v,m,w,A){return t.mkdirSync(w),_(m,w,A),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(A=>g(A,v,m,w))}function g(v,m,w,A){let x=n.join(m,v),D=n.join(w,v),{destStat:F}=a.checkPathsSync(x,D,"copy");return f(F,x,D,A)}function S(v,m,w,A){let x=t.readlinkSync(m);if(A.dereference&&(x=n.resolve(process.cwd(),x)),v){let D;try{D=t.readlinkSync(w)}catch(F){if(F.code==="EINVAL"||F.code==="UNKNOWN")return t.symlinkSync(x,w);throw F}if(A.dereference&&(D=n.resolve(process.cwd(),D)),a.isSrcSubdir(x,D))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${D}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(D,x))throw new Error(`Cannot overwrite '${D}' with '${x}'.`);return E(x,w)}else return t.symlinkSync(x,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=s}),y1=re((e,r)=>{"use strict";J(),r.exports={copySync:MF()}}),Jt=re((e,r)=>{"use strict";J();var t=wt().fromPromise,n=p1();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),NF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=xt().mkdirs,c=Jt().pathExists,a=m1().utimesMillis,s=qs();function o(x,D,F,T){typeof F=="function"&&!T?(T=F,F={}):typeof F=="function"&&(F={filter:F}),T=T||function(){},F=F||{},F.clobber="clobber"in F?!!F.clobber:!0,F.overwrite="overwrite"in F?!!F.overwrite:F.clobber,F.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
144
144
 
145
145
  see https://github.com/jprichardson/node-fs-extra/issues/269`),s.checkPaths(x,D,"copy",(k,O)=>{if(k)return T(k);let{srcStat:P,destStat:I}=O;s.checkParentPaths(x,P,D,"copy",B=>B?T(B):F.filter?l(f,I,x,D,F,T):f(I,x,D,F,T))})}function f(x,D,F,T,k){let O=n.dirname(F);c(O,(P,I)=>{if(P)return k(P);if(I)return h(x,D,F,T,k);i(O,B=>B?k(B):h(x,D,F,T,k))})}function l(x,D,F,T,k,O){Promise.resolve(k.filter(F,T)).then(P=>P?x(D,F,T,k,O):O(),P=>O(P))}function h(x,D,F,T,k){return T.filter?l(u,x,D,F,T,k):u(x,D,F,T,k)}function u(x,D,F,T,k){(T.dereference?t.stat:t.lstat)(D,(O,P)=>{if(O)return k(O);if(P.isDirectory())return g(P,x,D,F,T,k);if(P.isFile()||P.isCharacterDevice()||P.isBlockDevice())return d(P,x,D,F,T,k);if(P.isSymbolicLink())return w(x,D,F,T,k)})}function d(x,D,F,T,k,O){return D?p(x,F,T,k,O):y(x,F,T,k,O)}function p(x,D,F,T,k){if(T.overwrite)t.unlink(F,O=>O?k(O):y(x,D,F,T,k));else return T.errorOnExist?k(new Error(`'${F}' already exists`)):k()}function y(x,D,F,T,k){return typeof t.copyFile=="function"?t.copyFile(D,F,O=>O?k(O):_(x,F,T,k)):b(x,D,F,T,k)}function b(x,D,F,T,k){let O=t.createReadStream(D);O.on("error",P=>k(P)).once("open",()=>{let P=t.createWriteStream(F,{mode:x.mode});P.on("error",I=>k(I)).on("open",()=>O.pipe(P)).once("close",()=>_(x,F,T,k))})}function _(x,D,F,T){t.chmod(D,x.mode,k=>k?T(k):F.preserveTimestamps?a(D,x.atime,x.mtime,T):T())}function g(x,D,F,T,k,O){return D?D&&!D.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${F}'.`)):E(F,T,k,O):S(x,F,T,k,O)}function S(x,D,F,T,k){t.mkdir(F,O=>{if(O)return k(O);E(D,F,T,P=>P?k(P):t.chmod(F,x.mode,k))})}function E(x,D,F,T){t.readdir(x,(k,O)=>k?T(k):v(O,x,D,F,T))}function v(x,D,F,T,k){let O=x.pop();return O?m(x,O,D,F,T,k):k()}function m(x,D,F,T,k,O){let P=n.join(F,D),I=n.join(T,D);s.checkPaths(P,I,"copy",(B,H)=>{if(B)return O(B);let{destStat:G}=H;h(G,P,I,k,Q=>Q?O(Q):v(x,F,T,k,O))})}function w(x,D,F,T,k){t.readlink(D,(O,P)=>{if(O)return k(O);if(T.dereference&&(P=n.resolve(process.cwd(),P)),x)t.readlink(F,(I,B)=>I?I.code==="EINVAL"||I.code==="UNKNOWN"?t.symlink(P,F,k):k(I):(T.dereference&&(B=n.resolve(process.cwd(),B)),s.isSrcSubdir(P,B)?k(new Error(`Cannot copy '${P}' to a subdirectory of itself, '${B}'.`)):x.isDirectory()&&s.isSrcSubdir(B,P)?k(new Error(`Cannot overwrite '${B}' with '${P}'.`)):A(P,F,k)));else return t.symlink(P,F,k)})}function A(x,D,F){t.unlink(D,T=>T?F(T):t.symlink(x,D,F))}r.exports=o}),g1=re((e,r)=>{"use strict";J();var t=wt().fromCallback;r.exports={copy:t(NF())}}),jF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=ce("assert"),c=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function s(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),o(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>o(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function o(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&c)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return c?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function l(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{s(n.join(b,w),_,A=>{if(!m){if(A)return g(m=A);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&c&&l(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return c?l(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),c){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=s,s.sync=d}),Gs=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=jF();r.exports={remove:t(n),removeSync:n.sync}}),$F=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=je(),i=ce("path"),c=xt(),a=Gs(),s=t(function(f,l){l=l||function(){},n.readdir(f,(h,u)=>{if(h)return c.mkdirs(f,l);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return l();a.remove(p,y=>{if(y)return l(y);d()})}})});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),HF=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=ce("path"),i=je(),c=xt(),a=Jt().pathExists;function s(f,l){function h(){i.writeFile(f,"",u=>{if(u)return l(u);l()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return l();let p=n.dirname(f);a(p,(y,b)=>{if(y)return l(y);if(b)return h();c.mkdirs(p,_=>{if(_)return l(_);h()})})})}function o(f){let l;try{l=i.statSync(f)}catch{}if(l&&l.isFile())return;let h=n.dirname(f);i.existsSync(h)||c.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(s),createFileSync:o}}),qF=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=ce("path"),i=je(),c=xt(),a=Jt().pathExists;function s(f,l,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(l,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(l);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,l);c.mkdirs(b,S=>{if(S)return h(S);u(f,l)})})})})}function o(f,l){if(i.existsSync(l))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(l);return i.existsSync(h)||c.mkdirsSync(h),i.linkSync(f,l)}r.exports={createLink:t(s),createLinkSync:o}}),GF=re((e,r)=>{"use strict";J();var t=ce("path"),n=je(),i=Jt().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),UF=re((e,r)=>{"use strict";J();var t=je();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),WF=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=ce("path"),i=je(),c=xt(),a=c.mkdirs,s=c.mkdirsSync,o=GF(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=UF(),u=h.symlinkType,d=h.symlinkTypeSync,p=Jt().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,A)=>{if(w)return E(w);_=A.toDst,u(A.toCwd,S,(x,D)=>{if(x)return E(x);let F=n.dirname(g);p(F,(T,k)=>{if(T)return E(T);if(k)return i.symlink(_,g,D,E);a(F,O=>{if(O)return E(O);i.symlink(_,g,D,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=l(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||s(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),zF=re((e,r)=>{"use strict";J();var t=HF(),n=qF(),i=WF();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),VF=re((e,r)=>{J();var t;try{t=je()}catch{t=ce("fs")}function n(l,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(l,h,function(y,b){if(y)return u(y);b=o(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=l+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(l,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(l,h);return p=o(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function c(l,h){var u,d=`
146
- `;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),Cl=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=VF();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),KF=re((e,r)=>{"use strict";J();var t=ce("path"),n=xt(),i=Jt().pathExists,c=Cl();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),YF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=xt(),c=Cl();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),XF=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=Cl();n.outputJson=t(KF()),n.outputJsonSync=YF(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),ZF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=y1().copySync,c=Gs().removeSync,a=xt().mkdirpSync,s=qs();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),JF=re((e,r)=>{"use strict";J(),r.exports={moveSync:ZF()}}),QF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=g1().copy,c=Gs().remove,a=xt().mkdirp,s=Jt().pathExists,o=qs();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),eP=re((e,r)=>{"use strict";J();var t=wt().fromCallback;r.exports={move:t(QF())}}),tP=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=je(),i=ce("path"),c=xt(),a=Jt().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),rP=re((e,r)=>{"use strict";J(),r.exports=Object.assign({},p1(),y1(),g1(),$F(),zF(),XF(),xt(),JF(),eP(),tP(),Jt(),Gs());var t=ce("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});J();J();var a$=Je(kF());J();J();function nP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}J();J();function al(e){return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},al(e)}J();function iP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sP(e,r){if(r&&(al(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iP(e)}J();function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ps(e)}J();J();function ii(e,r){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ii(e,r)}function oP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ii(e,r)}J();J();function aP(e){return Function.toString.call(e).indexOf("[native code]")!==-1}J();J();function uP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Os(e,r,t){return uP()?Os=Reflect.construct.bind():Os=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&ii(o,c.prototype),o},Os.apply(null,arguments)}function ul(e){var r=typeof Map=="function"?new Map:void 0;return ul=function(t){if(t===null||!aP(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return Os(t,arguments,Ps(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ii(n,t)},ul(e)}var u$=Je(PF()),l$=Je(rP()),c$=function(e){oP(r,e);function r(t){var n;return nP(this,r),n=sP(this,Ps(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(ul(Error));J();var lP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),cP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),hP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),fP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=ce("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),pP=re((e,r)=>{J(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),dP=re((e,r)=>{J();var t=pP(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),mP=re((e,r)=>{"use strict";J();var t=dP(),n=ce("path").posix.dirname,i=ce("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),kl=re(e=>{"use strict";J(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Dl=re((e,r)=>{"use strict";J();var t=kl();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),yP=re((e,r)=>{"use strict";J(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),gP=re((e,r)=>{"use strict";J();var t=yP(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),D=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(D))return n.cache[D].result;let F=Math.min(g,S),T=Math.max(g,S);if(Math.abs(F-T)===1){let B=g+"|"+S;return v.capture?`(${B})`:v.wrap===!1?B:`(?:${B})`}let k=b(g)||b(S),O={min:g,max:S,a:F,b:T},P=[],I=[];if(k&&(O.isPadded=k,O.maxLen=String(O.max).length),F<0){let B=T<0?Math.abs(T):1;I=s(B,Math.abs(F),O,v),F=O.a=0}return T>=0&&(P=s(F,T,O,v)),O.negatives=I,O.positives=P,O.result=i(I,P,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&P.length+I.length>1&&(O.result=`(?:${O.result})`),n.cache[D]=O,O.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[D,F]=v[x];D===F?w+=D:D!=="0"||F!=="9"?w+=y(D,F,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let D=0;D<m.length;D++){let F=m[D],T=a(String(A),String(F),v),k="";if(!E.isPadded&&x&&x.pattern===T.pattern){x.count.length>1&&x.count.pop(),x.count.push(T.count[0]),x.string=x.pattern+p(x.count),A=F+1;continue}E.isPadded&&(k=_(F,E,v)),T.string=k+T.pattern+p(T.count),w.push(T),A=F+1,x=T}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),b1=re((e,r)=>{"use strict";J();var t=ce("util"),n=gP(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((F,T)=>F<T?-1:F>T?1:0),v.positives.sort((F,T)=>F<T?-1:F>T?1:0);let w=m.capture?"":"?:",A="",x="",D;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?D=`${A}|${x}`:D=A||x,m.wrap?`(${w}${D})`:D},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let D=String.fromCharCode(m);return`[${x}-${D}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),D=Number(m);if(!Number.isInteger(x)||!Number.isInteger(D)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),D===0&&(D=0);let F=x>D,T=String(v),k=String(m),O=String(w);w=Math.max(Math.abs(w),1);let P=o(T)||o(k)||o(O),I=P?Math.max(T.length,k.length,O.length):0,B=P===!1&&f(v,m,A)===!1,H=A.transform||c(B);if(A.toRegex&&w===1)return d(h(v,I),h(m,I),!0,A);let G={negatives:[],positives:[]},Q=R=>G[R<0?"negatives":"positives"].push(Math.abs(R)),L=[],M=0;for(;F?x>=D:x<=D;)A.toRegex===!0&&w>1?Q(x):L.push(l(H(x,M),I,B)),x=F?x-w:x+w,M++;return A.toRegex===!0?w>1?u(G,A):p(L,null,{wrap:!1,...A}):L},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(B=>String.fromCharCode(B)),D=`${v}`.charCodeAt(0),F=`${m}`.charCodeAt(0),T=D>F,k=Math.min(D,F),O=Math.max(D,F);if(A.toRegex&&w===1)return d(k,O,!1,A);let P=[],I=0;for(;T?D>=F:D<=F;)P.push(x(D,I)),D=T?D-w:D+w,I++;return A.toRegex===!0?p(P,null,{wrap:!1,options:A}):P},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),bP=re((e,r)=>{"use strict";J();var t=b1(),n=kl(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),vP=re((e,r)=>{"use strict";J();var t=b1(),n=Dl(),i=kl(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),_P=re((e,r)=>{"use strict";J(),r.exports={MAX_LENGTH:1024*64,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:`
146
+ `;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),Cl=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=VF();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),KF=re((e,r)=>{"use strict";J();var t=ce("path"),n=xt(),i=Jt().pathExists,c=Cl();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),YF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=xt(),c=Cl();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),XF=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=Cl();n.outputJson=t(KF()),n.outputJsonSync=YF(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),ZF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=y1().copySync,c=Gs().removeSync,a=xt().mkdirpSync,s=qs();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),JF=re((e,r)=>{"use strict";J(),r.exports={moveSync:ZF()}}),QF=re((e,r)=>{"use strict";J();var t=je(),n=ce("path"),i=g1().copy,c=Gs().remove,a=xt().mkdirp,s=Jt().pathExists,o=qs();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),eP=re((e,r)=>{"use strict";J();var t=wt().fromCallback;r.exports={move:t(QF())}}),tP=re((e,r)=>{"use strict";J();var t=wt().fromCallback,n=je(),i=ce("path"),c=xt(),a=Jt().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),rP=re((e,r)=>{"use strict";J(),r.exports=Object.assign({},p1(),y1(),g1(),$F(),zF(),XF(),xt(),JF(),eP(),tP(),Jt(),Gs());var t=ce("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});J();J();var u$=Je(kF());J();J();function nP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}J();J();function al(e){return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},al(e)}J();function iP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sP(e,r){if(r&&(al(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iP(e)}J();function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ps(e)}J();J();function ii(e,r){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ii(e,r)}function oP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ii(e,r)}J();J();function aP(e){return Function.toString.call(e).indexOf("[native code]")!==-1}J();J();function uP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Os(e,r,t){return uP()?Os=Reflect.construct.bind():Os=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&ii(o,c.prototype),o},Os.apply(null,arguments)}function ul(e){var r=typeof Map=="function"?new Map:void 0;return ul=function(t){if(t===null||!aP(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return Os(t,arguments,Ps(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ii(n,t)},ul(e)}var l$=Je(PF()),c$=Je(rP()),h$=function(e){oP(r,e);function r(t){var n;return nP(this,r),n=sP(this,Ps(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(ul(Error));J();var lP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),cP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),hP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),fP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=ce("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),pP=re((e,r)=>{J(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),dP=re((e,r)=>{J();var t=pP(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),mP=re((e,r)=>{"use strict";J();var t=dP(),n=ce("path").posix.dirname,i=ce("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),kl=re(e=>{"use strict";J(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Dl=re((e,r)=>{"use strict";J();var t=kl();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),yP=re((e,r)=>{"use strict";J(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),gP=re((e,r)=>{"use strict";J();var t=yP(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),D=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(D))return n.cache[D].result;let F=Math.min(g,S),T=Math.max(g,S);if(Math.abs(F-T)===1){let B=g+"|"+S;return v.capture?`(${B})`:v.wrap===!1?B:`(?:${B})`}let k=b(g)||b(S),O={min:g,max:S,a:F,b:T},P=[],I=[];if(k&&(O.isPadded=k,O.maxLen=String(O.max).length),F<0){let B=T<0?Math.abs(T):1;I=s(B,Math.abs(F),O,v),F=O.a=0}return T>=0&&(P=s(F,T,O,v)),O.negatives=I,O.positives=P,O.result=i(I,P,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&P.length+I.length>1&&(O.result=`(?:${O.result})`),n.cache[D]=O,O.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[D,F]=v[x];D===F?w+=D:D!=="0"||F!=="9"?w+=y(D,F,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let D=0;D<m.length;D++){let F=m[D],T=a(String(A),String(F),v),k="";if(!E.isPadded&&x&&x.pattern===T.pattern){x.count.length>1&&x.count.pop(),x.count.push(T.count[0]),x.string=x.pattern+p(x.count),A=F+1;continue}E.isPadded&&(k=_(F,E,v)),T.string=k+T.pattern+p(T.count),w.push(T),A=F+1,x=T}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),b1=re((e,r)=>{"use strict";J();var t=ce("util"),n=gP(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((F,T)=>F<T?-1:F>T?1:0),v.positives.sort((F,T)=>F<T?-1:F>T?1:0);let w=m.capture?"":"?:",A="",x="",D;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?D=`${A}|${x}`:D=A||x,m.wrap?`(${w}${D})`:D},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let D=String.fromCharCode(m);return`[${x}-${D}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),D=Number(m);if(!Number.isInteger(x)||!Number.isInteger(D)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),D===0&&(D=0);let F=x>D,T=String(v),k=String(m),O=String(w);w=Math.max(Math.abs(w),1);let P=o(T)||o(k)||o(O),I=P?Math.max(T.length,k.length,O.length):0,B=P===!1&&f(v,m,A)===!1,H=A.transform||c(B);if(A.toRegex&&w===1)return d(h(v,I),h(m,I),!0,A);let G={negatives:[],positives:[]},Q=R=>G[R<0?"negatives":"positives"].push(Math.abs(R)),L=[],M=0;for(;F?x>=D:x<=D;)A.toRegex===!0&&w>1?Q(x):L.push(l(H(x,M),I,B)),x=F?x-w:x+w,M++;return A.toRegex===!0?w>1?u(G,A):p(L,null,{wrap:!1,...A}):L},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(B=>String.fromCharCode(B)),D=`${v}`.charCodeAt(0),F=`${m}`.charCodeAt(0),T=D>F,k=Math.min(D,F),O=Math.max(D,F);if(A.toRegex&&w===1)return d(k,O,!1,A);let P=[],I=0;for(;T?D>=F:D<=F;)P.push(x(D,I)),D=T?D-w:D+w,I++;return A.toRegex===!0?p(P,null,{wrap:!1,options:A}):P},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),bP=re((e,r)=>{"use strict";J();var t=b1(),n=kl(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),vP=re((e,r)=>{"use strict";J();var t=b1(),n=Dl(),i=kl(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),_P=re((e,r)=>{"use strict";J(),r.exports={MAX_LENGTH:1024*64,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:`
147
147
  `,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"}}),wP=re((e,r)=>{"use strict";J();var t=Dl(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=_P(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},A=[w],x=w,D=w,F=0,T=S.length,k=0,O=0,P,I={},B=()=>S[k++],H=G=>{if(G.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&G.type==="text"){D.value+=G.value;return}return x.nodes.push(G),G.parent=x,G.prev=D,D=G,G};for(H({type:"bos"});k<T;)if(x=A[A.length-1],P=B(),!(P===_||P===b)){if(P===i){H({type:"text",value:(E.keepEscaping?P:"")+B()});continue}if(P===d){H({type:"text",value:"\\"+P});continue}if(P===u){F++;let G=!0,Q;for(;k<T&&(Q=B());){if(P+=Q,Q===u){F++;continue}if(Q===i){P+=B();continue}if(Q===d&&(F--,F===0))break}H({type:"text",value:P});continue}if(P===o){x=H({type:"paren",nodes:[]}),A.push(x),H({type:"text",value:P});continue}if(P===f){if(x.type!=="paren"){H({type:"text",value:P});continue}x=A.pop(),H({type:"text",value:P}),x=A[A.length-1];continue}if(P===p||P===y||P===c){let G=P,Q;for(E.keepQuotes!==!0&&(P="");k<T&&(Q=B());){if(Q===i){P+=Q+B();continue}if(Q===G){E.keepQuotes===!0&&(P+=Q);break}P+=Q}H({type:"text",value:P});continue}if(P===l){O++;let G=D.value&&D.value.slice(-1)==="$"||x.dollar===!0;x=H({type:"brace",open:!0,close:!1,dollar:G,depth:O,commas:0,ranges:0,nodes:[]}),A.push(x),H({type:"open",value:P});continue}if(P===h){if(x.type!=="brace"){H({type:"text",value:P});continue}let G="close";x=A.pop(),x.close=!0,H({type:G,value:P}),O--,x=A[A.length-1];continue}if(P===a&&O>0){if(x.ranges>0){x.ranges=0;let G=x.nodes.shift();x.nodes=[G,{type:"text",value:t(x)}]}H({type:"comma",value:P}),x.commas++;continue}if(P===s&&O>0&&x.commas===0){let G=x.nodes;if(O===0||G.length===0){H({type:"text",value:P});continue}if(D.type==="dot"){if(x.range=[],D.value+=P,D.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,D.type="text";continue}x.ranges++,x.args=[];continue}if(D.type==="range"){G.pop();let Q=G[G.length-1];Q.value+=D.value+P,D=Q,x.ranges--;continue}H({type:"dot",value:P});continue}H({type:"text",value:P})}do if(x=A.pop(),x.type!=="root"){x.nodes.forEach(L=>{L.nodes||(L.type==="open"&&(L.isOpen=!0),L.type==="close"&&(L.isClose=!0),L.nodes||(L.type="text"),L.invalid=!0)});let G=A[A.length-1],Q=G.nodes.indexOf(x);G.nodes.splice(Q,1,...x.nodes)}while(A.length>0);return H({type:"eos"}),w};r.exports=g}),EP=re((e,r)=>{"use strict";J();var t=Dl(),n=bP(),i=vP(),c=wP(),a=(s,o={})=>{let f=[];if(Array.isArray(s))for(let l of s){let h=a.create(l,o);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(s,o));return o&&o.expand===!0&&o.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(s,o={})=>c(s,o),a.stringify=(s,o={})=>t(typeof s=="string"?a.parse(s,o):s,o),a.compile=(s,o={})=>(typeof s=="string"&&(s=a.parse(s,o)),n(s,o)),a.expand=(s,o={})=>{typeof s=="string"&&(s=a.parse(s,o));let f=i(s,o);return o.noempty===!0&&(f=f.filter(Boolean)),o.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(s,o={})=>s===""||s.length<3?[s]:o.expand!==!0?a.compile(s,o):a.expand(s,o),r.exports=a}),Us=re((e,r)=>{"use strict";J();var t=ce("path"),n="\\\\/",i=`[^${n}]`,c="\\.",a="\\+",s="\\?",o="\\/",f="(?=.)",l="[^/]",h=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${c}{1,2}${h}`,p=`(?!${c})`,y=`(?!${u}${d})`,b=`(?!${c}{0,1}${h})`,_=`(?!${d})`,g=`[^.${o}]`,S=`${l}*?`,E={DOT_LITERAL:c,PLUS_LITERAL:a,QMARK_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:f,QMARK:l,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${c}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${n}])${c}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={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"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,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:t.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?v:E}}}),Ws=re(e=>{"use strict";J();var r=ce("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:a}=Us();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>c.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(a,"\\$1"),e.toPosixSlashes=s=>s.replace(n,"/"),e.removeBackslashes=s=>s.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10},e.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:t===!0||r.sep==="\\",e.escapeLast=(s,o,f)=>{let l=s.lastIndexOf(o,f);return l===-1?s:s[l-1]==="\\"?e.escapeLast(s,o,l-1):`${s.slice(0,l)}\\${s.slice(l)}`},e.removePrefix=(s,o={})=>{let f=s;return f.startsWith("./")&&(f=f.slice(2),o.prefix="./"),f},e.wrapOutput=(s,o={},f={})=>{let l=f.contains?"":"^",h=f.contains?"":"$",u=`${l}(?:${s})${h}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),SP=re((e,r)=>{"use strict";J();var t=Ws(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Us(),g=v=>v===f||v===c,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},A=v.length-1,x=w.parts===!0||w.scanToEnd===!0,D=[],F=[],T=[],k=v,O=-1,P=0,I=0,B=!1,H=!1,G=!1,Q=!1,L=!1,M=!1,R=!1,K=!1,q=!1,Z=!1,N=0,z,ee,ae={value:"",depth:0,isGlob:!1},oe=()=>O>=A,de=()=>k.charCodeAt(O+1),pe=()=>(z=ee,k.charCodeAt(++O));for(;O<A;){ee=pe();let X;if(ee===c){R=ae.backslashes=!0,ee=pe(),ee===l&&(M=!0);continue}if(M===!0||ee===l){for(N++;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,pe();continue}if(ee===l){N++;continue}if(M!==!0&&ee===s&&(ee=pe())===s){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(M!==!0&&ee===a){if(B=ae.isBrace=!0,G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===y&&(N--,N===0)){M=!1,B=ae.isBrace=!0,Z=!0;break}}if(x===!0)continue;break}if(ee===f){if(D.push(O),F.push(ae),ae={value:"",depth:0,isGlob:!1},Z===!0)continue;if(z===s&&O===P+1){P+=2;continue}I=O+1;continue}if(w.noext!==!0&&(ee===d||ee===i||ee===n||ee===p||ee===o)&&de()===h){if(G=ae.isGlob=!0,Q=ae.isExtglob=!0,Z=!0,ee===o&&O===P&&(q=!0),x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===c){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){G=ae.isGlob=!0,Z=!0;break}}continue}break}if(ee===n){if(z===n&&(L=ae.isGlobstar=!0),G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===p){if(G=ae.isGlob=!0,Z=!0,x===!0)continue;break}if(ee===u){for(;oe()!==!0&&(X=pe());){if(X===c){R=ae.backslashes=!0,pe();continue}if(X===_){H=ae.isBracket=!0,G=ae.isGlob=!0,Z=!0;break}}if(x===!0)continue;break}if(w.nonegate!==!0&&ee===o&&O===P){K=ae.negated=!0,P++;continue}if(w.noparen!==!0&&ee===h){if(G=ae.isGlob=!0,x===!0){for(;oe()!==!0&&(ee=pe());){if(ee===h){R=ae.backslashes=!0,ee=pe();continue}if(ee===b){Z=!0;break}}continue}break}if(G===!0){if(Z=!0,x===!0)continue;break}}w.noext===!0&&(Q=!1,G=!1);let j=k,W="",C="";P>0&&(W=k.slice(0,P),k=k.slice(P),I-=P),j&&G===!0&&I>0?(j=k.slice(0,I),C=k.slice(I)):G===!0?(j="",C=k):j=k,j&&j!==""&&j!=="/"&&j!==k&&g(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),w.unescape===!0&&(C&&(C=t.removeBackslashes(C)),j&&R===!0&&(j=t.removeBackslashes(j)));let U={prefix:W,input:v,start:P,base:j,glob:C,isBrace:B,isBracket:H,isGlob:G,isExtglob:Q,isGlobstar:L,negated:K,negatedExtglob:q};if(w.tokens===!0&&(U.maxDepth=0,g(ee)||F.push(ae),U.tokens=F),w.parts===!0||w.tokens===!0){let X;for(let ne=0;ne<D.length;ne++){let me=X?X+1:P,se=D[ne],fe=v.slice(me,se);w.tokens&&(ne===0&&P!==0?(F[ne].isPrefix=!0,F[ne].value=W):F[ne].value=fe,S(F[ne]),U.maxDepth+=F[ne].depth),(ne!==0||fe!=="")&&T.push(fe),X=se}if(X&&X+1<v.length){let ne=v.slice(X+1);T.push(ne),w.tokens&&(F[F.length-1].value=ne,S(F[F.length-1]),U.maxDepth+=F[F.length-1].depth)}U.slashes=D,U.parts=T}return U};r.exports=E}),AP=re((e,r)=>{"use strict";J();var t=Us(),n=Ws(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:x,ONE_CHAR:D,DOTS_SLASH:F,NO_DOT:T,NO_DOT_SLASH:k,NO_DOTS_SLASH:O,QMARK:P,QMARK_NO_DOT:I,STAR:B,START_ANCHOR:H}=v,G=se=>`(${S}(?:(?!${H}${se.dot?F:w}).)*?)`,Q=p.dot?"":T,L=p.dot?P:I,M=p.bash===!0?G(p):B;p.capture&&(M=`(${M})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let R={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,R),b=u.length;let K=[],q=[],Z=[],N=_,z,ee=()=>R.index===b-1,ae=R.peek=(se=1)=>u[R.index+se],oe=R.advance=()=>u[++R.index]||"",de=()=>u.slice(R.index+1),pe=(se="",fe=0)=>{R.consumed+=se,R.index+=fe},j=se=>{R.output+=se.output!=null?se.output:se.value,pe(se.value)},W=()=>{let se=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)oe(),R.start++,se++;return se%2===0?!1:(R.negated=!0,R.start++,!0)},C=se=>{R[se]++,Z.push(se)},U=se=>{R[se]--,Z.pop()},X=se=>{if(N.type==="globstar"){let fe=R.braces>0&&(se.type==="comma"||se.type==="brace"),ie=se.extglob===!0||K.length&&(se.type==="pipe"||se.type==="paren");se.type!=="slash"&&se.type!=="paren"&&!fe&&!ie&&(R.output=R.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=M,R.output+=N.output)}if(K.length&&se.type!=="paren"&&(K[K.length-1].inner+=se.value),(se.value||se.output)&&j(se),N&&N.type==="text"&&se.type==="text"){N.value+=se.value,N.output=(N.output||"")+se.value;return}se.prev=N,g.push(se),N=se},ne=(se,fe)=>{let ie={...m[fe],conditions:1,inner:""};ie.prev=N,ie.parens=R.parens,ie.output=R.output;let ye=(p.capture?"(":"")+ie.open;C("parens"),X({type:se,value:fe,output:R.output?"":D}),X({type:"paren",extglob:!0,value:oe(),output:ye}),K.push(ie)},me=se=>{let fe=se.close+(p.capture?")":""),ie;if(se.type==="negate"){let ye=M;if(se.inner&&se.inner.length>1&&se.inner.includes("/")&&(ye=G(p)),(ye!==M||ee()||/^\)+$/.test(de()))&&(fe=se.close=`)$))${ye}`),se.inner.includes("*")&&(ie=de())&&/^\.[^\\/.]+$/.test(ie)){let we=h(ie,{...d,fastpaths:!1}).output;fe=se.close=`)${we})${ye})`}se.prev.type==="bos"&&(R.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:z,output:fe}),U("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let se=!1,fe=u.replace(s,(ie,ye,we,xe,V,$)=>xe==="\\"?(se=!0,ie):xe==="?"?ye?ye+xe+(V?P.repeat(V.length):""):$===0?L+(V?P.repeat(V.length):""):P.repeat(we.length):xe==="."?w.repeat(we.length):xe==="*"?ye?ye+xe+(V?M:""):M:ye?ie:`\\${ie}`);return se===!0&&(p.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),fe===u&&p.contains===!0?(R.output=u,R):(R.output=n.wrapOutput(fe,R,d),R)}for(;!ee();){if(z=oe(),z==="\0")continue;if(z==="\\"){let ie=ae();if(ie==="/"&&p.bash!==!0||ie==="."||ie===";")continue;if(!ie){z+="\\",X({type:"text",value:z});continue}let ye=/^\\+/.exec(de()),we=0;if(ye&&ye[0].length>2&&(we=ye[0].length,R.index+=we,we%2!==0&&(z+="\\")),p.unescape===!0?z=oe():z+=oe(),R.brackets===0){X({type:"text",value:z});continue}}if(R.brackets>0&&(z!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&z===":"){let ie=N.value.slice(1);if(ie.includes("[")&&(N.posix=!0,ie.includes(":"))){let ye=N.value.lastIndexOf("["),we=N.value.slice(0,ye),xe=N.value.slice(ye+2),V=c[xe];if(V){N.value=we+V,R.backtrack=!0,oe(),!_.output&&g.indexOf(N)===1&&(_.output=D);continue}}}(z==="["&&ae()!==":"||z==="-"&&ae()==="]")&&(z=`\\${z}`),z==="]"&&(N.value==="["||N.value==="[^")&&(z=`\\${z}`),p.posix===!0&&z==="!"&&N.value==="["&&(z="^"),N.value+=z,j({value:z});continue}if(R.quotes===1&&z!=='"'){z=n.escapeRegex(z),N.value+=z,j({value:z});continue}if(z==='"'){R.quotes=R.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:z});continue}if(z==="("){C("parens"),X({type:"paren",value:z});continue}if(z===")"){if(R.parens===0&&p.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=K[K.length-1];if(ie&&R.parens===ie.parens+1){me(K.pop());continue}X({type:"paren",value:z,output:R.parens?")":"\\)"}),U("parens");continue}if(z==="["){if(p.nobracket===!0||!de().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));z=`\\${z}`}else C("brackets");X({type:"bracket",value:z});continue}if(z==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:z,output:`\\${z}`});continue}if(R.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:z,output:`\\${z}`});continue}U("brackets");let ie=N.value.slice(1);if(N.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(z=`/${z}`),N.value+=z,j({value:z}),p.literalBrackets===!1||n.hasRegexChars(ie))continue;let ye=n.escapeRegex(N.value);if(R.output=R.output.slice(0,-N.value.length),p.literalBrackets===!0){R.output+=ye,N.value=ye;continue}N.value=`(${S}${ye}|${N.value})`,R.output+=N.value;continue}if(z==="{"&&p.nobrace!==!0){C("braces");let ie={type:"brace",value:z,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};q.push(ie),X(ie);continue}if(z==="}"){let ie=q[q.length-1];if(p.nobrace===!0||!ie){X({type:"text",value:z,output:z});continue}let ye=")";if(ie.dots===!0){let we=g.slice(),xe=[];for(let V=we.length-1;V>=0&&(g.pop(),we[V].type!=="brace");V--)we[V].type!=="dots"&&xe.unshift(we[V].value);ye=f(xe,p),R.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let we=R.output.slice(0,ie.outputIndex),xe=R.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",z=ye="\\}",R.output=we;for(let V of xe)R.output+=V.output||V.value}X({type:"brace",value:z,output:ye}),U("braces"),q.pop();continue}if(z==="|"){K.length>0&&K[K.length-1].conditions++,X({type:"text",value:z});continue}if(z===","){let ie=z,ye=q[q.length-1];ye&&Z[Z.length-1]==="braces"&&(ye.comma=!0,ie="|"),X({type:"comma",value:z,output:ie});continue}if(z==="/"){if(N.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",g.pop(),N=_;continue}X({type:"slash",value:z,output:x});continue}if(z==="."){if(R.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let ie=q[q.length-1];N.type="dots",N.output+=z,N.value+=z,ie.dots=!0;continue}if(R.braces+R.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:z,output:w});continue}X({type:"dot",value:z,output:w});continue}if(z==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("qmark",z);continue}if(N&&N.type==="paren"){let ie=ae(),ye=z;if(ie==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(de()))&&(ye=`\\${z}`),X({type:"text",value:z,output:ye});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:z,output:I});continue}X({type:"qmark",value:z,output:P});continue}if(z==="!"){if(p.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ne("negate",z);continue}if(p.nonegate!==!0&&R.index===0){W();continue}}if(z==="+"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("plus",z);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:z,output:A});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||R.parens>0){X({type:"plus",value:z});continue}X({type:"plus",value:A});continue}if(z==="@"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){X({type:"at",extglob:!0,value:z,output:""});continue}X({type:"text",value:z});continue}if(z!=="*"){(z==="$"||z==="^")&&(z=`\\${z}`);let ie=a.exec(de());ie&&(z+=ie[0],R.index+=ie[0].length),X({type:"text",value:z});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=z,N.output=M,R.backtrack=!0,R.globstar=!0,pe(z);continue}let se=de();if(p.noextglob!==!0&&/^\([^?]/.test(se)){ne("star",z);continue}if(N.type==="star"){if(p.noglobstar===!0){pe(z);continue}let ie=N.prev,ye=ie.prev,we=ie.type==="slash"||ie.type==="bos",xe=ye&&(ye.type==="star"||ye.type==="globstar");if(p.bash===!0&&(!we||se[0]&&se[0]!=="/")){X({type:"star",value:z,output:""});continue}let V=R.braces>0&&(ie.type==="comma"||ie.type==="brace"),$=K.length&&(ie.type==="pipe"||ie.type==="paren");if(!we&&ie.type!=="paren"&&!V&&!$){X({type:"star",value:z,output:""});continue}for(;se.slice(0,3)==="/**";){let ue=u[R.index+4];if(ue&&ue!=="/")break;se=se.slice(3),pe("/**",3)}if(ie.type==="bos"&&ee()){N.type="globstar",N.value+=z,N.output=G(p),R.output=N.output,R.globstar=!0,pe(z);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!xe&&ee()){R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=G(p)+(p.strictSlashes?")":"|$)"),N.value+=z,R.globstar=!0,R.output+=ie.output+N.output,pe(z);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&se[0]==="/"){let ue=se[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=`${G(p)}${x}|${x}${ue})`,N.value+=z,R.output+=ie.output+N.output,R.globstar=!0,pe(z+oe()),X({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&se[0]==="/"){N.type="globstar",N.value+=z,N.output=`(?:^|${x}|${G(p)}${x})`,R.output=N.output,R.globstar=!0,pe(z+oe()),X({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-N.output.length),N.type="globstar",N.output=G(p),N.value+=z,R.output+=N.output,R.globstar=!0,pe(z);continue}let fe={type:"star",value:z,output:M};if(p.bash===!0){fe.output=".*?",(N.type==="bos"||N.type==="slash")&&(fe.output=Q+fe.output),X(fe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){fe.output=z,X(fe);continue}(R.index===R.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(R.output+=k,N.output+=k):p.dot===!0?(R.output+=O,N.output+=O):(R.output+=Q,N.output+=Q),ae()!=="*"&&(R.output+=D,N.output+=D)),X(fe)}for(;R.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));R.output=n.escapeLast(R.output,"["),U("brackets")}for(;R.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing",")"));R.output=n.escapeLast(R.output,"("),U("parens")}for(;R.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","}"));R.output=n.escapeLast(R.output,"{"),U("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${x}?`}),R.backtrack===!0){R.output="";for(let se of R.tokens)R.output+=se.output!=null?se.output:se.value,se.suffix&&(R.output+=se.suffix)}return R};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:A,STAR:x,START_ANCHOR:D}=t.globChars(_),F=p.dot?w:m,T=p.dot?A:m,k=p.capture?"":"?:",O={negated:!1,prefix:""},P=p.bash===!0?".*?":x;p.capture&&(P=`(${P})`);let I=Q=>Q.noglobstar===!0?P:`(${k}(?:(?!${D}${Q.dot?v:g}).)*?)`,B=Q=>{switch(Q){case"*":return`${F}${E}${P}`;case".*":return`${g}${E}${P}`;case"*.*":return`${F}${P}${g}${E}${P}`;case"*/*":return`${F}${P}${S}${E}${T}${P}`;case"**":return F+I(p);case"**/*":return`(?:${F}${I(p)}${S})?${T}${E}${P}`;case"**/*.*":return`(?:${F}${I(p)}${S})?${T}${P}${g}${E}${P}`;case"**/.*":return`(?:${F}${I(p)}${S})?${g}${E}${P}`;default:{let L=/^(.*?)\.(\w+)$/.exec(Q);if(!L)return;let M=B(L[1]);return M?M+g+L[2]:void 0}}},H=n.removePrefix(u,O),G=B(H);return G&&p.strictSlashes!==!0&&(G+=`${S}?`),G},r.exports=h}),xP=re((e,r)=>{"use strict";J();var t=ce("path"),n=SP(),i=AP(),c=Ws(),a=Us(),s=f=>f&&typeof f=="object"&&!Array.isArray(f),o=(f,l,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>o(E,l,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=s(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},p=c.isWindows(l),y=u?o.compileRe(f,l):o.makeRe(f,l,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...l,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=o.test(S,y,l,{glob:f,posix:p}),A={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(A),v===!1?(A.isMatch=!1,E?A:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,E?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),E?A:!0)};return h&&(g.state=b),g};o.test=(f,l,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?c.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=o.matchBase(f,l,h,d):b=l.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(f,l,h,u=c.isWindows(h))=>(l instanceof RegExp?l:o.makeRe(l,h)).test(t.basename(f)),o.isMatch=(f,l,h)=>o(l,h)(f),o.parse=(f,l)=>Array.isArray(f)?f.map(h=>o.parse(h,l)):i(f,{...l,fastpaths:!1}),o.scan=(f,l)=>n(f,l),o.compileRe=(f,l,h=!1,u=!1)=>{if(h===!0)return f.output;let d=l||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=o.toRegex(b,l);return u===!0&&(_.state=f),_},o.makeRe=(f,l={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,l)),d.output||(d=i(f,l)),o.compileRe(d,l,h,u)},o.toRegex=(f,l)=>{try{let h=l||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(l&&l.debug===!0)throw h;return/$^/}},o.constants=a,r.exports=o}),CP=re((e,r)=>{"use strict";J(),r.exports=xP()}),kP=re((e,r)=>{"use strict";J();var t=ce("util"),n=EP(),i=CP(),c=Ws(),a=o=>o===""||o==="./",s=(o,f,l)=>{f=[].concat(f),o=[].concat(o);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),l&&l.onResult&&l.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...l,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of o){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};s.match=s,s.matcher=(o,f)=>i(o,f),s.isMatch=(o,f,l)=>i(f,l)(o),s.any=s.isMatch,s.not=(o,f,l={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{l.onResult&&l.onResult(y),u.push(y.output)},p=new Set(s(o,f,{...l,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},s.contains=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);if(Array.isArray(f))return f.some(h=>s.contains(o,h,l));if(typeof f=="string"){if(a(o)||a(f))return!1;if(o.includes(f)||o.startsWith("./")&&o.slice(2).includes(f))return!0}return s.isMatch(o,f,{...l,contains:!0})},s.matchKeys=(o,f,l)=>{if(!c.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(o),f,l),u={};for(let d of h)u[d]=o[d];return u},s.some=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(h.some(p=>d(p)))return!0}return!1},s.every=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(!h.every(p=>d(p)))return!1}return!0},s.all=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);return[].concat(f).every(h=>i(h,l)(o))},s.capture=(o,f,l)=>{let h=c.isWindows(l),u=i.makeRe(String(o),{...l,capture:!0}).exec(h?c.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},s.makeRe=(...o)=>i.makeRe(...o),s.scan=(...o)=>i.scan(...o),s.parse=(o,f)=>{let l=[];for(let h of[].concat(o||[]))for(let u of n(String(h),f))l.push(i.parse(u,f));return l},s.braces=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(o)?[o]:n(o,f)},s.braceExpand=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return s.braces(o,{...f,expand:!0})},r.exports=s}),DP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=ce("path"),t=mP(),n=kP(),i="**",c="\\",a=/[*?]|^!/,s=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function h(B,H={}){return!u(B,H)}e.isStaticPattern=h;function u(B,H={}){return B===""?!1:!!(H.caseSensitiveMatch===!1||B.includes(c)||a.test(B)||s.test(B)||o.test(B)||H.extglob!==!1&&f.test(B)||H.braceExpansion!==!1&&d(B))}e.isDynamicPattern=u;function d(B){let H=B.indexOf("{");if(H===-1)return!1;let G=B.indexOf("}",H+1);if(G===-1)return!1;let Q=B.slice(H,G);return l.test(Q)}function p(B){return b(B)?B.slice(1):B}e.convertToPositivePattern=p;function y(B){return"!"+B}e.convertToNegativePattern=y;function b(B){return B.startsWith("!")&&B[1]!=="("}e.isNegativePattern=b;function _(B){return!b(B)}e.isPositivePattern=_;function g(B){return B.filter(b)}e.getNegativePatterns=g;function S(B){return B.filter(_)}e.getPositivePatterns=S;function E(B){return B.filter(H=>!m(H))}e.getPatternsInsideCurrentDirectory=E;function v(B){return B.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(B){return B.startsWith("..")||B.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(B){return t(B,{flipBackslashes:!1})}e.getBaseDirectory=w;function A(B){return B.includes(i)}e.hasGlobStar=A;function x(B){return B.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function D(B){let H=r.basename(B);return x(B)||h(H)}e.isAffectDepthOfReadingPattern=D;function F(B){return B.reduce((H,G)=>H.concat(T(G)),[])}e.expandPatternsWithBraceExpansion=F;function T(B){return n.braces(B,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function k(B,H){let{parts:G}=n.scan(B,Object.assign(Object.assign({},H),{parts:!0}));return G.length===0&&(G=[B]),G[0].startsWith("/")&&(G[0]=G[0].slice(1),G.unshift("")),G}e.getPatternParts=k;function O(B,H){return n.makeRe(B,H)}e.makeRe=O;function P(B,H){return B.map(G=>O(G,H))}e.convertPatternsToRe=P;function I(B,H){return H.some(G=>G.test(B))}e.matchAny=I}),RP=re((e,r)=>{"use strict";J();var t=ce("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=c;function c(){let s=[],o=i.call(arguments),f=!1,l=o[o.length-1];l&&!Array.isArray(l)&&l.pipe==null?o.pop():l={};let h=l.end!==!1,u=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=n(l);function p(){for(let _=0,g=arguments.length;_<g;_++)s.push(a(arguments[_],l));return y(),this}function y(){if(f)return;f=!0;let _=s.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(A){d.emit("error",A)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function a(s,o){if(Array.isArray(s))for(let f=0,l=s.length;f<l;f++)s[f]=a(s[f],o);else{if(!s._readableState&&s.pipe&&(s=s.pipe(n(o))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}}),OP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=RP();function t(i){let c=r(i);return i.forEach(a=>{a.once("error",s=>c.emit("error",s))}),c.once("close",()=>n(i)),c.once("end",()=>n(i)),c}e.merge=t;function n(i){i.forEach(c=>c.emit("close"))}}),TP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),yr=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=lP();e.array=r;var t=cP();e.errno=t;var n=hP();e.fs=n;var i=fP();e.path=i;var c=DP();e.pattern=c;var a=OP();e.stream=a;var s=TP();e.string=s}),FP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=yr();function t(f,l){let h=i(f),u=c(f,l.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,l)),p=h.filter(_=>r.pattern.isDynamicPattern(_,l)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,l,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...s(y,l,h)),"."in b?u.push(o(".",p,l,h)):u.push(...s(b,l,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function c(f,l){return r.pattern.getNegativePatterns(f).concat(l).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(f){let l={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},l)}e.groupPatternsByBaseDirectory=a;function s(f,l,h){return Object.keys(f).map(u=>o(u,f[u],l,h))}e.convertPatternGroupsToTasks=s;function o(f,l,h,u){return{dynamic:u,positive:l,negative:h,base:f,patterns:[].concat(l,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=o}),PP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(c=>n(c))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),BP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,c,a){c.fs.lstat(i,(s,o)=>{if(s!==null){t(a,s);return}if(!o.isSymbolicLink()||!c.followSymbolicLink){n(a,o);return}c.fs.stat(i,(f,l)=>{if(f!==null){if(c.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,o);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),n(a,l)})})}e.read=r;function t(i,c){i(c)}function n(i,c){i(null,c)}}),LP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let c=n.fs.statSync(t);return n.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw c}}e.read=r}),IP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),MP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=IP(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),kn=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=BP(),t=LP(),n=MP();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.stat=i;function c(s,o){let f=a(o);return t.read(s,f)}e.statSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),NP=re((e,r)=>{J();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),jP=re((e,r)=>{J(),r.exports=n;var t=NP();function n(i,c){let a,s,o,f=!0;Array.isArray(i)?(a=[],s=i.length):(o=Object.keys(i),a={},s=o.length);function l(u){function d(){c&&c(u,a),c=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--s===0||d)&&l(d)}s?o?o.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):l(null),f=!1}}),v1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,c=10,a=t>i,s=t===i&&n>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||s}),$P=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),_1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=$P();e.fs=r}),w1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),HP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=kn(),t=jP(),n=v1(),i=_1(),c=w1();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(u,d,p);return}f(u,d,p)}e.read=a;function s(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:c.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>o(S,d));t(g,(S,E)=>{if(S!==null){l(p,S);return}h(p,E)})})}e.readdirWithFileTypes=s;function o(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(g=>{let S=c.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){l(p,g);return}h(p,S)})})}e.readdir=f;function l(u,d){u(d)}function h(u,d){u(null,d)}}),qP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=kn(),t=v1(),n=_1(),i=w1();function c(o,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(o,f):s(o,f)}e.read=c;function a(o,f){return f.fs.readdirSync(o,{withFileTypes:!0}).map(l=>{let h={dirent:l,name:l.name,path:i.joinPathSegments(o,l.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function s(o,f){return f.fs.readdirSync(o).map(l=>{let h=i.joinPathSegments(o,l,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:l,path:h,dirent:n.fs.createDirentFromStats(l,u)};return f.stats&&(d.stats=u),d})}e.readdir=s}),GP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),UP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=kn(),n=GP(),i=class{constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,a){return c!=null?c:a}};e.default=i}),Rl=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=HP(),t=qP(),n=UP();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.scandir=i;function c(s,o){let f=a(o);return t.read(s,f)}e.scandirSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),WP=re((e,r)=>{"use strict";J();function t(n){var i=new n,c=i;function a(){var o=i;return o.next?i=o.next:(i=new n,c=i),o.next=null,o}function s(o){c.next=o,c=o}return{get:a,release:s}}r.exports=t}),zP=re((e,r)=>{"use strict";J();var t=WP();function n(s,o,f){if(typeof s=="function"&&(f=o,o=s,s=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var l=t(c),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:x,killAndDrain:D,error:F};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var T=h,k=0;T;)T=T.next,k++;return k}function S(){for(var T=h,k=[];T;)k.push(T.value),T=T.next;return k}function E(){if(y.paused){y.paused=!1;for(var T=0;T<y.concurrency;T++)d++,A()}}function v(){return d===0&&y.length()===0}function m(T,k){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=k||i,O.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=O,u=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function w(T,k){var O=l.get();O.context=s,O.release=A,O.value=T,O.callback=k||i,d===y.concurrency||y.paused?h?(O.next=h,h=O):(h=O,u=O,y.saturated()):(d++,o.call(s,O.value,O.worked))}function A(T){T&&l.release(T);var k=h;k?y.paused?d--:(u===h&&(u=null),h=k.next,k.next=null,o.call(s,k.value,k.worked),u===null&&y.empty()):--d===0&&y.drain()}function x(){h=null,u=null,y.drain=i}function D(){h=null,u=null,y.drain(),y.drain=i}function F(T){p=T}}function i(){}function c(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var s=this;this.worked=function(o,f){var l=s.callback,h=s.errorHandler,u=s.value;s.value=null,s.callback=i,s.errorHandler&&h(o,u),l.call(s.context,o,f),s.release(s)}}function a(s,o,f){typeof s=="function"&&(f=o,o=s,s=null);function l(_,g){o.call(this,_).then(function(S){g(null,S)},g)}var h=n(s,l,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),Ol=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,a){return c.errorFilter===null?!0:!c.errorFilter(a)}e.isFatalError=r;function t(c,a){return c===null||c(a)}e.isAppliedFilter=t;function n(c,a){return c.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(c,a,s){return c===""?a:c.endsWith(s)?c+a:c+s+a}e.joinPathSegments=i}),E1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ol(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),S1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("events"),t=Rl(),n=zP(),i=Ol(),c=E1(),a=class extends c.default{constructor(s,o){super(s,o),this._settings=o,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(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(s){this._emitter.on("entry",s)}onError(s){this._emitter.once("error",s)}onEnd(s){this._emitter.once("end",s)}_pushToQueue(s,o){let f={directory:s,base:o};this._queue.push(f,l=>{l!==null&&this._handleError(l)})}_worker(s,o){this._scandir(s.directory,this._settings.fsScandirSettings,(f,l)=>{if(f!==null){o(f,void 0);return}for(let h of l)this._handleEntry(h,s.base);o(null,void 0)})}_handleError(s){this._isDestroyed||!i.isFatalError(this._settings,s)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",s))}_handleEntry(s,o){if(this._isDestroyed||this._isFatalError)return;let f=s.path;o!==void 0&&(s.path=i.joinPathSegments(o,s.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,s)&&this._emitEntry(s),s.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(f,o===void 0?void 0:s.path)}_emitEntry(s){this._emitter.emit("entry",s)}};e.default=a}),VP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=S1(),t=class{constructor(c,a){this._root=c,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(a=>{n(c,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(c,this._storage)}),this._reader.read()}};e.default=t;function n(c,a){c(a)}function i(c,a){c(null,a)}}),KP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=S1(),n=class{constructor(i,c){this._root=i,this._settings=c,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),YP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=Rl(),t=Ol(),n=E1(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,a){this._queue.add({directory:c,base:a})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,a){try{let s=this._scandir(c,this._settings.fsScandirSettings);for(let o of s)this._handleEntry(o,a)}catch(s){this._handleError(s)}}_handleError(c){if(t.isFatalError(this._settings,c))throw c}_handleEntry(c,a){let s=c.path;a!==void 0&&(c.path=t.joinPathSegments(a,c.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(s,a===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=i}),XP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=YP(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),ZP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=Rl(),n=class{constructor(i={}){this._options=i,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,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,c){return i!=null?i:c}};e.default=n}),Tl=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=VP(),t=KP(),n=XP(),i=ZP();e.Settings=i.default;function c(f,l,h){if(typeof l=="function"){new r.default(f,o()).read(l);return}new r.default(f,o(l)).read(h)}e.walk=c;function a(f,l){let h=o(l);return new n.default(f,h).read()}e.walkSync=a;function s(f,l){let h=o(l);return new t.default(f,h).read()}e.walkStream=s;function o(f={}){return f instanceof i.default?f:new i.default(f)}}),Fl=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=kn(),n=yr(),i=class{constructor(c){this._settings=c,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,a){let s={name:a,path:a,dirent:n.fs.createDirentFromStats(a,c)};return this._settings.stats&&(s.stats=c),s}_isFatalError(c){return!n.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=i}),A1=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=kn(),n=Tl(),i=Fl(),c=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,s){return this._walkStream(a,s)}static(a,s){let o=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(l,h,u)=>this._getEntry(o[l],a[l],s).then(d=>{d!==null&&s.entryFilter(d)&&f.push(d),l===o.length-1&&f.end(),u()}).catch(u);for(let l=0;l<o.length;l++)f.write(l);return f}_getEntry(a,s,o){return this._getStat(a).then(f=>this._makeEntry(f,s)).catch(f=>{if(o.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((s,o)=>{this._stat(a,this._fsStatSettings,(f,l)=>f===null?s(l):o(f))})}};e.default=c}),JP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=Tl(),t=Fl(),n=A1(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(c,a){return new Promise((s,o)=>{this._walkAsync(c,a,(f,l)=>{f===null?s(l):o(f)})})}async static(c,a){let s=[],o=this._readerStream.static(c,a);return new Promise((f,l)=>{o.once("error",l),o.on("data",h=>s.push(h)),o.once("end",()=>f(s))})}};e.default=i}),QP=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr(),t=class{constructor(n,i,c){this._patterns=n,this._settings=i,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let c=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(c);this._storage.push({complete:a.length<=1,pattern:i,segments:c,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),eB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=QP(),t=class extends r.default{match(n){let i=n.split("/"),c=i.length,a=this._storage.filter(s=>!s.complete||s.segments.length>c);for(let s of a){let o=s.sections[0];if(!s.complete&&c>o.length||i.every((f,l)=>{let h=s.segments[l];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),tB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr(),t=eB(),n=class{constructor(i,c){this._settings=i,this._micromatchOptions=c}getFilter(i,c,a){let s=this._getMatcher(c),o=this._getNegativePatternsRe(a);return f=>this._filter(i,f,s,o)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let c=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(i,c,a,s){if(this._isSkippedByDeep(i,c.path)||this._isSkippedSymbolicLink(c))return!1;let o=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(o,a)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(i,c){return this._settings.deep===1/0?!1:this._getEntryLevel(i,c)>=this._settings.deep}_getEntryLevel(i,c){let a=c.split("/").length;if(i==="")return a;let s=i.split("/").length;return a-s}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,c){return!this._settings.baseNameMatch&&!c.match(i)}_isSkippedByNegativePatterns(i,c){return!r.pattern.matchAny(i,c)}};e.default=n}),rB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let c=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return s=>this._filter(s,c,a)}_filter(n,i,c){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,c))return!1;let a=this._settings.baseNameMatch?n.name:n.path,s=n.dirent.isDirectory(),o=this._isMatchToPatterns(a,i,s)&&!this._isMatchToPatterns(n.path,c,s);return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let c=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(c,i)}_isMatchToPatterns(n,i,c){let a=r.path.removeLeadingDotSegment(n),s=r.pattern.matchAny(a,i);return!s&&c?r.pattern.matchAny(a+"/",i):s}};e.default=t}),nB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),iB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=yr(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Pl=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=tB(),n=rB(),i=nB(),c=iB(),a=class{constructor(s){this._settings=s,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(s){return r.resolve(this._settings.cwd,s.base)}_getReaderOptions(s){let o=s.base==="."?"":s.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,s.positive,s.negative),entryFilter:this.entryFilter.getFilter(s.positive,s.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}}};e.default=a}),sB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=JP(),t=Pl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(c,i,a)).map(s=>a.transform(s))}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),oB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=A1(),n=Pl(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(c){let a=this._getRootDirectory(c),s=this._getReaderOptions(c),o=this.api(a,c,s),f=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",l=>f.emit("error",l)).on("data",l=>f.emit("data",s.transform(l))).once("end",()=>f.emit("end")),f.once("close",()=>o.destroy()),f}api(c,a,s){return a.dynamic?this._reader.dynamic(c,s):this._reader.static(a.patterns,s)}};e.default=i}),aB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=kn(),t=Tl(),n=Fl(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(c,a){return this._walkSync(c,a)}static(c,a){let s=[];for(let o of c){let f=this._getFullEntryPath(o),l=this._getEntry(f,o,a);l===null||!a.entryFilter(l)||s.push(l)}return s}_getEntry(c,a,s){try{let o=this._getStat(c);return this._makeEntry(o,a)}catch(o){if(s.errorFilter(o))return null;throw o}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=i}),uB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0});var r=aB(),t=Pl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(c,i,a).map(a.transform)}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),lB=re(e=>{"use strict";J(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs"),t=ce("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(c={}){this._options=c,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,n),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)}_getValue(c,a){return c===void 0?a:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=i}),cB=re((e,r)=>{"use strict";J();var t=FP(),n=PP(),i=sB(),c=oB(),a=uB(),s=lB(),o=yr();async function f(u,d){h(u);let p=l(u,i.default,d),y=await Promise.all(p);return o.array.flatten(y)}(function(u){function d(g,S){h(g);let E=l(g,a.default,S);return o.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=l(g,c.default,S);return o.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new s.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new s.default(S);return o.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),o.path.escape(g)}u.escapePath=_})(f||(f={}));function l(u,d,p){let y=n.transform([].concat(u)),b=new s.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});J();J();function x1(e){return typeof e>"u"||e===null}function hB(e){return typeof e=="object"&&e!==null}function fB(e){return Array.isArray(e)?e:x1(e)?[]:[e]}function pB(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function dB(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function mB(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var yB=x1,gB=hB,bB=fB,vB=dB,_B=mB,wB=pB,Ye={isNothing:yB,isObject:gB,toArray:bB,repeat:vB,isNegativeZero:_B,extend:wB};function C1(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
148
148
 
149
149
  `+e.mark.snippet),n+" "+t):n}function si(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=C1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}si.prototype=Object.create(Error.prototype);si.prototype.constructor=si;si.prototype.toString=function(e){return this.name+": "+C1(this,e)};var pt=si;function il(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function sl(e,r){return Ye.repeat(" ",r-e.length)+e}function EB(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=il(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ye.repeat(" ",r.indent)+sl((e.line-o+1).toString(),l)+" | "+f.str+`
@@ -175,7 +175,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}
175
175
  `+e.slice(i,c),i=c+1),a=s;return o+=`
176
176
  `,e.length-i>r&&a>i?o+=e.slice(i,a)+`
177
177
  `+e.slice(a+1):o+=e.slice(i),o.slice(1)}function xL(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=ni(e,i),n=st[t],!n&&ui(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||yL(t);return r}function CL(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Zt(e,r,s,!1,!1)||typeof s>"u"&&Zt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function x2(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Zt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&Zt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=hl(e,r)),e.dump&&oi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function kL(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Zt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Zt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function DL(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new pt("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=hl(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Zt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&oi===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=hl(e,r)),Zt(e,r+1,l,!0,h)&&(e.dump&&oi===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function C2(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,j1.call(s.represent)==="[object Function]")n=s.represent(r,o);else if($1.call(s.represent,o))n=s.represent[o](r,o);else throw new pt("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Zt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,C2(e,t,!1)||C2(e,t,!0);var s=j1.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(DL(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(kL(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?x2(e,r-1,e.dump,i):x2(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(CL(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&SL(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new pt("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function RL(e,r){var t=[],n=[],i,c;for(pl(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function pl(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)pl(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)pl(e[n[i]],r,t)}function OL(e,r){r=r||{};var t=new bL(r);t.noRefs||RL(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Zt(t,0,n,!0,!0)?t.dump+`
178
- `:""}var TL=OL,FL={dump:TL};function Nl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var h$=N1.load,f$=N1.loadAll,p$=FL.dump,d$=Nl("safeLoad","load"),m$=Nl("safeLoadAll","loadAll"),y$=Nl("safeDump","dump"),g$=Je(cB());J();var vt=class extends Error{constructor(e,r){var t;super(e),this.name="ConvertError",this.type=(t=r==null?void 0:r.type)!=null?t:"unknown",Error.captureStackTrace(this,vt)}},PL=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Dt({workspaceRoot:e}){let r=dr.default.join(e,"package.json");try{return(0,Lr.readJsonSync)(r,"utf8")}catch(t){if(t&&typeof t=="object"&&"code"in t){if(t.code==="ENOENT")throw new vt(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(t.code==="EJSONPARSE")throw new vt(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function jl({workspaceRoot:e}){let{packageManager:r}=Dt({workspaceRoot:e});if(r)try{let t=PL.exec(r);if(t){let[n,i]=t;return i}}catch{}}function Vs({workspaceRoot:e}){let r=Dt({workspaceRoot:e}),t=dr.default.basename(e),{name:n=t,description:i}=r;return{name:n,description:i}}function k2({workspaceRoot:e}){let r=dr.default.join(e,"pnpm-workspace.yaml");if((0,Lr.existsSync)(r))try{let t=c2.load((0,Lr.readFileSync)(r,"utf8"));if(t instanceof Object&&"packages"in t&&Array.isArray(t.packages))return t.packages}catch{throw new vt(`failed to parse ${r}`,{type:"pnpm-workspace_parse_error"})}return[]}function $l({root:e,lockFile:r,workspaceConfig:t}){let n=c=>dr.default.join(e,c),i={root:e,lockfile:n(r),packageJson:n("package.json"),nodeModules:n("node_modules")};return t&&(i.workspaceConfig=n(t)),i}function ty({workspaces:e}){var r;return e?Array.isArray(e)?e:"packages"in e?(r=e.packages)!=null?r:[]:[]:[]}function Hl({workspaceRoot:e,workspaceGlobs:r}){return r?r.flatMap(t=>{let n=`${t}/package.json`;return(0,ey.sync)(n,{onlyFiles:!0,absolute:!0,cwd:e})}).map(t=>{let n=dr.default.dirname(t),{name:i,description:c}=Vs({workspaceRoot:n});return{name:i,description:c,paths:{root:n,packageJson:t,nodeModules:dr.default.join(n,"node_modules")}}}):[]}function BL({directory:e}){let r=dr.default.resolve(process.cwd(),e);return{exists:(0,Lr.existsSync)(r),absolute:r}}function Dn({packageManager:e,action:r,project:t}){let n=t.workspaceData.globs.length>0;return`${r==="remove"?"Removing":"Adding"} ${e} ${n?"workspaces":""} ${r==="remove"?"from":"to"} ${t.name}`}function LL({dependencyList:e,project:r,to:t}){let n=[];return r.workspaceData.workspaces.forEach(i=>{let{name:c}=i;if(e[c]){let a=e[c],s=a.startsWith("workspace:")?a.slice(10):a;e[c]=t.name==="pnpm"?`workspace:${s}`:s,n.push(c)}}),{dependencyList:e,updated:n}}function An({project:e,workspace:r,to:t,logger:n,options:i}){if(["yarn","npm"].includes(t.name)&&["yarn","npm"].includes(e.packageManager))return;let c=Dt({workspaceRoot:r.paths.root}),a={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},s=["dependencies","devDependencies","peerDependencies","optionalDependencies"];s.forEach(h=>{let u=c[h];if(u){let{updated:d,dependencyList:p}=LL({dependencyList:u,project:e,to:t});c[h]=p,a[h]=d}});let o=h=>{let u=a[h].length;if(u>0)return`${Q1.default.green(u.toString())} ${h}`},f=s.map(o).filter(Boolean),l=`./${Z1.default.relative(e.paths.root,r.paths.packageJson)}`;if(f.length>=1){let h="updating";f.forEach((u,d)=>{f.length===1?h+=` ${u} in ${l}`:d===f.length-1?h+=`and ${u} in ${l}`:h+=` ${u}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${l}`);i!=null&&i.dry||(0,J1.writeJSONSync)(r.paths.packageJson,c,{spaces:2})}async function ry(e){let r=Sn.default.join(e.workspaceRoot,"pnpm-lock.yaml"),t=Sn.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),n=jl({workspaceRoot:e.workspaceRoot});return(0,ut.existsSync)(r)||(0,ut.existsSync)(t)||n==="pnpm"}async function IL(e){if(!await ry(e))throw new vt("Not a pnpm project",{type:"package_manager-unexpected"});let{name:r,description:t}=Vs(e);return{name:r,description:t,packageManager:"pnpm",paths:$l({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:k2(e),workspaces:Hl({workspaceGlobs:k2(e),...e})}}}async function ML(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(Dn({action:"create",packageManager:"pnpm",project:r}));let a=Dt({workspaceRoot:r.paths.root});n.rootHeader(),a.packageManager=`${t.name}@${t.version}`,n.rootStep(`adding "packageManager" field to ${r.name} root "package.json"`),i!=null&&i.dry||((0,ut.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),c&&(n.rootStep('adding "pnpm-workspace.yaml"'),(0,ut.writeFileSync)(Sn.default.join(r.paths.root,"pnpm-workspace.yaml"),`packages:
178
+ `:""}var TL=OL,FL={dump:TL};function Nl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var f$=N1.load,p$=N1.loadAll,d$=FL.dump,m$=Nl("safeLoad","load"),y$=Nl("safeLoadAll","loadAll"),g$=Nl("safeDump","dump"),b$=Je(cB());J();var vt=class extends Error{constructor(e,r){var t;super(e),this.name="ConvertError",this.type=(t=r==null?void 0:r.type)!=null?t:"unknown",Error.captureStackTrace(this,vt)}},PL=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Dt({workspaceRoot:e}){let r=dr.default.join(e,"package.json");try{return(0,Lr.readJsonSync)(r,"utf8")}catch(t){if(t&&typeof t=="object"&&"code"in t){if(t.code==="ENOENT")throw new vt(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(t.code==="EJSONPARSE")throw new vt(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function jl({workspaceRoot:e}){let{packageManager:r}=Dt({workspaceRoot:e});if(r)try{let t=PL.exec(r);if(t){let[n,i]=t;return i}}catch{}}function Vs({workspaceRoot:e}){let r=Dt({workspaceRoot:e}),t=dr.default.basename(e),{name:n=t,description:i}=r;return{name:n,description:i}}function k2({workspaceRoot:e}){let r=dr.default.join(e,"pnpm-workspace.yaml");if((0,Lr.existsSync)(r))try{let t=c2.load((0,Lr.readFileSync)(r,"utf8"));if(t instanceof Object&&"packages"in t&&Array.isArray(t.packages))return t.packages}catch{throw new vt(`failed to parse ${r}`,{type:"pnpm-workspace_parse_error"})}return[]}function $l({root:e,lockFile:r,workspaceConfig:t}){let n=c=>dr.default.join(e,c),i={root:e,lockfile:n(r),packageJson:n("package.json"),nodeModules:n("node_modules")};return t&&(i.workspaceConfig=n(t)),i}function ty({workspaces:e}){var r;return e?Array.isArray(e)?e:"packages"in e?(r=e.packages)!=null?r:[]:[]:[]}function Hl({workspaceRoot:e,workspaceGlobs:r}){return r?r.flatMap(t=>{let n=`${t}/package.json`;return(0,ey.sync)(n,{onlyFiles:!0,absolute:!0,cwd:e})}).map(t=>{let n=dr.default.dirname(t),{name:i,description:c}=Vs({workspaceRoot:n});return{name:i,description:c,paths:{root:n,packageJson:t,nodeModules:dr.default.join(n,"node_modules")}}}):[]}function BL({directory:e}){let r=dr.default.resolve(process.cwd(),e);return{exists:(0,Lr.existsSync)(r),absolute:r}}function Dn({packageManager:e,action:r,project:t}){let n=t.workspaceData.globs.length>0;return`${r==="remove"?"Removing":"Adding"} ${e} ${n?"workspaces":""} ${r==="remove"?"from":"to"} ${t.name}`}function LL({dependencyList:e,project:r,to:t}){let n=[];return r.workspaceData.workspaces.forEach(i=>{let{name:c}=i;if(e[c]){let a=e[c],s=a.startsWith("workspace:")?a.slice(10):a;e[c]=t.name==="pnpm"?`workspace:${s}`:s,n.push(c)}}),{dependencyList:e,updated:n}}function An({project:e,workspace:r,to:t,logger:n,options:i}){if(["yarn","npm"].includes(t.name)&&["yarn","npm"].includes(e.packageManager))return;let c=Dt({workspaceRoot:r.paths.root}),a={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},s=["dependencies","devDependencies","peerDependencies","optionalDependencies"];s.forEach(h=>{let u=c[h];if(u){let{updated:d,dependencyList:p}=LL({dependencyList:u,project:e,to:t});c[h]=p,a[h]=d}});let o=h=>{let u=a[h].length;if(u>0)return`${Q1.default.green(u.toString())} ${h}`},f=s.map(o).filter(Boolean),l=`./${Z1.default.relative(e.paths.root,r.paths.packageJson)}`;if(f.length>=1){let h="updating";f.forEach((u,d)=>{f.length===1?h+=` ${u} in ${l}`:d===f.length-1?h+=`and ${u} in ${l}`:h+=` ${u}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${l}`);i!=null&&i.dry||(0,J1.writeJSONSync)(r.paths.packageJson,c,{spaces:2})}async function ry(e){let r=Sn.default.join(e.workspaceRoot,"pnpm-lock.yaml"),t=Sn.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),n=jl({workspaceRoot:e.workspaceRoot});return(0,ut.existsSync)(r)||(0,ut.existsSync)(t)||n==="pnpm"}async function IL(e){if(!await ry(e))throw new vt("Not a pnpm project",{type:"package_manager-unexpected"});let{name:r,description:t}=Vs(e);return{name:r,description:t,packageManager:"pnpm",paths:$l({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:k2(e),workspaces:Hl({workspaceGlobs:k2(e),...e})}}}async function ML(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(Dn({action:"create",packageManager:"pnpm",project:r}));let a=Dt({workspaceRoot:r.paths.root});n.rootHeader(),a.packageManager=`${t.name}@${t.version}`,n.rootStep(`adding "packageManager" field to ${r.name} root "package.json"`),i!=null&&i.dry||((0,ut.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),c&&(n.rootStep('adding "pnpm-workspace.yaml"'),(0,ut.writeFileSync)(Sn.default.join(r.paths.root,"pnpm-workspace.yaml"),`packages:
179
179
  ${r.workspaceData.globs.map(s=>` - "${s}"`).join(`
180
180
  `)}`))),c&&(An({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{An({workspace:s,project:r,to:t,logger:n,options:i})}))}async function NL(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Dn({action:"remove",packageManager:"pnpm",project:r}));let c=Dt({workspaceRoot:r.paths.root});if(r.paths.workspaceConfig&&i&&(t.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||(0,ut.rmSync)(r.paths.workspaceConfig,{force:!0})),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,ut.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,ut.rm)(s,{recursive:!0,force:!0})))}catch{throw new vt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function jL(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Sn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,ut.rmSync)(r.paths.lockfile,{force:!0})}async function $L(e){let{project:r,logger:t,options:n}=e;if(r.packageManager!=="pnpm"&&(t.subStep(`converting ${Sn.default.relative(r.paths.root,r.paths.lockfile)} to pnpm-lock.yaml`),!(n!=null&&n.dry)&&(0,ut.existsSync)(r.paths.lockfile)))try{await(0,X1.default)("pnpm",["import"],{stdio:"ignore",cwd:r.paths.root})}finally{(0,ut.rmSync)(r.paths.lockfile,{force:!0})}}var HL={detect:ry,read:IL,create:ML,remove:NL,clean:jL,convertLock:$L};async function ny(e){let r=li.default.join(e.workspaceRoot,"package-lock.json"),t=jl({workspaceRoot:e.workspaceRoot});return(0,Ct.existsSync)(r)||t==="npm"}async function qL(e){if(!await ny(e))throw new vt("Not an npm project",{type:"package_manager-unexpected"});let r=Dt(e),{name:t,description:n}=Vs(e),i=ty({workspaces:r.workspaces});return{name:t,description:n,packageManager:"npm",paths:$l({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:i,workspaces:Hl({workspaceGlobs:i,...e})}}}async function GL(e){let{project:r,options:t,to:n,logger:i}=e,c=r.workspaceData.globs.length>0;i.mainStep(Dn({packageManager:"npm",action:"create",project:r}));let a=Dt({workspaceRoot:r.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${li.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${n.name}@${n.version}`,c?(i.rootStep(`adding "workspaces" field to ${li.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,t!=null&&t.dry||(0,Ct.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),An({workspace:{name:"root",paths:r.paths},project:r,to:n,logger:i,options:t}),i.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{An({workspace:s,project:r,to:n,logger:i,options:t})})):t!=null&&t.dry||(0,Ct.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function UL(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Dn({packageManager:"npm",action:"remove",project:r}));let c=Dt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,Ct.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,Ct.rm)(s,{recursive:!0,force:!0})))}catch{throw new vt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function WL(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${li.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,Ct.rmSync)(r.paths.lockfile,{force:!0})}async function zL(e){let{project:r,options:t}=e;r.packageManager!=="npm"&&(t!=null&&t.dry||(0,Ct.rmSync)(r.paths.lockfile,{force:!0}))}var VL={detect:ny,read:qL,create:GL,remove:UL,clean:WL,convertLock:zL};async function iy(e){let r=ci.default.join(e.workspaceRoot,"yarn.lock"),t=jl({workspaceRoot:e.workspaceRoot});return(0,kt.existsSync)(r)||t==="yarn"}async function KL(e){if(!await iy(e))throw new vt("Not a yarn project",{type:"package_manager-unexpected"});let r=Dt(e),{name:t,description:n}=Vs(e),i=ty({workspaces:r.workspaces});return{name:t,description:n,packageManager:"yarn",paths:$l({root:e.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:i,workspaces:Hl({workspaceGlobs:i,...e})}}}async function YL(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(Dn({packageManager:"yarn",action:"create",project:r}));let a=Dt({workspaceRoot:r.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${ci.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${t.name}@${t.version}`,c?(n.rootStep(`adding "workspaces" field to ${ci.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,i!=null&&i.dry||(0,kt.writeJSONSync)(r.paths.packageJson,a,{spaces:2}),An({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>{An({workspace:s,project:r,to:t,logger:n,options:i})})):i!=null&&i.dry||(0,kt.writeJSONSync)(r.paths.packageJson,a,{spaces:2})}async function XL(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Dn({packageManager:"yarn",action:"remove",project:r}));let c=Dt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){(0,kt.writeJSONSync)(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>(0,kt.rm)(s,{recursive:!0,force:!0})))}catch{throw new vt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function ZL(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${ci.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||(0,kt.rmSync)(r.paths.lockfile,{force:!0})}async function JL(e){let{project:r,options:t}=e;r.packageManager!=="yarn"&&(t!=null&&t.dry||(0,kt.rmSync)(r.paths.lockfile,{force:!0}))}var QL={detect:iy,read:KL,create:YL,remove:XL,clean:ZL,convertLock:JL},sy={pnpm:HL,yarn:QL,npm:VL};async function bi({root:e}){let{exists:r,absolute:t}=BL({directory:e});if(!r)throw new vt(`Could not find directory at ${t}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(sy))if(await n({workspaceRoot:t}))return i({workspaceRoot:t});throw new vt("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var ql=Ie(require("chalk")),oy=Ie(require("is-git-clean"));function Ks({directory:e,force:r}){var i;let t=!1,n="Unable to determine if git directory is clean";try{t=oy.default.sync(e||process.cwd()),n="Git directory is not clean"}catch(c){(i=c.stderr)!=null&&i.includes("not a git repository")&&(t=!0)}t||(r?Pe.log(`${ql.default.yellow("WARNING")}: ${n}. Forcibly continuing...`):(Pe.log("Thank you for using @turbo/codemod!"),Pe.log(ql.default.yellow(`
181
181
  But before we continue, please stash or commit your git changes.`)),Pe.log(`