@nice-move/init 0.8.10 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +7 -7
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as e}from"module";var t={2701:(e,t,r)=>{e=r.nmd(e);const n=(e,t)=>(...r)=>`\x1b[${e(...r)+t}m`,i=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};5;${n}m`},s=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};2;${n[0]};${n[1]};${n[2]}m`},o=e=>e,a=(e,t,r)=>[e,t,r],u=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let l;const c=(e,t,n,i)=>{void 0===l&&(l=r(9307));const s=i?10:0,o={};for(const[r,i]of Object.entries(l)){const a="ansi16"===r?"ansi":r;r===t?o[a]=e(n,s):"object"==typeof i&&(o[a]=e(i[t],s))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n))t[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",u(t.color,"ansi",(()=>c(n,"ansi16",o,!1))),u(t.color,"ansi256",(()=>c(i,"ansi256",o,!1))),u(t.color,"ansi16m",(()=>c(s,"rgb",a,!1))),u(t.bgColor,"ansi",(()=>c(n,"ansi16",o,!0))),u(t.bgColor,"ansi256",(()=>c(i,"ansi256",o,!0))),u(t.bgColor,"ansi16m",(()=>c(s,"rgb",a,!0))),t}})},1813:e=>{e.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},1364:(e,t,r)=>{const n=r(3027);e.exports=(e,t)=>new n(e,t)},3027:(e,t,r)=>{const n=r(6928),i=r(8611),s=r(5692),o=r(6173),a=r(3480),u=r(3106),{URL:l}=r(7016),c=r(5495),h=["gzip","deflate","br"];e.exports=class{constructor(e,t="GET"){return this.url="string"==typeof e?new l(e):e,this.method=t,this.data=null,this.sendDataAs=null,this.reqHeaders={},this.streamEnabled=!1,this.compressionEnabled=!1,this.timeoutTime=null,this.coreOptions={},this.maxRedirects=0,this.resOptions={maxBuffer:5e7},this}followRedirects(e){return this.maxRedirects=e,this}query(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.url.searchParams.append(t,e[t])})):this.url.searchParams.append(e,t),this}path(e){return this.url.pathname=n.join(this.url.pathname,e),this}body(e,t){return this.sendDataAs="object"!=typeof e||t||Buffer.isBuffer(e)?t?t.toLowerCase():"buffer":"json",this.data="form"===this.sendDataAs?a.stringify(e):"json"===this.sendDataAs?JSON.stringify(e):e,this}header(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.reqHeaders[t.toLowerCase()]=e[t]})):this.reqHeaders[e.toLowerCase()]=t,this}timeout(e){return this.timeoutTime=e,this}option(e,t){return this.coreOptions[e]=t,this}stream(){return this.streamEnabled=!0,this}compress(){return this.compressionEnabled=!0,this.reqHeaders["accept-encoding"]||(this.reqHeaders["accept-encoding"]=h.join(", ")),this}send(){return new Promise(((e,t)=>{this.data&&(this.reqHeaders.hasOwnProperty("content-type")||("json"===this.sendDataAs?this.reqHeaders["content-type"]="application/json":"form"===this.sendDataAs&&(this.reqHeaders["content-type"]="application/x-www-form-urlencoded")),this.reqHeaders.hasOwnProperty("content-length")||(this.reqHeaders["content-length"]=Buffer.byteLength(this.data)));const r=Object.assign({protocol:this.url.protocol,host:this.url.hostname.replace("[","").replace("]",""),port:this.url.port,path:this.url.pathname+(null===this.url.search?"":this.url.search),method:this.method,headers:this.reqHeaders,maxRedirects:this.maxRedirects},this.coreOptions);let n;const a=((e,t)=>{let r,n;if(t<=0?(r=i.request,n=s.request):(r=o.http.request,n=o.https.request),"http:"===e)return r;if("https:"===e)return n;throw new Error("Bad URL protocol: "+e)})(this.url.protocol,this.maxRedirects);n=a(r,(r=>{let n,i=r;this.compressionEnabled&&("gzip"===r.headers["content-encoding"]?i=r.pipe(u.createGunzip()):"deflate"===r.headers["content-encoding"]?i=r.pipe(u.createInflate()):"br"===r.headers["content-encoding"]&&(i=r.pipe(u.createBrotliDecompress()))),this.streamEnabled?e(i):(n=new c(r,this.resOptions),i.on("error",(e=>{t(e)})),i.on("aborted",(()=>{t(new Error("Server aborted request"))})),i.on("data",(e=>{n._addChunk(e),null!==this.resOptions.maxBuffer&&n.body.length>this.resOptions.maxBuffer&&(i.destroy(),t("Received a response which was longer than acceptable when buffering. ("+this.body.length+" bytes)"))})),i.on("end",(()=>{e(n)})))})),this.timeoutTime&&n.setTimeout(this.timeoutTime,(()=>{n.abort(),this.streamEnabled||t(new Error("Timeout reached"))})),n.on("error",(e=>{t(e)})),this.data&&n.write(this.data),n.end()}))}}},5495:e=>{e.exports=class{constructor(e,t){this.coreRes=e,this.resOptions=t,this.body=Buffer.alloc(0),this.headers=e.headers,this.statusCode=e.statusCode}_addChunk(e){this.body=Buffer.concat([this.body,e])}async json(){return 204===this.statusCode?null:JSON.parse(this.body)}async text(){return this.body.toString()}}},6181:(e,t,r)=>{const n=r(2701),{stdout:i,stderr:s}=r(5421),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(2597),{isArray:u}=Array,l=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null);class h{constructor(e){return d(e)}}const d=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;e.level=void 0===t.level?r:t.level})(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,p.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=h,t.template};function p(e){return d(e)}for(const[e,t]of Object.entries(n))c[e]={get(){const r=b(this,g(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};c.visible={get(){const e=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f)c[e]={get(){const{level:t}=this;return function(...r){const i=g(n.color[l[t]][e](...r),n.color.close,this._styler);return b(this,i,this._isEmpty)}}};for(const e of f){c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const i=g(n.bgColor[l[t]][e](...r),n.bgColor.close,this._styler);return b(this,i,this._isEmpty)}}}}const m=Object.defineProperties((()=>{}),{...c,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),g=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},b=(e,t,r)=>{const n=(...e)=>u(e[0])&&u(e[0].raw)?y(n,w(n,...e)):y(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,m),n._generator=e,n._styler=t,n._isEmpty=r,n},y=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(-1!==t.indexOf("\x1b"))for(;void 0!==r;)t=o(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=a(t,i,n,s)),n+t+i};let D;const w=(e,...t)=>{const[n]=t;if(!u(n)||!u(n.raw))return t.join(" ");const i=t.slice(1),s=[n.raw[0]];for(let e=1;e<n.length;e++)s.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===D&&(D=r(826)),D(e,s.join(""))};Object.defineProperties(p.prototype,c);const v=p();v.supportsColor=i,v.stderr=p({level:s?s.level:0}),v.stderr.supportsColor=s,e.exports=v},826:e=>{const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function o(e){const t="u"===e[0],r="{"===e[1];return t&&!r&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):s.get(e)||e}function a(e,t){const r=[],s=t.trim().split(/\s*,\s*/g);let a;for(const t of s){const s=Number(t);if(Number.isNaN(s)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(a[2].replace(i,((e,t,r)=>t?o(t):r)))}else r.push(s)}return r}function u(e){r.lastIndex=0;const t=[];let n;for(;null!==(n=r.exec(e));){const e=n[1];if(n[2]){const r=a(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function l(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const[e,t]of Object.entries(r))if(Array.isArray(t)){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,r)=>{const n=[],i=[];let s=[];if(r.replace(t,((t,r,a,c,h,d)=>{if(r)s.push(o(r));else if(c){const t=s.join("");s=[],i.push(0===n.length?t:l(e,n)(t)),n.push({inverse:a,styles:u(c)})}else if(h){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(l(e,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},2597:e=>{e.exports={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.substr(s),o},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let i=0,s="";do{const o="\r"===e[n-1];s+=e.substr(i,(o?n-1:n)-i)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.substr(i),s}}},1473:(e,t,r)=>{const n=Object.assign({},r(7256)),i=Object.keys(n);Object.defineProperty(n,"random",{get(){const e=Math.floor(Math.random()*i.length),t=i[e];return n[t]}}),e.exports=n},8138:(e,t,r)=>{const n=r(9878),i={};for(const e of Object.keys(n))i[n[e]]=e;const s={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"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e]))throw new Error("missing channels property: "+e);if(!("labels"in s[e]))throw new Error("missing channel labels property: "+e);if(s[e].labels.length!==s[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=s[e];delete s[e].channels,delete s[e].labels,Object.defineProperty(s[e],"channels",{value:t}),Object.defineProperty(s[e],"labels",{value:r})}s.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i;let a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+s)/2;return u=s===i?0:l<=.5?o/(s+i):o/(2-s-i),[a,100*u,100*l]},s.rgb.hsv=function(e){let t,r,n,i,s;const o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),h=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,s=0):(s=c/l,t=h(o),r=h(a),n=h(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*l]},s.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=s.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n);return[100*((1-t-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(e){const t=i[e];if(t)return t;let r,s=1/0;for(const t of Object.keys(n)){const i=n[t],u=(a=i,((o=e)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);u<s&&(s=u,r=t)}var o,a;return r},s.keyword.rgb=function(e){return n[e]},s.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){const t=s.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},s.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,s,o;if(0===r)return o=255*n,[o,o,o];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,u=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,u[e]=255*o;return u},s.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;return[t,100*(0===n?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let s,o;o=(2-r)*n;const a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,100*s,100*o]},s.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),a=1-n;s=6*t-o,1&o&&(s=1-s);const u=r+s*(a-r);let l,c,h;switch(o){default:case 6:case 0:l=a,c=u,h=r;break;case 1:l=u,c=a,h=r;break;case 2:l=r,c=a,h=u;break;case 3:l=r,c=u,h=a;break;case 4:l=u,c=r,h=a;break;case 5:l=a,c=r,h=u}return[255*l,255*c,255*h]},s.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},s.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,s,o;return i=3.2406*t+-1.5372*r+-.4986*n,s=-.9689*t+1.8758*r+.0415*n,o=.0557*t+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*i,255*s,255*o]},s.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},s.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const i=r**3,s=t**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},s.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=null===t?s.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(a+=60),a},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s;let a,u;return a=o<1?s/(1-o):0,u=o<=0?0:i===t?(r-n)/o%6:i===r?2+(n-t)/o:4+(t-r)/o,u/=6,u%=1,[360*u,100*o,100*a]},s.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},s.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=t%1*6,o=s%1,a=1-o;let u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},s.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},s.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},s.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},s.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=function(e){return[0,0,e[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},9307:(e,t,r)=>{const n=r(8138),i=r(5214),s={};Object.keys(n).forEach((e=>{s[e]={},Object.defineProperty(s[e],"channels",{value:n[e].channels}),Object.defineProperty(s[e],"labels",{value:n[e].labels});const t=i(e);Object.keys(t).forEach((r=>{const n=t[r];s[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),s[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=s},5214:(e,t,r)=>{const n=r(8138);function i(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),i=Object.keys(n[e]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=t[n];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,r.unshift(n))}}return t}function s(e,t){return function(r){return t(e(r))}}function o(e,t){const r=[t[e].parent,e];let i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=s(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}e.exports=function(e){const t=i(e),r={},n=Object.keys(t);for(let e=n.length,i=0;i<e;i++){const e=n[i];null!==t[e].parent&&(r[e]=o(e,t))}return r}},9878:e=>{e.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]}},526:(e,t,r)=>{const n=r(5317),i=r(4705),s=r(2369);function o(e,t,r){const o=i(e,t,r),a=n.spawn(o.command,o.args,o.options);return s.hookChildProcess(a,o),a}e.exports=o,e.exports.spawn=o,e.exports.sync=function(e,t,r){const o=i(e,t,r),a=n.spawnSync(o.command,o.args,o.options);return a.error=a.error||s.verifyENOENTSync(a.status,o),a},e.exports._parse=i,e.exports._enoent=s},2369:e=>{const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return t&&1===e&&!n.file?r(n.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const i=e.emit;e.emit=function(t,s){if("exit"===t){const t=n(s,r);if(t)return i.call(e,"error",t)}return i.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},4705:(e,t,r)=>{const n=r(6928),i=r(6694),s=r(1192),o=r(3179),a="win32"===process.platform,u=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(e){if(!a)return e;const t=function(e){e.file=i(e);const t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}(e),r=!u.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=n.normalize(e.command),e.command=s.command(e.command),e.args=e.args.map((e=>s.argument(e,r)));const 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}e.exports=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:c(n)}},1192:e=>{const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e=e.replace(t,"^$1")},e.exports.argument=function(e,r){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),r&&(e=e.replace(t,"^$1")),e}},3179:(e,t,r)=>{const n=r(9896),i=r(600);e.exports=function(e){const t=Buffer.alloc(150);let r;try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return i(t.toString())}},6694:(e,t,r)=>{const n=r(6928),i=r(1905),s=r(9695);function o(e,t){const r=e.options.env||process.env,o=process.cwd(),a=null!=e.options.cwd,u=a&&void 0!==process.chdir&&!process.chdir.disabled;if(u)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=i.sync(e.command,{path:r[s({env:r})],pathExt:t?n.delimiter:void 0})}catch(e){}finally{u&&process.chdir(o)}return l&&(l=n.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return o(e)||o(e,!0)}},7281:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(7e3)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7e3:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,s,o=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];r=s.call(n,t),e.splice(o,1),o--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(7821),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},4833:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(7281):e.exports=r(5833)},5833:(e,t,r)=>{const n=r(2018),i=r(9023);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="\x1b[3"+(t<8?t:"8;5;"+t),s=` ${i};1m${n} \x1b[0m`;r[0]=s+r[0].split("\n").join("\n"+s),r.push(i+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(1754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(7e3)(t);const{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},4579:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var i={};return r.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&r.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(s,r)(e[s],t[s],r):i[s]=n(t[s],r))})),i}function u(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?s.arrayMerge(e,r,s):a(e,r,s):n(r,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var l=u;e.exports=l},1698:(e,t,r)=>{var n;e.exports=function(){if(!n){try{n=r(4833)("follow-redirects")}catch(e){}"function"!=typeof n&&(n=function(){})}n.apply(null,arguments)}},6173:(e,t,r)=>{var n=r(7016),i=n.URL,s=r(8611),o=r(5692),a=r(2203).Writable,u=r(2613),l=r(1698),c=!1;try{u(new i)}catch(e){c="ERR_INVALID_URL"===e.code}var h=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],d=["abort","aborted","connect","error","socket","timeout"],p=Object.create(null);d.forEach((function(e){p[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var f=O("ERR_INVALID_URL","Invalid URL",TypeError),m=O("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),g=O("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",m),b=O("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=O("ERR_STREAM_WRITE_AFTER_END","write after end"),D=a.prototype.destroy||E;function w(e,t){a.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof m?e:new m({cause:e}))}},this._performRequest()}function v(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var s=n+":",o=r[s]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){var a;return a=e,i&&a instanceof i?e=S(e):A(e)?e=S(F(e)):(o=n,n=C(e),e={protocol:s}),T(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,A(n.host)||A(n.hostname)||(n.hostname="::1"),u.equal(n.protocol,s,"protocol mismatch"),l("options",n),new w(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function E(){}function F(e){var t;if(c)t=new i(e);else if(!A((t=C(n.parse(e))).protocol))throw new f({input:e});return t}function C(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new f({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new f({input:e.href||e});return e}function S(e,t){var r=t||{};for(var n of h)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function x(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function O(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function _(e,t){for(var r of d)e.removeListener(r,p[r]);e.on("error",E),e.destroy(t)}function A(e){return"string"==typeof e||e instanceof String}function T(e){return"function"==typeof e}w.prototype=Object.create(a.prototype),w.prototype.abort=function(){_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},w.prototype.destroy=function(e){return _(this._currentRequest,e),D.call(this,e),this},w.prototype.write=function(e,t,r){if(this._ending)throw new y;if(!A(e)&&("object"!=typeof(n=e)||!("length"in n)))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;T(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new b),this.abort()):r&&r()},w.prototype.end=function(e,t,r){if(T(e)?(r=e,e=t=null):T(t)&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},w.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},w.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},w.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),s()}),e),n(t)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){w.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(w.prototype,e,{get:function(){return this._currentRequest[e]}})})),w.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},w.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var s of(i._redirectable=this,d))i.on(s,p[s]);if(this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,u=this._requestBodyBuffers;!function e(t){if(i===a._currentRequest)if(t)a.emit("error",t);else if(o<u.length){var r=u[o++];i.finished||i.write(r.data,r.encoding,e)}else a._ended&&i.end()}()}},w.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,s=e.headers.location;if(!s||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(_(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new g;var o=this._options.beforeRedirect;o&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],x(/^content-/i,this._options.headers));var h,d,p=x(/^host$/i,this._options.headers),f=F(this._currentUrl),m=p||f.host,b=/^\w+:/.test(s)?this._currentUrl:n.format(Object.assign(f,{host:m})),y=(h=s,d=b,c?new i(h,d):F(n.resolve(d,h)));if(l("redirecting to",y.href),this._isRedirect=!0,S(y,this._options),(y.protocol!==f.protocol&&"https:"!==y.protocol||y.host!==m&&!function(e,t){u(A(e)&&A(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(y.host,m))&&x(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),T(o)){var D={headers:e.headers,statusCode:t},w={url:b,method:a,headers:r};o(this._options,D,w),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=v({http:s,https:o}),e.exports.wrap=v},7657:(e,t,r)=>{const n=r(627),i=r(6928),s=r(9823).mkdirsSync,o=r(2292).utimesMillisSync,a=r(8549);function u(e,t,r,s){const o=(s.dereference?n.statSync:n.lstatSync)(t);if(o.isDirectory())return function(e,t,r,i,s){return t?h(r,i,s):function(e,t,r,i){return n.mkdirSync(r),h(t,r,i),c(r,e)}(e.mode,r,i,s)}(o,e,t,r,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(e,t,r,i,s){return t?function(e,t,r,i){if(i.overwrite)return n.unlinkSync(r),l(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,i,s):l(e,r,i,s)}(o,e,t,r,s);if(o.isSymbolicLink())return function(e,t,r,s){let o=n.readlinkSync(t);s.dereference&&(o=i.resolve(process.cwd(),o));if(e){let e;try{e=n.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlinkSync(o,r);throw e}if(s.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(a.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return n.unlinkSync(t),n.symlinkSync(e,t)}(o,r)}return n.symlinkSync(o,r)}(e,t,r,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,r,i){return n.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){c(e,128|t)}(r,e);(function(e,t){const r=n.statSync(e);o(t,r.atime,r.mtime)})(t,r)}(e.mode,t,r),c(r,e.mode)}function c(e,t){return n.chmodSync(e,t)}function h(e,t,r){n.readdirSync(e).forEach((n=>function(e,t,r,n){const s=i.join(t,e),o=i.join(r,e);if(n.filter&&!n.filter(s,o))return;const{destStat:l}=a.checkPathsSync(s,o,"copy",n);return u(l,s,o,n)}(n,e,t,r)))}e.exports=function(e,t,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:o,destStat:l}=a.checkPathsSync(e,t,"copy",r);if(a.checkParentPathsSync(e,o,t,"copy"),r.filter&&!r.filter(e,t))return;const c=i.dirname(t);return n.existsSync(c)||s(c),u(l,e,t,r)}},9945:(e,t,r)=>{const n=r(1692),i=r(6928),{mkdirs:s}=r(9823),{pathExists:o}=r(303),{utimesMillis:a}=r(2292),u=r(8549);async function l(e,t,r){return!r.filter||r.filter(e,t)}async function c(e,t,r,s){const o=s.dereference?n.stat:n.lstat,a=await o(t);if(a.isDirectory())return async function(e,t,r,s,o){t||await n.mkdir(s);const a=await n.readdir(r);await Promise.all(a.map((async e=>{const t=i.join(r,e),n=i.join(s,e);if(!await l(t,n,o))return;const{destStat:a}=await u.checkPaths(t,n,"copy",o);return c(a,t,n,o)}))),t||await n.chmod(s,e.mode)}(a,e,t,r,s);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return async function(e,t,r,i,s){if(!t)return h(e,r,i,s);if(s.overwrite)return await n.unlink(i),h(e,r,i,s);if(s.errorOnExist)throw new Error(`'${i}' already exists`)}(a,e,t,r,s);if(a.isSymbolicLink())return async function(e,t,r,s){let o=await n.readlink(t);s.dereference&&(o=i.resolve(process.cwd(),o));if(!e)return n.symlink(o,r);let a=null;try{a=await n.readlink(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlink(o,r);throw e}s.dereference&&(a=i.resolve(process.cwd(),a));if(u.isSrcSubdir(o,a))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${a}'.`);if(u.isSrcSubdir(a,o))throw new Error(`Cannot overwrite '${a}' with '${o}'.`);return await n.unlink(r),n.symlink(o,r)}(e,t,r,s);if(a.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(a.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function h(e,t,r,i){if(await n.copyFile(t,r),i.preserveTimestamps){128&e.mode||await function(e,t){return n.chmod(e,128|t)}(r,e.mode);const i=await n.stat(t);await a(r,i.atime,i.mtime)}return n.chmod(r,e.mode)}e.exports=async function(e,t,r={}){"function"==typeof r&&(r={filter:r}),r.clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:n,destStat:a}=await u.checkPaths(e,t,"copy",r);if(await u.checkParentPaths(e,n,t,"copy"),!await l(e,t,r))return;const h=i.dirname(t);await o(h)||await s(h),await c(a,e,t,r)}},718:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={copy:n(r(9945)),copySync:r(7657)}},2456:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(5483),u=n((async function(e){let t;try{t=await i.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>a.remove(s.join(e,t)))))}));function l(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:u,emptydir:u}},4355:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823);e.exports={createFile:n((async function(e){let t;try{t=await s.stat(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);let n=null;try{n=await s.stat(r)}catch(t){if("ENOENT"===t.code)return await o.mkdirs(r),void await s.writeFile(e,"");throw t}n.isDirectory()?await s.writeFile(e,""):await s.readdir(r)})),createFileSync:function(e){let t;try{t=s.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{s.statSync(r).isDirectory()||s.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;o.mkdirsSync(r)}s.writeFileSync(e,"")}}},4177:(e,t,r)=>{const{createFile:n,createFileSync:i}=r(4355),{createLink:s,createLinkSync:o}=r(445),{createSymlink:a,createSymlinkSync:u}=r(4014);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:s,createLinkSync:o,ensureLink:s,ensureLinkSync:o,createSymlink:a,createSymlinkSync:u,ensureSymlink:a,ensureSymlinkSync:u}},445:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823),{pathExists:a}=r(303),{areIdentical:u}=r(8549);e.exports={createLink:n((async function(e,t){let r,n;try{r=await s.lstat(t)}catch{}try{n=await s.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(r&&u(n,r))return;const l=i.dirname(t);await a(l)||await o.mkdirs(l),await s.link(e,t)})),createLinkSync:function(e,t){let r;try{r=s.lstatSync(t)}catch{}try{const t=s.lstatSync(e);if(r&&u(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return s.existsSync(n)||o.mkdirsSync(n),s.linkSync(e,t)}}},9475:(e,t,r)=>{const n=r(6928),i=r(1692),{pathExists:s}=r(303),o=r(4635).fromPromise;e.exports={symlinkPaths:o((async function(e,t){if(n.isAbsolute(e)){try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const r=n.dirname(t),o=n.join(r,e);if(await s(o))return{toCwd:o,toDst:e};try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:n.relative(r,e)}})),symlinkPathsSync:function(e,t){if(n.isAbsolute(e)){if(!i.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const r=n.dirname(t),s=n.join(r,e);if(i.existsSync(s))return{toCwd:s,toDst:e};if(!i.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(r,e)}}}},3607:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={symlinkType:i((async function(e,t){if(t)return t;let r;try{r=await n.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(e,t){if(t)return t;let r;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},4014:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),{mkdirs:o,mkdirsSync:a}=r(9823),{symlinkPaths:u,symlinkPathsSync:l}=r(9475),{symlinkType:c,symlinkTypeSync:h}=r(3607),{pathExists:d}=r(303),{areIdentical:p}=r(8549);e.exports={createSymlink:n((async function(e,t,r){let n;try{n=await s.lstat(t)}catch{}if(n&&n.isSymbolicLink()){const[r,n]=await Promise.all([s.stat(e),s.stat(t)]);if(p(r,n))return}const a=await u(e,t);e=a.toDst;const l=await c(a.toCwd,r),h=i.dirname(t);return await d(h)||await o(h),s.symlink(e,t,l)})),createSymlinkSync:function(e,t,r){let n;try{n=s.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=s.statSync(e),n=s.statSync(t);if(p(r,n))return}const o=l(e,t);e=o.toDst,r=h(o.toCwd,r);const u=i.dirname(t);return s.existsSync(u)||a(u),s.symlinkSync(e,t,r)}}},1692:(e,t,r)=>{const n=r(4635).fromCallback,i=r(627),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof i[e]));Object.assign(t,i),s.forEach((e=>{t[e]=n(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,r,n,s,o){return"function"==typeof o?i.read(e,t,r,n,s,o):new Promise(((o,a)=>{i.read(e,t,r,n,s,((e,t,r)=>{if(e)return a(e);o({bytesRead:t,buffer:r})}))}))},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?i.write(e,t,...r):new Promise(((n,s)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})}))}))},t.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?i.readv(e,t,...r):new Promise(((n,s)=>{i.readv(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesRead:t,buffers:r})}))}))},t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?i.writev(e,t,...r):new Promise(((n,s)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffers:r})}))}))},"function"==typeof i.realpath.native?t.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},738:(e,t,r)=>{e.exports={...r(1692),...r(718),...r(2456),...r(4177),...r(6185),...r(9823),...r(1254),...r(2227),...r(303),...r(5483)}},6185:(e,t,r)=>{const n=r(4635).fromPromise,i=r(509);i.outputJson=n(r(3291)),i.outputJsonSync=r(8235),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},509:(e,t,r)=>{const n=r(8843);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},8235:(e,t,r)=>{const{stringify:n}=r(374),{outputFileSync:i}=r(2227);e.exports=function(e,t,r){const s=n(t,r);i(e,s,r)}},3291:(e,t,r)=>{const{stringify:n}=r(374),{outputFile:i}=r(2227);e.exports=async function(e,t,r={}){const s=n(t,r);await i(e,s,r)}},9823:(e,t,r)=>{const n=r(4635).fromPromise,{makeDir:i,makeDirSync:s}=r(5639),o=n(i);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},5639:(e,t,r)=>{const n=r(1692),{checkPath:i}=r(9242),s=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:s(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:s(t),recursive:!0}))},9242:(e,t,r)=>{const n=r(6928);e.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}},1254:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={move:n(r(5553)),moveSync:r(7473)}},7473:(e,t,r)=>{const n=r(627),i=r(6928),s=r(718).copySync,o=r(5483).removeSync,a=r(9823).mkdirpSync,u=r(8549);function l(e,t,r){try{n.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return s(e,t,n),o(e)}(e,t,r)}}e.exports=function(e,t,r){const s=(r=r||{}).overwrite||r.clobber||!1,{srcStat:c,isChangingCase:h=!1}=u.checkPathsSync(e,t,"move",r);return u.checkParentPathsSync(e,c,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||a(i.dirname(t)),function(e,t,r,i){if(i)return l(e,t,r);if(r)return o(t),l(e,t,r);if(n.existsSync(t))throw new Error("dest already exists.");return l(e,t,r)}(e,t,s,h)}},5553:(e,t,r)=>{const n=r(1692),i=r(6928),{copy:s}=r(718),{remove:o}=r(5483),{mkdirp:a}=r(9823),{pathExists:u}=r(303),l=r(8549);e.exports=async function(e,t,r={}){const c=r.overwrite||r.clobber||!1,{srcStat:h,isChangingCase:d=!1}=await l.checkPaths(e,t,"move",r);await l.checkParentPaths(e,h,t,"move");const p=i.dirname(t);return i.parse(p).root!==p&&await a(p),async function(e,t,r,i){if(!i)if(r)await o(t);else if(await u(t))throw new Error("dest already exists.");try{await n.rename(e,t)}catch(n){if("EXDEV"!==n.code)throw n;await async function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await s(e,t,n),o(e)}(e,t,r)}}(e,t,c,d)}},2227:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(303).pathExists;e.exports={outputFile:n((async function(e,t,r="utf-8"){const n=s.dirname(e);return await a(n)||await o.mkdirs(n),i.writeFile(e,t,r)})),outputFileSync:function(e,...t){const r=s.dirname(e);i.existsSync(r)||o.mkdirsSync(r),i.writeFileSync(e,...t)}}},303:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692);e.exports={pathExists:n((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},5483:(e,t,r)=>{const n=r(627),i=r(4635).fromCallback;e.exports={remove:i((function(e,t){n.rm(e,{recursive:!0,force:!0},t)})),removeSync:function(e){n.rmSync(e,{recursive:!0,force:!0})}}},8549:(e,t,r)=>{const n=r(1692),i=r(6928),s=r(4635).fromPromise;function o(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function a(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e)),n=i.resolve(t).split(i.sep).filter((e=>e));return r.every(((e,t)=>n[t]===e))}function u(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:s((async function(e,t,r,s){const{srcStat:l,destStat:c}=await function(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:!0}):e=>n.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}})),checkPathsSync:function(e,t,r,s){const{srcStat:l,destStat:c}=function(e,t,r){let i;const s=r.dereference?e=>n.statSync(e,{bigint:!0}):e=>n.lstatSync(e,{bigint:!0}),o=s(e);try{i=s(t)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}},checkParentPaths:s((async function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=await n.stat(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)})),checkParentPathsSync:function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=n.statSync(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)},isSrcSubdir:a,areIdentical:o}},2292:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={utimesMillis:i((async function(e,t,r){const i=await n.open(e,"r+");let s=null;try{await n.futimes(i,t,r)}finally{try{await n.close(i)}catch(e){s=e}}if(s)throw s})),utimesMillisSync:function(e,t,r){const i=n.openSync(e,"r+");return n.futimesSync(i,t,r),n.closeSync(i)}}},8359:e=>{e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else r=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r};var t=Object.getPrototypeOf||function(e){return e.__proto__}},627:(e,t,r)=>{var n,i,s=r(9896),o=r(8254),a=r(111),u=r(8359),l=r(9023);function c(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var h,d=function(){};if(l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!s[n]){var p=global[n]||[];c(s,p),s.close=function(e){function t(t,r){return e.call(s,t,(function(e){e||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(s.close),s.closeSync=function(e){function t(t){e.apply(s,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(2613).equal(s[n].length,0)}))}function f(e){o(e),e.gracefulify=f,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,s){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[r,n,i],t,s||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,s,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,n,i,s],r,o||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,s,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,i,s],n,o||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,s,o){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,n,s],i,o||Date.now(),Date.now()])}))}(e,t,r,n)});var s=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=u.test(process.version)?function(e,t,r,n){return s(e,i(e,t,r,n))}:function(e,t,r,n){return s(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o)):m([n,[e,t,r],s,i||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,b=l.WriteStream}var c=e.ReadStream;c&&(g.prototype=Object.create(c.prototype),g.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var h=e.WriteStream;h&&(b.prototype=Object.create(h.prototype),b.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var p=b;function g(e,t){return this instanceof g?(c.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function b(e,t){return this instanceof b?(h.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var y=e.open;function D(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,s){return y(t,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,r,n,i],o,s||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=D,e}function m(e){d("ENQUEUE",e[0].name,e[1]),s[n].push(e),b()}function g(){for(var e=Date.now(),t=0;t<s[n].length;++t)s[n][t].length>2&&(s[n][t][3]=e,s[n][t][4]=e);b()}function b(){if(clearTimeout(h),h=void 0,0!==s[n].length){var e=s[n].shift(),t=e[0],r=e[1],i=e[2],o=e[3],a=e[4];if(void 0===o)d("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",t.name,r);var u=r.pop();"function"==typeof u&&u.call(null,i)}else{var l=Date.now()-a,c=Math.max(a-o,1);l>=Math.min(1.2*c,100)?(d("RETRY",t.name,r),t.apply(null,r.concat([o]))):s[n].push(e)}void 0===h&&(h=setTimeout(b,0))}}global[n]||c(global,s[n]),e.exports=f(u(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=f(s),s.__patched=!0)},111:(e,t,r)=>{var n=r(2203).Stream;e.exports=function(e){return{ReadStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){s._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return s.emit("error",e),void(s.readable=!1);s.fd=t,s.emit("open",t),s._read()}))},WriteStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},8254:(e,t,r)=>{var n=r(9140),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,s=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=e.fchmodSync(s,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,(function(t,n){t?s&&s(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){s&&s(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var s,o=e.openSync(t,n.O_SYMLINK),a=!0;try{s=e.futimesSync(o,r,i),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return s}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===o&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var s=Date.now(),o=0;t(r,n,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-s<6e4)return setTimeout((function(){e.stat(n,(function(e,s){e&&"ENOENT"===e.code?t(r,n,a):i(u)}))}),o),void(o<100&&(o+=10));i&&i(u)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(r,n,i,s){return t.call(e,r,n,i,(function(e){l(e)&&(e=null),s&&s.apply(this,arguments)}))}:t}function s(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(r,n,i){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,s):t.call(e,r,s)}:t}function u(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function l(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,s,o,a){var u;if(a&&"function"==typeof a){var l=0;u=function(c,h,d){if(c&&"EAGAIN"===c.code&&l<10)return l++,t.call(e,r,n,i,s,o,u);a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,u)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,s){for(var o=0;;)try{return c.call(e,t,r,n,i,s)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var c}},4891:e=>{e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},910:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},4140:e=>{e.exports=e=>{if("object"!=typeof e||null===e)throw new TypeError("Expected an object");const t={};for(const[r,n]of Object.entries(e))t[n]=r;for(const r of Object.getOwnPropertySymbols(e)){t[e[r]]=r}return t}},9344:(e,t,r)=>{var n;r(9896);function i(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(e,t||{},(function(e,t){e?n(e):r(t)}))}))}n(e,t||{},(function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}n="win32"===process.platform||global.TESTING_WINDOWS?r(8541):r(709),e.exports=i,i.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},709:(e,t,r)=>{e.exports=i,i.sync=function(e,t){return s(n.statSync(e),t)};var n=r(9896);function i(e,t,r){n.stat(e,(function(e,n){r(e,!e&&s(n,t))}))}function s(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,i=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,h=r&l||r&u&&i===o||r&a&&n===s||r&c&&0===s;return h}(e,t)}},8541:(e,t,r)=>{e.exports=s,s.sync=function(e,t){return i(n.statSync(e),e,t)};var n=r(9896);function i(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,r)}function s(e,t,r){n.stat(e,(function(n,s){r(n,!n&&i(s,e,t))}))}},8843:(e,t,r)=>{let n;try{n=r(627)}catch(e){n=r(9896)}const i=r(4635),{stringify:s,stripBom:o}=r(374);const a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,s=!("throws"in t)||t.throws;let a,u=await i.fromCallback(r.readFile)(e,t);u=o(u);try{a=JSON.parse(u,t?t.reviver:null)}catch(t){if(s)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,i=!("throws"in t)||t.throws;try{let n=r.readFileSync(e,t);return n=o(n),JSON.parse(n,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,r={}){const o=r.fs||n,a=s(t,r);await i.fromCallback(o.writeFile)(e,a,r)})),writeFileSync:function(e,t,r={}){const i=r.fs||n,o=s(t,r);return i.writeFileSync(e,o,r)}};e.exports=a},374:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},8888:e=>{const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==t,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function s(e,t){let r,n=0,i="",s="";for(;n<e.length;n++)r=e[n],i+=r.open,s+=r.close,t.includes(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+s}function o(e,t){let r={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){return void 0!==this&&void 0!==this.has?(this.has.includes(e)||(this.has.push(e),this.keys.push(r)),void 0===t?this:i.enabled?s(this.keys,t+""):t+""):void 0===t?function(e,t){let r={has:e,keys:t};return r.reset=i.reset.bind(r),r.bold=i.bold.bind(r),r.dim=i.dim.bind(r),r.italic=i.italic.bind(r),r.underline=i.underline.bind(r),r.inverse=i.inverse.bind(r),r.hidden=i.hidden.bind(r),r.strikethrough=i.strikethrough.bind(r),r.black=i.black.bind(r),r.red=i.red.bind(r),r.green=i.green.bind(r),r.yellow=i.yellow.bind(r),r.blue=i.blue.bind(r),r.magenta=i.magenta.bind(r),r.cyan=i.cyan.bind(r),r.white=i.white.bind(r),r.gray=i.gray.bind(r),r.grey=i.grey.bind(r),r.bgBlack=i.bgBlack.bind(r),r.bgRed=i.bgRed.bind(r),r.bgGreen=i.bgGreen.bind(r),r.bgYellow=i.bgYellow.bind(r),r.bgBlue=i.bgBlue.bind(r),r.bgMagenta=i.bgMagenta.bind(r),r.bgCyan=i.bgCyan.bind(r),r.bgWhite=i.bgWhite.bind(r),r}([e],[r]):i.enabled?s([r],t+""):t+""}}e.exports=i},323:(e,t,r)=>{const n=r(4140),i=r(8360),s=n(i);t.from=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return i[e]},t.to=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");if(s[e])return Number(s[e])},t.all=new Proxy(s,{get(e,t){const r=e[t];if(r)return Number(r)}})},6283:e=>{const t=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};e.exports=t,e.exports.default=t},7821:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,s=7*i,o=365.25*i;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,u){u=u||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===l&&isFinite(e))return u.long?function(e){var s=Math.abs(e);if(s>=i)return a(e,s,i,"day");if(s>=n)return a(e,s,n,"hour");if(s>=r)return a(e,s,r,"minute");if(s>=t)return a(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=i)return Math.round(e/i)+"d";if(s>=n)return Math.round(e/n)+"h";if(s>=r)return Math.round(e/r)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7862:(e,t,r)=>{const n=r(6283),i=new WeakMap,s=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const o=e.displayName||e.name||"<anonymous>",a=function(...n){if(i.set(a,++s),1===s)r=e.apply(this,n),e=null;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return r};return n(a,e),i.set(a,s),a};e.exports=s,e.exports.default=s,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},1416:(e,t,r)=>{var n=r(1813);e.exports=function(e){if("string"!=typeof e)throw new TypeError("expected author to be a string");if(!e||!/\w/.test(e))return{};var t=[].concat.apply([],n().exec(e)),r={};t[1]&&(r.name=t[1]);for(var i=2;i<t.length;i++){var s=t[i];i%2==0&&s&&t[i+1]&&("<"===s.charAt(0)?(r.email=t[i+1],i++):"("===s.charAt(0)&&(r.url=t[i+1],i++))}return r}},9695:e=>{const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},8459:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},5882:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(e=>1==(e%=10)?"st":2===e?"nd":3===e?"rd":"th")(e):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e}}},2583:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},9180:(e,t,r)=>{e.exports={DatePart:r(8459),Meridiem:r(4356),Day:r(5882),Hours:r(2583),Milliseconds:r(1516),Minutes:r(3317),Month:r(5058),Seconds:r(249),Year:r(5599)}},4356:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1516:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},3317:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},5058:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},249:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},5599:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},9111:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}const i=r(8888),s=r(7261),o=r(4347),a=o.erase,u=o.cursor,l=r(8482),c=l.style,h=l.clear,d=l.figures,p=l.wrap,f=l.entriesToDisplay,m=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),g=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=c.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=h("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=m(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var t,r=this;return(t=function*(){const t=r.completing=r.suggest(r.input,r.choices),n=yield t;if(r.completing!==t)return;r.suggestions=n.map(((e,t,r)=>({title:g(r,t),value:m(r,t),description:e.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),e&&e()},function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,t,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=t?i.cyan().underline(e.title):e.title;return o=(t?i.cyan(d.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+p(e.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(u.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();let e=f(this.select,this.choices.length,this.limit),t=e.startIndex,r=e.endIndex;if(this.outputText=[c.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),c.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const e=this.suggestions.slice(t,r).map(((e,n)=>this.renderOption(e,this.select===n+t,0===n&&t>0,n+t===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(e||i.gray(this.fallback.title))}this.out.write(a.line+u.to(0)+this.outputText)}}},5518:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(538),o=r(8482),a=o.clear,u=o.style,l=o.figures;e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=a("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},539:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.erase,c=u.cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(c.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(l.line+c.to(0)+this.outputText))}}},7191:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(8482),u=a.style,l=a.clear,c=a.figures,h=r(4347),d=h.erase,p=h.cursor,f=r(9180),m=f.DatePart,g=f.Meridiem,b=f.Day,y=f.Hours,D=f.Milliseconds,w=f.Minutes,v=f.Month,E=f.Seconds,F=f.Year,C=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,S={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new b(e),3:e=>new v(e),4:e=>new F(e),5:e=>new g(e),6:e=>new y(e),7:e=>new w(e),8:e=>new E(e),9:e=>new D(e)},x={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};e.exports=class extends o{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(x,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=l("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=C.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in S?S[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof m))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof m))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(p.hide):this.out.write(l(this.outputText,this.out.columns)),super.render(),this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:s.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(d.line+p.to(0)+this.outputText))}}},271:(e,t,r)=>{e.exports={TextPrompt:r(3392),SelectPrompt:r(4003),TogglePrompt:r(5807),DatePrompt:r(7191),NumberPrompt:r(1270),MultiselectPrompt:r(538),AutocompletePrompt:r(9111),AutocompleteMultiselectPrompt:r(5518),ConfirmPrompt:r(539)}},538:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(7261),o=r(8482),a=o.clear,u=o.figures,l=o.style,c=o.wrap,h=o.entriesToDisplay;e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=a("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(e,t,r,i){const s=(t.selected?n.green(u.radioOn):u.radioOff)+" "+i+" ";let o,a;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(a=` - ${t.description}`,(s.length+o.length+a.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(a="\n"+c(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,r=h(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)t=r===i&&i>0?u.arrowUp:r===s-1&&s<e.length?u.arrowDown:" ",o.push(this.renderOption(this.cursor,e[r],r,t));return"\n"+o.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},1270:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.cursor,l=a.erase,c=r(8482),h=c.style,d=c.figures,p=c.clear,f=c.lines,m=/[0-9]/,g=e=>void 0!==e,b=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.msg=e.message,this.initial=g(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=g(e.min)?e.min:-1/0,this.max=g(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${b(e,this.round)}`),this._value=b(e,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||m.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();let t=e.value;e.value=""!==t?t:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(u.down(f(this.outputError,this.out.columns)-1)+p(this.outputError,this.out.columns)),this.out.write(p(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:s[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":d.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore))}}},7261:(e,t,r)=>{const n=r(3785),i=r(8482).action,s=r(4434),o=r(4347),a=o.beep,u=o.cursor,l=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(u.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(a)}render(){this.onRender(l),this.firstRender&&(this.firstRender=!1)}}},4003:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=s.figures,l=s.wrap,c=s.entriesToDisplay,h=r(4347).cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(h.hide):this.out.write(a(this.outputText,this.out.columns)),super.render();let e=c(this.cursor,this.choices.length,this.optionsPerPage),t=e.startIndex,r=e.endIndex;if(this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let e=t;e<r;e++){let i,s,o="",a=this.choices[e];s=e===t&&t>0?u.arrowUp:e===r-1&&r<this.choices.length?u.arrowDown:" ",a.disabled?(i=this.cursor===e?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===e?n.bold().gray(u.pointer)+" ":" ")+s):(i=this.cursor===e?n.cyan().underline(a.title):a.title,s=(this.cursor===e?n.cyan(u.pointer)+" ":" ")+s,a.description&&this.cursor===e&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+l(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},3392:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.erase,l=a.cursor,c=r(8482),h=c.style,d=c.clear,p=c.lines,f=c.figures;e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error)return e.red=!0,e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(l.down(p(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns)),this.out.write(d(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":f.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0)))}}},5807:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.cursor,c=u.erase;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(c.line+l.to(0)+this.outputText))}}},2481:(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,s=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw s}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function o(e){u(s,n,i,o,a,"next",e)}function a(e){u(s,n,i,o,a,"throw",e)}o(void 0)}))}}const c=r(3682),h=["suggest","format","onState","validate","onRender","type"],d=()=>{};function p(){return f.apply(this,arguments)}function f(){return f=l((function*(e=[],{onSubmit:t=d,onCancel:r=d}={}){const n={},s=p._override||{};let a,u,f,g,b,y;e=[].concat(e);const D=function(){var e=l((function*(e,t,r=!1){if(r||!e.validate||!0===e.validate(t))return e.format?yield e.format(t,n):t}));return function(t,r){return e.apply(this,arguments)}}();var w,v=o(e);try{for(v.s();!(w=v.n()).done;){u=w.value;var E=u;if(g=E.name,b=E.type,"function"==typeof b&&(b=yield b(a,i({},n),u),u.type=b),b){for(let e in u){if(h.includes(e))continue;let t=u[e];u[e]="function"==typeof t?yield t(a,i({},n),y):t}if(y=u,"string"!=typeof u.message)throw new Error("prompt message is required");var F=u;if(g=F.name,b=F.type,void 0===c[b])throw new Error(`prompt type (${b}) is not defined`);if(void 0===s[u.name]||(a=yield D(u,s[u.name]),void 0===a)){try{a=p._injected?m(p._injected,u.initial):yield c[b](u),n[g]=a=yield D(u,a,!0),f=yield t(u,a,n)}catch(e){f=!(yield r(u,n))}if(f)return n}else n[g]=a}}}catch(e){v.e(e)}finally{v.f()}return n})),f.apply(this,arguments)}function m(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(p,{prompt:p,prompts:c,inject:function(e){p._injected=(p._injected||[]).concat(e)},override:function(e){p._override=Object.assign({},e)}})},3682:(e,t,r)=>{const n=t,i=r(271),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},8386:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},6203:(e,t,r)=>{function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const s=r(9440),o=r(4347),a=o.erase,u=o.cursor;e.exports=function(e,t){if(!t)return a.line+u.to(0);let r=0;var i,o=n(e.split(/\r?\n/));try{for(o.s();!(i=o.n()).done;){let e=i.value;r+=1+Math.floor(Math.max([...s(e)].length-1,0)/t)}}catch(e){o.e(e)}finally{o.f()}return a.lines(r)}},4409:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},6135:e=>{const t={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},8482:(e,t,r)=>{e.exports={action:r(8386),clear:r(6203),style:r(6187),strip:r(9440),figures:r(6135),lines:r(6905),wrap:r(3424),entriesToDisplay:r(4409)}},6905:(e,t,r)=>{const n=r(9440);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},9440:e=>{e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(t,"g");return"string"==typeof e?e.replace(r,""):e}},6187:(e,t,r)=>{const n=r(8888),i=r(6135),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},3424:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},5600:(e,t,r)=>{e.exports=function(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return!1;if(e[t]>r[t])return!0}return!1}("8.6.0")?r(2481):r(8332)},4264:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},8171:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(e=>1==(e%=10)?"st":2===e?"nd":3===e?"rd":"th")(e):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e}}},9518:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},1693:(e,t,r)=>{e.exports={DatePart:r(4264),Meridiem:r(6551),Day:r(8171),Hours:r(9518),Milliseconds:r(1271),Minutes:r(136),Month:r(2103),Seconds:r(6272),Year:r(2968)}},6551:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1271:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},136:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},2103:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},6272:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},2968:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},8590:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,figures:l,wrap:c,entriesToDisplay:h}=r(7933),d=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),p=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=a.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=u("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=d(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices),r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:p(r,t),value:d(r,t),description:e.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),e&&e()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,t,r,i){let s,o=r?l.arrowUp:i?l.arrowDown:" ",a=t?n.cyan().underline(e.title):e.title;return o=(t?n.cyan(l.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+c(e.description,{margin:3,width:this.out.columns}))),o+" "+a+n.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(u(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=h(this.select,this.choices.length,this.limit);if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),n.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const r=this.suggestions.slice(e,t).map(((r,n)=>this.renderOption(r,this.select===n+e,0===n&&e>0,n+e===t-1&&t<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},4349:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(3725),{clear:o,style:a,figures:u}=r(7933);e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=o("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||(!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},3756:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{erase:a,cursor:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(a.line+u.to(0)+this.outputText))}}},8626:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a}=r(7933),{erase:u,cursor:l}=r(4347),{DatePart:c,Meridiem:h,Day:d,Hours:p,Milliseconds:f,Minutes:m,Month:g,Seconds:b,Year:y}=r(1693),D=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,w={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new g(e),4:e=>new y(e),5:e=>new h(e),6:e=>new p(e),7:e=>new m(e),8:e=>new b(e),9:e=>new f(e)},v={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(v,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=o("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=D.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in w?w[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof c))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof c))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:n.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":a.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText))}}},5864:(e,t,r)=>{e.exports={TextPrompt:r(1433),SelectPrompt:r(406),TogglePrompt:r(1582),DatePrompt:r(8626),NumberPrompt:r(9927),MultiselectPrompt:r(3725),AutocompletePrompt:r(8590),AutocompleteMultiselectPrompt:r(4349),ConfirmPrompt:r(3756)}},3725:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(8544),{clear:o,figures:a,style:u,wrap:l,entriesToDisplay:c}=r(7933);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=o("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(e,t,r,i){const s=(t.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,u;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(u=` - ${t.description}`,(s.length+o.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(u="\n"+l(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(u||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,{startIndex:r,endIndex:i}=c(this.cursor,e.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)t=n===r&&r>0?a.arrowUp:n===i-1&&i<e.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,e[n],n,t));return"\n"+s.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},9927:(e,t,r)=>{const n=r(8888),i=r(8544),{cursor:s,erase:o}=r(4347),{style:a,figures:u,clear:l,lines:c}=r(7933),h=/[0-9]/,d=e=>void 0!==e,p=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.msg=e.message,this.initial=d(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=d(e.min)?e.min:-1/0,this.max=d(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${p(e,this.round)}`),this._value=p(e,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||h.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let e=this.value;this.value=""!==e?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(c(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},8544:(e,t,r)=>{const n=r(3785),{action:i}=r(7933),s=r(4434),{beep:o,cursor:a}=r(4347),u=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(o)}render(){this.onRender(u),this.firstRender&&(this.firstRender=!1)}}},406:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a,wrap:u,entriesToDisplay:l}=r(7933),{cursor:c}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=l(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let r=e;r<t;r++){let i,s,o="",l=this.choices[r];s=r===e&&e>0?a.arrowUp:r===t-1&&t<this.choices.length?a.arrowDown:" ",l.disabled?(i=this.cursor===r?n.gray().underline(l.title):n.strikethrough().gray(l.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(l.title):l.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,l.description&&this.cursor===r&&(o=` - ${l.description}`,(s.length+i.length+o.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(o="\n"+u(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},1433:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,lines:l,figures:c}=r(7933);e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=u("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(o.down(l(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},1582:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{cursor:a,erase:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(u.line+a.to(0)+this.outputText))}}},8332:(e,t,r)=>{const n=r(3683),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(e=[],{onSubmit:t=s,onCancel:r=s}={}){const u={},l=o._override||{};let c,h,d,p,f,m;e=[].concat(e);const g=async(e,t,r=!1)=>{if(r||!e.validate||!0===e.validate(t))return e.format?await e.format(t,u):t};for(h of e)if(({name:p,type:f}=h),"function"==typeof f&&(f=await f(c,{...u},h),h.type=f),f){for(let e in h){if(i.includes(e))continue;let t=h[e];h[e]="function"==typeof t?await t(c,{...u},m):t}if(m=h,"string"!=typeof h.message)throw new Error("prompt message is required");if(({name:p,type:f}=h),void 0===n[f])throw new Error(`prompt type (${f}) is not defined`);if(void 0===l[h.name]||(c=await g(h,l[h.name]),void 0===c)){try{c=o._injected?a(o._injected,h.initial):await n[f](h),u[p]=c=await g(h,c,!0),d=await t(h,c,u)}catch(e){d=!await r(h,u)}if(d)return u}else u[p]=c}return u}function a(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(e){o._injected=(o._injected||[]).concat(e)},override:function(e){o._override=Object.assign({},e)}})},3683:(e,t,r)=>{const n=t,i=r(5864),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},1787:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},7676:(e,t,r)=>{const n=r(7135),{erase:i,cursor:s}=r(4347);e.exports=function(e,t){if(!t)return i.line+s.to(0);let r=0;const o=e.split(/\r?\n/);for(let e of o)r+=1+Math.floor(Math.max([...n(e)].length-1,0)/t);return i.lines(r)}},4640:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},3248:e=>{const t={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},7933:(e,t,r)=>{e.exports={action:r(1787),clear:r(7676),style:r(7456),strip:r(7135),figures:r(3248),lines:r(334),wrap:r(1485),entriesToDisplay:r(4640)}},334:(e,t,r)=>{const n=r(7135);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},7135:e=>{e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(t,"g");return"string"==typeof e?e.replace(r,""):e}},7456:(e,t,r)=>{const n=r(8888),i=r(3248),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},1485:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},600:(e,t,r)=>{const n=r(7257);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?i:i?`${s} ${i}`:s}},7257:e=>{e.exports=/^#!(.*)/},112:(e,t,r)=>{var n=global.process;const i=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(i(n)){var s,o=r(2613),a=r(7401),u=/^win/i.test(n.platform),l=r(4434);"function"!=typeof l&&(l=l.EventEmitter),n.__signal_exit_emitter__?s=n.__signal_exit_emitter__:((s=n.__signal_exit_emitter__=new l).count=0,s.emitted={}),s.infinite||(s.setMaxListeners(1/0),s.infinite=!0),e.exports=function(e,t){if(!i(global.process))return function(){};o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===p&&f();var r="exit";t&&t.alwaysLast&&(r="afterexit");return s.on(r,e),function(){s.removeListener(r,e),0===s.listeners("exit").length&&0===s.listeners("afterexit").length&&c()}};var c=function(){p&&i(global.process)&&(p=!1,a.forEach((function(e){try{n.removeListener(e,d[e])}catch(e){}})),n.emit=b,n.reallyExit=m,s.count-=1)};e.exports.unload=c;var h=function(e,t,r){s.emitted[e]||(s.emitted[e]=!0,s.emit(e,t,r))},d={};a.forEach((function(e){d[e]=function(){i(global.process)&&(n.listeners(e).length===s.count&&(c(),h("exit",null,e),h("afterexit",null,e),u&&"SIGHUP"===e&&(e="SIGINT"),n.kill(n.pid,e)))}})),e.exports.signals=function(){return a};var p=!1,f=function(){!p&&i(global.process)&&(p=!0,s.count+=1,a=a.filter((function(e){try{return n.on(e,d[e]),!0}catch(e){return!1}})),n.emit=y,n.reallyExit=g)};e.exports.load=f;var m=n.reallyExit,g=function(e){i(global.process)&&(n.exitCode=e||0,h("exit",n.exitCode,null),h("afterexit",n.exitCode,null),m.call(n,n.exitCode))},b=n.emit,y=function(e,t){if("exit"===e&&i(global.process)){void 0!==t&&(n.exitCode=t);var r=b.apply(this,arguments);return h("exit",n.exitCode,null),h("afterexit",n.exitCode,null),r}return b.apply(this,arguments)}}else e.exports=function(){return function(){}}},7401:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},4347:e=>{const t="\x1b[",r={to:(e,r)=>r?`${t}${r+1};${e+1}H`:`${t}${e+1}G`,move(e,r){let n="";return e<0?n+=`${t}${-e}D`:e>0&&(n+=`${t}${e}C`),r<0?n+=`${t}${-r}A`:r>0&&(n+=`${t}${r}B`),n},up:(e=1)=>`${t}${e}A`,down:(e=1)=>`${t}${e}B`,forward:(e=1)=>`${t}${e}C`,backward:(e=1)=>`${t}${e}D`,nextLine:(e=1)=>`${t}E`.repeat(e),prevLine:(e=1)=>`${t}F`.repeat(e),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:"\x1b7",restore:"\x1b8"},n={up:(e=1)=>`${t}S`.repeat(e),down:(e=1)=>`${t}T`.repeat(e)},i={screen:`${t}2J`,up:(e=1)=>`${t}1J`.repeat(e),down:(e=1)=>`${t}J`.repeat(e),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?r.up():"");return e&&(t+=r.left),t}};e.exports={cursor:r,scroll:n,erase:i,beep:"\x07"}},3396:e=>{e.exports=function(e){if("object"!=typeof e)throw new Error("expected an author to be an object");var t={name:["",""],email:["<",">"],url:["(",")"]},r="";for(var n in e.url&&(e.url=function(e){return e.replace(/\/$/,"")}(e.url)),t)e[n]&&(r+=t[n][0]+e[n]+t[n][1]+" ");return r.trim()}},1754:(e,t,r)=>{const n=r(857),i=r(4891),s=process.env;let o;function a(e){const t=function(e){if(!1===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;const t=o?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in s))||"codeship"===s.CI_NAME?1:t;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:(s.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?o=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=!0),"FORCE_COLOR"in s&&(o=0===s.FORCE_COLOR.length||0!==parseInt(s.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},5421:(e,t,r)=>{const n=r(857),i=r(2018),s=r(910),{env:o}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(l(e,e&&e.isTTY))},stdout:u(l(!0,i.isatty(1))),stderr:u(l(!0,i.isatty(2)))}},4635:(e,t)=>{t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{t.push(((e,t)=>null!=e?n(e):r(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>r(null,e)),r)}),"name",{value:e.name})}},6756:(e,t,r)=>{const{builtinModules:n}=r(3339);var i=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),s=["node_modules","favicon.ico"];var o=function(e,t){var r={validForNewPackages:0===t.length&&0===e.length,validForOldPackages:0===t.length,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};e.exports=function(e){var t=[],r=[];if(null===e)return r.push("name cannot be null"),o(t,r);if(void 0===e)return r.push("name cannot be undefined"),o(t,r);if("string"!=typeof e)return r.push("name must be a string"),o(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),s.forEach((function(t){e.toLowerCase()===t&&r.push(t+" is a blacklisted name")})),n.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(e)!==e){var a=e.match(i);if(a){var u=a[1],l=a[2];if(encodeURIComponent(u)===u&&encodeURIComponent(l)===l)return o(t,r)}r.push("name can only contain URL-friendly characters")}return o(t,r)}},1905:(e,t,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(6928),s=n?";":":",o=r(9344),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),u=(e,t)=>{const r=t.colon||s,i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?o.split(r):[""];return n&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:o}},l=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:s,pathExtExe:l}=u(e,t),c=[],h=r=>new Promise(((s,o)=>{if(r===n.length)return t.all&&c.length?s(c):o(a(e));const u=n[r],l=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;s(d(p,r,0))})),d=(e,r,n)=>new Promise(((i,a)=>{if(n===s.length)return i(h(r+1));const u=s[n];o(e+u,{pathExt:l},((s,o)=>{if(!s&&o){if(!t.all)return i(e+u);c.push(e+u)}return i(d(e,r,n+1))}))}));return r?h(0).then((e=>r(null,e)),r):h(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=u(e,t),l=[];for(let a=0;a<r.length;a++){const u=r[a],c=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;for(let e=0;e<n.length;e++){const r=d+n[e];try{if(o.sync(r,{pathExt:s})){if(!t.all)return r;l.push(r)}}catch(e){}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw a(e)}},2613:t=>{t.exports=e(import.meta.url)("assert")},5317:t=>{t.exports=e(import.meta.url)("child_process")},9140:t=>{t.exports=e(import.meta.url)("constants")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},3339:t=>{t.exports=e(import.meta.url)("module")},8995:t=>{t.exports=e(import.meta.url)("node:module")},6760:t=>{t.exports=e(import.meta.url)("node:path")},3136:t=>{t.exports=e(import.meta.url)("node:url")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},3480:t=>{t.exports=e(import.meta.url)("querystring")},3785:t=>{t.exports=e(import.meta.url)("readline")},2203:t=>{t.exports=e(import.meta.url)("stream")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3106:t=>{t.exports=e(import.meta.url)("zlib")},9523:(e,t,r)=>{const n=r(738),{resolver:i}=r(776),{Creator:s}=r(7391),{readFile:o,readJson:a,outputFile:u,outputJson:l}=n,c={spaces:2,replacer:null};function h(e){return o(e,{encoding:"utf8"})}function d(e,t){return u(e,t,{encoding:"utf8"})}function p(e,t,{pretty:r=!1}={}){return l(e,t,r?c:void 0)}const f=s({read:h,write:d}),m=s({read:a,write:p}),g=s({read:h,write:p}),b=s({read:a,write:d});e.exports={Creator:s,Json:m,JsonToText:b,Text:f,TextToJson:g,resolver:i,fs:n}},7391:(e,t,r)=>{const{resolver:n,Base:i,logger:s}=r(776);e.exports={Creator:function({read:e,write:t}){return class extends i{constructor(e){super(),e&&(this.root=e)}config(e){return void 0!==e&&(this.option=e),this}source(t,r=this.root){if(!t)throw new Error("path cannot be empty");return this.action=this.action.then((()=>{this.source=n(t,r)})).then((()=>e(this.source))),this}output(e,r=this.root){return this.action=this.action.then((i=>{const s=n(void 0===e?this.source:e,r);if(!s)throw new Error("path cannot be empty");return this.source=s,t(s,i,this.option).then((()=>i))})),this}logger(...e){if(0===e.length)throw new Error("message cannot be empty");return this.action=this.action.then((t=>(s.okay(...e),t)),(t=>{throw s.fail(...e),t})),this}}}}},776:(e,t,r)=>{const{createRequire:n}=r(8995),{isAbsolute:i,resolve:s}=r(6760),{fileURLToPath:o}=r(3136),{green:a,red:u}=r(6181),l=n(`${process.cwd()}/`);function c(e){return e.startsWith("file:")?o(e):e}const h=new class{okay(...e){console.log(a("\u2714"),...e)}fail(...e){console.log(u("\u2718"),...e)}};e.exports={logger:h,resolver:function(e,t=process.cwd()){if(e.startsWith("~"))return l.resolve(e.replace(/^~/,""));const r=c(e);if(i(r))return r;const n=c(t);return s(n,r)},Base:class{constructor(){this.action=Promise.resolve()}onDone(e=e=>e){return this.action=this.action.then((e=>(this.temp=e,e))).then(e),this}onFail(e=()=>this.temp){return this.action=this.action.then((e=>(this.temp=e,e))).catch(e),this}then(e){return this.action.then(e)}catch(e){return this.action.catch(e)}finally(e){return this.action.finally(e)}}}},7256:e=>{e.exports=JSON.parse('{"dots":{"interval":80,"frames":["\u280b","\u2819","\u2839","\u2838","\u283c","\u2834","\u2826","\u2827","\u2807","\u280f"]},"dots2":{"interval":80,"frames":["\u28fe","\u28fd","\u28fb","\u28bf","\u287f","\u28df","\u28ef","\u28f7"]},"dots3":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u281e","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},"dots4":{"interval":80,"frames":["\u2804","\u2806","\u2807","\u280b","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280b","\u2807","\u2806"]},"dots5":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b"]},"dots6":{"interval":80,"frames":["\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281a","\u2819","\u2809","\u2801"]},"dots7":{"interval":80,"frames":["\u2808","\u2809","\u280b","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808"]},"dots8":{"interval":80,"frames":["\u2801","\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808","\u2808"]},"dots9":{"interval":80,"frames":["\u28b9","\u28ba","\u28bc","\u28f8","\u28c7","\u2867","\u2857","\u284f"]},"dots10":{"interval":80,"frames":["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},"dots11":{"interval":100,"frames":["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},"dots12":{"interval":80,"frames":["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280d\u2800","\u288b\u2800","\u284b\u2800","\u280d\u2801","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280d\u2850","\u288b\u2820","\u284b\u2880","\u280d\u2841","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},"dots13":{"interval":80,"frames":["\u28fc","\u28f9","\u28bb","\u283f","\u285f","\u28cf","\u28e7","\u28f6"]},"dots8Bit":{"interval":80,"frames":["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280a","\u280b","\u280c","\u280d","\u280e","\u280f","\u2848","\u2849","\u284a","\u284b","\u284c","\u284d","\u284e","\u284f","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281a","\u281b","\u281c","\u281d","\u281e","\u281f","\u2858","\u2859","\u285a","\u285b","\u285c","\u285d","\u285e","\u285f","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282a","\u282b","\u282c","\u282d","\u282e","\u282f","\u2868","\u2869","\u286a","\u286b","\u286c","\u286d","\u286e","\u286f","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283a","\u283b","\u283c","\u283d","\u283e","\u283f","\u2878","\u2879","\u287a","\u287b","\u287c","\u287d","\u287e","\u287f","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28c0","\u28c1","\u28c2","\u28c3","\u28c4","\u28c5","\u28c6","\u28c7","\u2888","\u2889","\u288a","\u288b","\u288c","\u288d","\u288e","\u288f","\u28c8","\u28c9","\u28ca","\u28cb","\u28cc","\u28cd","\u28ce","\u28cf","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28d0","\u28d1","\u28d2","\u28d3","\u28d4","\u28d5","\u28d6","\u28d7","\u2898","\u2899","\u289a","\u289b","\u289c","\u289d","\u289e","\u289f","\u28d8","\u28d9","\u28da","\u28db","\u28dc","\u28dd","\u28de","\u28df","\u28a0","\u28a1","\u28a2","\u28a3","\u28a4","\u28a5","\u28a6","\u28a7","\u28e0","\u28e1","\u28e2","\u28e3","\u28e4","\u28e5","\u28e6","\u28e7","\u28a8","\u28a9","\u28aa","\u28ab","\u28ac","\u28ad","\u28ae","\u28af","\u28e8","\u28e9","\u28ea","\u28eb","\u28ec","\u28ed","\u28ee","\u28ef","\u28b0","\u28b1","\u28b2","\u28b3","\u28b4","\u28b5","\u28b6","\u28b7","\u28f0","\u28f1","\u28f2","\u28f3","\u28f4","\u28f5","\u28f6","\u28f7","\u28b8","\u28b9","\u28ba","\u28bb","\u28bc","\u28bd","\u28be","\u28bf","\u28f8","\u28f9","\u28fa","\u28fb","\u28fc","\u28fd","\u28fe","\u28ff"]},"sand":{"interval":80,"frames":["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28c0","\u28c1","\u28c2","\u28c4","\u28cc","\u28d4","\u28e4","\u28e5","\u28e6","\u28ee","\u28f6","\u28f7","\u28ff","\u287f","\u283f","\u289f","\u281f","\u285b","\u281b","\u282b","\u288b","\u280b","\u280d","\u2849","\u2809","\u2811","\u2821","\u2881"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["\u2802","-","\u2013","\u2014","\u2013","-"]},"pipe":{"interval":100,"frames":["\u2524","\u2518","\u2534","\u2514","\u251c","\u250c","\u252c","\u2510"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["\u2736","\u2738","\u2739","\u273a","\u2739","\u2737"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["\u2631","\u2632","\u2634"]},"growVertical":{"interval":120,"frames":["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},"growHorizontal":{"interval":120,"frames":["\u258f","\u258e","\u258d","\u258c","\u258b","\u258a","\u2589","\u258a","\u258b","\u258c","\u258d","\u258e"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["\u2593","\u2592","\u2591"]},"bounce":{"interval":120,"frames":["\u2801","\u2802","\u2804","\u2802"]},"boxBounce":{"interval":120,"frames":["\u2596","\u2598","\u259d","\u2597"]},"boxBounce2":{"interval":100,"frames":["\u258c","\u2580","\u2590","\u2584"]},"triangle":{"interval":50,"frames":["\u25e2","\u25e3","\u25e4","\u25e5"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["\u25dc","\u25e0","\u25dd","\u25de","\u25e1","\u25df"]},"circle":{"interval":120,"frames":["\u25e1","\u2299","\u25e0"]},"squareCorners":{"interval":180,"frames":["\u25f0","\u25f3","\u25f2","\u25f1"]},"circleQuarters":{"interval":120,"frames":["\u25f4","\u25f7","\u25f6","\u25f5"]},"circleHalves":{"interval":50,"frames":["\u25d0","\u25d3","\u25d1","\u25d2"]},"squish":{"interval":100,"frames":["\u256b","\u256a"]},"toggle":{"interval":250,"frames":["\u22b6","\u22b7"]},"toggle2":{"interval":80,"frames":["\u25ab","\u25aa"]},"toggle3":{"interval":120,"frames":["\u25a1","\u25a0"]},"toggle4":{"interval":100,"frames":["\u25a0","\u25a1","\u25aa","\u25ab"]},"toggle5":{"interval":100,"frames":["\u25ae","\u25af"]},"toggle6":{"interval":300,"frames":["\u101d","\u1040"]},"toggle7":{"interval":80,"frames":["\u29be","\u29bf"]},"toggle8":{"interval":100,"frames":["\u25cd","\u25cc"]},"toggle9":{"interval":100,"frames":["\u25c9","\u25ce"]},"toggle10":{"interval":100,"frames":["\u3282","\u3280","\u3281"]},"toggle11":{"interval":50,"frames":["\u29c7","\u29c6"]},"toggle12":{"interval":120,"frames":["\u2617","\u2616"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},"arrow2":{"interval":80,"frames":["\u2b06\ufe0f ","\u2197\ufe0f ","\u27a1\ufe0f ","\u2198\ufe0f ","\u2b07\ufe0f ","\u2199\ufe0f ","\u2b05\ufe0f ","\u2196\ufe0f "]},"arrow3":{"interval":120,"frames":["\u25b9\u25b9\u25b9\u25b9\u25b9","\u25b8\u25b9\u25b9\u25b9\u25b9","\u25b9\u25b8\u25b9\u25b9\u25b9","\u25b9\u25b9\u25b8\u25b9\u25b9","\u25b9\u25b9\u25b9\u25b8\u25b9","\u25b9\u25b9\u25b9\u25b9\u25b8"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf)","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","(\u25cf )"]},"smiley":{"interval":200,"frames":["\u{1f604} ","\u{1f61d} "]},"monkey":{"interval":300,"frames":["\u{1f648} ","\u{1f648} ","\u{1f649} ","\u{1f64a} "]},"hearts":{"interval":100,"frames":["\u{1f49b} ","\u{1f499} ","\u{1f49c} ","\u{1f49a} ","\u2764\ufe0f "]},"clock":{"interval":100,"frames":["\u{1f55b} ","\u{1f550} ","\u{1f551} ","\u{1f552} ","\u{1f553} ","\u{1f554} ","\u{1f555} ","\u{1f556} ","\u{1f557} ","\u{1f558} ","\u{1f559} ","\u{1f55a} "]},"earth":{"interval":180,"frames":["\u{1f30d} ","\u{1f30e} ","\u{1f30f} "]},"material":{"interval":17,"frames":["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},"moon":{"interval":80,"frames":["\u{1f311} ","\u{1f312} ","\u{1f313} ","\u{1f314} ","\u{1f315} ","\u{1f316} ","\u{1f317} ","\u{1f318} "]},"runner":{"interval":140,"frames":["\u{1f6b6} ","\u{1f3c3} "]},"pong":{"interval":80,"frames":["\u2590\u2802 \u258c","\u2590\u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802\u258c","\u2590 \u2820\u258c","\u2590 \u2840\u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590\u2820 \u258c"]},"shark":{"interval":120,"frames":["\u2590|\\\\____________\u258c","\u2590_|\\\\___________\u258c","\u2590__|\\\\__________\u258c","\u2590___|\\\\_________\u258c","\u2590____|\\\\________\u258c","\u2590_____|\\\\_______\u258c","\u2590______|\\\\______\u258c","\u2590_______|\\\\_____\u258c","\u2590________|\\\\____\u258c","\u2590_________|\\\\___\u258c","\u2590__________|\\\\__\u258c","\u2590___________|\\\\_\u258c","\u2590____________|\\\\\u258c","\u2590____________/|\u258c","\u2590___________/|_\u258c","\u2590__________/|__\u258c","\u2590_________/|___\u258c","\u2590________/|____\u258c","\u2590_______/|_____\u258c","\u2590______/|______\u258c","\u2590_____/|_______\u258c","\u2590____/|________\u258c","\u2590___/|_________\u258c","\u2590__/|__________\u258c","\u2590_/|___________\u258c","\u2590/|____________\u258c"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["\u2600\ufe0f ","\u2600\ufe0f ","\u2600\ufe0f ","\u{1f324} ","\u26c5\ufe0f ","\u{1f325} ","\u2601\ufe0f ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u26c8 ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u2601\ufe0f ","\u{1f325} ","\u26c5\ufe0f ","\u{1f324} ","\u2600\ufe0f ","\u2600\ufe0f "]},"christmas":{"interval":400,"frames":["\u{1f332}","\u{1f384}"]},"grenade":{"interval":80,"frames":["\u060c ","\u2032 "," \xb4 "," \u203e "," \u2e0c"," \u2e0a"," |"," \u204e"," \u2055"," \u0df4 "," \u2053"," "," "," "]},"point":{"interval":125,"frames":["\u2219\u2219\u2219","\u25cf\u2219\u2219","\u2219\u25cf\u2219","\u2219\u2219\u25cf","\u2219\u2219\u2219"]},"layer":{"interval":150,"frames":["-","=","\u2261"]},"betaWave":{"interval":80,"frames":["\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1"]},"fingerDance":{"interval":160,"frames":["\u{1f918} ","\u{1f91f} ","\u{1f596} ","\u270b ","\u{1f91a} ","\u{1f446} "]},"fistBump":{"interval":80,"frames":["\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u3000\u{1f91c}\u3000\u3000\u{1f91b}\u3000 ","\u3000\u3000\u{1f91c}\u{1f91b}\u3000\u3000 ","\u3000\u{1f91c}\u2728\u{1f91b}\u3000\u3000 ","\u{1f91c}\u3000\u2728\u3000\u{1f91b}\u3000 "]},"soccerHeader":{"interval":80,"frames":[" \u{1f9d1}\u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f\u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} "]},"mindblown":{"interval":160,"frames":["\u{1f610} ","\u{1f610} ","\u{1f62e} ","\u{1f62e} ","\u{1f626} ","\u{1f626} ","\u{1f627} ","\u{1f627} ","\u{1f92f} ","\u{1f4a5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},"speaker":{"interval":160,"frames":["\u{1f508} ","\u{1f509} ","\u{1f50a} ","\u{1f509} "]},"orangePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} "]},"bluePulse":{"interval":100,"frames":["\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"orangeBluePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} ","\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"timeTravel":{"interval":100,"frames":["\u{1f55b} ","\u{1f55a} ","\u{1f559} ","\u{1f558} ","\u{1f557} ","\u{1f556} ","\u{1f555} ","\u{1f554} ","\u{1f553} ","\u{1f552} ","\u{1f551} ","\u{1f550} "]},"aesthetic":{"interval":80,"frames":["\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0","\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1"]},"dwarfFortress":{"interval":80,"frames":[" \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a \u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a \xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a \xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\u2593\xa3 "," \u263a\u2593\xa3 "," \u263a\u2592\xa3 "," \u263a\u2592\xa3 "," \u263a\u2591\xa3 "," \u263a\u2591\xa3 "," \u263a \xa3 "," \u263a\xa3 "," \u263a\xa3 "," \u263a\u2593 "," \u263a\u2593 "," \u263a\u2592 "," \u263a\u2592 "," \u263a\u2591 "," \u263a\u2591 "," \u263a "," \u263a &"," \u263a \u263c&"," \u263a \u263c &"," \u263a\u263c &"," \u263a\u263c & "," \u203c & "," \u263a & "," \u203c & "," \u263a & "," \u203c & "," \u263a & ","\u203c & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xa3 "," & \u2591\xa3 "," & \u2592\xa3 "," & \u2593\xa3 "," & \xa3\xa3 "," & \u2591\xa3\xa3 "," & \u2592\xa3\xa3 ","& \u2593\xa3\xa3 ","& \xa3\xa3\xa3 "," \u2591\xa3\xa3\xa3 "," \u2592\xa3\xa3\xa3 "," \u2593\xa3\xa3\xa3 "," \u2588\xa3\xa3\xa3 "," \u2591\u2588\xa3\xa3\xa3 "," \u2592\u2588\xa3\xa3\xa3 "," \u2593\u2588\xa3\xa3\xa3 "," \u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "]}}')},8360:e=>{e.exports=JSON.parse('{"4":"zh_CHS","1025":"ar_SA","1026":"bg_BG","1027":"ca_ES","1028":"zh_TW","1029":"cs_CZ","1030":"da_DK","1031":"de_DE","1032":"el_GR","1033":"en_US","1034":"es_ES","1035":"fi_FI","1036":"fr_FR","1037":"he_IL","1038":"hu_HU","1039":"is_IS","1040":"it_IT","1041":"ja_JP","1042":"ko_KR","1043":"nl_NL","1044":"nb_NO","1045":"pl_PL","1046":"pt_BR","1047":"rm_CH","1048":"ro_RO","1049":"ru_RU","1050":"hr_HR","1051":"sk_SK","1052":"sq_AL","1053":"sv_SE","1054":"th_TH","1055":"tr_TR","1056":"ur_PK","1057":"id_ID","1058":"uk_UA","1059":"be_BY","1060":"sl_SI","1061":"et_EE","1062":"lv_LV","1063":"lt_LT","1064":"tg_TJ","1065":"fa_IR","1066":"vi_VN","1067":"hy_AM","1069":"eu_ES","1070":"wen_DE","1071":"mk_MK","1074":"tn_ZA","1076":"xh_ZA","1077":"zu_ZA","1078":"af_ZA","1079":"ka_GE","1080":"fo_FO","1081":"hi_IN","1082":"mt_MT","1083":"se_NO","1086":"ms_MY","1087":"kk_KZ","1088":"ky_KG","1089":"sw_KE","1090":"tk_TM","1092":"tt_RU","1093":"bn_IN","1094":"pa_IN","1095":"gu_IN","1096":"or_IN","1097":"ta_IN","1098":"te_IN","1099":"kn_IN","1100":"ml_IN","1101":"as_IN","1102":"mr_IN","1103":"sa_IN","1104":"mn_MN","1105":"bo_CN","1106":"cy_GB","1107":"kh_KH","1108":"lo_LA","1109":"my_MM","1110":"gl_ES","1111":"kok_IN","1114":"syr_SY","1115":"si_LK","1118":"am_ET","1121":"ne_NP","1122":"fy_NL","1123":"ps_AF","1124":"fil_PH","1125":"div_MV","1128":"ha_NG","1130":"yo_NG","1131":"quz_BO","1132":"ns_ZA","1133":"ba_RU","1134":"lb_LU","1135":"kl_GL","1144":"ii_CN","1146":"arn_CL","1148":"moh_CA","1150":"br_FR","1152":"ug_CN","1153":"mi_NZ","1154":"oc_FR","1155":"co_FR","1156":"gsw_FR","1157":"sah_RU","1158":"qut_GT","1159":"rw_RW","1160":"wo_SN","1164":"gbz_AF","2049":"ar_IQ","2052":"zh_CN","2055":"de_CH","2057":"en_GB","2058":"es_MX","2060":"fr_BE","2064":"it_CH","2067":"nl_BE","2068":"nn_NO","2070":"pt_PT","2077":"sv_FI","2080":"ur_IN","2092":"az_AZ","2094":"dsb_DE","2107":"se_SE","2108":"ga_IE","2110":"ms_BN","2115":"uz_UZ","2128":"mn_CN","2129":"bo_BT","2141":"iu_CA","2143":"tmz_DZ","2155":"quz_EC","3073":"ar_EG","3076":"zh_HK","3079":"de_AT","3081":"en_AU","3082":"es_ES","3084":"fr_CA","3098":"sr_SP","3131":"se_FI","3179":"quz_PE","4097":"ar_LY","4100":"zh_SG","4103":"de_LU","4105":"en_CA","4106":"es_GT","4108":"fr_CH","4122":"hr_BA","4155":"smj_NO","5121":"ar_DZ","5124":"zh_MO","5127":"de_LI","5129":"en_NZ","5130":"es_CR","5132":"fr_LU","5179":"smj_SE","6145":"ar_MA","6153":"en_IE","6154":"es_PA","6156":"fr_MC","6203":"sma_NO","7169":"ar_TN","7177":"en_ZA","7178":"es_DO","7194":"sr_BA","7227":"sma_SE","8193":"ar_OM","8201":"en_JA","8202":"es_VE","8218":"bs_BA","8251":"sms_FI","9217":"ar_YE","9225":"en_CB","9226":"es_CO","9275":"smn_FI","10241":"ar_SY","10249":"en_BZ","10250":"es_PE","11265":"ar_JO","11273":"en_TT","11274":"es_AR","12289":"ar_LB","12297":"en_ZW","12298":"es_EC","13313":"ar_KW","13321":"en_PH","13322":"es_CL","14337":"ar_AE","14346":"es_UR","15361":"ar_BH","15370":"es_PY","16385":"ar_QA","16394":"es_BO","17417":"en_MY","17418":"es_SV","18441":"en_IN","18442":"es_HN","19466":"es_NI","20490":"es_PR","21514":"es_US","31748":"zh_CHT"}')}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return t[e](s,s.exports,n),s.loaded=!0,s.exports}n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i=n(9896),s=n(2613);const o={right:function(e,t){e=e.trim();const r=l.stringWidth(e);if(r<t)return" ".repeat(t-r)+e;return e},center:function(e,t){e=e.trim();const r=l.stringWidth(e);if(r>=t)return e;return" ".repeat(t-r>>1)+e}};class a{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let r=0;return t.forEach((e=>{e.length>1&&l.stringWidth(e[0])>r&&(r=Math.min(Math.floor(.5*this.width),l.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,n)=>({text:t.trim(),padding:this.measurePadding(t),width:0===n&&e.length>1?r:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=l.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((r,n)=>{let i="";r.forEach(((r,s)=>{const{width:a}=e[s],c=this.negatePadding(e[s]);let h=r;if(c>l.stringWidth(r)&&(h+=" ".repeat(c-l.stringWidth(r))),e[s].align&&"left"!==e[s].align&&this.wrap){h=(0,o[e[s].align])(h,c),l.stringWidth(h)<c&&(h+=" ".repeat((a||0)-l.stringWidth(h)-1))}const d=e[s].padding||[0,0,0,0];d[3]&&(i+=" ".repeat(d[3])),i+=u(e[s],h,"| "),i+=h,i+=u(e[s],h," |"),d[1]&&(i+=" ".repeat(d[1])),0===n&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))})),t.push({text:i.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const r=e.match(/^ */),n=r?r[0].length:0,i=t.text,s=l.stringWidth(i.trimRight());return t.span?this.wrap?n<s?e:(t.hidden=!0,i.trimRight()+" ".repeat(n-s)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){const t=[],r=this.columnWidths(e);let n;return e.forEach(((e,i)=>{e.width=r[i],n=this.wrap?l.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(n.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),n.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(n.unshift(...new Array(e.padding[0]||0).fill("")),n.push(...new Array(e.padding[2]||0).fill(""))),n.forEach(((e,r)=>{t[r]||t.push([]);const n=t[r];for(let e=0;e<i;e++)void 0===n[e]&&n.push("");n.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||l.stringWidth(e.text)));let t=e.length,r=this.width;const n=e.map((e=>{if(e.width)return t--,r-=e.width,e.width})),i=t?Math.floor(r/t):0;return n.map(((t,r)=>void 0===t?Math.max(i,function(e){const t=e.padding||[],r=1+(t[3]||0)+(t[1]||0);if(e.border)return r+4;return r}(e[r])):t))}}function u(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?r:" ":""}let l;const c=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function h(e){return e.replace(c,"")}function d(e,t){const[r,n]=e.match(c)||["",""];e=h(e);let i="";for(let r=0;r<e.length;r++)0!==r&&r%t==0&&(i+="\n"),i+=e.charAt(r);return r&&n&&(i=`${r}${i}${n}`),i}var p=n(6928);var f,m=n(9023),g=n(7016);function b(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",r=!1;const n=e.match(/^-+/);for(let i=n?n[0].length:0;i<e.length;i++){let n=e.charAt(i);r&&(r=!1,n=n.toUpperCase()),0===i||"-"!==n&&"_"!==n?"-"!==n&&"_"!==n&&(t+=n):r=!0}return t}}function y(e,t){const r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){const s=r.charAt(i),o=e.charAt(i);n+=s!==o&&i>0?`${t}${r.charAt(i)}`:o}return n}function D(e){return null!=e&&("number"==typeof e||(!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)))}let w;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(f||(f={}));function v(e){return void 0!==e?e+1:1}function E(e){return"__proto__"===e?"___proto___":e}var F,C,S;const x=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,O=null!==(C=null===(F=null===process||void 0===process?void 0:process.versions)||void 0===F?void 0:F.node)&&void 0!==C?C:null===(S=null===process||void 0===process?void 0:process.version)||void 0===S?void 0:S.slice(1);if(O){if(Number(O.match(/^([^.]+)/)[1])<x)throw Error(`yargs parser supports a minimum Node.js version of ${x}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}const _=process?process.env:{},A=new class{constructor(e){w=e}parse(e,t){const r=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),n=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,r=null,n=null,i=null;const s=[];for(let o=0;o<e.length;o++)r=n,n=e.charAt(o)," "!==n||i?(n===i?i=null:"'"!==n&&'"'!==n||i||(i=n),s[t]||(s[t]=""),s[t]+=n):" "!==r&&t++;return s}(e),i="string"==typeof e,s=function(e){const t=[],r=Object.create(null);let n=!0;Object.keys(e).forEach((function(r){t.push([].concat(e[r],r))}));for(;n;){n=!1;for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){if(t[e].filter((function(e){return-1!==t[r].indexOf(e)})).length){t[e]=t[e].concat(t[r]),t.splice(r,1),n=!0;break}}}return t.forEach((function(e){e=e.filter((function(e,t,r){return r.indexOf(e)===t}));const t=e.pop();void 0!==t&&"string"==typeof t&&(r[t]=e)})),r}(Object.assign(Object.create(null),r.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},r.configuration),a=Object.assign(Object.create(null),r.default),u=r.configObjects||[],l=r.envPrefix,c=o["populate--"],h=c?"--":"_",d=Object.create(null),p=Object.create(null),m=r.__||w.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},F=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,C=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,r=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();r&&(g[r][t]=!0),g.arrays[t]=!0,g.keys.push(t)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(e){g.bools[e]=!0,g.keys.push(e)})),[].concat(r.string||[]).filter(Boolean).forEach((function(e){g.strings[e]=!0,g.keys.push(e)})),[].concat(r.number||[]).filter(Boolean).forEach((function(e){g.numbers[e]=!0,g.keys.push(e)})),[].concat(r.count||[]).filter(Boolean).forEach((function(e){g.counts[e]=!0,g.keys.push(e)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(e){g.normalize[e]=!0,g.keys.push(e)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([e,t])=>{"number"==typeof t&&(g.nargs[e]=t,g.keys.push(e))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([e,t])=>{"function"==typeof t&&(g.coercions[e]=t,g.keys.push(e))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(e){g.configs[e]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(g.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){g.aliases[e]||(g.aliases[e]=[].concat(s[e]||[]),g.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&o["camel-case-expansion"]){const r=b(t);r!==e&&-1===g.aliases[e].indexOf(r)&&(g.aliases[e].push(r),d[r]=!0)}})),g.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&o["camel-case-expansion"]){const r=y(t,"-");r!==e&&-1===g.aliases[e].indexOf(r)&&(g.aliases[e].push(r),d[r]=!0)}})),g.aliases[e].forEach((function(t){g.aliases[t]=[e].concat(g.aliases[e].filter((function(e){return t!==e})))})))}))}))}(r.key,s,r.default,g.arrays),Object.keys(a).forEach((function(e){(g.aliases[e]||[]).forEach((function(t){a[t]=a[e]}))}));let S=null;Object.keys(g.counts).find((e=>U(e,g.arrays)?(S=Error(m("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!U(e,g.nargs)&&(S=Error(m("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let x=[];const O=Object.assign(Object.create(null),{_:[]}),_={};for(let e=0;e<n.length;e++){const t=n[e],r=t.replace(/^-{3,}/,"---");let i,s,a,u,l,c;if("--"!==t&&/^-/.test(t)&&G(t))A(t);else{if(r.match(/^---+(=|$)/)){A(t);continue}if(t.match(/^--.+=/)||!o["short-option-groups"]&&t.match(/^-.+=/))u=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&(U(u[1],g.arrays)?e=M(e,u[1],n,u[2]):!1!==U(u[1],g.nargs)?e=T(e,u[1],n,u[2]):I(u[1],u[2],!0));else if(t.match(C)&&o["boolean-negation"])u=t.match(C),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],I(s,!!U(s,g.arrays)&&[!1]));else if(t.match(/^--.+/)||!o["short-option-groups"]&&t.match(/^-[^-]+/))u=t.match(/^--?(.+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],U(s,g.arrays)?e=M(e,s,n):!1!==U(s,g.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||l.match(/^-/)&&!l.match(F)||U(s,g.bools)||U(s,g.counts)?/^(true|false)$/.test(l)?(I(s,l),e++):I(s,H(s)):(I(s,l),e++)));else if(t.match(/^-.\..+=/))u=t.match(/^-([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&I(u[1],u[2]);else if(t.match(/^-.\..+/)&&!t.match(F))l=n[e+1],u=t.match(/^-(.\..+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],void 0===l||l.match(/^-/)||U(s,g.bools)||U(s,g.counts)?I(s,H(s)):(I(s,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(F)){a=t.slice(1,-1).split(""),i=!1;for(let r=0;r<a.length;r++){if(l=t.slice(r+2),a[r+1]&&"="===a[r+1]){c=t.slice(r+3),s=a[r],U(s,g.arrays)?e=M(e,s,n,c):!1!==U(s,g.nargs)?e=T(e,s,n,c):I(s,c),i=!0;break}if("-"!==l){if(/[A-Za-z]/.test(a[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===U(l,g.bools)){I(a[r],l),i=!0;break}if(a[r+1]&&a[r+1].match(/\W/)){I(a[r],l),i=!0;break}I(a[r],H(a[r]))}else I(a[r],l)}s=t.slice(-1)[0],i||"-"===s||(U(s,g.arrays)?e=M(e,s,n):!1!==U(s,g.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(F)||U(s,g.bools)||U(s,g.counts)?/^(true|false)$/.test(l)?(I(s,l),e++):I(s,H(s)):(I(s,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(F)&&U(t.slice(1),g.bools))s=t.slice(1),I(s,H(s));else{if("--"===t){x=n.slice(e+1);break}if(o["halt-at-non-option"]){x=n.slice(e);break}A(t)}}}function A(e){const t=B("_",e);"string"!=typeof t&&"number"!=typeof t||O._.push(t)}function T(e,t,r,n){let i,s=U(t,g.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return z(n)||(S=Error(m("Argument unexpected for: %s",t))),I(t,H(t)),e;let a=z(n)?0:1;if(o["nargs-eats-options"])r.length-(e+1)+a<s&&(S=Error(m("Not enough arguments following: %s",t))),a=s;else{for(i=e+1;i<r.length&&(!r[i].match(/^-[^0-9]/)||r[i].match(F)||G(r[i]));i++)a++;a<s&&(S=Error(m("Not enough arguments following: %s",t)))}let u=Math.min(a,s);for(!z(n)&&u>0&&(I(t,n),u--),i=e+1;i<u+e+1;i++)I(t,r[i]);return e+u}function M(e,t,r,n){let s=[],u=n||r[e+1];const l=U(t,g.nargs);if(U(t,g.bools)&&!/^(true|false)$/.test(u))s.push(!0);else if(z(u)||z(n)&&/^-/.test(u)&&!F.test(u)&&!G(u)){if(void 0!==a[t]){const e=a[t];s=Array.isArray(e)?e:[e]}}else{z(n)||s.push(j(t,n,!0));for(let n=e+1;n<r.length&&!(!o["greedy-arrays"]&&s.length>0||l&&"number"==typeof l&&s.length>=l)&&(u=r[n],!/^-/.test(u)||F.test(u)||G(u));n++)e=n,s.push(j(t,u,i))}return"number"==typeof l&&(l&&s.length<l||isNaN(l)&&0===s.length)&&(S=Error(m("Not enough arguments following: %s",t))),I(t,s),e}function I(e,t,r=i){if(/-/.test(e)&&o["camel-case-expansion"]){const t=e.split(".").map((function(e){return b(e)})).join(".");k(e,t)}const n=j(e,t,r),s=e.split(".");if(L(O,s,n),g.aliases[e]&&g.aliases[e].forEach((function(e){const t=e.split(".");L(O,t,n)})),s.length>1&&o["dot-notation"]&&(g.aliases[s[0]]||[]).forEach((function(t){let r=t.split(".");const i=[].concat(s);i.shift(),r=r.concat(i),(g.aliases[e]||[]).includes(r.join("."))||L(O,r,n)})),U(e,g.normalize)&&!U(e,g.arrays)){[e].concat(g.aliases[e]||[]).forEach((function(e){Object.defineProperty(_,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?w.normalize(e):e}})}))}}function k(e,t){g.aliases[e]&&g.aliases[e].length||(g.aliases[e]=[t],d[t]=!0),g.aliases[t]&&g.aliases[t].length||k(t,e)}function j(e,t,r){r&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(U(e,g.bools)||U(e,g.counts))&&"string"==typeof t&&(t="true"===t);let n=Array.isArray(t)?t.map((function(t){return B(e,t)})):B(e,t);return U(e,g.counts)&&(z(n)||"boolean"==typeof n)&&(n=v()),U(e,g.normalize)&&U(e,g.arrays)&&(n=Array.isArray(t)?t.map((e=>w.normalize(e))):w.normalize(t)),n}function B(e,t){if(!o["parse-positional-numbers"]&&"_"===e)return t;if(!U(e,g.strings)&&!U(e,g.bools)&&!Array.isArray(t)){(D(t)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!z(t)&&U(e,g.numbers))&&(t=Number(t))}return t}function P(e,t){Object.keys(e).forEach((function(r){const n=e[r],i=t?t+"."+r:r;"object"==typeof n&&null!==n&&!Array.isArray(n)&&o["dot-notation"]?P(n,i):(!N(O,i.split("."))||U(i,g.arrays)&&o["combine-arrays"])&&I(i,n)}))}function R(e,t){if(void 0===l)return;const r="string"==typeof l?l:"",n=w.env();Object.keys(n).forEach((function(i){if(""===r||0===i.lastIndexOf(r,0)){const s=i.split("__").map((function(e,t){return 0===t&&(e=e.substring(r.length)),b(e)}));(t&&g.configs[s.join(".")]||!t)&&!N(e,s)&&I(s.join("."),n[i])}}))}function $(e,t,r,n=!1){Object.keys(r).forEach((function(i){N(e,i.split("."))||(L(e,i.split("."),r[i]),n&&(p[i]=!0),(t[i]||[]).forEach((function(t){N(e,t.split("."))||L(e,t.split("."),r[i])})))}))}function N(e,t){let r=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){r=r[e]||{}}));const n=t[t.length-1];return"object"==typeof r&&n in r}function L(e,t,r){let n=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=E(e),"object"==typeof n&&void 0===n[e]&&(n[e]={}),"object"!=typeof n[e]||Array.isArray(n[e])?(Array.isArray(n[e])?n[e].push({}):n[e]=[n[e],{}],n=n[e][n[e].length-1]):n=n[e]}));const i=E(t[t.length-1]),s=U(t.join("."),g.arrays),a=Array.isArray(r);let u=o["duplicate-arguments-array"];!u&&U(i,g.nargs)&&(u=!0,(!z(n[i])&&1===g.nargs[i]||Array.isArray(n[i])&&n[i].length===g.nargs[i])&&(n[i]=void 0)),r===v()?n[i]=v(n[i]):Array.isArray(n[i])?u&&s&&a?n[i]=o["flatten-duplicate-arrays"]?n[i].concat(r):(Array.isArray(n[i][0])?n[i]:[n[i]]).concat([r]):u||Boolean(s)!==Boolean(a)?n[i]=n[i].concat([r]):n[i]=r:void 0===n[i]&&s?n[i]=a?r:[r]:!u||void 0===n[i]||U(i,g.counts)||U(i,g.bools)?n[i]=r:n[i]=[n[i],r]}function U(e,t){const r=[].concat(g.aliases[e]||[],e),n=Object.keys(t),i=r.find((e=>n.includes(e)));return!!i&&t[i]}function W(e){const t=Object.keys(g);return[].concat(t.map((e=>g[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function G(e){return o["unknown-options-as-args"]&&function(e){if(e=e.replace(/^-{3,}/,"--"),e.match(F))return!1;if(function(e){if(e.match(F)||!e.match(/^-[^-]+/))return!1;let t,r=!0;const n=e.slice(1).split("");for(let i=0;i<n.length;i++){if(t=e.slice(i+2),!W(n[i])){r=!1;break}if(n[i+1]&&"="===n[i+1]||"-"===t||/[A-Za-z]/.test(n[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||n[i+1]&&n[i+1].match(/\W/))break}return r}(e))return!1;return!function(e,...t){return[].concat(...t).some((function(t){const r=e.match(t);return r&&W(r[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,C,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}(e)}function H(e){return U(e,g.bools)||U(e,g.counts)||!(`${e}`in a)?(t=function(e){let t=f.BOOLEAN;return U(e,g.strings)?t=f.STRING:U(e,g.numbers)?t=f.NUMBER:U(e,g.bools)?t=f.BOOLEAN:U(e,g.arrays)&&(t=f.ARRAY),t}(e),{[f.BOOLEAN]:!0,[f.STRING]:"",[f.NUMBER]:void 0,[f.ARRAY]:[]}[t]):a[e];var t}function z(e){return void 0===e}return R(O,!0),R(O,!1),function(e){const t=Object.create(null);$(t,g.aliases,a),Object.keys(g.configs).forEach((function(r){const n=e[r]||t[r];if(n)try{let e=null;const t=w.resolve(w.cwd(),n),i=g.configs[r];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(S=e)}else e=w.require(t);P(e)}catch(t){"PermissionDenied"===t.name?S=t:e[r]&&(S=Error(m("Invalid JSON config file: %s",n)))}}))}(O),void 0!==u&&u.forEach((function(e){P(e)})),$(O,g.aliases,a,!0),function(e){let t;const r=new Set;Object.keys(e).forEach((function(n){if(!r.has(n)&&(t=U(n,g.coercions),"function"==typeof t))try{const i=B(n,t(e[n]));[].concat(g.aliases[n]||[],n).forEach((t=>{r.add(t),e[t]=i}))}catch(e){S=e}}))}(O),o["set-placeholder-key"]&&function(e){g.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(O),Object.keys(g.counts).forEach((function(e){N(O,e.split("."))||I(e,0)})),c&&x.length&&(O[h]=[]),x.forEach((function(e){O[h].push(e)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(O).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete O[e]})),o["strip-aliased"]&&[].concat(...Object.keys(s).map((e=>s[e]))).forEach((e=>{o["camel-case-expansion"]&&e.includes("-")&&delete O[e.split(".").map((e=>b(e))).join(".")],delete O[e]})),{aliases:Object.assign({},g.aliases),argv:Object.assign(_,O),configuration:o,defaulted:Object.assign({},p),error:S,newAliases:Object.assign({},d)}}}({cwd:process.cwd,env:()=>_,format:m.format,normalize:p.normalize,resolve:p.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,i.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),T=function(e,t){return A.parse(e.slice(),t).argv};T.detailed=function(e,t){return A.parse(e.slice(),t)},T.camelCase=b,T.decamelize=y,T.looksLikeNumber=D;const M=T;function I(){return process.versions.electron&&!process.defaultApp?0:1}class k extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,k)}}const j={fs:{readFileSync:i.readFileSync,writeFile:i.writeFile},format:m.format,resolve:p.resolve,exists:e=>{try{return(0,i.statSync)(e).isFile()}catch(e){return!1}}};let B;class P{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let r=function(){};return"function"==typeof e[e.length-1]&&(r=e.pop()),r=r||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:r})):r(),B.format.apply(B.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),r=e.shift(),n=e.shift();let i=function(){};"function"==typeof e[e.length-1]&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let s=1===n?t:r;if(this.cache[this.locale][t]){s=this.cache[this.locale][t][1===n?"one":"other"]}!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const o=[s];return~s.indexOf("%d")&&o.push(n),B.format.apply(B.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let r="";return e.forEach((function(e,n){const i=t[n+1];r+=e,void 0!==i&&(r+="%s")})),this.__.apply(this,[r].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],r=t.directory,n=t.locale,i=t.cb,s=this._resolveLocaleFile(r,n),o=JSON.stringify(this.cache[n],null,2);B.fs.writeFile(s,o,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{B.fs.readFileSync&&(e=JSON.parse(B.fs.readFileSync(t,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+t),"ENOENT"!==r.code)throw r;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let r=B.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~t.lastIndexOf("_")){const n=B.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(n)&&(r=n)}return r}_fileExistsSync(e){return B.exists(e)}}const R=e=>function(e,t){B=t;const r=new P(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}(e,j),$="loading a directory of commands is not supported yet for ESM";let N;try{N=(0,g.fileURLToPath)(import.meta.url)}catch(e){N=process.cwd()}const L=N.substring(0,N.lastIndexOf("node_modules")),U={assert:{notStrictEqual:s.notStrictEqual,strictEqual:s.strictEqual},cliui:function(e){return function(e,t){return l=t,new a({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:e=>[...e].length,stripAnsi:h,wrap:d})},findUp:function(e,t){let r,n=(0,p.resolve)(".",e);for((0,i.statSync)(n).isDirectory()||(n=(0,p.dirname)(n));;){if(r=t(n,(0,i.readdirSync)(n)),r)return(0,p.resolve)(n,r);if(n=(0,p.dirname)(r=n),r===n)break}},getEnv:e=>process.env[e],inspect:m.inspect,getCallerFile:()=>{throw new k($)},getProcessArgvBin:function(){return process.argv[I()]},mainFilename:L||process.cwd(),Parser:M,path:{basename:p.basename,dirname:p.dirname,extname:p.extname,relative:p.relative,resolve:p.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:i.readFileSync,require:()=>{throw new k("require is not supported by ESM")},requireDirectory:()=>{throw new k($)},stringWidth:e=>[...e].length,y18n:R({directory:(0,p.resolve)(N,"../../../locales"),updateFiles:!1})};function W(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function G(e,t){t.assert.strictEqual(typeof e,"string")}function H(e){return Object.keys(e)}function z(e){return!!e&&!!e.then&&"function"==typeof e.then}function V(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,n=t.shift();if(!n)throw new Error(`No command found in: ${e}`);const i={cmd:n.replace(r,""),demanded:[],optional:[]};return t.forEach(((e,n)=>{let s=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&n===t.length-1&&(s=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(r,"").split("|"),variadic:s}):i.demanded.push({cmd:e.replace(r,"").split("|"),variadic:s})})),i}const q=["first","second","third","fourth","fifth","sixth"];function Y(e,t,r){try{let n=0;const[i,s,o]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[V(`cmd ${e}`),t,r],a=[].slice.call(s);for(;a.length&&void 0===a[a.length-1];)a.pop();const u=o||a.length;if(u<i.demanded.length)throw new k(`Not enough arguments provided. Expected ${i.demanded.length} but received ${a.length}.`);const l=i.demanded.length+i.optional.length;if(u>l)throw new k(`Too many arguments provided. Expected max ${l} but received ${u}.`);i.demanded.forEach((e=>{const t=K(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&J(t,e.cmd,n),n+=1})),i.optional.forEach((e=>{if(0===a.length)return;const t=K(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&J(t,e.cmd,n),n+=1}))}catch(e){console.warn(e.stack)}}function K(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function J(e,t,r){throw new k(`Invalid ${q[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}class Z{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,r=!0,n=!1){if(Y("<array|function> [boolean] [boolean] [boolean]",[e,t,r],arguments.length),Array.isArray(e)){for(let n=0;n<e.length;n++){if("function"!=typeof e[n])throw Error("middleware must be a function");const i=e[n];i.applyBeforeValidation=t,i.global=r}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const i=e;i.applyBeforeValidation=t,i.global=r,i.mutates=n,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const n=[...r[t]||[],t];return!e.option||!n.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function Q(e,t,r,n){return r.reduce(((e,r)=>{if(r.applyBeforeValidation!==n)return e;if(r.mutates){if(r.applied)return e;r.applied=!0}if(z(e))return e.then((e=>Promise.all([e,r(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const n=r(e,t);return z(n)?n.then((t=>Object.assign(e,t))):Object.assign(e,n)}}),e)}function X(e,t,r=e=>{throw e}){try{const r="function"==typeof e?e():e;return z(r)?r.then((e=>t(e))):t(r)}catch(e){return r(e)}}const ee=/(^\*)|(^\$0)/;class te{constructor(e,t,r,n){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=n,this.usage=e,this.globalMiddleware=r,this.validation=t}addDirectory(e,t,r,n){"boolean"!=typeof(n=n||{}).recurse&&(n.recurse=!1),Array.isArray(n.extensions)||(n.extensions=["js"]);const i="function"==typeof n.visit?n.visit:e=>e;n.visit=(e,t,r)=>{const n=i(e,t,r);if(n){if(this.requireCache.has(t))return n;this.requireCache.add(t),this.addHandler(n)}return n},this.shim.requireDirectory({require:t,filename:r},e,n)}addHandler(e,t,r,n,i,s){let o=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(i);if(n=n||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...o]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(re(r))return void this.addHandler([e].concat(o),t,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof e){const i=V(e);o=o.map((e=>V(e).cmd));let u=!1;const l=[i.cmd].concat(o).filter((e=>!ee.test(e)||(u=!0,!1)));0===l.length&&u&&l.push("$0"),u&&(i.cmd=l[0],o=l.slice(1),e=e.replace(ee,i.cmd)),o.forEach((e=>{this.aliasMap[e]=i.cmd})),!1!==t&&this.usage.command(e,t,u,o,s),this.handlers[i.cmd]={original:e,description:t,handler:n,builder:r||{},middlewares:a,deprecated:s,demanded:i.demanded,optional:i.optional},u&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,r,n,i,s){const o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),u=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(o.original));const c=this.applyBuilderUpdateUsageAndParse(l,o,t,r.aliases,u,n,i,s);return z(c)?c.then((e=>this.applyMiddlewareAndGetResult(l,o,e.innerArgv,a,i,e.aliases,t))):this.applyMiddlewareAndGetResult(l,o,c.innerArgv,a,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,r,n,i,s,o,a){const u=t.builder;let l=r;if(ne(u)){r.getInternalMethods().getUsageInstance().freeze();const c=u(r.getInternalMethods().reset(n),a);if(z(c))return c.then((n=>{var a;return l=(a=n)&&"function"==typeof a.getInternalMethods?n:r,this.parseAndUpdateUsage(e,t,l,i,s,o)}))}else(function(e){return"object"==typeof e})(u)&&(r.getInternalMethods().getUsageInstance().freeze(),l=r.getInternalMethods().reset(n),Object.keys(t.builder).forEach((e=>{l.option(e,u[e])})));return this.parseAndUpdateUsage(e,t,l,i,s,o)}parseAndUpdateUsage(e,t,r,n,i,s){e&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n,t),t.description);const o=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return z(o)?o.then((e=>({aliases:r.parsed.aliases,innerArgv:e}))):{aliases:r.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const r=ee.test(t.original)?t.original.replace(ee,"").trim():t.original,n=e.filter((e=>!ee.test(e)));return n.push(r),`$0 ${n.join(" ")}`}handleValidationAndGetResult(e,t,r,n,i,s,o,a){if(!s.getInternalMethods().getHasOutput()){const t=s.getInternalMethods().runValidation(i,a,s.parsed.error,e);r=X(r,(e=>(t(e),e)))}if(t.handler&&!s.getInternalMethods().getHasOutput()){s.getInternalMethods().setHasOutput();const n=!!s.getOptions().configuration["populate--"];s.getInternalMethods().postProcess(r,n,!1,!1),r=X(r=Q(r,s,o,!1),(e=>{const r=t.handler(e);return z(r)?r.then((()=>e)):e})),e||s.getInternalMethods().getUsageInstance().cacheHelpMessage(),z(r)&&!s.getInternalMethods().hasParseCallback()&&r.catch((e=>{try{s.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(n.commands.pop(),n.fullCommands.pop()),r}applyMiddlewareAndGetResult(e,t,r,n,i,s,o){let a={};if(i)return r;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,r,n,o));const u=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=Q(r,o,u,!0);return z(l)?l.then((r=>this.handleValidationAndGetResult(e,t,r,n,s,o,u,a))):this.handleValidationAndGetResult(e,t,l,n,s,o,u,a)}populatePositionals(e,t,r,n){t._=t._.slice(r.commands.length);const i=e.demanded.slice(0),s=e.optional.slice(0),o={};for(this.validation.positionalCount(i.length,t._.length);i.length;){const e=i.shift();this.populatePositional(e,t,o)}for(;s.length;){const e=s.shift();this.populatePositional(e,t,o)}return t._=r.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),n),o}populatePositional(e,t,r){const n=e.cmd[0];e.variadic?r[n]=t._.splice(0).map(String):t._.length&&(r[n]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},r=V(e);return r.demanded.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n,t.demand[r]=!0})),r.optional.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n})),t}postProcessPositionals(e,t,r,n){const i=Object.assign({},n.getOptions());i.default=Object.assign(r.default,i.default);for(const e of Object.keys(r.alias))i.alias[e]=(i.alias[e]||[]).concat(r.alias[e]);i.array=i.array.concat(r.array),i.config={};const s=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),s.push(`--${e}`),s.push(t)}))})),!s.length)return;const o=Object.assign({},i.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(s,Object.assign({},i,{configuration:o}));if(a.error)n.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const r=Object.keys(t);Object.keys(t).forEach((e=>{r.push(...a.aliases[e])})),Object.keys(a.argv).forEach((i=>{r.includes(i)&&(t[i]||(t[i]=a.argv[i]),!this.isInConfigs(n,i)&&!this.isDefaulted(n,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(a.argv,i)&&(Array.isArray(e[i])||Array.isArray(a.argv[i]))?e[i]=[].concat(e[i],a.argv[i]):e[i]=a.argv[i])}))}}isDefaulted(e,t){const{default:r}=e.getOptions();return Object.prototype.hasOwnProperty.call(r,t)||Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:r}=e.getOptions();return r.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||r.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=ee.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(ne(t))return t(e,!0);re(t)||Object.keys(t).forEach((r=>{e.option(r,t[r])}))}moduleName(e){const t=function(e){if("undefined"==typeof require)return null;for(let t,r=0,n=Object.keys(require.cache);r<n.length;r++)if(t=require.cache[n[r]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:r}){for(const n of[e,t,r]){if("string"==typeof n||!1===n)return n;W(n,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();W(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function re(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function ne(e){return"function"==typeof e}function ie(e={},t=()=>!0){const r={};return H(e).forEach((n=>{t(n,e[n])&&(r[n]=e[n])})),r}function se(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const r=t;r._handle&&r.isTTY&&"function"==typeof r._handle.setBlocking&&r._handle.setBlocking(e)}))}function oe(e){return"boolean"==typeof e}function ae(e,t){const r=t.y18n.__,n={},i=[];n.failFn=function(e){i.push(e)};let s=null,o=null,a=!0;n.showHelpOnFail=function(t=!0,r){const[i,u]="string"==typeof t?[!0,t]:[t,r];return e.getInternalMethods().isGlobalContext()&&(o=u),s=u,a=i,n};let u=!1;n.fail=function(t,r){const l=e.getInternalMethods().getLoggerInstance();if(!i.length){if(e.getExitProcess()&&se(!0),!u){u=!0,a&&(e.showHelp("error"),l.error()),(t||r)&&l.error(t||r);const n=s||o;n&&((t||r)&&l.error(""),l.error(n))}if(r=r||new k(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,r);throw r}for(let e=i.length-1;e>=0;--e){const s=i[e];if(oe(s)){if(r)throw r;if(t)throw Error(t)}else s(t,r,n)}};let l=[],c=!1;n.usage=(e,t)=>null===e?(c=!0,l=[],n):(c=!1,l.push([e,t||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let h=[];n.example=(e,t)=>{h.push([e,t||""])};let d=[];n.command=function(e,t,r,n,i=!1){r&&(d=d.map((e=>(e[2]=!1,e)))),d.push([e,t||"",r,n,i])},n.getCommands=()=>d;let p={};n.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{n.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{n.describe(t,e[t])})):p[e]=t},n.getDescriptions=()=>p;let f=[];n.epilog=e=>{f.push(e)};let m,g=!1;n.wrap=e=>{g=!0,m=e},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=function(){const e=80;return t.process.stdColumns?Math.min(e,t.process.stdColumns):e}(),g=!0),m);const b="__yargsString__:";function y(e,r,n){let i=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{i=Math.max(t.stringWidth(n?`${n} ${ce(e[0])}`:ce(e[0]))+le(e[0]),i)})),r&&(i=Math.min(i,parseInt((.5*r).toString(),10))),i}let D;function w(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function v(e,t){let n=`[${r("default:")} `;if(void 0===e&&!t)return null;if(t)n+=t;else switch(typeof e){case"string":n+=`"${e}"`;break;case"object":n+=JSON.stringify(e);break;default:n+=e}return`${n}]`}n.deferY18nLookup=e=>b+e,n.help=function(){if(D)return D;!function(){const t=e.getDemandedOptions(),r=e.getOptions();(Object.keys(r.alias)||[]).forEach((i=>{r.alias[i].forEach((s=>{p[s]&&n.describe(i,p[s]),s in t&&e.demandOption(i,t[s]),r.boolean.includes(s)&&e.boolean(i),r.count.includes(s)&&e.count(i),r.string.includes(s)&&e.string(i),r.normalize.includes(s)&&e.normalize(i),r.array.includes(s)&&e.array(i),r.number.includes(s)&&e.number(i)}))}))}();const i=e.customScriptName?e.$0:t.path.basename(e.$0),s=e.getDemandedOptions(),o=e.getDemandedCommands(),a=e.getDeprecatedOptions(),u=e.getGroups(),m=e.getOptions();let g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(s)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(m.default)),g=g.filter(w),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const E=n.getWrap(),F=t.cliui({width:E,wrap:!!E});if(!c)if(l.length)l.forEach((e=>{F.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&F.div({text:`${e[1]}`,padding:[1,0,0,0]})})),F.div();else if(d.length){let e=null;e=o._?`${i} <${r("command")}>\n`:`${i} [${r("command")}]\n`,F.div(`${e}`)}if(d.length>1||1===d.length&&!d[0][2]){F.div(r("Commands:"));const t=e.getInternalMethods().getContext(),n=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((e,t)=>e[0].localeCompare(t[0]))));const s=i?`${i} `:"";d.forEach((e=>{const t=`${s}${n}${e[0].replace(/^\$0 ?/,"")}`;F.span({text:t,padding:[0,2,0,2],width:y(d,E,`${i}${n}`)+4},{text:e[1]});const o=[];e[2]&&o.push(`[${r("default")}]`),e[3]&&e[3].length&&o.push(`[${r("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?o.push(`[${r("deprecated: %s",e[4])}]`):o.push(`[${r("deprecated")}]`)),o.length?F.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):F.div()})),F.div()}const C=(Object.keys(m.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&C.every((e=>-1===(m.alias[e]||[]).indexOf(t)))));const S=r("Options:");u[S]||(u[S]=[]),function(e,t,r,n){let i=[],s=null;Object.keys(r).forEach((e=>{i=i.concat(r[e])})),e.forEach((e=>{s=[e].concat(t[e]),s.some((e=>-1!==i.indexOf(e)))||r[n].push(e)}))}(g,m.alias,u,S);const x=e=>/^--/.test(ce(e)),O=Object.keys(u).filter((e=>u[e].length>0)).map((e=>{const t=u[e].filter(w).map((e=>{if(C.includes(e))return e;for(let t,r=0;void 0!==(t=C[r]);r++)if((m.alias[t]||[]).includes(e))return t;return e}));return{groupName:e,normalizedKeys:t}})).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const r=t.reduce(((t,r)=>(t[r]=[r].concat(m.alias[r]||[]).map((t=>e===n.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?m.boolean.includes(r)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>x(e)===x(t)?0:x(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:r}}));if(O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>x(t[e])))))&&O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var r,n;x(t[e])&&(t[e]=(r=t[e],n=4,ue(r)?{text:r.text,indentation:r.indentation+n}:{text:r,indentation:n}))}))})),O.forEach((({groupName:t,normalizedKeys:i,switches:o})=>{F.div(t),i.forEach((t=>{const i=o[t];let u=p[t]||"",l=null;u.includes(b)&&(u=r(u.substring(16))),m.boolean.includes(t)&&(l=`[${r("boolean")}]`),m.count.includes(t)&&(l=`[${r("count")}]`),m.string.includes(t)&&(l=`[${r("string")}]`),m.normalize.includes(t)&&(l=`[${r("string")}]`),m.array.includes(t)&&(l=`[${r("array")}]`),m.number.includes(t)&&(l=`[${r("number")}]`);const c=[t in a?(h=a[t],"string"==typeof h?`[${r("deprecated: %s",h)}]`:`[${r("deprecated")}]`):null,l,t in s?`[${r("required")}]`:null,m.choices&&m.choices[t]?`[${r("choices:")} ${n.stringifiedValues(m.choices[t])}]`:null,v(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var h;F.span({text:ce(i),padding:[0,2,0,2+le(i)],width:y(o,E)+4},u);const d=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];c&&!d?F.div({text:c,padding:[0,0,0,2],align:"right"}):F.div()})),F.div()})),h.length&&(F.div(r("Examples:")),h.forEach((e=>{e[0]=e[0].replace(/\$0/g,i)})),h.forEach((e=>{""===e[1]?F.div({text:e[0],padding:[0,2,0,2]}):F.div({text:e[0],padding:[0,2,0,2],width:y(h,E)+4},{text:e[1]})})),F.div()),f.length>0){const e=f.map((e=>e.replace(/\$0/g,i))).join("\n");F.div(`${e}\n`)}return F.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){D=this.help()},n.clearCachedHelpMessage=function(){D=void 0},n.hasCachedHelpMessage=function(){return!!D},n.showHelp=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error");("function"==typeof t?t:r[t])(n.help())},n.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(e,t){let r="";const n=t||", ",i=[].concat(e);return e&&i.length?(i.forEach((e=>{r.length&&(r+=n),r+=JSON.stringify(e)})),r):r};let E=null;n.version=e=>{E=e},n.showVersion=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error");("function"==typeof t?t:r[t])(E)},n.reset=function(e){return s=null,u=!1,l=[],c=!1,f=[],h=[],d=[],p=ie(p,(t=>!e[t])),n};const F=[];return n.freeze=function(){F.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:d,descriptions:p})},n.unfreeze=function(e=!1){const t=F.pop();t&&(e?(p={...t.descriptions,...p},d=[...t.commands,...d],l=[...t.usages,...l],h=[...t.examples,...h],f=[...t.epilogs,...f]):({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:d,descriptions:p}=t))},n}function ue(e){return"object"==typeof e}function le(e){return ue(e)?e.indentation:0}function ce(e){return ue(e)?e.text:e}class he{constructor(e,t,r,n){var i,s,o;this.yargs=e,this.usage=t,this.command=r,this.shim=n,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(i=this.shim.getEnv("SHELL"))||void 0===i?void 0:i.includes("zsh"))||(null===(s=this.shim.getEnv("ZSH_NAME"))||void 0===s?void 0:s.includes("zsh")))&&void 0!==o&&o}defaultCompletion(e,t,r,n){const i=this.command.getCommandHandlers();for(let t=0,r=e.length;t<r;++t)if(i[e[t]]&&i[e[t]].builder){const r=i[e[t]].builder;if(ne(r)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return r(e,!0),e.argv}}const s=[];this.commandCompletions(s,e,r),this.optionCompletions(s,e,t,r),this.choicesFromOptionsCompletions(s,e,t,r),this.choicesFromPositionalsCompletions(s,e,t,r),n(null,s)}commandCompletions(e,t,r){const n=this.yargs.getInternalMethods().getContext().commands;r.match(/^-/)||n[n.length-1]===r||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((r=>{const n=V(r[0]).cmd;if(-1===t.indexOf(n))if(this.zshShell){const t=r[1]||"";e.push(n.replace(/:/g,"\\:")+":"+t)}else e.push(n)}))}optionCompletions(e,t,r,n){if((n.match(/^-/)||""===n&&0===e.length)&&!this.previousArgHasChoices(t)){const r=this.yargs.getOptions(),i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(r.key).forEach((s=>{const o=!!r.configuration["boolean-negation"]&&r.boolean.includes(s);i.includes(s)||r.hiddenOptions.includes(s)||this.argsContainKey(t,s,o)||this.completeOptionKey(s,e,n,o&&!!r.default[s])}))}}choicesFromOptionsCompletions(e,t,r,n){if(this.previousArgHasChoices(t)){const r=this.getPreviousArgChoices(t);r&&r.length>0&&e.push(...r.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,r,n){if(""===n&&e.length>0&&this.previousArgHasChoices(t))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],s=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=i[r._.length-s-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const t of a)t.startsWith(n)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],r="";if(!t.startsWith("-")&&e.length>1&&(r=t,t=e[e.length-2]),!t.startsWith("-"))return;const n=t.replace(/^-+/,""),i=this.yargs.getOptions(),s=[n,...this.yargs.getAliases()[n]||[]];let o;for(const e of s)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){o=i.choices[e];break}return o?o.filter((e=>!r||e.startsWith(r))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,r){const n=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(n(t))return!0;if(r&&n(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(n(e))return!0;return!1}completeOptionKey(e,t,r,n){var i,s,o,a;let u=e;if(this.zshShell){const t=this.usage.getDescriptions(),r=null===(s=null===(i=null==this?void 0:this.aliases)||void 0===i?void 0:i[e])||void 0===s?void 0:s.find((e=>{const r=t[e];return"string"==typeof r&&r.length>0})),n=r?t[r]:void 0,l=null!==(a=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==a?a:"";u=`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(r)&&(e=>/^[^0-9]$/.test(e))(e)?"-":"--";t.push(l+u),n&&t.push(l+"no-"+u)}customCompletion(e,t,r,n){if(W(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(r,t);return z(e)?e.then((e=>{this.shim.process.nextTick((()=>{n(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{n(e,void 0)}))})):n(null,e)}return function(e){return e.length>3}(this.customCompletionFunction)?this.customCompletionFunction(r,t,((i=n)=>this.defaultCompletion(e,t,r,i)),(e=>{n(null,e)})):this.customCompletionFunction(r,t,(e=>{n(null,e)}))}getCompletion(e,t){const r=e.length?e[e.length-1]:"",n=this.yargs.parse(e,!0),i=this.customCompletionFunction?n=>this.customCompletion(e,n,r,t):n=>this.defaultCompletion(e,n,r,t);return z(n)?n.then(i):i(n)}generateCompletionScript(e,t){let r=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const n=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),r=r.replace(/{{app_name}}/g,n),r=r.replace(/{{completion_command}}/g,t),r.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function de(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const r=[];let n,i;for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}const pe=["$0","--","_"];let fe,me=[];function ge(e,t,r,n){fe=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return i;const n=/\.json|\..*rc$/.test(e.extends);let s=null;if(n)s=function(e,t){return fe.path.resolve(e,t)}(t,e.extends);else try{s=require.resolve(e.extends)}catch(t){return e}!function(e){if(me.indexOf(e)>-1)throw new k(`Circular extended configurations: '${e}'.`)}(s),me.push(s),i=n?JSON.parse(fe.readFileSync(s,"utf8")):require(e.extends),delete e.extends,i=ge(i,fe.path.dirname(s),r,fe)}return me=[],r?be(i,e):Object.assign({},i,e)}function be(e,t){const r={};function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(r,e);for(const i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=be(e[i],t[i]):r[i]=t[i];return r}var ye,De,we,ve,Ee,Fe,Ce,Se,xe,Oe,_e,Ae,Te,Me,Ie,ke,je,Be,Pe,Re,$e,Ne,Le,Ue,We,Ge,He,ze,Ve,qe,Ye,Ke,Je,Ze,Qe,Xe=function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},et=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const tt=Symbol("copyDoubleDash"),rt=Symbol("copyDoubleDash"),nt=Symbol("deleteFromParserHintObject"),it=Symbol("emitWarning"),st=Symbol("freeze"),ot=Symbol("getDollarZero"),at=Symbol("getParserConfiguration"),ut=Symbol("getUsageConfiguration"),lt=Symbol("guessLocale"),ct=Symbol("guessVersion"),ht=Symbol("parsePositionalNumbers"),dt=Symbol("pkgUp"),pt=Symbol("populateParserHintArray"),ft=Symbol("populateParserHintSingleValueDictionary"),mt=Symbol("populateParserHintArrayDictionary"),gt=Symbol("populateParserHintDictionary"),bt=Symbol("sanitizeKey"),yt=Symbol("setKey"),Dt=Symbol("unfreeze"),wt=Symbol("validateAsync"),vt=Symbol("getCommandInstance"),Et=Symbol("getContext"),Ft=Symbol("getHasOutput"),Ct=Symbol("getLoggerInstance"),St=Symbol("getParseContext"),xt=Symbol("getUsageInstance"),Ot=Symbol("getValidationInstance"),_t=Symbol("hasParseCallback"),At=Symbol("isGlobalContext"),Tt=Symbol("postProcess"),Mt=Symbol("rebase"),It=Symbol("reset"),kt=Symbol("runYargsParserAndExecuteCommands"),jt=Symbol("runValidation"),Bt=Symbol("setHasOutput"),Pt=Symbol("kTrackManuallySetKeys");class Rt{constructor(e=[],t,r,n){this.customScriptName=!1,this.parsed=!1,ye.set(this,void 0),De.set(this,void 0),we.set(this,{commands:[],fullCommands:[]}),ve.set(this,null),Ee.set(this,null),Fe.set(this,"show-hidden"),Ce.set(this,null),Se.set(this,!0),xe.set(this,{}),Oe.set(this,!0),_e.set(this,[]),Ae.set(this,void 0),Te.set(this,{}),Me.set(this,!1),Ie.set(this,null),ke.set(this,!0),je.set(this,void 0),Be.set(this,""),Pe.set(this,void 0),Re.set(this,void 0),$e.set(this,{}),Ne.set(this,null),Le.set(this,null),Ue.set(this,{}),We.set(this,{}),Ge.set(this,void 0),He.set(this,!1),ze.set(this,void 0),Ve.set(this,!1),qe.set(this,!1),Ye.set(this,!1),Ke.set(this,void 0),Je.set(this,{}),Ze.set(this,null),Qe.set(this,void 0),Xe(this,ze,n,"f"),Xe(this,Ge,e,"f"),Xe(this,De,t,"f"),Xe(this,Re,r,"f"),Xe(this,Ae,new Z(this),"f"),this.$0=this[ot](),this[It](),Xe(this,ye,et(this,ye,"f"),"f"),Xe(this,Ke,et(this,Ke,"f"),"f"),Xe(this,Qe,et(this,Qe,"f"),"f"),Xe(this,Pe,et(this,Pe,"f"),"f"),et(this,Pe,"f").showHiddenOpt=et(this,Fe,"f"),Xe(this,je,this[rt](),"f")}addHelpOpt(e,t){return Y("[string|boolean] [string]",[e,t],arguments.length),et(this,Ie,"f")&&(this[nt](et(this,Ie,"f")),Xe(this,Ie,null,"f")),!1===e&&void 0===t||(Xe(this,Ie,"string"==typeof e?e:"help","f"),this.boolean(et(this,Ie,"f")),this.describe(et(this,Ie,"f"),t||et(this,Ke,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(Y("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const r="string"==typeof e?e:et(this,Fe,"f");return this.boolean(r),this.describe(r,t||et(this,Ke,"f").deferY18nLookup("Show hidden options")),et(this,Pe,"f").showHiddenOpt=r,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return Y("<object|string|array> [string|array]",[e,t],arguments.length),this[mt](this.alias.bind(this),"alias",e,t),this}array(e){return Y("<array|string>",[e],arguments.length),this[pt]("array",e),this[Pt](e),this}boolean(e){return Y("<array|string>",[e],arguments.length),this[pt]("boolean",e),this[Pt](e),this}check(e,t){return Y("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,r)=>X((()=>e(t,r.getOptions())),(r=>(r?("string"==typeof r||r instanceof Error)&&et(this,Ke,"f").fail(r.toString(),r):et(this,Ke,"f").fail(et(this,ze,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(et(this,Ke,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return Y("<object|string|array> [string|array]",[e,t],arguments.length),this[mt](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(Y("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new k("coerce callback must be provided");for(const r of e)this.coerce(r,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new k("coerce callback must be provided");return et(this,Pe,"f").key[e]=!0,et(this,Ae,"f").addCoerceMiddleware(((r,n)=>{let i;return Object.prototype.hasOwnProperty.call(r,e)?X((()=>(i=n.getAliases(),t(r[e]))),(t=>{r[e]=t;const s=n.getInternalMethods().getParserConfiguration()["strip-aliased"];if(i[e]&&!0!==s)for(const n of i[e])r[n]=t;return r}),(e=>{throw new k(e.message)})):r}),e),this}conflicts(e,t){return Y("<string|object> [string|array]",[e,t],arguments.length),et(this,Qe,"f").conflicts(e,t),this}config(e="config",t,r){return Y("[object|string] [string|function] [function]",[e,t,r],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(r=t,t=void 0),this.describe(e,t||et(this,Ke,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{et(this,Pe,"f").config[e]=r||!0})),this):(e=ge(e,et(this,De,"f"),this[at]()["deep-merge-config"]||!1,et(this,ze,"f")),et(this,Pe,"f").configObjects=(et(this,Pe,"f").configObjects||[]).concat(e),this)}completion(e,t,r){return Y("[string] [string|boolean|function] [function]",[e,t,r],arguments.length),"function"==typeof t&&(r=t,t=void 0),Xe(this,Ee,e||et(this,Ee,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(et(this,Ee,"f"),t),r&&et(this,ve,"f").registerFunction(r),this}command(e,t,r,n,i,s){return Y("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,r,n,i,s],arguments.length),et(this,ye,"f").addHandler(e,t,r,n,i,s),this}commands(e,t,r,n,i,s){return this.command(e,t,r,n,i,s)}commandDir(e,t){Y("<string> [object]",[e,t],arguments.length);const r=et(this,Re,"f")||et(this,ze,"f").require;return et(this,ye,"f").addDirectory(e,r,et(this,ze,"f").getCallerFile(),t),this}count(e){return Y("<array|string>",[e],arguments.length),this[pt]("count",e),this[Pt](e),this}default(e,t,r){return Y("<object|string|array> [*] [string]",[e,t,r],arguments.length),r&&(G(e,et(this,ze,"f")),et(this,Pe,"f").defaultDescription[e]=r),"function"==typeof t&&(G(e,et(this,ze,"f")),et(this,Pe,"f").defaultDescription[e]||(et(this,Pe,"f").defaultDescription[e]=et(this,Ke,"f").functionDescription(t)),t=t.call()),this[ft](this.default.bind(this),"default",e,t),this}defaults(e,t,r){return this.default(e,t,r)}demandCommand(e=1,t,r,n){return Y("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,r,n],arguments.length),"number"!=typeof t&&(r=t,t=1/0),this.global("_",!1),et(this,Pe,"f").demandedCommands._={min:e,max:t,minMsg:r,maxMsg:n},this}demand(e,t,r){return Array.isArray(t)?(t.forEach((e=>{W(r,!0,et(this,ze,"f")),this.demandOption(e,r)})),t=1/0):"number"!=typeof t&&(r=t,t=1/0),"number"==typeof e?(W(r,!0,et(this,ze,"f")),this.demandCommand(e,t,r,r)):Array.isArray(e)?e.forEach((e=>{W(r,!0,et(this,ze,"f")),this.demandOption(e,r)})):"string"==typeof r?this.demandOption(e,r):!0!==r&&void 0!==r||this.demandOption(e),this}demandOption(e,t){return Y("<object|string|array> [string]",[e,t],arguments.length),this[ft](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return Y("<string> [string|boolean]",[e,t],arguments.length),et(this,Pe,"f").deprecatedOptions[e]=t,this}describe(e,t){return Y("<object|string|array> [string]",[e,t],arguments.length),this[yt](e,!0),et(this,Ke,"f").describe(e,t),this}detectLocale(e){return Y("<boolean>",[e],arguments.length),Xe(this,Se,e,"f"),this}env(e){return Y("[string|boolean]",[e],arguments.length),!1===e?delete et(this,Pe,"f").envPrefix:et(this,Pe,"f").envPrefix=e||"",this}epilogue(e){return Y("<string>",[e],arguments.length),et(this,Ke,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return Y("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):et(this,Ke,"f").example(e,t),this}exit(e,t){Xe(this,Me,!0,"f"),Xe(this,Ce,t,"f"),et(this,Oe,"f")&&et(this,ze,"f").process.exit(e)}exitProcess(e=!0){return Y("[boolean]",[e],arguments.length),Xe(this,Oe,e,"f"),this}fail(e){if(Y("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new k("Invalid first argument. Expected function or boolean 'false'");return et(this,Ke,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return Y("<array> [function]",[e,t],arguments.length),t?et(this,ve,"f").getCompletion(e,t):new Promise(((t,r)=>{et(this,ve,"f").getCompletion(e,((e,n)=>{e?r(e):t(n)}))}))}getDemandedOptions(){return Y([],0),et(this,Pe,"f").demandedOptions}getDemandedCommands(){return Y([],0),et(this,Pe,"f").demandedCommands}getDeprecatedOptions(){return Y([],0),et(this,Pe,"f").deprecatedOptions}getDetectLocale(){return et(this,Se,"f")}getExitProcess(){return et(this,Oe,"f")}getGroups(){return Object.assign({},et(this,Te,"f"),et(this,We,"f"))}getHelp(){if(Xe(this,Me,!0,"f"),!et(this,Ke,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[kt](et(this,Ge,"f"),void 0,void 0,0,!0);if(z(e))return e.then((()=>et(this,Ke,"f").help()))}const e=et(this,ye,"f").runDefaultBuilderOn(this);if(z(e))return e.then((()=>et(this,Ke,"f").help()))}return Promise.resolve(et(this,Ke,"f").help())}getOptions(){return et(this,Pe,"f")}getStrict(){return et(this,Ve,"f")}getStrictCommands(){return et(this,qe,"f")}getStrictOptions(){return et(this,Ye,"f")}global(e,t){return Y("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?et(this,Pe,"f").local=et(this,Pe,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{et(this,Pe,"f").local.includes(e)||et(this,Pe,"f").local.push(e)})),this}group(e,t){Y("<string|array> <string>",[e,t],arguments.length);const r=et(this,We,"f")[t]||et(this,Te,"f")[t];et(this,We,"f")[t]&&delete et(this,We,"f")[t];const n={};return et(this,Te,"f")[t]=(r||[]).concat(e).filter((e=>!n[e]&&(n[e]=!0))),this}hide(e){return Y("<string>",[e],arguments.length),et(this,Pe,"f").hiddenOptions.push(e),this}implies(e,t){return Y("<string|object> [number|string|array]",[e,t],arguments.length),et(this,Qe,"f").implies(e,t),this}locale(e){return Y("[string]",[e],arguments.length),void 0===e?(this[lt](),et(this,ze,"f").y18n.getLocale()):(Xe(this,Se,!1,"f"),et(this,ze,"f").y18n.setLocale(e),this)}middleware(e,t,r){return et(this,Ae,"f").addMiddleware(e,!!t,r)}nargs(e,t){return Y("<string|object|array> [number]",[e,t],arguments.length),this[ft](this.nargs.bind(this),"narg",e,t),this}normalize(e){return Y("<array|string>",[e],arguments.length),this[pt]("normalize",e),this}number(e){return Y("<array|string>",[e],arguments.length),this[pt]("number",e),this[Pt](e),this}option(e,t){if(Y("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[Pt](e),!et(this,Ze,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[it](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),et(this,Pe,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const r=t.deprecate||t.deprecated;r&&this.deprecateOption(e,r);const n=t.demand||t.required||t.require;n&&this.demand(e,n),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(et(this,Pe,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const i=t.describe||t.description||t.desc,s=et(this,Ke,"f").getDescriptions();Object.prototype.hasOwnProperty.call(s,e)&&"string"!=typeof i||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,r){Y("[string|array] [function|boolean|object] [function]",[e,t,r],arguments.length),this[st](),void 0===e&&(e=et(this,Ge,"f")),"object"==typeof t&&(Xe(this,Le,t,"f"),t=r),"function"==typeof t&&(Xe(this,Ne,t,"f"),t=!1),t||Xe(this,Ge,e,"f"),et(this,Ne,"f")&&Xe(this,Oe,!1,"f");const n=this[kt](e,!!t),i=this.parsed;return et(this,ve,"f").setParsed(this.parsed),z(n)?n.then((e=>(et(this,Ne,"f")&&et(this,Ne,"f").call(this,et(this,Ce,"f"),e,et(this,Be,"f")),e))).catch((e=>{throw et(this,Ne,"f")&&et(this,Ne,"f")(e,this.parsed.argv,et(this,Be,"f")),e})).finally((()=>{this[Dt](),this.parsed=i})):(et(this,Ne,"f")&&et(this,Ne,"f").call(this,et(this,Ce,"f"),n,et(this,Be,"f")),this[Dt](),this.parsed=i,n)}parseAsync(e,t,r){const n=this.parse(e,t,r);return z(n)?n:Promise.resolve(n)}parseSync(e,t,r){const n=this.parse(e,t,r);if(z(n))throw new k(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(e){return Y("<object>",[e],arguments.length),Xe(this,$e,e,"f"),this}pkgConf(e,t){Y("<string> [string]",[e,t],arguments.length);let r=null;const n=this[dt](t||et(this,De,"f"));return n[e]&&"object"==typeof n[e]&&(r=ge(n[e],t||et(this,De,"f"),this[at]()["deep-merge-config"]||!1,et(this,ze,"f")),et(this,Pe,"f").configObjects=(et(this,Pe,"f").configObjects||[]).concat(r)),this}positional(e,t){Y("<string> <object>",[e,t],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=ie(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&r.includes(e)));const n=et(this,we,"f").fullCommands[et(this,we,"f").fullCommands.length-1],i=n?et(this,ye,"f").cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};return H(i).forEach((r=>{const n=i[r];Array.isArray(n)?-1!==n.indexOf(e)&&(t[r]=!0):n[e]&&!(r in t)&&(t[r]=n[e])})),this.group(e,et(this,Ke,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return Y("[boolean]",[e],arguments.length),Xe(this,He,e,"f"),this}required(e,t,r){return this.demand(e,t,r)}require(e,t,r){return this.demand(e,t,r)}requiresArg(e){return Y("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&et(this,Pe,"f").narg[e]||this[ft](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return Y("[string] [string]",[e,t],arguments.length),e=e||this.$0,et(this,je,"f").log(et(this,ve,"f").generateCompletionScript(e,t||et(this,Ee,"f")||"completion")),this}showHelp(e){if(Y("[string|function]",[e],arguments.length),Xe(this,Me,!0,"f"),!et(this,Ke,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[kt](et(this,Ge,"f"),void 0,void 0,0,!0);if(z(t))return t.then((()=>{et(this,Ke,"f").showHelp(e)})),this}const t=et(this,ye,"f").runDefaultBuilderOn(this);if(z(t))return t.then((()=>{et(this,Ke,"f").showHelp(e)})),this}return et(this,Ke,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return Y("[boolean|string] [string]",[e,t],arguments.length),et(this,Ke,"f").showHelpOnFail(e,t),this}showVersion(e){return Y("[string|function]",[e],arguments.length),et(this,Ke,"f").showVersion(e),this}skipValidation(e){return Y("<array|string>",[e],arguments.length),this[pt]("skipValidation",e),this}strict(e){return Y("[boolean]",[e],arguments.length),Xe(this,Ve,!1!==e,"f"),this}strictCommands(e){return Y("[boolean]",[e],arguments.length),Xe(this,qe,!1!==e,"f"),this}strictOptions(e){return Y("[boolean]",[e],arguments.length),Xe(this,Ye,!1!==e,"f"),this}string(e){return Y("<array|string>",[e],arguments.length),this[pt]("string",e),this[Pt](e),this}terminalWidth(){return Y([],0),et(this,ze,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return Y("<object>",[e],arguments.length),Xe(this,Se,!1,"f"),et(this,ze,"f").y18n.updateLocale(e),this}usage(e,t,r,n){if(Y("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,r,n],arguments.length),void 0!==t){if(W(e,null,et(this,ze,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,r,n);throw new k(".usage() description must start with $0 if being used as alias for .command()")}return et(this,Ke,"f").usage(e),this}usageConfiguration(e){return Y("<object>",[e],arguments.length),Xe(this,Je,e,"f"),this}version(e,t,r){const n="version";if(Y("[boolean|string] [string] [string]",[e,t,r],arguments.length),et(this,Ze,"f")&&(this[nt](et(this,Ze,"f")),et(this,Ke,"f").version(void 0),Xe(this,Ze,null,"f")),0===arguments.length)r=this[ct](),e=n;else if(1===arguments.length){if(!1===e)return this;r=e,e=n}else 2===arguments.length&&(r=t,t=void 0);return Xe(this,Ze,"string"==typeof e?e:n,"f"),t=t||et(this,Ke,"f").deferY18nLookup("Show version number"),et(this,Ke,"f").version(r||void 0),this.boolean(et(this,Ze,"f")),this.describe(et(this,Ze,"f"),t),this}wrap(e){return Y("<number|null|undefined>",[e],arguments.length),et(this,Ke,"f").wrap(e),this}[(ye=new WeakMap,De=new WeakMap,we=new WeakMap,ve=new WeakMap,Ee=new WeakMap,Fe=new WeakMap,Ce=new WeakMap,Se=new WeakMap,xe=new WeakMap,Oe=new WeakMap,_e=new WeakMap,Ae=new WeakMap,Te=new WeakMap,Me=new WeakMap,Ie=new WeakMap,ke=new WeakMap,je=new WeakMap,Be=new WeakMap,Pe=new WeakMap,Re=new WeakMap,$e=new WeakMap,Ne=new WeakMap,Le=new WeakMap,Ue=new WeakMap,We=new WeakMap,Ge=new WeakMap,He=new WeakMap,ze=new WeakMap,Ve=new WeakMap,qe=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Je=new WeakMap,Ze=new WeakMap,Qe=new WeakMap,tt)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[rt](){return{log:(...e)=>{this[_t]()||console.log(...e),Xe(this,Me,!0,"f"),et(this,Be,"f").length&&Xe(this,Be,et(this,Be,"f")+"\n","f"),Xe(this,Be,et(this,Be,"f")+e.join(" "),"f")},error:(...e)=>{this[_t]()||console.error(...e),Xe(this,Me,!0,"f"),et(this,Be,"f").length&&Xe(this,Be,et(this,Be,"f")+"\n","f"),Xe(this,Be,et(this,Be,"f")+e.join(" "),"f")}}}[nt](e){H(et(this,Pe,"f")).forEach((t=>{if("configObjects"===t)return;const r=et(this,Pe,"f")[t];Array.isArray(r)?r.includes(e)&&r.splice(r.indexOf(e),1):"object"==typeof r&&delete r[e]})),delete et(this,Ke,"f").getDescriptions()[e]}[it](e,t,r){et(this,xe,"f")[r]||(et(this,ze,"f").process.emitWarning(e,t),et(this,xe,"f")[r]=!0)}[st](){et(this,_e,"f").push({options:et(this,Pe,"f"),configObjects:et(this,Pe,"f").configObjects.slice(0),exitProcess:et(this,Oe,"f"),groups:et(this,Te,"f"),strict:et(this,Ve,"f"),strictCommands:et(this,qe,"f"),strictOptions:et(this,Ye,"f"),completionCommand:et(this,Ee,"f"),output:et(this,Be,"f"),exitError:et(this,Ce,"f"),hasOutput:et(this,Me,"f"),parsed:this.parsed,parseFn:et(this,Ne,"f"),parseContext:et(this,Le,"f")}),et(this,Ke,"f").freeze(),et(this,Qe,"f").freeze(),et(this,ye,"f").freeze(),et(this,Ae,"f").freeze()}[ot](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(et(this,ze,"f").process.argv()[0])?et(this,ze,"f").process.argv().slice(1,2):et(this,ze,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[Mt](et(this,De,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),et(this,ze,"f").getEnv("_")&&et(this,ze,"f").getProcessArgvBin()===et(this,ze,"f").getEnv("_")&&(t=et(this,ze,"f").getEnv("_").replace(`${et(this,ze,"f").path.dirname(et(this,ze,"f").process.execPath())}/`,"")),t}[at](){return et(this,$e,"f")}[ut](){return et(this,Je,"f")}[lt](){if(!et(this,Se,"f"))return;const e=et(this,ze,"f").getEnv("LC_ALL")||et(this,ze,"f").getEnv("LC_MESSAGES")||et(this,ze,"f").getEnv("LANG")||et(this,ze,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[ct](){return this[dt]().version||"unknown"}[ht](e){const t=e["--"]?e["--"]:e._;for(let e,r=0;void 0!==(e=t[r]);r++)et(this,ze,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[r]=Number(e));return e}[dt](e){const t=e||"*";if(et(this,Ue,"f")[t])return et(this,Ue,"f")[t];let r={};try{let t=e||et(this,ze,"f").mainFilename;!e&&et(this,ze,"f").path.extname(t)&&(t=et(this,ze,"f").path.dirname(t));const n=et(this,ze,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));W(n,void 0,et(this,ze,"f")),r=JSON.parse(et(this,ze,"f").readFileSync(n,"utf8"))}catch(e){}return et(this,Ue,"f")[t]=r||{},et(this,Ue,"f")[t]}[pt](e,t){(t=[].concat(t)).forEach((t=>{t=this[bt](t),et(this,Pe,"f")[e].push(t)}))}[ft](e,t,r,n){this[gt](e,t,r,n,((e,t,r)=>{et(this,Pe,"f")[e][t]=r}))}[mt](e,t,r,n){this[gt](e,t,r,n,((e,t,r)=>{et(this,Pe,"f")[e][t]=(et(this,Pe,"f")[e][t]||[]).concat(r)}))}[gt](e,t,r,n,i){if(Array.isArray(r))r.forEach((t=>{e(t,n)}));else if((e=>"object"==typeof e)(r))for(const t of H(r))e(t,r[t]);else i(t,this[bt](r),n)}[bt](e){return"__proto__"===e?"___proto___":e}[yt](e,t){return this[ft](this[yt].bind(this),"key",e,t),this}[Dt](){var e,t,r,n,i,s,o,a,u,l,c,h;const d=et(this,_e,"f").pop();let p;W(d,void 0,et(this,ze,"f")),e=this,t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,l=this,c=this,h=this,({options:{set value(t){Xe(e,Pe,t,"f")}}.value,configObjects:p,exitProcess:{set value(e){Xe(t,Oe,e,"f")}}.value,groups:{set value(e){Xe(r,Te,e,"f")}}.value,output:{set value(e){Xe(n,Be,e,"f")}}.value,exitError:{set value(e){Xe(i,Ce,e,"f")}}.value,hasOutput:{set value(e){Xe(s,Me,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){Xe(o,Ve,e,"f")}}.value,strictCommands:{set value(e){Xe(a,qe,e,"f")}}.value,strictOptions:{set value(e){Xe(u,Ye,e,"f")}}.value,completionCommand:{set value(e){Xe(l,Ee,e,"f")}}.value,parseFn:{set value(e){Xe(c,Ne,e,"f")}}.value,parseContext:{set value(e){Xe(h,Le,e,"f")}}.value}=d),et(this,Pe,"f").configObjects=p,et(this,Ke,"f").unfreeze(),et(this,Qe,"f").unfreeze(),et(this,ye,"f").unfreeze(),et(this,Ae,"f").unfreeze()}[wt](e,t){return X(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[vt].bind(this),getContext:this[Et].bind(this),getHasOutput:this[Ft].bind(this),getLoggerInstance:this[Ct].bind(this),getParseContext:this[St].bind(this),getParserConfiguration:this[at].bind(this),getUsageConfiguration:this[ut].bind(this),getUsageInstance:this[xt].bind(this),getValidationInstance:this[Ot].bind(this),hasParseCallback:this[_t].bind(this),isGlobalContext:this[At].bind(this),postProcess:this[Tt].bind(this),reset:this[It].bind(this),runValidation:this[jt].bind(this),runYargsParserAndExecuteCommands:this[kt].bind(this),setHasOutput:this[Bt].bind(this)}}[vt](){return et(this,ye,"f")}[Et](){return et(this,we,"f")}[Ft](){return et(this,Me,"f")}[Ct](){return et(this,je,"f")}[St](){return et(this,Le,"f")||{}}[xt](){return et(this,Ke,"f")}[Ot](){return et(this,Qe,"f")}[_t](){return!!et(this,Ne,"f")}[At](){return et(this,ke,"f")}[Tt](e,t,r,n){if(r)return e;if(z(e))return e;t||(e=this[tt](e));return(this[at]()["parse-positional-numbers"]||void 0===this[at]()["parse-positional-numbers"])&&(e=this[ht](e)),n&&(e=Q(e,this,et(this,Ae,"f").getMiddleware(),!1)),e}[It](e={}){Xe(this,Pe,et(this,Pe,"f")||{},"f");const t={};t.local=et(this,Pe,"f").local||[],t.configObjects=et(this,Pe,"f").configObjects||[];const r={};t.local.forEach((t=>{r[t]=!0,(e[t]||[]).forEach((e=>{r[e]=!0}))})),Object.assign(et(this,We,"f"),Object.keys(et(this,Te,"f")).reduce(((e,t)=>{const n=et(this,Te,"f")[t].filter((e=>!(e in r)));return n.length>0&&(e[t]=n),e}),{})),Xe(this,Te,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(et(this,Pe,"f")[e]||[]).filter((e=>!r[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=ie(et(this,Pe,"f")[e],(e=>!r[e]))})),t.envPrefix=et(this,Pe,"f").envPrefix,Xe(this,Pe,t,"f"),Xe(this,Ke,et(this,Ke,"f")?et(this,Ke,"f").reset(r):ae(this,et(this,ze,"f")),"f"),Xe(this,Qe,et(this,Qe,"f")?et(this,Qe,"f").reset(r):function(e,t,r){const n=r.y18n.__,i=r.y18n.__n,s={nonOptionCount:function(r){const n=e.getDemandedCommands(),s=r._.length+(r["--"]?r["--"].length:0)-e.getInternalMethods().getContext().commands.length;n._&&(s<n._.min||s>n._.max)&&(s<n._.min?void 0!==n._.minMsg?t.fail(n._.minMsg?n._.minMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",s,s.toString(),n._.min.toString())):s>n._.max&&(void 0!==n._.maxMsg?t.fail(n._.maxMsg?n._.maxMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",s,s.toString(),n._.max.toString()))))},positionalCount:function(e,r){r<e&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",r,r+"",e+""))},requiredArguments:function(e,r){let n=null;for(const t of Object.keys(r))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(n=n||{},n[t]=r[t]);if(n){const e=[];for(const t of Object.keys(n)){const r=n[t];r&&e.indexOf(r)<0&&e.push(r)}const r=e.length?`\n${e.join("\n")}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(n).length,Object.keys(n).join(", ")+r))}},unknownArguments:function(r,n,o,a,u=!0){var l;const c=e.getInternalMethods().getCommandInstance().getCommands(),h=[],d=e.getInternalMethods().getContext();if(Object.keys(r).forEach((t=>{pe.includes(t)||Object.prototype.hasOwnProperty.call(o,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||s.isValidAndSomeAliasIsNotNew(t,n)||h.push(t)})),u&&(d.commands.length>0||c.length>0||a)&&r._.slice(d.commands.length).forEach((e=>{c.includes(""+e)||h.push(""+e)})),u){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,n=d.commands.length+t;n<r._.length&&r._.slice(n).forEach((e=>{e=String(e),d.commands.includes(e)||h.includes(e)||h.push(e)}))}h.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",h.length,h.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(r){const n=e.getInternalMethods().getCommandInstance().getCommands(),s=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||n.length>0)&&r._.slice(o.commands.length).forEach((e=>{n.includes(""+e)||s.push(""+e)})),s.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",s.length,s.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,r){if(!Object.prototype.hasOwnProperty.call(r,t))return!1;const n=e.parsed.newAliases;return[t,...r[t]].some((e=>!Object.prototype.hasOwnProperty.call(n,e)||!n[t]))},limitedChoices:function(r){const i=e.getOptions(),s={};if(!Object.keys(i.choices).length)return;Object.keys(r).forEach((e=>{-1===pe.indexOf(e)&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(r[e]).forEach((t=>{-1===i.choices[e].indexOf(t)&&void 0!==t&&(s[e]=(s[e]||[]).concat(t))}))}));const o=Object.keys(s);if(!o.length)return;let a=n("Invalid values:");o.forEach((e=>{a+=`\n ${n("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(s[e]),t.stringifiedValues(i.choices[e]))}`})),t.fail(a)}};let o={};function a(e,t){const r=Number(t);return"number"==typeof(t=isNaN(r)?t:r)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}s.implies=function(t,n){Y("<string|object> [array|number|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.implies(e,t[e])})):(e.global(t),o[t]||(o[t]=[]),Array.isArray(n)?n.forEach((e=>s.implies(t,e))):(W(n,void 0,r),o[t].push(n)))},s.getImplied=function(){return o},s.implications=function(e){const r=[];if(Object.keys(o).forEach((t=>{const n=t;(o[t]||[]).forEach((t=>{let i=n;const s=t;i=a(e,i),t=a(e,t),i&&!t&&r.push(` ${n} -> ${s}`)}))})),r.length){let e=`${n("Implications failed:")}\n`;r.forEach((t=>{e+=t})),t.fail(e)}};let u={};s.conflicts=function(t,r){Y("<string|object> [array|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.conflicts(e,t[e])})):(e.global(t),u[t]||(u[t]=[]),Array.isArray(r)?r.forEach((e=>s.conflicts(t,e))):u[t].push(r))},s.getConflicting=()=>u,s.conflicting=function(i){Object.keys(i).forEach((e=>{u[e]&&u[e].forEach((r=>{r&&void 0!==i[e]&&void 0!==i[r]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,r))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach((e=>{u[e].forEach((s=>{s&&void 0!==i[r.Parser.camelCase(e)]&&void 0!==i[r.Parser.camelCase(s)]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,s))}))}))},s.recommendCommands=function(e,r){r=r.sort(((e,t)=>t.length-e.length));let i=null,s=1/0;for(let t,n=0;void 0!==(t=r[n]);n++){const r=de(e,t);r<=3&&r<s&&(s=r,i=t)}i&&t.fail(n("Did you mean %s?",i))},s.reset=function(e){return o=ie(o,(t=>!e[t])),u=ie(u,(t=>!e[t])),s};const l=[];return s.freeze=function(){l.push({implied:o,conflicting:u})},s.unfreeze=function(){const e=l.pop();W(e,void 0,r),({implied:o,conflicting:u}=e)},s}(this,et(this,Ke,"f"),et(this,ze,"f")),"f"),Xe(this,ye,et(this,ye,"f")?et(this,ye,"f").reset():function(e,t,r,n){return new te(e,t,r,n)}(et(this,Ke,"f"),et(this,Qe,"f"),et(this,Ae,"f"),et(this,ze,"f")),"f"),et(this,ve,"f")||Xe(this,ve,function(e,t,r,n){return new he(e,t,r,n)}(this,et(this,Ke,"f"),et(this,ye,"f"),et(this,ze,"f")),"f"),et(this,Ae,"f").reset(),Xe(this,Ee,null,"f"),Xe(this,Be,"","f"),Xe(this,Ce,null,"f"),Xe(this,Me,!1,"f"),this.parsed=!1,this}[Mt](e,t){return et(this,ze,"f").path.relative(e,t)}[kt](e,t,r,n=0,i=!1){let s=!!r||i;e=e||et(this,Ge,"f"),et(this,Pe,"f").__=et(this,ze,"f").y18n.__,et(this,Pe,"f").configuration=this[at]();const o=!!et(this,Pe,"f").configuration["populate--"],a=Object.assign({},et(this,Pe,"f").configuration,{"populate--":!0}),u=et(this,ze,"f").Parser.detailed(e,Object.assign({},et(this,Pe,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),l=Object.assign(u.argv,et(this,Le,"f"));let c;const h=u.aliases;let d=!1,p=!1;Object.keys(l).forEach((e=>{e===et(this,Ie,"f")&&l[e]?d=!0:e===et(this,Ze,"f")&&l[e]&&(p=!0)})),l.$0=this.$0,this.parsed=u,0===n&&et(this,Ke,"f").clearCachedHelpMessage();try{if(this[lt](),t)return this[Tt](l,o,!!r,!1);if(et(this,Ie,"f")){[et(this,Ie,"f")].concat(h[et(this,Ie,"f")]||[]).filter((e=>e.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),d=!0)}Xe(this,ke,!1,"f");const a=et(this,ye,"f").getCommands(),f=et(this,ve,"f").completionKey in l,m=d||f||i;if(l._.length){if(a.length){let e;for(let t,s=n||0;void 0!==l._[s];s++){if(t=String(l._[s]),a.includes(t)&&t!==et(this,Ee,"f")){const e=et(this,ye,"f").runCommand(t,this,u,s+1,i,d||p||i);return this[Tt](e,o,!!r,!1)}if(!e&&t!==et(this,Ee,"f")){e=t;break}}!et(this,ye,"f").hasDefaultCommand()&&et(this,He,"f")&&e&&!m&&et(this,Qe,"f").recommendCommands(e,a)}et(this,Ee,"f")&&l._.includes(et(this,Ee,"f"))&&!f&&(et(this,Oe,"f")&&se(!0),this.showCompletionScript(),this.exit(0))}if(et(this,ye,"f").hasDefaultCommand()&&!m){const e=et(this,ye,"f").runCommand(null,this,u,0,i,d||p||i);return this[Tt](e,o,!!r,!1)}if(f){et(this,Oe,"f")&&se(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${et(this,ve,"f").completionKey}`)+1);return et(this,ve,"f").getCompletion(t,((e,t)=>{if(e)throw new k(e.message);(t||[]).forEach((e=>{et(this,je,"f").log(e)})),this.exit(0)})),this[Tt](l,!o,!!r,!1)}if(et(this,Me,"f")||(d?(et(this,Oe,"f")&&se(!0),s=!0,this.showHelp("log"),this.exit(0)):p&&(et(this,Oe,"f")&&se(!0),s=!0,et(this,Ke,"f").showVersion("log"),this.exit(0))),!s&&et(this,Pe,"f").skipValidation.length>0&&(s=Object.keys(l).some((e=>et(this,Pe,"f").skipValidation.indexOf(e)>=0&&!0===l[e]))),!s){if(u.error)throw new k(u.error.message);if(!f){const e=this[jt](h,{},u.error);r||(c=Q(l,this,et(this,Ae,"f").getMiddleware(),!0)),c=this[wt](e,null!=c?c:l),z(c)&&!r&&(c=c.then((()=>Q(l,this,et(this,Ae,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof k))throw e;et(this,Ke,"f").fail(e.message,e)}return this[Tt](null!=c?c:l,o,!!r,!0)}[jt](e,t,r,n){const i={...this.getDemandedOptions()};return s=>{if(r)throw new k(r.message);et(this,Qe,"f").nonOptionCount(s),et(this,Qe,"f").requiredArguments(s,i);let o=!1;et(this,qe,"f")&&(o=et(this,Qe,"f").unknownCommands(s)),et(this,Ve,"f")&&!o?et(this,Qe,"f").unknownArguments(s,e,t,!!n):et(this,Ye,"f")&&et(this,Qe,"f").unknownArguments(s,e,{},!1,!1),et(this,Qe,"f").limitedChoices(s),et(this,Qe,"f").implications(s),et(this,Qe,"f").conflicting(s)}}[Bt](){Xe(this,Me,!0,"f")}[Pt](e){if("string"==typeof e)et(this,Pe,"f").key[e]=!0;else for(const t of e)et(this,Pe,"f").key[t]=!0}}const $t=(Nt=U,(e=[],t=Nt.process.cwd(),r)=>{const n=new Rt(e,t,r,Nt);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:!0}),n.help(),n.version(),n});var Nt;const Lt=$t;function Ut(e,t){const r=e.startsWith(".")?(0,p.join)(t,e):e;return import(r)}function Wt(e,t){const{homepage:r,site:n=r,repository:i}=t,s=n&&n!==i,o=e.getInternalMethods(),a=(u=o.getCommandInstance().handlers,Object.keys(u).some((e=>e&&"$0"!==e)));var u;return 0===o.getUsageInstance().getUsage().length&&(a?e.usage("Usage: $0 <command>"):e.usage("Usage: $0")),a&&e.demandCommand(1,"Won't work without a command"),s&&e.epilogue(`Website: ${n}`),i&&e.epilogue(`Repository: ${i}`),e}var Gt=n(9523);const Ht=(e=0)=>t=>`\x1b[${t+e}m`,zt=(e=0)=>t=>`\x1b[${38+e};5;${t}m`,Vt=(e=0)=>(t,r,n)=>`\x1b[${38+e};2;${t};${r};${n}m`,qt={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(qt.modifier),Object.keys(qt.color),Object.keys(qt.bgColor);const Yt=function(){const e=new Map;for(const[t,r]of Object.entries(qt)){for(const[t,n]of Object.entries(r))qt[t]={open:`\x1b[${n[0]}m`,close:`\x1b[${n[1]}m`},r[t]=qt[t],e.set(n[0],n[1]);Object.defineProperty(qt,t,{value:r,enumerable:!1})}return Object.defineProperty(qt,"codes",{value:e,enumerable:!1}),qt.color.close="\x1b[39m",qt.bgColor.close="\x1b[49m",qt.color.ansi=Ht(),qt.color.ansi256=zt(),qt.color.ansi16m=Vt(),qt.bgColor.ansi=Ht(10),qt.bgColor.ansi256=zt(10),qt.bgColor.ansi16m=Vt(10),Object.defineProperties(qt,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map((e=>e+e)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>qt.rgbToAnsi256(...qt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,n;if(e>=232)t=(10*(e-232)+8)/255,r=t,n=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(t,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>qt.ansi256ToAnsi(qt.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>qt.ansi256ToAnsi(qt.hexToAnsi256(e)),enumerable:!1}}),qt}(),Kt=Yt,Jt=e(import.meta.url)("node:process"),Zt=e(import.meta.url)("node:os"),Qt=e(import.meta.url)("node:tty");function Xt(e,t=(globalThis.Deno?globalThis.Deno.args:Jt.argv)){const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:er}=Jt;let tr;function rr(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in er)return"true"===er.FORCE_COLOR?1:"false"===er.FORCE_COLOR?0:0===er.FORCE_COLOR.length?1:Math.min(Number.parseInt(er.FORCE_COLOR,10),3)}();void 0!==n&&(tr=n);const i=r?tr:n;if(0===i)return 0;if(r){if(Xt("color=16m")||Xt("color=full")||Xt("color=truecolor"))return 3;if(Xt("color=256"))return 2}if("TF_BUILD"in er&&"AGENT_NAME"in er)return 1;if(e&&!t&&void 0===i)return 0;const s=i||0;if("dumb"===er.TERM)return s;if("win32"===Jt.platform){const e=Zt.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in er)return"GITHUB_ACTIONS"in er||"GITEA_ACTIONS"in er?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in er))||"codeship"===er.CI_NAME?1:s;if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(er.TEAMCITY_VERSION)?1:0;if("truecolor"===er.COLORTERM)return 3;if("xterm-kitty"===er.TERM)return 3;if("TERM_PROGRAM"in er){const e=Number.parseInt((er.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(er.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(er.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(er.TERM)||"COLORTERM"in er?1:s}function nr(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(rr(e,{streamIsTTY:e&&e.isTTY,...t}))}Xt("no-color")||Xt("no-colors")||Xt("color=false")||Xt("color=never")?tr=0:(Xt("color")||Xt("colors")||Xt("color=true")||Xt("color=always"))&&(tr=1);const ir={stdout:nr({isTTY:Qt.isatty(1)}),stderr:nr({isTTY:Qt.isatty(2)})};function sr(e,t,r){let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.slice(s),o}const{stdout:or,stderr:ar}=ir,ur=Symbol("GENERATOR"),lr=Symbol("STYLER"),cr=Symbol("IS_EMPTY"),hr=["ansi","ansi","ansi256","ansi16m"],dr=Object.create(null);const pr=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=or?or.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,fr.prototype),t};function fr(e){return pr(e)}Object.setPrototypeOf(fr.prototype,Function.prototype);for(const[e,t]of Object.entries(Kt))dr[e]={get(){const r=Dr(this,yr(t.open,t.close,this[lr]),this[cr]);return Object.defineProperty(this,e,{value:r}),r}};dr.visible={get(){const e=Dr(this,this[lr],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const mr=(e,t,r,...n)=>"rgb"===e?"ansi16m"===t?Kt[r].ansi16m(...n):"ansi256"===t?Kt[r].ansi256(Kt.rgbToAnsi256(...n)):Kt[r].ansi(Kt.rgbToAnsi(...n)):"hex"===e?mr("rgb",t,r,...Kt.hexToRgb(...n)):Kt[r][e](...n),gr=["rgb","hex","ansi256"];for(const e of gr){dr[e]={get(){const{level:t}=this;return function(...r){const n=yr(mr(e,hr[t],"color",...r),Kt.color.close,this[lr]);return Dr(this,n,this[cr])}}};dr["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const n=yr(mr(e,hr[t],"bgColor",...r),Kt.bgColor.close,this[lr]);return Dr(this,n,this[cr])}}}}const br=Object.defineProperties((()=>{}),{...dr,level:{enumerable:!0,get(){return this[ur].level},set(e){this[ur].level=e}}}),yr=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Dr=(e,t,r)=>{const n=(...e)=>wr(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,br),n[ur]=e,n[lr]=t,n[cr]=r,n},wr=(e,t)=>{if(e.level<=0||!t)return e[cr]?"":t;let r=e[lr];if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(t.includes("\x1b"))for(;void 0!==r;)t=sr(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=function(e,t,r,n){let i=0,s="";do{const o="\r"===e[n-1];s+=e.slice(i,o?n-1:n)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.slice(i),s}(t,i,n,s)),n+t+i};Object.defineProperties(fr.prototype,dr);const vr=fr(),Er=(fr({level:ar?ar.level:0}),vr),{cyan:Fr,red:Cr,green:Sr}=Er,xr="# Created by nice-move\nroot = true\n\n[*]\ncharset = utf-8\nend_of_line = lf\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\nmax_line_length = 80\nquote_type = single\ntab_width = 2\ntrim_trailing_whitespace = true\n";function Or(){return(new Gt.Text).onDone((()=>xr)).output(".editorconfig").logger("Create/Overwrite",Fr(".editorconfig")).catch(console.warn)}var _r=n(7862),Ar=n(112);const Tr=_r((()=>{Ar((()=>{Jt.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let Mr=!1;const Ir={show:(e=Jt.stderr)=>{e.isTTY&&(Mr=!1,e.write("\x1b[?25h"))},hide:(e=Jt.stderr)=>{e.isTTY&&(Tr(),Mr=!0,e.write("\x1b[?25l"))},toggle:(e,t)=>{void 0!==e&&(Mr=e),Mr?Ir.show(t):Ir.hide(t)}},kr=Ir;var jr=n(1473);const Br={info:Er.blue("\u2139"),success:Er.green("\u2714"),warning:Er.yellow("\u26a0"),error:Er.red("\u2716")},Pr={info:Er.blue("i"),success:Er.green("\u221a"),warning:Er.yellow("\u203c"),error:Er.red("\xd7")},Rr=("win32"!==Jt.platform?"linux"!==Jt.env.TERM:Boolean(Jt.env.CI)||Boolean(Jt.env.WT_SESSION)||Boolean(Jt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Jt.env.ConEmuTask||"Terminus-Sublime"===Jt.env.TERM_PROGRAM||"vscode"===Jt.env.TERM_PROGRAM||"xterm-256color"===Jt.env.TERM||"alacritty"===Jt.env.TERM||"JetBrains-JediTerm"===Jt.env.TERMINAL_EMULATOR)?Br:Pr;const $r=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function Nr(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace($r,"")}function Lr(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Ur(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function Wr(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Gr(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Hr(e,{ambiguousAsWide:t=!1}={}){return Gr(e),Ur(e)||Wr(e)||t&&Lr(e)?2:1}const zr=new Intl.Segmenter,Vr=/^\p{Default_Ignorable_Code_Point}$/u;function qr(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Nr(e)),0===e.length)return 0;let i=0;const s={ambiguousAsWide:!r};for(const{segment:t}of zr.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=8203&&e<=8207||65279===e||e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=55296&&e<=57343||e>=65024&&e<=65039||Vr.test(t)||(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g.test(t)?i+=2:i+=Hr(e,s)))}return i}function Yr(){return"win32"!==Jt.platform?"linux"!==Jt.env.TERM:Boolean(Jt.env.WT_SESSION)||Boolean(Jt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Jt.env.ConEmuTask||"Terminus-Sublime"===Jt.env.TERM_PROGRAM||"vscode"===Jt.env.TERM_PROGRAM||"xterm-256color"===Jt.env.TERM||"alacritty"===Jt.env.TERM||"JetBrains-JediTerm"===Jt.env.TERMINAL_EMULATOR}const Kr=new class{#e=0;start(){this.#e++,1===this.#e&&this.#t()}stop(){if(this.#e<=0)throw new Error("`stop` called more times than `start`");this.#e--,0===this.#e&&this.#r()}#t(){"win32"!==Jt.platform&&Jt.stdin.isTTY&&(Jt.stdin.setRawMode(!0),Jt.stdin.on("data",this.#n),Jt.stdin.resume())}#r(){Jt.stdin.isTTY&&(Jt.stdin.off("data",this.#n),Jt.stdin.pause(),Jt.stdin.setRawMode(!1))}#n(e){3===e[0]&&Jt.emit("SIGINT")}};class Jr{#i=0;#s=!1;#o=0;#a=0;#u;#l;#c;#h;#d;#p;#f;#m;#g;#b;#y;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#u={color:"cyan",stream:Jt.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#u.color,this.spinner=this.#u.spinner,this.#d=this.#u.interval,this.#c=this.#u.stream,this.#p="boolean"==typeof this.#u.isEnabled?this.#u.isEnabled:function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#c}),this.#f="boolean"==typeof this.#u.isSilent&&this.#u.isSilent,this.text=this.#u.text,this.prefixText=this.#u.prefixText,this.suffixText=this.#u.suffixText,this.indent=this.#u.indent,"test"===Jt.env.NODE_ENV&&(this._stream=this.#c,this._isEnabled=this.#p,Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(e){this.#i=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#a}}),Object.defineProperty(this,"_lineCount",{get(){return this.#o}}))}get indent(){return this.#m}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#m=e,this.#D()}get interval(){return this.#d??this.#l.interval??100}get spinner(){return this.#l}set spinner(e){if(this.#a=0,this.#d=void 0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this.#l=e}else if(Yr())if(void 0===e)this.#l=jr.dots;else{if("default"===e||!jr[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#l=jr[e]}else this.#l=jr.line}get text(){return this.#g}set text(e=""){this.#g=e,this.#D()}get prefixText(){return this.#b}set prefixText(e=""){this.#b=e,this.#D()}get suffixText(){return this.#y}set suffixText(e=""){this.#y=e,this.#D()}get isSpinning(){return void 0!==this.#h}#w(e=this.#b,t=" "){return"string"==typeof e&&""!==e?e+t:"function"==typeof e?e()+t:""}#v(e=this.#y,t=" "){return"string"==typeof e&&""!==e?t+e:"function"==typeof e?t+e():""}#D(){const e=this.#c.columns??80,t=this.#w(this.#b,"-"),r=this.#v(this.#y,"-"),n=" ".repeat(this.#m)+t+"--"+this.#g+"--"+r;this.#o=0;for(const t of Nr(n).split("\n"))this.#o+=Math.max(1,Math.ceil(qr(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#p&&!this.#f}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#p=e}get isSilent(){return this.#f}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#f=e}frame(){const{frames:e}=this.#l;let t=e[this.#a];this.color&&(t=Er[this.color](t)),this.#a=++this.#a%e.length;return("string"==typeof this.#b&&""!==this.#b?this.#b+" ":"")+t+("string"==typeof this.text?" "+this.text:"")+("string"==typeof this.#y&&""!==this.#y?" "+this.#y:"")}clear(){if(!this.#p||!this.#c.isTTY)return this;this.#c.cursorTo(0);for(let e=0;e<this.#i;e++)e>0&&this.#c.moveCursor(0,-1),this.#c.clearLine(1);return(this.#m||this.lastIndent!==this.#m)&&this.#c.cursorTo(this.#m),this.lastIndent=this.#m,this.#i=0,this}render(){return this.#f||(this.clear(),this.#c.write(this.frame()),this.#i=this.#o),this}start(e){return e&&(this.text=e),this.#f?this:this.#p?(this.isSpinning||(this.#u.hideCursor&&kr.hide(this.#c),this.#u.discardStdin&&Jt.stdin.isTTY&&(this.#s=!0,Kr.start()),this.render(),this.#h=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#c.write(`- ${this.text}\n`),this)}stop(){return this.#p?(clearInterval(this.#h),this.#h=void 0,this.#a=0,this.clear(),this.#u.hideCursor&&kr.show(this.#c),this.#u.discardStdin&&Jt.stdin.isTTY&&this.#s&&(Kr.stop(),this.#s=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Rr.success,text:e})}fail(e){return this.stopAndPersist({symbol:Rr.error,text:e})}warn(e){return this.stopAndPersist({symbol:Rr.warning,text:e})}info(e){return this.stopAndPersist({symbol:Rr.info,text:e})}stopAndPersist(e={}){if(this.#f)return this;const t=e.prefixText??this.#b,r=this.#w(t," "),n=e.symbol??" ",i=e.text??this.text,s="string"==typeof i?" "+i:"",o=e.suffixText??this.#y,a=r+n+s+this.#v(o," ")+"\n";return this.stop(),this.#c.write(a),this}}function Zr(e){return new Jr(e)}const Qr=e(import.meta.url)("node:child_process"),Xr=e(import.meta.url)("node:fs");var en=n(6760),tn=n(1364),rn=n(3396);function nn(e){return tn(e).timeout(5e3).send().then((e=>301===e.statusCode?nn(e.headers.location):e.text())).then((e=>{const t=e.trim();if(t)return t;throw new Error("template download fail")}))}function sn(e){return e?e.trim():void 0}async function on(e){if(e)return e;const t=function(){try{return{name:(0,Qr.execSync)("git config user.name").toString().trim(),email:(0,Qr.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return t.name?rn(t):"Unknown"}function an(){try{return JSON.parse((0,Xr.readFileSync)((0,en.join)(process.cwd(),"package.json")))}catch{return{}}}const un="# Created by nice-move\n\n* text=auto eol=lf\n",ln={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function cn(){await(new Gt.Text).onDone((()=>un)).output(".gitattributes").logger("Create/Overwrite",Fr(".gitattributes"));const e=Zr({text:"Downloading template from `gitignore.io`"}).start(),t=`Create/Overwrite ${Fr(".gitignore")}`;return(new Gt.Text).source(".gitignore").onFail().onDone(((e="")=>nn(`https://gitignore.io/api/ssh,certificates,node,${ln[(0,Zt.type)()]}`).then((e=>`${e.replaceAll(/(www\.)?toptal\.com\/developers\/gitignore/g,"gitignore.io").trim()}\n`)).catch((()=>e||"node_modules\n")))).output().then((()=>{e.stopAndPersist({symbol:Sr("\u221a"),text:t})})).catch((r=>{e.stopAndPersist({symbol:Cr("\xd7"),text:`${t} - ${r.message}`})}))}const hn='MIT License\n\nCopyright (c) {{year}} {{holder}}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n',dn='This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to <https://unlicense.org/>\n';async function pn(){const{license:e,author:t=""}=an(),r="MIT"===e;if(r||"Unlicense"===e){const e=await async function(e){return(await on(e)).name||"Unknown"}(t);return(new Gt.Text).onDone((()=>r?hn.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",e):dn)).output("LICENSE").logger("Create/Overwrite",Fr("LICENSE")).catch(console.warn)}}var fn=n(4579),mn=n(323);const gn=e(import.meta.url)("node:util"),bn=(0,gn.promisify)(Qr.execFile);const yn={spawn:!0},Dn="en-US";async function wn(e,t){return(await async function(e,t){const r=await bn(e,t,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(e,t)).stdout}function vn(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function En(e){const t={};for(const r of e.split("\n")){const[e,n]=r.split("=");t[e]=n.replace(/^"|"$/g,"")}return vn(t)}function Fn(e){return e&&e.replace(/[.:].*/,"")}async function Cn(){return wn("locale",["-a"])}function Sn(e,t=""){return t.includes(e)?e:Dn}function xn(e){return e.replace(/_/,"-")}const On=new Map;async function _n(e=yn){if(On.has(e.spawn))return On.get(e.spawn);let t;try{const r=vn();t=r||!1===e.spawn?Fn(r):"win32"===process.platform?await async function(){const e=await wn("wmic",["os","get","locale"]),t=Number.parseInt(e.replace("Locale",""),16);return mn.from(t)}():"darwin"===process.platform?await async function(){const e=await Promise.all([wn("defaults",["read","-globalDomain","AppleLocale"]),Cn()]);return Sn(e[0],e[1])}():await async function(){return Fn(En(await wn("locale")))}()}catch{}const r=xn(t||Dn);return On.set(e.spawn,r),r}const An={"@bring-it/cli":"^0.9.5","@bring-it/npm":"^0.5.7","@cospaia/prettier-plugin-clojure":"^0.0.2",ava:"^6.1.3","best-shot":"^0.6.0",eslint:"^8.57.0","eslint-plugin-ava":"^14.0.0",garou:"^0.7.6",postcss:"^8.4.40",prettier:"^3.3.3","prettier-plugin-tailwindcss":"^0.6.5",sass:"^1.77.8",stylelint:"^16.8.1",syncpack:"^12.4.0",typescript:"~5.5.4","@bring-it/sftp":"^0.3.1","@playwright/test":"~1.44.0","@types/react":"~18.2.79",react:"~18.2.0","react-dom":"~18.2.0",tailwindcss:"^3.4.3",vue:"^3.4.27","eslint-config-base":"^0.11.13","stylelint-config":"^0.10.7","prettier-config":"^0.12.5","syncpack-config":"^0.2.6",tsconfig:"^0.2.5",cli:"^0.11.14",lts:"^18.12.0 || ^20.0.0 || ^22.0.0"},Tn="package.json";function Mn(e){return(new Gt.Json).config({pretty:!0}).source(Tn).onFail().onDone(((t={})=>fn.all([{engines:{node:An.lts},publishConfig:e.private||t.private?void 0:{access:"public",registry:"https://registry.npmjs.org/"}},t,e]))).onDone((e=>(!0===e.private&&async function(){"zh-CN"===await _n()&&(new Gt.Text).source(".npmrc").onFail().onDone(((e="")=>e.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(e)?e:`registry = https://mirrors.tencent.com/npm/\r${e}`)).output().logger("Set registry to China mirror in",Fr(".npmrc")).catch(console.warn)}(),e))).output().logger("Add project info to",Fr(Tn)).catch(console.warn)}async function In(){const{name:e,description:t}=an();(new Gt.Text).source("README.md").onFail().onDone((r=>r||[`# ${e}`,t?`${t}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",Fr("README.md")).catch(console.warn)}function kn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var jn=n(3136);const Bn=(e,t)=>{const r=Pn(e);if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},Pn=e=>e instanceof URL?(0,jn.fileURLToPath)(e):e,Rn=(e,t=[],r={})=>{const n=Bn(e,"First argument"),[i,s]=kn(t)?[[],t]:[t,r];if(!Array.isArray(i))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some((e=>"object"==typeof e&&null!==e)))throw new TypeError(`Second argument must be an array of strings: ${i}`);const o=i.map(String),a=o.find((e=>e.includes("\0")));if(void 0!==a)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!kn(s))throw new TypeError(`Last argument must be an options object: ${s}`);return[n,o,s]},$n=e(import.meta.url)("node:string_decoder"),{toString:Nn}=Object.prototype,Ln=e=>"[object Uint8Array]"===Nn.call(e),Un=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Wn=new TextEncoder,Gn=e=>Wn.encode(e),Hn=new TextDecoder,zn=e=>Hn.decode(e),Vn=(e,t)=>{if("utf8"===t&&e.every((e=>"string"==typeof e)))return e;const r=new $n.StringDecoder(t),n=e.map((e=>"string"==typeof e?Gn(e):e)).map((e=>r.write(e))),i=r.end();return""===i?n:[...n,i]},qn=e=>1===e.length&&Ln(e[0])?e[0]:Kn(Yn(e)),Yn=e=>e.map((e=>"string"==typeof e?Gn(e):e)),Kn=e=>{const t=new Uint8Array(Jn(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},Jn=e=>{let t=0;for(const r of e)t+=r.length;return t},Zn=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{if(void 0===i)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);const{nextTokens:s,leadingWhitespaces:o,trailingWhitespaces:a}=Qn(i,e.raw[n]),u=ti(r,s,o);if(n===t.length)return u;const l=t[n],c=Array.isArray(l)?l.map((e=>ri(e))):[ri(l)];return ti(u,c,a)},Qn=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const i=Xn.has(t[0]);for(let i=0,s=0;i<e.length;i+=1,s+=1){const o=t[s];if(Xn.has(o))n!==i&&r.push(e.slice(n,i)),n=i+1;else if("\\"===o){const e=t[s+1];"u"===e&&"{"===t[s+2]?s=t.indexOf("}",s+3):s+=ei[e]??1}}const s=n===e.length;return s||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:i,trailingWhitespaces:s}},Xn=new Set([" ","\t","\r","\n"]),ei={x:3,u:5},ti=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],ri=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(kn(e)&&("stdout"in e||"isMaxBuffer"in e))return ni(e);if(e instanceof Qr.ChildProcess||"[object Promise]"===Object.prototype.toString.call(e))throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw new TypeError(`Unexpected "${t}" in template expression`)},ni=({stdout:e})=>{if("string"==typeof e)return e;if(Ln(e))return zn(e);if(void 0===e)throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');throw new TypeError(`Unexpected "${typeof e}" stdout in template expression`)},ii=e=>si.includes(e),si=[Jt.stdin,Jt.stdout,Jt.stderr],oi=["stdin","stdout","stderr"],ai=e=>oi[e]??`stdio[${e}]`,ui=(e,t)=>{const r=Array.from({length:li(e)+1}),n=ci(e[t],r,t);return bi(n,t)},li=({stdio:e})=>Array.isArray(e)?Math.max(e.length,oi.length):oi.length,ci=(e,t,r)=>kn(e)?hi(e,t,r):t.fill(e),hi=(e,t,r)=>{for(const n of Object.keys(e).sort(di))for(const i of fi(n,r,t))t[i]=e[n];return t},di=(e,t)=>pi(e)<pi(t)?1:-1,pi=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,fi=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=mi(e);if(void 0===n||0===n)throw new TypeError(`"${t}.${e}" is invalid.\nIt must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(n>=r.length)throw new TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);return"all"===n?[1,2]:[n]},mi=e=>{if("all"===e)return e;if(oi.includes(e))return oi.indexOf(e);const t=gi.exec(e);return null!==t?Number(t[1]):void 0},gi=/^fd(\d+)$/,bi=(e,t)=>e.map((e=>void 0===e?yi[t]:e)),yi={lines:!1,buffer:!0,maxBuffer:1e8,verbose:(0,gn.debuglog)("execa").enabled?"full":"none",stripFinalNewline:!0},Di=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],wi=(e,t)=>"ipc"===t?e.at(-1):e[t],vi=({verbose:e},t)=>"none"!==Fi(e,t),Ei=({verbose:e},t)=>!["none","short"].includes(Fi(e,t)),Fi=(e,t)=>void 0===t?Ci(e):wi(e,t),Ci=e=>e.find((e=>Si(e)))??xi.findLast((t=>e.includes(t))),Si=e=>"function"==typeof e,xi=["none","short","full"],Oi=e=>(0,gn.stripVTControlCharacters)(e).split("\n").map((e=>_i(e))).join("\n"),_i=e=>e.replaceAll(Ti,(e=>Ai(e))),Ai=e=>{const t=Mi[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=Ii?`\\u${n.padStart(4,"0")}`:`\\U${n}`},Ti=/\p{Separator}|\p{Other}/gu,Mi={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Ii=65535,ki=e=>ji.test(e)?e:"win32"===Jt.platform?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,ji=/^[\w./-]+$/,Bi={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258c",squareRight:"\u2590",squareCenter:"\u25a0",bullet:"\u25cf",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203a",triangleUp:"\u25b2",triangleUpSmall:"\u25b4",triangleDown:"\u25bc",triangleDownSmall:"\u25be",triangleLeftSmall:"\u25c2",triangleRightSmall:"\u25b8",home:"\u2302",heart:"\u2665",musicNote:"\u266a",musicNoteBeamed:"\u266b",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221e",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xbd",oneThird:"\u2153",oneQuarter:"\xbc",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215b",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xbe",threeFifths:"\u2157",threeEighths:"\u215c",fourFifths:"\u2158",fiveSixths:"\u215a",fiveEighths:"\u215d",sevenEighths:"\u215e",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254c",lineDashed5:"\u254d",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257a",lineDashed10:"\u257c",lineDashed11:"\u257e",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250a",lineVerticalDashed3:"\u250b",lineVerticalDashed4:"\u254e",lineVerticalDashed5:"\u254f",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257b",lineVerticalDashed10:"\u257d",lineVerticalDashed11:"\u257f",lineDownLeft:"\u2510",lineDownLeftArc:"\u256e",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250c",lineDownRightArc:"\u256d",lineDownBoldRightBold:"\u250f",lineDownBoldRight:"\u250e",lineDownRightBold:"\u250d",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256f",lineUpBoldLeftBold:"\u251b",lineUpBoldLeft:"\u251a",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255d",lineUpDoubleLeft:"\u255c",lineUpLeftDouble:"\u255b",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255a",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252b",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252a",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251c",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251d",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251f",lineUpBoldDownRight:"\u251e",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255f",lineUpDownRightDouble:"\u255e",lineDownLeftRight:"\u252c",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252f",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252e",lineDownLeftBoldRight:"\u252d",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253b",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253a",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253c",lineUpBoldDownBoldLeftBoldRightBold:"\u254b",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254a",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253d",lineUpDownLeftRightBold:"\u253e",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253f",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256c",lineUpDoubleDownDoubleLeftRight:"\u256b",lineUpDownLeftDoubleRightDouble:"\u256a",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Pi={tick:"\u2714",info:"\u2139",warning:"\u26a0",cross:"\u2718",squareSmall:"\u25fb",squareSmallFilled:"\u25fc",circle:"\u25ef",circleFilled:"\u25c9",circleDotted:"\u25cc",circleDouble:"\u25ce",circleCircle:"\u24de",circleCross:"\u24e7",circlePipe:"\u24be",radioOn:"\u25c9",radioOff:"\u25ef",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24e7",checkboxCircleOff:"\u24be",pointer:"\u276f",triangleUpOutline:"\u25b3",triangleLeft:"\u25c0",triangleRight:"\u25b6",lozenge:"\u25c6",lozengeOutline:"\u25c7",hamburger:"\u2630",smiley:"\u32e1",mustache:"\u0df4",star:"\u2605",play:"\u25b6",nodejs:"\u2b22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Ri={...Bi,...Pi},$i={...Bi,tick:"\u221a",info:"i",warning:"\u203c",cross:"\xd7",squareSmall:"\u25a1",squareSmallFilled:"\u25a0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25cb)",circleCross:"(\xd7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25c4",triangleRight:"\u25ba",lozenge:"\u2666",lozengeOutline:"\u25ca",hamburger:"\u2261",smiley:"\u263a",mustache:"\u250c\u2500\u2510",star:"\u2736",play:"\u25ba",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ni=Yr(),Li=Ni?Ri:$i,Ui=(Object.entries(Pi),Qt?.WriteStream?.prototype?.hasColors?.()??!1),Wi=(e,t)=>{if(!Ui)return e=>e;const r=`\x1b[${e}m`,n=`\x1b[${t}m`;return e=>{const t=e+"";let i=t.indexOf(n);if(-1===i)return r+t+n;let s=r,o=0;for(;-1!==i;)s+=t.slice(o,i)+r,o=i+n.length,i=t.indexOf(n,o);return s+=t.slice(o)+n,s}},Gi=(Wi(0,0),Wi(1,22)),Hi=(Wi(2,22),Wi(3,23),Wi(4,24),Wi(53,55),Wi(7,27),Wi(8,28),Wi(9,29),Wi(30,39),Wi(31,39),Wi(32,39),Wi(33,39),Wi(34,39),Wi(35,39),Wi(36,39),Wi(37,39),Wi(90,39)),zi=(Wi(40,49),Wi(41,49),Wi(42,49),Wi(43,49),Wi(44,49),Wi(45,49),Wi(46,49),Wi(47,49),Wi(100,49),Wi(91,39)),Vi=(Wi(92,39),Wi(93,39)),qi=(Wi(94,39),Wi(95,39),Wi(96,39),Wi(97,39),Wi(101,49),Wi(102,49),Wi(103,49),Wi(104,49),Wi(105,49),Wi(106,49),Wi(107,49),e=>`${Yi(e.getHours(),2)}:${Yi(e.getMinutes(),2)}:${Yi(e.getSeconds(),2)}.${Yi(e.getMilliseconds(),3)}`),Yi=(e,t)=>String(e).padStart(t,"0"),Ki=({failed:e,reject:t})=>e?t?Li.cross:Li.warning:Li.tick,Ji={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:Ki,duration:Ki},Zi=e=>e,Qi={command:()=>Gi,output:()=>Zi,ipc:()=>Zi,error:({reject:e})=>e?zi:Vi,duration:()=>Hi},Xi=(e,t,r)=>{const n=(({verbose:e},t)=>{const r=Fi(e,t);return Si(r)?r:void 0})(t,r);return e.map((({verboseLine:e,verboseObject:t})=>es(e,t,n))).filter((e=>void 0!==e)).map((e=>ts(e))).join("")},es=(e,t,r)=>{if(void 0===r)return e;const n=r(e,t);return"string"==typeof n?n:void 0},ts=e=>e.endsWith("\n")?e:`${e}\n`,rs=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:i})=>{const s=ns({type:e,result:i,verboseInfo:n}),o=is(t,s),a=Xi(o,n,r);(0,Xr.writeFileSync)(os,a)},ns=({type:e,result:t,verboseInfo:{escapedCommand:r,commandId:n,rawOptions:{piped:i=!1,...s}}})=>({type:e,escapedCommand:r,commandId:`${n}`,timestamp:new Date,piped:i,result:t,options:s}),is=(e,t)=>e.split("\n").map((e=>ss({...t,message:e}))),ss=e=>{const t=(({type:e,message:t,timestamp:r,piped:n,commandId:i,result:{failed:s=!1}={},options:{reject:o=!0}})=>{const a=qi(r),u=Ji[e]({failed:s,reject:o,piped:n}),l=Qi[e]({reject:o});return`${Hi(`[${a}]`)} ${Hi(`[${i}]`)} ${l(u)} ${l(t)}`})(e);return{verboseLine:t,verboseObject:e}},os=2,as=e=>{const t="string"==typeof e?e:(0,gn.inspect)(e);return Oi(t).replaceAll("\t"," ".repeat(us))},us=2,ls=e=>vi({verbose:e})?cs++:void 0;let cs=0n;const hs=e=>{for(const t of e){if(!1===t)throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".');if(!0===t)throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".');if(!xi.includes(t)&&!Si(t)){const e=xi.map((e=>`'${e}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}},ds=()=>Jt.hrtime.bigint(),ps=e=>Number(Jt.hrtime.bigint()-e)/1e6,fs=(e,t,r)=>{const n=ds(),{command:i,escapedCommand:s}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map((e=>ki(_i(e)))).join(" ")}})(e,t),o=((e,t,r)=>(hs(e),{verbose:e,escapedCommand:t,commandId:ls(e),rawOptions:r}))(ui(r,"verbose"),s,{...r});return((e,t)=>{vi(t)&&rs({type:"command",verboseMessage:e,verboseInfo:t})})(s,o),{command:i,escapedCommand:s,startTime:n,verboseInfo:o}};var ms=n(526);function gs(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}const bs=(e,t)=>{let r;for(;r!==t;)e.push(en.join(t,"node_modules/.bin")),r=t,t=en.resolve(t,"..")},ys=(e,t,r)=>{const n=t instanceof URL?(0,jn.fileURLToPath)(t):t;e.push(en.resolve(r,n,".."))},Ds=({env:e=Jt.env,...t}={})=>{const r=gs({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=Jt.cwd(),path:t=Jt.env[gs()],preferLocal:r=!0,execPath:n=Jt.execPath,addExecPath:i=!0}={})=>{const s=e instanceof URL?(0,jn.fileURLToPath)(e):e,o=en.resolve(s),a=[];return r&&bs(a,o),i&&ys(a,n,o),[...a,t].join(en.delimiter)})(t),e},ws=e(import.meta.url)("node:timers/promises");class vs extends Error{}const Es=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Fs,{value:!0,writable:!1,enumerable:!1,configurable:!1})},Fs=Symbol("isExecaError"),Cs=e=>"[object Error]"===Object.prototype.toString.call(e);class Ss extends Error{}Es(Ss,Ss.name);class xs extends Error{}Es(xs,xs.name);const Os=(e,t)=>({name:`SIGRT${t+1}`,number:_s+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),_s=34,As=64,Ts=[{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"}],Ms=()=>{const e=(()=>{const e=As-_s+1;return Array.from({length:e},Os)})();return[...Ts,...e].map(Is)},Is=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{const{signals:{[e]:o}}=Zt.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}},ks=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o}],js=(()=>{const e=Ms();return Object.fromEntries(e.map(ks))})(),Bs=(e,t)=>{const r=Ps(e,t);if(void 0===r)return{};const{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:a,standard:u}}},Ps=(e,t)=>{const r=t.find((({name:t})=>Zt.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},Rs=((()=>{const e=Ms(),t=As+1,r=Array.from({length:t},((t,r)=>Bs(r,e)));Object.assign({},...r)})(),e=>0===e?e:$s(e,"`subprocess.kill()`'s argument")),$s=(e,t)=>{if(Number.isInteger(e))return Ns(e,t);if("string"==typeof e)return Us(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${Ws()}`)},Ns=(e,t)=>{if(Ls.has(e))return Ls.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${Ws()}`)},Ls=new Map(Object.entries(Zt.constants.signals).reverse().map((([e,t])=>[t,e]))),Us=(e,t)=>{if(e in Zt.constants.signals)return e;if(e.toUpperCase()in Zt.constants.signals)throw new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`);throw new TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${Ws()}`)},Ws=()=>`Available signal names: ${Gs()}.\nAvailable signal numbers: ${Hs()}.`,Gs=()=>Object.keys(Zt.constants.signals).sort().map((e=>`'${e}'`)).join(", "),Hs=()=>[...new Set(Object.values(Zt.constants.signals).sort(((e,t)=>e-t)))].join(", "),zs=e=>js[e].description,Vs=5e3,qs=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:i,controller:s},o,a)=>{const{signal:u,error:l}=Ys(o,a,r);Ks(l,n);const c=e(u);return Js({kill:e,signal:u,forceKillAfterDelay:t,killSignal:r,killResult:c,context:i,controller:s}),c},Ys=(e,t,r)=>{const[n=r,i]=Cs(e)?[void 0,e]:[e,t];if("string"!=typeof n&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(void 0!==i&&!Cs(i))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${i}`);return{signal:Rs(n),error:i}},Ks=(e,t)=>{void 0!==e&&t.reject(e)},Js=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:i,context:s,controller:o})=>{t===n&&i&&Zs({kill:e,forceKillAfterDelay:r,context:s,controllerSignal:o.signal})},Zs=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await(0,ws.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},Qs=e(import.meta.url)("node:events"),Xs=async(e,t)=>{e.aborted||await(0,Qs.once)(e,"abort",{signal:t})},eo=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:i})=>void 0===t||r?[]:[to(e,t,n,i)],to=async(e,t,r,{signal:n})=>{throw await Xs(t,n),r.terminationReason??="cancel",e.kill(),t.reason},ro=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{no(e,t,r),io(e,t,n)},no=(e,t,r)=>{if(!r)throw new Error(`${lo(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},io=(e,t,r)=>{if(!r)throw new Error(`${lo(e,t)} cannot be used: the ${ho(t)} has already exited or disconnected.`)},so=(e,t)=>new Error(`${lo("sendMessage",t)} failed when sending an acknowledgment response to the ${ho(t)}.`,{cause:e}),oo=({code:e,message:t})=>ao.has(e)||uo.some((e=>t.includes(e))),ao=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),uo=["could not be cloned","circular structure","call stack size exceeded"],lo=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${co(t)}${e}(${r})`,co=e=>e?"":"subprocess.",ho=e=>e?"parent process":"subprocess",po=e=>{e.connected&&e.disconnect()},fo=()=>{const e={},t=new Promise(((t,r)=>{Object.assign(e,{resolve:t,reject:r})}));return Object.assign(t,e)},mo=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:i}=bo.get(e),s=yo(i,t,r),o=e.stdio[s];if(null===o)throw new TypeError(vo(s,t,n,r));return o},go=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:i}=bo.get(e),s=yo(i,t,r),o="all"===s?e.all:e.stdio[s];if(null==o)throw new TypeError(vo(s,t,n,r));return o},bo=new WeakMap,yo=(e,t,r)=>{const n=Do(t,r);return wo(n,t,r,e),n},Do=(e,t)=>{const r=mi(e);if(void 0!==r)return r;const{validOptions:n,defaultValue:i}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${Co(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${i}".`)},wo=(e,t,r,n)=>{const i=n[Fo(e)];if(void 0===i)throw new TypeError(`"${Co(r)}" must not be ${t}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);if("input"===i.direction&&!r)throw new TypeError(`"${Co(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==i.direction&&r)throw new TypeError(`"${Co(r)}" must not be ${t}. It must be a writable stream, not readable.`)},vo=(e,t,r,n)=>{if("all"===e&&!r.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:i,optionValue:s}=Eo(e,r);return`The "${i}: ${So(s)}" option is incompatible with using "${Co(n)}: ${So(t)}".\nPlease set this option with "pipe" instead.`},Eo=(e,{stdin:t,stdout:r,stderr:n,stdio:i})=>{const s=Fo(e);return 0===s&&void 0!==t?{optionName:"stdin",optionValue:t}:1===s&&void 0!==r?{optionName:"stdout",optionValue:r}:2===s&&void 0!==n?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${s}]`,optionValue:i[s]}},Fo=e=>"all"===e?1:e,Co=e=>e?"to":"from",So=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",xo=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),(0,Qs.addAbortListener)(r,(()=>{e.setMaxListeners(e.getMaxListeners()-t)})))},Oo=(e,t)=>{t&&_o(e)},_o=e=>{e.refCounted()},Ao=(e,t)=>{t&&To(e)},To=e=>{e.unrefCounted()},Mo=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},i)=>{if(Uo(i)||sa(i))return;ko.has(e)||ko.set(e,[]);const s=ko.get(e);if(s.push(i),!(s.length>1))for(;s.length>0;){await qo(e,n,i),await ws.scheduler.yield();const o=await Lo({wrappedMessage:s[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});s.shift(),n.emit("message",o),n.emit("message:done")}},Io=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:i})=>{aa();const s=ko.get(e);for(;s?.length>0;)await(0,Qs.once)(n,"message:done");e.removeListener("message",i),((e,t)=>{t&&(_o(e),_o(e))})(t,r),n.connected=!1,n.emit("disconnect")},ko=new WeakMap,jo=(e,t,r)=>{if(Bo.has(e))return Bo.get(e);const n=new Qs.EventEmitter;return n.connected=!0,Bo.set(e,n),Po({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},Bo=new WeakMap,Po=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const i=Mo.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",i),t.once("disconnect",Io.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:i})),((e,t)=>{t&&(To(e),To(e))})(r,n)},Ro=e=>{const t=Bo.get(e);return void 0===t?null!==e.channel:t.connected};let $o=0n;const No=(e,t)=>{if(t?.type===zo&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&Go[t].resolve({isDeadlock:!0,hasListeners:!1})},Lo=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:i})=>{if(e?.type!==zo||!t.connected)return e;const{id:s,message:o}=e,a={id:s,type:Vo,message:Ko(t,i)};try{await Zo({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){i.emit("strict:error",e)}return o},Uo=e=>{if(e?.type!==Vo)return!1;const{id:t,message:r}=e;return Go[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},Wo=async(e,t,r)=>{if(e?.type!==zo)return;const n=fo();Go[e.id]=n;const i=new AbortController;try{const{isDeadlock:e,hasListeners:s}=await Promise.race([n,Ho(t,r,i)]);e&&(e=>{throw new Error(`${lo("sendMessage",e)} failed: the ${ho(e)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${lo("getOneMessage",e)},\n\t${lo("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),s||(e=>{throw new Error(`${lo("sendMessage",e)} failed: the ${ho(e)} is not listening to incoming messages.`)})(r)}finally{i.abort(),delete Go[e.id]}},Go={},Ho=async(e,t,{signal:r})=>{xo(e,1,r),await(0,Qs.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${lo("sendMessage",e)} failed: the ${ho(e)} exited without listening to incoming messages.`)})(t)},zo="execa:ipc:request",Vo="execa:ipc:response",qo=async(e,t,r)=>{for(;!Ko(e,t)&&Yo.get(e)?.size>0;){const t=[...Yo.get(e)];No(t,r),await Promise.all(t.map((({onMessageSent:e})=>e)))}},Yo=new WeakMap,Ko=(e,t)=>t.listenerCount("message")>Jo(e),Jo=e=>bo.has(e)&&!wi(bo.get(e).options.buffer,"ipc")?1:0,Zo=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},i,{strict:s=!1}={})=>{const o="sendMessage";return ro({methodName:o,isSubprocess:r,ipc:n,isConnected:e.connected}),Qo({anyProcess:e,channel:t,methodName:o,isSubprocess:r,message:i,strict:s})},Qo=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:i,strict:s})=>{const o=(({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:i})=>{if(!i)return n;const s=jo(e,t,r),o=Ko(e,s);return{id:$o++,type:zo,message:n,hasListeners:o}})({anyProcess:e,channel:t,isSubprocess:n,message:i,strict:s}),a=((e,t,r)=>{Yo.has(e)||Yo.set(e,new Set);const n=Yo.get(e),i={onMessageSent:fo(),id:r?t.id:void 0};return n.add(i),{outgoingMessages:n,outgoingMessage:i}})(e,o,s);try{await Xo({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:o,message:i})}catch(t){throw po(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},Xo=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:i})=>{const s=ea(e);try{await Promise.all([Wo(n,e,r),s(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${lo(t,r)} cannot be used: the ${ho(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if(oo(e))throw new Error(`${lo(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:r,message:i}),e}},ea=e=>{if(ta.has(e))return ta.get(e);const t=(0,gn.promisify)(e.send.bind(e));return ta.set(e,t),t},ta=new WeakMap,ra=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await na({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),ua.signal),na=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{ia||(ia=!0,n?null!==t?(jo(e,t,r),await ws.scheduler.yield()):aa():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let ia=!1;const sa=e=>e?.type===oa&&(ua.abort(e.message),!0),oa="execa:ipc:cancel",aa=()=>{ua.abort(new Error(`\`cancelSignal\` aborted: the ${ho(!0)} disconnected.`))},ua=new AbortController,la=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:i,controller:s})=>r?[ca({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:i,controller:s})]:[],ca=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:i}})=>{await Xs(t,i);const s=ha(t);throw await((e,t)=>{const r="cancelSignal";return io(r,!1,e.connected),Xo({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:oa,message:t},message:t})})(e,s),Zs({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:i}),n.terminationReason??="gracefulCancel",t.reason},ha=({reason:e})=>{if(!(e instanceof DOMException))return e;const t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t},da=(e,t,r,n)=>0===t||void 0===t?[]:[pa(e,t,r,n)],pa=async(e,t,r,{signal:n})=>{throw await(0,ws.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new vs},fa=e(import.meta.url)("node:v8"),ma={advanced:e=>{try{(0,fa.serialize)(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},json:e=>{try{JSON.stringify(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}}},ga=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},ba=new Set(["utf8","utf16le"]),ya=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),Da=new Set([...ba,...ya]),wa=e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in va?va[t]:Da.has(t)?t:void 0},va={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},Ea=e=>"string"==typeof e?`"${e}"`:String(e),Fa=()=>{try{return Jt.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Ca=(e,t,r)=>{r.cwd=((e=Fa())=>{const t=Bn(e,'The "cwd" option');return(0,en.resolve)(t)})(r.cwd);const[n,i,s]=((e,t,{node:r=!1,nodePath:n=Jt.execPath,nodeOptions:i=Jt.execArgv.filter((e=>!e.startsWith("--inspect"))),cwd:s,execPath:o,...a})=>{if(void 0!==o)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const u=Bn(n,'The "nodePath" option'),l=(0,en.resolve)(s,u),c={...a,nodePath:l,node:r,cwd:s};if(!r)return[e,t,c];if("node"===(0,en.basename)(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[l,[...i,e,...t],{ipc:!0,...c,shell:!1}]})(e,t,r),{command:o,args:a,options:u}=ms._parse(n,i,s),l=(e=>{const t={...e};for(const r of Di)t[r]=ui(e,r);return t})(u),c=Sa(l);return(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(c),(({encoding:e})=>{if(Da.has(e))return;const t=wa(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${Ea(e)}\`.\nPlease rename it to ${Ea(t)}.`);const r=[...Da].map((e=>Ea(e))).join(", ");throw new TypeError(`Invalid option \`encoding: ${Ea(e)}\`.\nPlease rename it to one of: ${r}.`)})(c),(({ipcInput:e,ipc:t,serialization:r})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");ma[r](e)}})(c),(({cancelSignal:e})=>{if(void 0!==e&&"[object AbortSignal]"!==Object.prototype.toString.call(e))throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)})(c),(({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(void 0===t)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!r)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if("json"===n)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(c),c.shell=Pn(c.shell),c.env=xa(c),c.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return $s(e,t)})(c.killSignal),c.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return Vs;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(c.forceKillAfterDelay),c.lines=c.lines.map(((e,t)=>e&&!ya.has(c.encoding)&&c.buffer[t])),"win32"===Jt.platform&&"cmd"===(0,en.basename)(o,".exe")&&a.unshift("/q"),{file:o,commandArguments:a,options:c}},Sa=({extendEnv:e=!0,preferLocal:t=!1,cwd:r,localDir:n=r,encoding:i="utf8",reject:s=!0,cleanup:o=!0,all:a=!1,windowsHide:u=!0,killSignal:l="SIGTERM",forceKillAfterDelay:c=!0,gracefulCancel:h=!1,ipcInput:d,ipc:p=void 0!==d||h,serialization:f="advanced",...m})=>({...m,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:i,reject:s,cleanup:o,all:a,windowsHide:u,killSignal:l,forceKillAfterDelay:c,gracefulCancel:h,ipcInput:d,ipc:p,serialization:f}),xa=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:i,nodePath:s})=>{const o=t?{...Jt.env,...e}:e;return r||n?Ds({env:o,cwd:i,execPath:s,preferLocal:r,addExecPath:n}):o};function Oa(e){if("string"==typeof e)return _a(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return Aa(e)}const _a=e=>e.at(-1)===Ta?e.slice(0,e.at(-2)===Ia?-2:-1):e,Aa=e=>e.at(-1)===Ma?e.subarray(0,e.at(-2)===ka?-2:-1):e,Ta="\n",Ma=Ta.codePointAt(0),Ia="\r",ka=Ia.codePointAt(0);function ja(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function Ba(e,{checkOpen:t=!0}={}){return ja(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Pa(e,{checkOpen:t=!0}={}){return ja(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Ra(e,t){return Ba(e,t)&&Pa(e,t)}const $a=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class Na{#E;#F;#C=!1;#S=void 0;constructor(e,t){this.#E=e,this.#F=t}next(){const e=()=>this.#x();return this.#S=this.#S?this.#S.then(e,e):e(),this.#S}return(e){const t=()=>this.#O(e);return this.#S?this.#S.then(t,t):t()}async#x(){if(this.#C)return{done:!0,value:void 0};let e;try{e=await this.#E.read()}catch(e){throw this.#S=void 0,this.#C=!0,this.#E.releaseLock(),e}return e.done&&(this.#S=void 0,this.#C=!0,this.#E.releaseLock()),e}async#O(e){if(this.#C)return{done:!0,value:e};if(this.#C=!0,!this.#F){const t=this.#E.cancel(e);return this.#E.releaseLock(),await t,{done:!0,value:e}}return this.#E.releaseLock(),{done:!0,value:e}}}const La=Symbol();function Ua(){return this[La].next()}function Wa(e){return this[La].return(e)}Object.defineProperty(Ua,"name",{value:"next"}),Object.defineProperty(Wa,"name",{value:"return"});const Ga=Object.create($a,{next:{enumerable:!0,configurable:!0,writable:!0,value:Ua},return:{enumerable:!0,configurable:!0,writable:!0,value:Wa}});function Ha({preventCancel:e=!1}={}){const t=this.getReader(),r=new Na(t,e),n=Object.create(Ga);return n[La]=r,n}const za=e=>{if(Pa(e,{checkOpen:!1})&&void 0!==Ka.on)return qa(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===Va.call(e))return Ha.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:Va}=Object.prototype,qa=async function*(e){const t=new AbortController,r={};Ya(e,t,r);try{for await(const[r]of Ka.on(e,"data",{signal:t.signal}))yield r}catch(e){if(void 0!==r.error)throw r.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},Ya=async(e,t,r)=>{try{await Ka.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},Ka={},Ja=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{const l=za(e),c=t();c.length=0;try{for await(const e of l){const t=r[eu(e)](e,c);Qa({convertedChunk:t,state:c,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:u})}return Za({state:c,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,maxBuffer:u}),a(c)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(c),t}},Za=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:s})=>{const o=i(e);void 0!==o&&Qa({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:s})},Qa=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:s})=>{const o=r(e),a=t.length+o;if(a<=s)return void Xa(e,t,i,a);const u=n(e,s-t.length);throw void 0!==u&&Xa(u,t,i,s),new ru},Xa=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},eu=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const r=tu.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===tu.call(e.buffer)?"typedArray":"others"},{toString:tu}=Object.prototype;class ru extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const nu=(e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters",iu=(e,t,r)=>{if(t.length!==r)return;const n=new ru;throw n.maxBufferInfo={fdNumber:"ipc"},n},su=(e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:r,unit:n}}=e;delete e.maxBufferInfo;const i=wi(t,r);return"ipc"===r?{streamName:"IPC output",threshold:i,unit:"messages"}:{streamName:ai(r),threshold:i,unit:n}},ou=([,e])=>e,au=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:i,errorCode:s,signal:o,signalDescription:a,exitCode:u,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:h,forceKillAfterDelay:d,killSignal:p})=>{const f=uu(h,d);return t?`Command timed out after ${r} milliseconds${f}`:c?void 0===o?`Command was gracefully canceled with exit code ${u}`:h?`Command was gracefully canceled${f}`:`Command was gracefully canceled with ${o} (${a})`:l?`Command was canceled${f}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:i}=su(e,t);return`Command's ${r} was larger than ${n} ${i}`})(e,i)}${f}`:void 0!==s?`Command failed with ${s}${f}`:h?`Command was killed with ${p} (${zs(p)})${f}`:void 0!==o?`Command was killed with ${o} (${a})`:void 0!==u?`Command failed with exit code ${u}`:"Command failed"},uu=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",lu=(e,t)=>{if(e instanceof vs)return;const r=Cs(n=e)&&Fs in n?e.originalMessage:String(e?.message??e);var n;const i=Oi(((e,t)=>{if(t===Fa())return e;let r;try{r=(0,Xr.statSync)(t)}catch(r){return`The "cwd" option is invalid: ${t}.\n${r.message}\n${e}`}return r.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(r,t));return""===i?void 0:i},cu=e=>"string"==typeof e?e:(0,gn.inspect)(e),hu=e=>Array.isArray(e)?e.map((e=>Oa(du(e)))).filter(Boolean).join("\n"):du(e),du=e=>"string"==typeof e?e:Ln(e)?zn(e):"",pu=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:i,options:{cwd:s},startTime:o})=>bu({command:e,escapedCommand:t,cwd:s,durationMs:ps(o),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:i,pipedFrom:[]}),fu=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:o})=>mu({error:e,command:t,escapedCommand:r,startTime:s,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:i,isSync:o}),mu=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,stdio:h,all:d,ipcOutput:p,options:{timeoutDuration:f,timeout:m=f,forceKillAfterDelay:g,killSignal:b,cwd:y,maxBuffer:D},isSync:w})=>{const{exitCode:v,signal:E,signalDescription:F}=yu(l,c),{originalMessage:C,shortMessage:S,message:x}=(({stdio:e,all:t,ipcOutput:r,originalError:n,signal:i,signalDescription:s,exitCode:o,escapedCommand:a,timedOut:u,isCanceled:l,isGracefullyCanceled:c,isMaxBuffer:h,isForcefullyTerminated:d,forceKillAfterDelay:p,killSignal:f,maxBuffer:m,timeout:g,cwd:b})=>{const y=n?.code,D=au({originalError:n,timedOut:u,timeout:g,isMaxBuffer:h,maxBuffer:m,errorCode:y,signal:i,signalDescription:s,exitCode:o,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:d,forceKillAfterDelay:p,killSignal:f}),w=lu(n,b),v=`${D}: ${a}${void 0===w?"":`\n${w}`}`,E=[v,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),r.map((e=>cu(e))).join("\n")].map((e=>Oi(Oa(hu(e))))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:v,message:E}})({stdio:h,all:d,ipcOutput:p,originalError:e,signal:E,signalDescription:F,exitCode:v,escapedCommand:r,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,forceKillAfterDelay:g,killSignal:b,maxBuffer:D,timeout:m,cwd:y}),O=((e,t,r)=>new(r?xs:Ss)(t,e instanceof vs?{}:{cause:e}))(e,x,w);return Object.assign(O,gu({error:O,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:v,signal:E,signalDescription:F,stdio:h,all:d,ipcOutput:p,cwd:y,originalMessage:C,shortMessage:S})),O},gu=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,stdio:d,all:p,ipcOutput:f,cwd:m,originalMessage:g,shortMessage:b})=>bu({shortMessage:b,originalMessage:g,command:t,escapedCommand:r,cwd:m,durationMs:ps(n),failed:!0,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isTerminated:void 0!==c,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,code:e.cause?.code,stdout:d[1],stderr:d[2],all:p,stdio:d,ipcOutput:f,pipedFrom:[]}),bu=e=>Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e))),yu=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:zs(t)}},Du=e=>Number.isFinite(e)?e:0;function wu(e){switch(typeof e){case"number":if(Number.isFinite(e))return function(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(Du(1e3*e)%1e3),nanoseconds:Math.trunc(Du(1e6*e)%1e3)}}(e);break;case"bigint":return function(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}(e)}throw new TypeError("Expected a finite number or bigint")}function vu(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");const n=e<0?"-":"";e=e<0?-e:e,(t={...t}).colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let i=[];const s=(e,r,n,s)=>{if(0!==i.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===n){if(s??=String(e),t.colonNotation){const e=s.includes(".")?s.split(".")[0].length:s.length,t=i.length>0?2:1;s="0".repeat(Math.max(0,t-e))+s}else s+=t.verbose?" "+((e,t)=>1===t||1n===t?e:`${e}s`)(r,e):n;i.push(s)}},o=wu(e),a=BigInt(o.days);if(s(a/365n,"year","y"),s(a%365n,"day","d"),s(Number(o.hours),"hour","h"),s(Number(o.minutes),"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(o.seconds),r=Number(o.milliseconds),n=Number(o.microseconds),i=Number(o.nanoseconds);if(s(e,"second","s"),t.formatSubMilliseconds)s(r,"millisecond","ms"),s(n,"microsecond","\xb5s"),s(i,"nanosecond","ns");else{const e=r+n/1e3+i/1e6,o="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),u=o?e.toFixed(o):a;s(Number.parseFloat(u),"millisecond","ms",u)}}else{const n=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})((r?Number(e%86400000n):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),i=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");s(Number.parseFloat(i),"second","s",i)}if(0===i.length)return n+"0"+(t.verbose?" milliseconds":"ms");const u=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(i=i.slice(0,Math.max(t.unitCount,1))),n+i.join(u)}const Eu=(e,t)=>{vi(t)&&(((e,t)=>{e.failed&&rs({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})})(e,t),Fu(e,t))},Fu=(e,t)=>{const r=`(done in ${vu(e.durationMs)})`;rs({type:"duration",verboseMessage:r,verboseInfo:t,result:e})},Cu=(e,t,{reject:r})=>{if(Eu(e,t),e.failed&&r)throw e;return e},Su=(e,t)=>ju(e)?"asyncGenerator":Bu(e)?"generator":Ru(e)?"fileUrl":$u(e)?"filePath":Gu(e)?"webStream":ja(e,{checkOpen:!1})?"native":Ln(e)?"uint8Array":zu(e)?"asyncIterable":Vu(e)?"iterable":Hu(e)?_u({transform:e},t):Pu(e)?xu(e,t):"native",xu=(e,t)=>Ra(e.transform,{checkOpen:!1})?Ou(e,t):Hu(e.transform)?_u(e,t):Mu(e,t),Ou=(e,t)=>(Au(e,t,"Duplex stream"),"duplex"),_u=(e,t)=>(Au(e,t,"web TransformStream"),"webTransform"),Au=({final:e,binary:t,objectMode:r},n,i)=>{Tu(e,`${n}.final`,i),Tu(t,`${n}.binary`,i),Iu(r,`${n}.objectMode`)},Tu=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},Mu=({transform:e,final:t,binary:r,objectMode:n},i)=>{if(void 0!==e&&!ku(e))throw new TypeError(`The \`${i}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(Ra(t,{checkOpen:!1}))throw new TypeError(`The \`${i}.final\` option must not be a Duplex stream.`);if(Hu(t))throw new TypeError(`The \`${i}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!ku(t))throw new TypeError(`The \`${i}.final\` option must be a generator.`);return Iu(r,`${i}.binary`),Iu(n,`${i}.objectMode`),ju(e)||ju(t)?"asyncGenerator":"generator"},Iu=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},ku=e=>ju(e)||Bu(e),ju=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),Bu=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),Pu=e=>kn(e)&&(void 0!==e.transform||void 0!==e.final),Ru=e=>"[object URL]"===Object.prototype.toString.call(e),$u=e=>kn(e)&&1===Object.keys(e).length&&Nu(e.file),Nu=e=>"string"==typeof e,Lu=new Set(["ipc","ignore","inherit","overlapped","pipe"]),Uu=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),Wu=e=>"[object WritableStream]"===Object.prototype.toString.call(e),Gu=e=>Uu(e)||Wu(e),Hu=e=>Uu(e?.readable)&&Wu(e?.writable),zu=e=>qu(e)&&"function"==typeof e[Symbol.asyncIterator],Vu=e=>qu(e)&&"function"==typeof e[Symbol.iterator],qu=e=>"object"==typeof e&&null!==e,Yu=new Set(["generator","asyncGenerator","duplex","webTransform"]),Ku=new Set(["fileUrl","filePath","fileNumber"]),Ju=new Set(["fileUrl","filePath"]),Zu=new Set([...Ju,"webStream","nodeStream"]),Qu=new Set(["webTransform","duplex"]),Xu={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"},el=(e,t,r,n)=>"output"===n?tl(e,t,r):rl(e,t,r),tl=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},rl=(e,t,r)=>{const n=0===t?!0===e:r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:t!==r.length-1&&(e??n)}},nl=(e,t,r,{encoding:n})=>{const i=e.filter((({type:e})=>Yu.has(e))),s=Array.from({length:i.length});for(const[e,o]of Object.entries(i))s[e]=il({stdioItem:o,index:Number(e),newTransforms:s,optionName:t,direction:r,encoding:n});return ul(s,r)},il=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:i,direction:s,encoding:o})=>"duplex"===t?sl({stdioItem:e,optionName:i}):"webTransform"===t?ol({stdioItem:e,index:r,newTransforms:n,direction:s}):al({stdioItem:e,index:r,newTransforms:n,direction:s,encoding:o}),sl=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:i=n}},optionName:s})=>{if(i&&!n)throw new TypeError(`The \`${s}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!i&&n)throw new TypeError(`The \`${s}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:r,readableObjectMode:n}}},ol=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i})=>{const{transform:s,objectMode:o}=kn(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:u}=el(o,r,n,i);return{...e,value:{transform:s,writableObjectMode:a,readableObjectMode:u}}},al=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i,encoding:s})=>{const{transform:o,final:a,binary:u=!1,preserveNewlines:l=!1,objectMode:c}=kn(t)?t:{transform:t},h=u||ya.has(s),{writableObjectMode:d,readableObjectMode:p}=el(c,r,n,i);return{...e,value:{transform:o,final:a,binary:h,preserveNewlines:l,writableObjectMode:d,readableObjectMode:p}}},ul=(e,t)=>"input"===t?e.reverse():e,ll=({type:e,value:t},r)=>cl[r]??pl[e](t),cl=["input","output","output"],hl=()=>{},dl=()=>"input",pl={generator:hl,asyncGenerator:hl,fileUrl:hl,filePath:hl,iterable:dl,asyncIterable:dl,uint8Array:dl,webStream:e=>Wu(e)?"output":"input",nodeStream:e=>Pa(e,{checkOpen:!1})?Ba(e,{checkOpen:!1})?void 0:"input":"output",webTransform:hl,duplex:hl,native(e){const t=fl(e);return void 0!==t?t:ja(e,{checkOpen:!1})?pl.nodeStream(e):void 0}},fl=e=>[0,Jt.stdin].includes(e)?"input":[1,2,Jt.stdout,Jt.stderr].includes(e)?"output":void 0,ml="output",gl=(e,t)=>{if(void 0===e)return oi.map((e=>t[e]));if(bl(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${oi.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e)return[e,e,e];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const r=Math.max(e.length,oi.length);return Array.from({length:r},((t,r)=>e[r]))},bl=e=>oi.some((t=>void 0!==e[t])),yl=(e,t)=>Array.isArray(e)?e.map((e=>yl(e,t))):null==e?t>=oi.length?"ignore":"pipe":e,Dl=(e,t,r)=>e.map(((e,n)=>t[n]||0===n||Ei(r,n)||!wl(e)?e:"ignore")),wl=e=>"pipe"===e||Array.isArray(e)&&e.every((e=>"pipe"===e)),vl=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:i})=>{const s=El({value:t,optionName:r,fdNumber:n,direction:i});if(void 0!==s)return s;if(ja(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},El=({value:e,optionName:t,fdNumber:r,direction:n})=>{const i=Fl(e,r);if(void 0!==i){if("output"===n)return{type:"fileNumber",value:i,optionName:t};if(Qt.isatty(i))throw new TypeError(`The \`${t}: ${So(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:Un((0,Xr.readFileSync)(i)),optionName:t}}},Fl=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=si.indexOf(e);return-1!==r?r:void 0},Cl=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:Sl(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:Sl(t,t,r),optionName:r}:ja(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,Sl=(e,t,r)=>{const n=si[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},xl=({input:e,inputFile:t},r)=>0===r?[...Ol(e),...Al(t)]:[],Ol=e=>void 0===e?[]:[{type:_l(e),value:e,optionName:"input"}],_l=e=>{if(Pa(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(Ln(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},Al=e=>void 0===e?[]:[{...Tl(e),optionName:"inputFile"}],Tl=e=>{if(Ru(e))return{type:"fileUrl",value:e};if(Nu(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},Ml=(e,t)=>e.flatMap((({direction:e,stdioItems:r})=>r.filter((e=>e.type===t)).map((t=>({...t,direction:e}))))),Il=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{Ju.has(t)&&kl({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})},kl=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{const s=e.filter((e=>jl(e,r)));if(0===s.length)return;const o=s.find((e=>e.direction!==i));return Pl(o,n,t),"output"===i?s[0].stream:void 0},jl=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,Bl=({otherStdioItems:e,type:t,value:r,optionName:n})=>{const i=e.find((({value:{transform:e}})=>e===r.transform));Pl(i,n,t)},Pl=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Xu[r]} that is the same.`)},Rl=(e,t,r,n)=>{const i=(({stdio:e,ipc:t,buffer:r,...n},i,s)=>{const o=gl(e,n).map(((e,t)=>yl(e,t)));return s?Dl(o,r,i):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(o,t)})(t,r,n),s=i.map(((e,r)=>$l({stdioOption:e,fdNumber:r,options:t,isSync:n}))),o=Vl({initialFileDescriptors:s,addProperties:e,options:t,isSync:n});return t.stdio=o.map((({stdioItems:e})=>Jl(e))),o},$l=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const i=ai(t),{stdioItems:s,isStdioArray:o}=Nl({stdioOption:e,fdNumber:t,options:r,optionName:i}),a=((e,t,r)=>{const n=e.map((e=>ll(e,t)));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??ml})(s,t,i),u=s.map((e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:i,isSync:s})=>r&&"native"===t?s?vl({stdioItem:e,fdNumber:n,direction:i}):Cl({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:o,fdNumber:t,direction:a,isSync:n}))),l=((e,t,r,n)=>[...e.filter((({type:e})=>!Yu.has(e))),...nl(e,t,r,n)])(u,i,a,r),c=((e,t)=>{const r=e.findLast((({type:e})=>Yu.has(e)));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(l,a);return zl(l,c),{direction:a,objectMode:c,stdioItems:l}},Nl=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{const i=(e=>e.filter(((t,r)=>e.every(((e,n)=>t.value!==e.value||r>=n||"generator"===t.type||"asyncGenerator"===t.type)))))([...(Array.isArray(e)?e:[e]).map((e=>Ll(e,n))),...xl(r,t)]),s=i.length>1;return Ul(i,s,n),Gl(i),{stdioItems:i,isStdioArray:s}},Ll=(e,t)=>({type:Su(e,t),value:e,optionName:t}),Ul=(e,t,r)=>{if(0===e.length)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t)for(const{value:t,optionName:r}of e)if(Wl.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},Wl=new Set(["ignore","ipc"]),Gl=e=>{for(const t of e)Hl(t)},Hl=({type:e,value:t,optionName:r})=>{if((e=>Ru(e)&&"file:"!==e.protocol)(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(((e,t)=>"native"===e&&"string"==typeof t&&!Lu.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},zl=(e,t)=>{if(!t)return;const r=e.find((({type:e})=>Ku.has(e)));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},Vl=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const i=[];try{for(const s of e)i.push(ql({fileDescriptor:s,fileDescriptors:i,addProperties:t,options:r,isSync:n}));return i}catch(e){throw Kl(i),e}},ql=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:i,options:s,isSync:o})=>{const a=r.map((t=>Yl({stdioItem:t,addProperties:i,direction:e,options:s,fileDescriptors:n,isSync:o})));return{direction:e,objectMode:t,stdioItems:a}},Yl=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:i,isSync:s})=>{const o=(({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:i,isSync:s})=>{const o=Ml(i,e);if(0!==o.length){if(!s)return Zu.has(e)?kl({otherStdioItems:o,type:e,value:t,optionName:r,direction:n}):void(Qu.has(e)&&Bl({otherStdioItems:o,type:e,value:t,optionName:r}));Il({otherStdioItems:o,type:e,value:t,optionName:r,direction:n})}})({stdioItem:e,direction:r,fileDescriptors:i,isSync:s});return void 0!==o?{...e,stream:o}:{...e,...t[r][e.type](e,n)}},Kl=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||ii(e)||e.destroy()},Jl=e=>{if(e.length>1)return e.some((({value:e})=>"overlapped"===e))?"overlapped":"pipe";const[{type:t,value:r}]=e;return"native"===t?r:"pipe"},Zl=({type:e,optionName:t})=>{Ql(t,Xu[e])},Ql=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},Xl={generator(){},asyncGenerator:Zl,webStream:Zl,nodeStream:Zl,webTransform:Zl,duplex:Zl,asyncIterable:Zl,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||Ql(e,`"${t}"`),{})},ec={input:{...Xl,fileUrl:({value:e})=>({contents:[Un((0,Xr.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[Un((0,Xr.readFileSync)(e))]}),fileNumber:Zl,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...Xl,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e}})=>({path:e}),fileNumber:({value:e})=>({path:e}),iterable:Zl,string:Zl,uint8Array:Zl}},tc=(e,{stripFinalNewline:t},r)=>rc(t,r)&&void 0!==e&&!Array.isArray(e)?Oa(e):e,rc=(e,t)=>"all"===t?e[1]||e[2]:e[t],nc=e(import.meta.url)("node:stream"),ic=(e,t,r,n)=>e||r?void 0:ac(t,n),sc=(e,t,r)=>r?e.flatMap((e=>oc(e,t))):oc(e,t),oc=(e,t)=>{const{transform:r,final:n}=ac(t,{});return[...r(e),...n()]},ac=(e,t)=>(t.previousChunks="",{transform:uc.bind(void 0,t,e),final:cc.bind(void 0,t)}),uc=function*(e,t,r){if("string"!=typeof r)return void(yield r);let{previousChunks:n}=e,i=-1;for(let s=0;s<r.length;s+=1)if("\n"===r[s]){const o=lc(r,s,t,e);let a=r.slice(i+1,s+1-o);n.length>0&&(a=pc(n,a),n=""),yield a,i=s}i!==r.length-1&&(n=pc(n,r.slice(i+1))),e.previousChunks=n},lc=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),cc=function*({previousChunks:e}){e.length>0&&(yield e)},hc=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:dc.bind(void 0,n)},dc=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:i,concatBytes:s}="string"==typeof t?fc:mc;if(t.at(-1)===i)return void(yield t);const o=e?n:r;yield s(t,o)},pc=(e,t)=>`${e}${t}`,fc={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:pc},mc={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}},gc=e(import.meta.url)("node:buffer"),bc=(e,t)=>e?void 0:yc.bind(void 0,t),yc=function*(e,t){if("string"!=typeof t&&!Ln(t)&&!gc.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},Dc=(e,t)=>e?wc.bind(void 0,t):vc.bind(void 0,t),wc=function*(e,t){Ec(e,t),yield t},vc=function*(e,t){if(Ec(e,t),"string"!=typeof t&&!Ln(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},Ec=(e,t)=>{if(null==t)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)},Fc=(e,t,r)=>{if(r)return;if(e)return{transform:Cc.bind(void 0,new TextEncoder)};const n=new $n.StringDecoder(t);return{transform:Sc.bind(void 0,n),final:xc.bind(void 0,n)}},Cc=function*(e,t){gc.Buffer.isBuffer(t)?yield Un(t):"string"==typeof t?yield e.encode(t):yield t},Sc=function*(e,t){yield Ln(t)?e.write(t):t},xc=function*(e){const t=e.end();""!==t&&(yield t)},Oc=(0,gn.callbackify)((async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(const e of t.currentIterable)n.push(e)}finally{delete t.currentIterable}})),_c=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=Ic}=t[r];for await(const i of n(e))yield*_c(i,t,r+1)},Ac=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Tc(r,Number(t),e)},Tc=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*_c(n,r,t+1)},Mc=(0,gn.callbackify)((async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())})),Ic=function*(e){yield e},kc=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},jc=(e,t)=>[...t.flatMap((t=>[...Bc(t,e,0)])),...Pc(e)],Bc=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=$c}=t[r];for(const i of n(e))yield*Bc(i,t,r+1)},Pc=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Rc(r,Number(t),e)},Rc=function*(e,t,r){if(void 0!==e)for(const n of e())yield*Bc(n,r,t+1)},$c=function*(e){yield e},Nc=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:i},optionName:s},{encoding:o})=>{const a={},u=Uc(e,o,s),l=ju(t),c=ju(r),h=l?Oc.bind(void 0,_c,a):kc.bind(void 0,Bc),d=l||c?Oc.bind(void 0,Ac,a):kc.bind(void 0,Pc),p=l||c?Mc.bind(void 0,a):void 0;return{stream:new nc.Transform({writableObjectMode:n,writableHighWaterMark:(0,nc.getDefaultHighWaterMark)(n),readableObjectMode:i,readableHighWaterMark:(0,nc.getDefaultHighWaterMark)(i),transform(e,t,r){h([e,u,0],this,r)},flush(e){d([u],this,e)},destroy:p})}},Lc=(e,t,r,n)=>{const i=t.filter((({type:e})=>"generator"===e)),s=n?i.reverse():i;for(const{value:t,optionName:n}of s){const i=Uc(t,r,n);e=jc(i,e)}return e},Uc=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:i,preserveNewlines:s},o,a)=>{const u={};return[{transform:bc(n,a)},Fc(r,o,n),ic(r,s,n,u),{transform:e,final:t},{transform:Dc(i,a)},hc({binary:r,preserveNewlines:s,readableObjectMode:i,state:u})].filter(Boolean)},Wc=e=>new Set(Object.entries(e).filter((([,{direction:e}])=>"input"===e)).map((([e])=>Number(e)))),Gc=(e,t,r)=>{const{stdioItems:n}=e[t],i=n.filter((({contents:e})=>void 0!==e));if(0===i.length)return;if(0!==t){const[{type:e,optionName:t}]=i;throw new TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${Xu[e]} with synchronous methods.`)}const s=i.map((({contents:e})=>e)).map((e=>Hc(e,n)));r.input=qn(s)},Hc=(e,t)=>{const r=Lc(e,t,"utf8",!0);return zc(r),qn(r)},zc=e=>{const t=e.find((e=>"string"!=typeof e&&!Ln(e)));if(void 0!==t)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)},Vc=({stdioItems:e,encoding:t,verboseInfo:r,fdNumber:n})=>"all"!==n&&Ei(r,n)&&!ya.has(t)&&qc(n)&&(e.some((({type:e,value:t})=>"native"===e&&Yc.has(t)))||e.every((({type:e})=>Yu.has(e)))),qc=e=>1===e||2===e,Yc=new Set(["pipe","overlapped"]),Kc=e=>e._readableState.pipes.length>0,Jc=(e,t,r)=>{const n=as(e);rs({type:"output",verboseMessage:n,fdNumber:t,verboseInfo:r})},Zc=({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:i,isMaxBuffer:s,verboseInfo:o},{buffer:a,encoding:u,lines:l,stripFinalNewline:c,maxBuffer:h})=>{if(null===e)return;const d=((e,t,r)=>{if(!t)return e;const n=ou(r);return e.length>n?e.slice(0,n):e})(e,s,h),p=Un(d),{stdioItems:f,objectMode:m}=t[r],g=Qc([p],f,u,n),{serializedResult:b,finalResult:y=b}=Xc({chunks:g,objectMode:m,encoding:u,lines:l,stripFinalNewline:c,fdNumber:r});eh({serializedResult:b,fdNumber:r,state:n,verboseInfo:o,encoding:u,stdioItems:f,objectMode:m});const D=a[r]?y:void 0;try{return void 0===n.error&&th(b,f,i),D}catch(e){return n.error=e,D}},Qc=(e,t,r,n)=>{try{return Lc(e,t,r,!1)}catch(t){return n.error=t,e}},Xc=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:i,fdNumber:s})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:qn(e)};const o=((e,t)=>Vn(e,t).join(""))(e,r);return n[s]?{serializedResult:o,finalResult:sc(o,!i[s],t)}:{serializedResult:o}},eh=({serializedResult:e,fdNumber:t,state:r,verboseInfo:n,encoding:i,stdioItems:s,objectMode:o})=>{if(!Vc({stdioItems:s,encoding:i,verboseInfo:n,fdNumber:t}))return;const a=sc(e,!1,o);try{((e,t,r)=>{for(const n of e)Jc(n,t,r)})(a,t,n)}catch(e){r.error??=e}},th=(e,t,r)=>{for(const{path:n}of t.filter((({type:e})=>Ku.has(e)))){const t="string"==typeof n?n:n.toString();r.has(t)?(0,Xr.appendFileSync)(n,e):(r.add(t),(0,Xr.writeFileSync)(n,e))}},rh=async e=>{const[t,r]=await Promise.allSettled([(0,Qs.once)(e,"spawn"),(0,Qs.once)(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?nh(e):r.value},nh=async e=>{try{return await(0,Qs.once)(e,"exit")}catch{return nh(e)}},ih=async e=>{const[t,r]=await e;if(!sh(t,r)&&oh(t,r))throw new vs;return[t,r]},sh=(e,t)=>void 0===e&&void 0===t,oh=(e,t)=>0!==e||null!==t,ah=({error:e,status:t,signal:r,output:n},{maxBuffer:i})=>{const s=uh(e,t,r),o="ETIMEDOUT"===s?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some((e=>null!==e&&e.length>ou(r))))(s,n,i);return{resultError:s,exitCode:t,signal:r,timedOut:o,isMaxBuffer:a}},uh=(e,t,r)=>void 0!==e?e:oh(t,r)?new vs:void 0,lh=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=fs(e,t,r),a=ch(r),{file:u,commandArguments:l,options:c}=Ca(e,t,a);hh(c);const h=((e,t)=>Rl(ec,e,t,!0))(c,o);return{file:u,commandArguments:l,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}},ch=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,hh=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&dh("ipcInput"),e&&dh("ipc: true"),r&&dh("detached: true"),n&&dh("cancelSignal")},dh=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},ph=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,verboseInfo:s,fileDescriptors:o,startTime:a})=>{const u=fh({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:o,startTime:a});if(u.failed)return u;const{resultError:l,exitCode:c,signal:h,timedOut:d,isMaxBuffer:p}=ah(u,r),{output:f,error:m=l}=(({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:i})=>{if(null===t)return{output:Array.from({length:3})};const s={},o=new Set([]);return{output:t.map(((t,a)=>Zc({result:t,fileDescriptors:e,fdNumber:a,state:s,outputFiles:o,isMaxBuffer:n,verboseInfo:i},r))),...s}})({fileDescriptors:o,syncResult:u,options:r,isMaxBuffer:p,verboseInfo:s}),g=f.map(((e,t)=>tc(e,r,t))),b=tc((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,tc(t,r,"all")]:Array.isArray(t)?[tc(e,r,"all"),...t]:Ln(e)&&Ln(t)?Kn([e,t]):`${e}${t}`})(f,r),r,"all");return gh({error:m,exitCode:c,signal:h,timedOut:d,isMaxBuffer:p,stdio:g,all:b,options:r,command:n,escapedCommand:i,startTime:a})},fh=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:s,startTime:o})=>{try{((e,t)=>{for(const r of Wc(e))Gc(e,r,t)})(s,r);const n=mh(r);return(0,Qr.spawnSync)(e,t,n)}catch(e){return fu({error:e,command:n,escapedCommand:i,fileDescriptors:s,options:r,startTime:o,isSync:!0})}},mh=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:ou(t)}),gh=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:i,stdio:s,all:o,options:a,command:u,escapedCommand:l,startTime:c})=>void 0===e?pu({command:u,escapedCommand:l,stdio:s,all:o,ipcOutput:[],options:a,startTime:c}):mu({error:e,command:u,escapedCommand:l,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:i,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:s,all:o,ipcOutput:[],options:a,startTime:c,isSync:!0}),bh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0,filter:s}={})=>(ro({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:Ro(e)}),yh({anyProcess:e,channel:t,isSubprocess:r,filter:s,reference:i})),yh=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:i})=>{Oo(t,i);const s=jo(e,t,r),o=new AbortController;try{return await Promise.race([Dh(s,n,o),wh(s,r,o),vh(s,r,o)])}catch(t){throw po(e),t}finally{o.abort(),Ao(t,i)}},Dh=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await(0,Qs.once)(e,"message",{signal:r});return t}for await(const[n]of(0,Qs.on)(e,"message",{signal:r}))if(t(n))return n},wh=async(e,t,{signal:r})=>{await(0,Qs.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${lo("getOneMessage",e)} could not complete: the ${ho(e)} exited or disconnected.`)})(t)},vh=async(e,t,{signal:r})=>{const[n]=await(0,Qs.once)(e,"strict:error",{signal:r});throw so(n,t)},Eh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0}={})=>Fh({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:i}),Fh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:i,reference:s})=>{ro({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:Ro(e)}),Oo(t,s);const o=jo(e,t,r),a=new AbortController,u={};return Ch(e,o,a),Sh({ipcEmitter:o,isSubprocess:r,controller:a,state:u}),xh({anyProcess:e,channel:t,ipcEmitter:o,isSubprocess:r,shouldAwait:i,controller:a,state:u,reference:s})},Ch=async(e,t,r)=>{try{await(0,Qs.once)(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},Sh=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[i]=await(0,Qs.once)(e,"strict:error",{signal:r.signal});n.error=so(i,t),r.abort()}catch{}},xh=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:i,controller:s,state:o,reference:a}){try{for await(const[e]of(0,Qs.on)(r,"message",{signal:s.signal}))Oh(o),yield e}catch{Oh(o)}finally{s.abort(),Ao(t,a),n||po(e),i&&await e}},Oh=({error:e})=>{if(e)throw e},_h=(e,t,r)=>({sendMessage:Zo.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:bh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:Eh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),Ah=(e,t)=>{const r=Th(),n=Th(),i=Th(),s=Array.from({length:t.length-3},Th),o=Th(),a=[r,n,i,...s];Object.assign(e,{stdin:r,stdout:n,stderr:i,all:o,stdio:a})},Th=()=>{const e=new nc.PassThrough;return e.end(),e},Mh=()=>new nc.Readable({read(){}}),Ih=()=>new nc.Writable({write(){}}),kh=()=>new nc.Duplex({read(){},write(){}}),jh=async(e,t,r)=>Cu(e,t,r),Bh=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${Xu[e]}.`)},Ph={fileNumber:Bh,generator:Nc,asyncGenerator:Nc,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:nc.Duplex.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Rh={input:{...Ph,fileUrl:({value:e})=>({stream:(0,Xr.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Xr.createReadStream)(e)}),webStream:({value:e})=>({stream:nc.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:nc.Readable.from(e)}),asyncIterable:({value:e})=>({stream:nc.Readable.from(e)}),string:({value:e})=>({stream:nc.Readable.from(e)}),uint8Array:({value:e})=>({stream:nc.Readable.from(gc.Buffer.from(e))})},output:{...Ph,fileUrl:({value:e})=>({stream:(0,Xr.createWriteStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Xr.createWriteStream)(e)}),webStream:({value:e})=>({stream:nc.Writable.fromWeb(e)}),iterable:Bh,asyncIterable:Bh,string:Bh,uint8Array:Bh}},$h=e(import.meta.url)("node:stream/promises");function Nh(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)zh(t);const t=e.some((({readableObjectMode:e})=>e)),r=Lh(e,t),n=new Uh({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const Lh=(e,t)=>{if(0===e.length)return(0,nc.getDefaultHighWaterMark)(t);const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class Uh extends nc.PassThrough{#_=new Set([]);#A=new Set([]);#T=new Set([]);#M;#I=Symbol("unpipe");#k=new WeakMap;add(e){if(zh(e),this.#_.has(e))return;this.#_.add(e),this.#M??=Wh(this,this.#_,this.#I);const t=Vh({passThroughStream:this,stream:e,streams:this.#_,ended:this.#A,aborted:this.#T,onFinished:this.#M,unpipeEvent:this.#I});this.#k.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(zh(e),!this.#_.has(e))return!1;const t=this.#k.get(e);return void 0!==t&&(this.#k.delete(e),e.unpipe(this),await t,!0)}}const Wh=async(e,t,r)=>{rd(e,nd);const n=new AbortController;try{await Promise.race([Gh(e,n),Hh(e,t,r,n)])}finally{n.abort(),rd(e,-nd)}},Gh=async(e,{signal:t})=>{try{await(0,$h.finished)(e,{signal:t,cleanup:!0})}catch(t){throw Zh(e,t),t}},Hh=async(e,t,r,{signal:n})=>{for await(const[i]of(0,Qs.on)(e,"unpipe",{signal:n}))t.has(i)&&i.emit(r)},zh=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Vh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,onFinished:s,unpipeEvent:o})=>{rd(e,id);const a=new AbortController;try{await Promise.race([qh(s,t,a),Yh({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:a}),Kh({stream:t,streams:r,ended:n,aborted:i,unpipeEvent:o,controller:a})])}finally{a.abort(),rd(e,-id)}r.size>0&&r.size===n.size+i.size&&(0===n.size&&i.size>0?Xh(e):Jh(e))},qh=async(e,t,{signal:r})=>{try{await e,r.aborted||Xh(t)}catch(e){r.aborted||Zh(t,e)}},Yh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:{signal:s}})=>{try{await(0,$h.finished)(t,{signal:s,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(n){if(s.aborted||!r.has(t))return;Qh(n)?i.add(t):ed(e,n)}},Kh=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:i,controller:{signal:s}})=>{if(await(0,Qs.once)(e,i,{signal:s}),!e.readable)return(0,Qs.once)(s,"abort",{signal:s});t.delete(e),r.delete(e),n.delete(e)},Jh=e=>{e.writable&&e.end()},Zh=(e,t)=>{Qh(t)?Xh(e):ed(e,t)},Qh=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Xh=e=>{(e.readable||e.writable)&&e.destroy()},ed=(e,t)=>{e.destroyed||(e.once("error",td),e.destroy(t))},td=()=>{},rd=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},nd=2,id=1,sd=(e,t)=>{e.pipe(t),od(e,t),ud(e,t)},od=async(e,t)=>{if(!ii(e)&&!ii(t)){try{await(0,$h.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}ad(t)}},ad=e=>{e.writable&&e.end()},ud=async(e,t)=>{if(!ii(e)&&!ii(t)){try{await(0,$h.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}ld(e)}},ld=e=>{e.readable&&e.destroy()},cd=(e,t,r,n)=>{"output"===r?sd(e.stdio[n],t):sd(t,e.stdio[n]);const i=hd[n];void 0!==i&&(e[i]=t),e.stdio[n]=t},hd=["stdin","stdout","stderr"],dd=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:i,controller:s})=>{if(void 0===t)return;pd(t,s);const[o,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],u=i.get(o)??[];i.set(o,[...u,a])},pd=(e,{signal:t})=>{ii(e)&&xo(e,fd,t)},fd=2,md=[];md.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&md.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&md.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const gd=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,bd=Symbol.for("signal-exit emitter"),yd=globalThis,Dd=Object.defineProperty.bind(Object);class wd{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(yd[bd])return yd[bd];Dd(yd,bd,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const i of this.listeners[e])n=!0===i(t,r)||n;return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class vd{}const Ed=globalThis.process,{onExit:Fd,load:Cd,unload:Sd}=(xd=gd(Ed)?new class extends vd{#j="win32"===Ed.platform?"SIGINT":"SIGHUP";#B=new wd;#P;#R;#$;#N={};#L=!1;constructor(e){super(),this.#P=e,this.#N={};for(const t of md)this.#N[t]=()=>{const r=this.#P.listeners(t);let{count:n}=this.#B;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(n+=i.__signal_exit_emitter__.count),r.length===n){this.unload();const r=this.#B.emit("exit",null,t),n="SIGHUP"===t?this.#j:t;r||e.kill(e.pid,n)}};this.#$=e.reallyExit,this.#R=e.emit}onExit(e,t){if(!gd(this.#P))return()=>{};!1===this.#L&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#B.on(r,e),()=>{this.#B.removeListener(r,e),0===this.#B.listeners.exit.length&&0===this.#B.listeners.afterExit.length&&this.unload()}}load(){if(!this.#L){this.#L=!0,this.#B.count+=1;for(const e of md)try{const t=this.#N[e];t&&this.#P.on(e,t)}catch(e){}this.#P.emit=(e,...t)=>this.#U(e,...t),this.#P.reallyExit=e=>this.#W(e)}}unload(){this.#L&&(this.#L=!1,md.forEach((e=>{const t=this.#N[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#P.removeListener(e,t)}catch(e){}})),this.#P.emit=this.#R,this.#P.reallyExit=this.#$,this.#B.count-=1)}#W(e){return gd(this.#P)?(this.#P.exitCode=e||0,this.#B.emit("exit",this.#P.exitCode,null),this.#$.call(this.#P,this.#P.exitCode)):0}#U(e,...t){const r=this.#R;if("exit"===e&&gd(this.#P)){"number"==typeof t[0]&&(this.#P.exitCode=t[0]);const n=r.call(this.#P,e,...t);return this.#B.emit("exit",this.#P.exitCode,null),n}return r.call(this.#P,e,...t)}}(Ed):new class extends vd{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>xd.onExit(e,t),load:()=>xd.load(),unload:()=>xd.unload()});var xd;const Od=(e,t,r)=>{try{const{destination:n,pipeOptions:{from:i,to:s,unpipeSignal:o}={}}=_d(e,t,...r);return{destination:n,destinationStream:mo(n,s),from:i,unpipeSignal:o}}catch(e){return{destinationError:e}}},_d=(e,t,r,...n)=>{if(Array.isArray(r)){return{destination:t(Ad,e)(r,...n),pipeOptions:e}}if("string"==typeof r||r instanceof URL){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');const[i,s,o]=Rn(r,...n);return{destination:t(Ad)(i,s,o),pipeOptions:o}}if(bo.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},Ad=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),Td=(e,t)=>{try{return{sourceStream:go(e,t)}}catch(e){return{sourceError:e}}},Md=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(ld(e),n):void 0!==t?(ad(r),t):void 0,Id=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>fu({error:e,command:kd,escapedCommand:kd,fileDescriptors:t,options:r,startTime:n,isSync:!1}),kd="source.pipe(destination)",jd=async e=>{const[{status:t,reason:r,value:n=r},{status:i,reason:s,value:o=s}]=await e;if(o.pipedFrom.includes(n)||o.pipedFrom.push(n),"rejected"===i)throw o;if("rejected"===t)throw n;return o},Bd=(e,t)=>{const r=Nh([e]);return sd(r,t),$d.set(t,r),r},Pd=(e,t)=>{const r=$d.get(t);return r.add(e),r},Rd=async e=>{try{await(0,$h.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}$d.delete(e)},$d=new WeakMap,Nd=2,Ld=1,Ud=(e,t)=>void 0===e?[]:[Wd(e,t)],Wd=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:i,startTime:s})=>{await(0,gn.aborted)(e,t),await r.remove(t);const o=new Error("Pipe canceled by `unpipeSignal` option.");throw Id({error:o,fileDescriptors:n,sourceOptions:i,startTime:s})},Gd=(e,...t)=>{if(kn(t[0]))return Gd.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:r,...n}=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...i)=>{const s=ds(),{destination:o,destinationStream:a,destinationError:u,from:l,unpipeSignal:c}=Od(r,n,i),{sourceStream:h,sourceError:d}=Td(e,l),{options:p,fileDescriptors:f}=bo.get(e);return{sourcePromise:t,sourceStream:h,sourceOptions:p,sourceError:d,destination:o,destinationStream:a,destinationError:u,unpipeSignal:c,fileDescriptors:f,startTime:s}})(e,...t),i=Hd({...n,destination:r});return i.pipe=Gd.bind(void 0,{...e,source:r,sourcePromise:i,boundOptions:{}}),i},Hd=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:i,destinationStream:s,destinationError:o,unpipeSignal:a,fileDescriptors:u,startTime:l})=>{const c=zd(e,i);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:i,sourceOptions:s,startTime:o})=>{const a=Md({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw Id({error:a,fileDescriptors:i,sourceOptions:s,startTime:o})})({sourceStream:t,sourceError:n,destinationStream:s,destinationError:o,fileDescriptors:u,sourceOptions:r,startTime:l});const h=new AbortController;try{const e=((e,t,r)=>{const n=$d.has(t)?Pd(e,t):Bd(e,t);return xo(e,Nd,r.signal),xo(t,Ld,r.signal),Rd(t),n})(t,s,h);return await Promise.race([jd(c),...Ud(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:u,startTime:l})])}finally{h.abort()}},zd=(e,t)=>Promise.allSettled([e,t]),Vd=e=>e,qd=()=>{},Yd=({contents:e})=>e,Kd=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Jd=e=>e.length;const Zd={init:()=>({contents:[]}),convertChunk:{string:Vd,buffer:Vd,arrayBuffer:Vd,dataView:Vd,typedArray:Vd,others:Vd},getSize:()=>1,truncateChunk:qd,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:qd,finalize:Yd};const Qd=new TextEncoder,Xd=e=>new Uint8Array(e),ep=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),tp=(e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(np(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},rp=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:np(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},np=e=>ip**Math.ceil(Math.log(e)/Math.log(ip)),ip=2,sp=()=>"resize"in ArrayBuffer.prototype,op={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>Qd.encode(e),buffer:Xd,arrayBuffer:Xd,dataView:ep,typedArray:ep,others:Kd},getSize:Jd,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const i=sp()?rp(t,n):tp(t,n);return new Uint8Array(i).set(e,r),i},getFinalChunk:qd,finalize:({contents:e,length:t})=>sp()?e:e.slice(0,t)};const ap=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),up={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:Vd,buffer:ap,arrayBuffer:ap,dataView:ap,typedArray:ap,others:Kd},getSize:Jd,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:Yd},lp=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:i,preserveNewlines:s})=>{const o=new AbortController;return cp(t,o),pp({stream:e,controller:o,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:i,shouldSplit:!e.readableObjectMode,preserveNewlines:s})},cp=async(e,t)=>{try{await e}catch{}finally{t.abort()}},hp=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:i,allMixed:s})=>{const o=new AbortController;dp(t,o,e);const a=e.readableObjectMode&&!s;return pp({stream:e,controller:o,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!i})},dp=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},pp=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})=>{const a=(0,Qs.on)(e,"data",{signal:t.signal,highWaterMark:mp,highWatermark:mp});return gp({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})},fp=(0,nc.getDefaultHighWaterMark)(!0),mp=fp,gp=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o}){const a=bp({binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o});try{for await(const[t]of e)yield*Bc(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*Pc(a)}},bp=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:i})=>[Fc(e,r,!t),ic(e,i,!n,{})].filter(Boolean),yp=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:i,maxBuffer:s,lines:o,allMixed:a,stripFinalNewline:u,verboseInfo:l,streamInfo:c})=>{const h=Dp({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:a,verboseInfo:l,streamInfo:c});if(!i)return void await Promise.all([wp(e),h]);const d=rc(u,r),p=hp({stream:e,onStreamEnd:t,lines:o,encoding:n,stripFinalNewline:d,allMixed:a}),[f]=await Promise.all([vp({stream:e,iterable:p,fdNumber:r,encoding:n,maxBuffer:s,lines:o}),h]);return f},Dp=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:i,verboseInfo:s,streamInfo:{fileDescriptors:o}})=>{if(!Vc({stdioItems:o[r]?.stdioItems,encoding:n,verboseInfo:s,fdNumber:r}))return;const a=hp({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:i});await(async(e,t,r,n)=>{for await(const i of e)Kc(t)||Jc(i,r,n)})(a,e,r,s)},wp=async e=>{await(0,ws.setImmediate)(),null===e.readableFlowing&&e.resume()},vp=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:i,maxBuffer:s,lines:o})=>{try{return t||o?await async function(e,t){return Ja(e,Zd,t)}(r,{maxBuffer:s}):"buffer"===i?new Uint8Array(await async function(e,t){return Ja(e,op,t)}(r,{maxBuffer:s})):await async function(e,t){return Ja(e,up,t)}(r,{maxBuffer:s})}catch(r){return Fp((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:i,fdNumber:s})=>{if(!(e instanceof ru))throw e;if("all"===s)return e;const o=nu(r,n,i);throw e.maxBufferInfo={fdNumber:s,unit:o},t.destroy(),e})({error:r,stream:e,readableObjectMode:t,lines:o,encoding:i,fdNumber:n}))}},Ep=async e=>{try{return await e}catch(e){return Fp(e)}},Fp=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===Nn.call(t)?new Uint8Array(e):e;var t},Cp=async(e,t,r,{isSameDirection:n,stopOnExit:i=!1}={})=>{const s=Sp(e,r),o=new AbortController;try{await Promise.race([...i?[r.exitPromise]:[],(0,$h.finished)(e,{cleanup:!0,signal:o.signal})])}catch(e){s.stdinCleanedUp||_p(e,t,r,n)}finally{o.abort()}},Sp=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&xp(e,r,n),n},xp=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...i)=>{Op(t,r),n.call(e,...i)}},Op=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},_p=(e,t,r,n)=>{if(!Ap(e,t,r,n))throw e},Ap=(e,t,r,n=!0)=>r.propagating?Ip(e)||Mp(e):(r.propagating=!0,Tp(r,t)===n?Ip(e):Mp(e)),Tp=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,Mp=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Ip=e=>"EPIPE"===e?.code,kp=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l})=>{if(!e)return;const c=Cp(e,t,l);if(Tp(l,t))return void await c;const[h]=await Promise.all([yp({stream:e,onStreamEnd:c,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l}),c]);return h},jp=({stdout:e,stderr:t,all:r},[,n,i])=>{const s=n||i;return s?n?i?{stream:r,buffer:s}:{stream:e,buffer:s}:{stream:t,buffer:s}:{stream:r,buffer:s}},Bp=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,Pp=(e,t)=>{const r=as(e);rs({type:"ipc",verboseMessage:r,fdNumber:"ipc",verboseInfo:t})},Rp=async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:i,verboseInfo:s})=>{if(!n)return i;const o=(e=>Ei(e,"ipc"))(s),a=wi(t,"ipc"),u=wi(r,"ipc");for await(const t of Fh({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(iu(0,i,u),i.push(t)),o&&Pp(t,s);return i},$p=async(e,t)=>(await Promise.allSettled([e]),t),Np=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:i,timeoutDuration:s,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,stripFinalNewline:l,ipc:c,ipcInput:h},context:d,verboseInfo:p,fileDescriptors:f,originalStreams:m,onInternalError:g,controller:b})=>{const y=(async(e,t)=>{const[r,n]=await rh(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,d),D={originalStreams:m,fileDescriptors:f,subprocess:e,exitPromise:y,propagating:!1},w=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>e.stdio.map(((e,u)=>kp({stream:e,fdNumber:u,encoding:t,buffer:r[u],maxBuffer:n[u],lines:i[u],allMixed:!1,stripFinalNewline:s,verboseInfo:o,streamInfo:a}))))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:D}),v=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>kp({...jp(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:i[1]||i[2],allMixed:Bp(e),stripFinalNewline:s,verboseInfo:o,streamInfo:a}))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:D}),E=[],F=Rp({subprocess:e,buffer:r,maxBuffer:n,ipc:c,ipcOutput:E,verboseInfo:p}),C=Lp(m,e,D),S=Up(f,D);try{return await Promise.race([Promise.all([{},ih(y),Promise.all(w),v,F,ga(e,h),...C,...S]),g,Wp(e,b),...da(e,s,d,b),...eo({subprocess:e,cancelSignal:o,gracefulCancel:a,context:d,controller:b}),...la({subprocess:e,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,context:d,controller:b})])}catch(e){return d.terminationReason??="other",Promise.all([{error:e},y,Promise.all(w.map((e=>Ep(e)))),Ep(v),$p(F,E),Promise.allSettled(C),Promise.allSettled(S)])}},Lp=(e,t,r)=>e.map(((e,n)=>e===t.stdio[n]?void 0:Cp(e,n,r))),Up=(e,t)=>e.flatMap((({stdioItems:e},r)=>e.filter((({value:e,stream:t=e})=>ja(t,{checkOpen:!1})&&!ii(t))).map((({type:e,value:n,stream:i=n})=>Cp(i,r,t,{isSameDirection:Yu.has(e),stopOnExit:"native"===e}))))),Wp=async(e,{signal:t})=>{const[r]=await(0,Qs.once)(e,"error",{signal:t});throw r},Gp=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const i=n.get(t),s=fo();i.push(s);return{resolve:s.resolve.bind(s),promises:i}},Hp=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},zp=async e=>{if(void 0!==e)try{await Vp(e)}catch{}},Vp=async e=>{await(0,$h.finished)(e,{cleanup:!0,readable:!1,writable:!0})},qp=async e=>{await(0,$h.finished)(e,{cleanup:!0,readable:!0,writable:!1})},Yp=async(e,t)=>{if(await e,t)throw t},Kp=(e,t,r)=>{r&&!Mp(r)?e.destroy(r):t&&e.destroy()},Jp=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:i=!0,preserveNewlines:s=!0}={})=>{const o=i||ya.has(r),{subprocessStdout:a,waitReadableDestroy:u}=Zp(e,n,t),{readableEncoding:l,readableObjectMode:c,readableHighWaterMark:h}=Qp(a,o),{read:d,onStdoutDataDone:p}=Xp({subprocessStdout:a,subprocess:e,binary:o,encoding:r,preserveNewlines:s}),f=new nc.Readable({read:d,destroy:(0,gn.callbackify)(rf.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:u})),highWaterMark:h,objectMode:c,encoding:l});return tf({subprocessStdout:a,onStdoutDataDone:p,readable:f,subprocess:e}),f},Zp=(e,t,r)=>{const n=go(e,t);return{subprocessStdout:n,waitReadableDestroy:Gp(r,n,"readableDestroy")}},Qp=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:fp},Xp=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:i})=>{const s=fo(),o=lp({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:i});return{read(){ef(this,o,s)},onStdoutDataDone:s}},ef=async(e,t,r)=>{try{const{value:n,done:i}=await t.next();i?r.resolve():e.push(n)}catch{}},tf=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:i})=>{try{await qp(e),await n,await zp(i),await t,r.readable&&r.push(null)}catch(e){await zp(i),nf(r,e)}},rf=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await Hp(r,t)&&(nf(e,n),await Yp(t,n))},nf=(e,t)=>{Kp(e,e.readable,t)},sf=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:i,waitWritableDestroy:s}=of(e,r,t),o=new nc.Writable({...af(n,e,i),destroy:(0,gn.callbackify)(hf.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:i,waitWritableDestroy:s})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return cf(n,o),o},of=(e,t,r)=>{const n=mo(e,t);return{subprocessStdin:n,waitWritableFinal:Gp(r,n,"writableFinal"),waitWritableDestroy:Gp(r,n,"writableDestroy")}},af=(e,t,r)=>({write:uf.bind(void 0,e),final:(0,gn.callbackify)(lf.bind(void 0,e,t,r))}),uf=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},lf=async(e,t,r)=>{await Hp(r,t)&&(e.writable&&e.end(),await t)},cf=async(e,t,r)=>{try{await Vp(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await qp(e)}catch{}})(r),df(t,e)}},hf=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},i)=>{await Hp(r,t),await Hp(n,t)&&(df(e,i),await Yp(t,i))},df=(e,t)=>{Kp(e,e.writable,t)},pf=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:i,binary:s=!0,preserveNewlines:o=!0}={})=>{const a=s||ya.has(r),{subprocessStdout:u,waitReadableDestroy:l}=Zp(e,n,t),{subprocessStdin:c,waitWritableFinal:h,waitWritableDestroy:d}=of(e,i,t),{readableEncoding:p,readableObjectMode:f,readableHighWaterMark:m}=Qp(u,a),{read:g,onStdoutDataDone:b}=Xp({subprocessStdout:u,subprocess:e,binary:a,encoding:r,preserveNewlines:o}),y=new nc.Duplex({read:g,...af(c,e,h),destroy:(0,gn.callbackify)(ff.bind(void 0,{subprocessStdout:u,subprocessStdin:c,subprocess:e,waitReadableDestroy:l,waitWritableFinal:h,waitWritableDestroy:d})),readableHighWaterMark:m,writableHighWaterMark:c.writableHighWaterMark,readableObjectMode:f,writableObjectMode:c.writableObjectMode,encoding:p});return tf({subprocessStdout:u,onStdoutDataDone:b,readable:y,subprocess:e,subprocessStdin:c}),cf(c,y,u),y},ff=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:i,waitWritableDestroy:s},o)=>{await Promise.all([rf({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},o),hf({subprocessStdin:t,subprocess:r,waitWritableFinal:i,waitWritableDestroy:s},o)])},mf=(e,t,{from:r,binary:n=!1,preserveNewlines:i=!1}={})=>{const s=n||ya.has(t),o=go(e,r),a=lp({subprocessStdout:o,subprocess:e,binary:s,shouldEncode:!0,encoding:t,preserveNewlines:i});return gf(a,o,e)},gf=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},bf=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=Jp.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=sf.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=pf.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=mf.bind(void 0,e,t),e[Symbol.asyncIterator]=mf.bind(void 0,e,t,{})},yf=(async()=>{})().constructor.prototype,Df=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(yf,e)])),wf=(e,t,r,n)=>{const{file:i,commandArguments:s,command:o,escapedCommand:a,startTime:u,verboseInfo:l,options:c,fileDescriptors:h}=vf(e,t,r),{subprocess:d,promise:p}=Ff({file:i,commandArguments:s,options:c,startTime:u,verboseInfo:l,command:o,escapedCommand:a,fileDescriptors:h});return d.pipe=Gd.bind(void 0,{source:d,sourcePromise:p,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of Df){const i=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}})(d,p),bo.set(d,{options:c,fileDescriptors:h}),d},vf=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=fs(e,t,r),{file:a,commandArguments:u,options:l}=Ca(e,t,r),c=Ef(l),h=((e,t)=>Rl(Rh,e,t,!1))(c,o);return{file:a,commandArguments:u,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}},Ef=({timeout:e,signal:t,...r})=>{if(void 0!==t)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...r,timeoutDuration:e}},Ff=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:i,command:s,escapedCommand:o,fileDescriptors:a})=>{let u;try{u=(0,Qr.spawn)(e,t,r)}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,verboseInfo:o})=>{Kl(n);const a=new Qr.ChildProcess;Ah(a,n),Object.assign(a,{readable:Mh,writable:Ih,duplex:kh});const u=fu({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:!1});return{subprocess:a,promise:jh(u,o,i)}})({error:e,command:s,escapedCommand:o,fileDescriptors:a,options:r,startTime:n,verboseInfo:i})}const l=new AbortController;(0,Qs.setMaxListeners)(Number.POSITIVE_INFINITY,l.signal);const c=[...u.stdio];((e,t,r)=>{const n=new Map;for(const[i,{stdioItems:s,direction:o}]of Object.entries(t)){for(const{stream:t}of s.filter((({type:e})=>Yu.has(e))))cd(e,t,o,i);for(const{stream:t}of s.filter((({type:e})=>!Yu.has(e))))dd({subprocess:e,stream:t,direction:o,fdNumber:i,pipeGroups:n,controller:r})}for(const[e,t]of n.entries()){const r=1===t.length?t[0]:Nh(t);sd(r,e)}})(u,a,l),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const i=Fd((()=>{e.kill()}));(0,Qs.addAbortListener)(n,(()=>{i()}))})(u,r,l);const h={},d=fo();u.kill=qs.bind(void 0,{kill:u.kill.bind(u),options:r,onInternalError:d,context:h,controller:l}),u.all=(({stdout:e,stderr:t},{all:r})=>r&&(e||t)?Nh([e,t].filter(Boolean)):void 0)(u,r),bf(u,r),((e,{ipc:t})=>{Object.assign(e,_h(e,!1,t))})(u,r);return{subprocess:u,promise:Cf({subprocess:u,options:r,startTime:n,verboseInfo:i,fileDescriptors:a,originalStreams:c,command:s,escapedCommand:o,context:h,onInternalError:d,controller:l})}},Cf=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:i,originalStreams:s,command:o,escapedCommand:a,context:u,onInternalError:l,controller:c})=>{const[h,[d,p],f,m,g]=await Np({subprocess:e,options:t,context:u,verboseInfo:n,fileDescriptors:i,originalStreams:s,onInternalError:l,controller:c});c.abort(),l.resolve();const b=f.map(((e,r)=>tc(e,t,r))),y=tc(m,t,"all"),D=Sf({errorInfo:h,exitCode:d,signal:p,stdio:b,all:y,ipcOutput:g,context:u,options:t,command:o,escapedCommand:a,startTime:r});return Cu(D,n,t)},Sf=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,context:o,options:a,command:u,escapedCommand:l,startTime:c})=>"error"in e?mu({error:e.error,command:u,escapedCommand:l,timedOut:"timeout"===o.terminationReason,isCanceled:"cancel"===o.terminationReason||"gracefulCancel"===o.terminationReason,isGracefullyCanceled:"gracefulCancel"===o.terminationReason,isMaxBuffer:e.error instanceof ru,isForcefullyTerminated:o.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,options:a,startTime:c,isSync:!1}):pu({command:u,escapedCommand:l,stdio:n,all:i,ipcOutput:s,options:a,startTime:c}),xf=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map((([t,r])=>[t,Of(t,e[t],r)])));return{...e,...r}},Of=(e,t,r)=>_f.has(e)&&kn(t)&&kn(r)?{...t,...r}:r,_f=new Set(["env",...Di]),Af=(e,t,r,n)=>{const i=(e,t,n)=>Af(e,t,r,n),s=(...s)=>Tf({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:i},...s);return void 0!==n&&n(s,i,t),s},Tf=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:i},s,...o)=>{if(kn(s))return i(e,xf(r,s),n);const{file:a,commandArguments:u,options:l,isSync:c}=Mf({mapArguments:e,firstArgument:s,nextArguments:o,deepOptions:t,boundOptions:r});return c?((e,t,r)=>{const{file:n,commandArguments:i,command:s,escapedCommand:o,startTime:a,verboseInfo:u,options:l,fileDescriptors:c}=lh(e,t,r),h=ph({file:n,commandArguments:i,options:l,command:s,escapedCommand:o,verboseInfo:u,fileDescriptors:c,startTime:a});return Cu(h,u,l)})(a,u,l):wf(a,u,l,i)},Mf=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:i})=>{const s=(o=t,Array.isArray(o)&&Array.isArray(o.raw)?((e,t)=>{let r=[];for(const[n,i]of e.entries())r=Zn({templates:e,expressions:t,tokens:r,index:n,template:i});if(0===r.length)throw new TypeError("Template script must not be empty");const[n,...i]=r;return[n,i,{}]})(t,r):[t,...r]);var o;const[a,u,l]=Rn(...s),c=xf(xf(n,i),l),{file:h=a,commandArguments:d=u,options:p=c,isSync:f=!1}=e({file:a,commandArguments:u,options:c});return{file:h,commandArguments:d,options:p,isSync:f}},If=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);const[r,...n]=kf(e);return{file:r,commandArguments:n}},kf=e=>{if("string"!=typeof e)throw new TypeError(`The command must be a string: ${String(e)}.`);const t=e.trim();if(""===t)return[];const r=[];for(const e of t.split(jf)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},jf=/ +/g,Bf=({options:e})=>({...Pf(e),isSync:!0}),Pf=e=>({options:{...Rf(e),...e}}),Rf=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},$f=Af((()=>({}))),{sendMessage:Nf,getOneMessage:Lf,getEachMessage:Uf,getCancelSignal:Wf}=(Af((()=>({isSync:!0}))),Af((({file:e,commandArguments:t})=>If(e,t))),Af((({file:e,commandArguments:t})=>({...If(e,t),isSync:!0}))),Af((({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}})),Af((({options:e})=>Pf(e)),{},{preferLocal:!0},((e,t,r)=>{e.sync=t(Bf,r),e.s=e.sync})),(()=>{const e=Jt,t=!0,r=void 0!==Jt.channel;return{..._h(e,t,r),getCancelSignal:ra.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}})());var Gf=n(5600);function Hf({vue:e,react:t}){const r=t&&e||!t&&!e?"base":t?"react":"vue";return{eslintConfig:{extends:`@nice-move/eslint-config-${r}`},devDependencies:{[`@nice-move/eslint-config-${r}`]:An["eslint-config-base"],eslint:An.eslint}}}const zf="Add/Reset project dependencies";function Vf(){const{dependencies:e={},devDependencies:t={}}=an();return{instructions:!1,optionsPerPage:20,message:zf,name:"Dependencies",type:e=>!1===e?null:"multiselect",choices:["tailwindcss","react","vue","typescript","commitlint","eslint","stylelint","prettier","syncpack","garou","ava","playwright","@bring-it/sftp","@bring-it/npm","best-shot"].map((r=>({title:r,value:r,selected:r in e||r in t}))),format:e=>{if(e.length>0)return t=>function(e,t={}){return(new Gt.Json).config({pretty:!0}).source("package.json").onFail().onDone((async(r={})=>{const{devDependencies:n={},dependencies:i={}}=r,{ava:s="ava"in n,commitlint:o="commitlint"in n,eslint:a="eslint"in n,garou:u="garou"in n,prettier:l="prettier"in n,react:c="react"in i,stylelint:h="stylelint"in n,syncpack:d="syncpack"in n,typescript:p="typescript"in n,vue:f="vue"in i,tailwindcss:m="tailwindcss"in i||"tailwindcss"in n,playwright:g,"@bring-it/sftp":b="@bring-it/sftp"in n,"@bring-it/npm":y="@bring-it/npm"in n,"best-shot":D="best-shot"in n}=t,w=a||h||l||u,v=[w?"npm run lint:staged":void 0,p?"npm run lint:type":void 0,s?"npm test":void 0].filter(Boolean);return v.length>0&&await(new Gt.Text).onDone((()=>["#!/bin/sh","",...v,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new Gt.Text).onDone((()=>["#!/bin/sh","npx --no-install nice-move lint commit",""].join("\n\n"))).output(".githooks/commit-msg"),d&&await(new Gt.Text).onDone((()=>["// @ts-check","import defineConfig from '@nice-move/syncpack-config/define.cjs';","export default defineConfig(import.meta.url, {});","// export { default } from '@nice-move/syncpack-config';"].join("\n\n"))).output("syncpack.config.mjs"),p&&await(new Gt.Json).config({pretty:!0}).onDone((()=>({extends:"@nice-move/tsconfig/base.json",include:["./"]}))).output("tsconfig.json"),fn.all([r,e&&(w||s||o||g||p)?{scripts:{prepare:"nice-move git hooks"}}:void 0,u?{devDependencies:{garou:An.garou},"nice-move":{"import-groups":["nice-move-preset"]}}:void 0,p?{devDependencies:{typescript:An.typescript,"@nice-move/tsconfig":An.tsconfig},scripts:{"lint:type":"tsc --noEmit"}}:void 0,w||o?{devDependencies:{"@nice-move/cli":An.cli}}:void 0,w?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,s?{devDependencies:{ava:An.ava,...a?{"eslint-plugin-ava":An["eslint-plugin-ava"]}:void 0},scripts:{prepublishOnly:r.private?void 0:v.join(" && ")||void 0,test:"ava --fail-fast",snapshot:"ava --fail-fast -u"}}:void 0,a?Hf({react:c,vue:f}):void 0,h?{devDependencies:{"@nice-move/stylelint-config":An["stylelint-config"],stylelint:An.stylelint},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,d?{devDependencies:{"@nice-move/syncpack-config":An["syncpack-config"],syncpack:An.syncpack},scripts:{"lint:version":"syncpack lint","version:pin":"syncpack fix-mismatches"}}:void 0,l?{devDependencies:{"@nice-move/prettier-config":An["prettier-config"],prettier:An.prettier},prettier:"@nice-move/prettier-config"}:void 0,c?{dependencies:{react:An.react,"react-dom":An["react-dom"]},peerDependencies:{"@types/react":An["@types/react"]}}:void 0,f?{dependencies:{vue:An.vue}}:void 0,m?{dependencies:{tailwindcss:An.tailwindcss},devDependencies:{"prettier-plugin-tailwindcss":l?An["prettier-plugin-tailwindcss"]:void 0}}:void 0,g?{scripts:{"pretest:e2e":"npm link @playwright/test","test:e2e":"playwright test"}}:void 0,b?{devDependencies:{"@bring-it/sftp":An["@bring-it/sftp"]}}:void 0,y?{devDependencies:{"@bring-it/npm":An["@bring-it/npm"]}}:void 0,D?{devDependencies:{"best-shot":An["best-shot"]},"nice-move":{globals:{BEST_SHOT:"readonly"}},scripts:{build:"best-shot prod"}}:void 0].filter(Boolean))})).output().logger(zf).catch(console.warn)}(t,Object.fromEntries(e.map((e=>[e,!0]))))}}}const qf="Initialize as git repository";function Yf(){return $f("git",["init"]).then((e=>(console.log(Sr("\u221a"),qf),e)),(e=>{throw console.log(Cr("\xd7"),qf),e}))}function Kf({gitSupported:e,isRoot:t}){return{message:qf,name:"GitInit",initial:!0,type:r=>!1===r||!e||t?null:"confirm",format(e){if(!0===e)return Yf}}}var Jf=n(1416);var Zf=n(6756);const Qf=/(?<=^v?|\sv?)(?:(?:0|[1-9]\d{0,9}?)\.){2}(?:0|[1-9]\d{0,9})(?:-(?:--+)?(?:0|[1-9]\d*|\d*[a-z]+\d*)){0,100}(?=$| |\+|\.)(?:(?<=-\S+)(?:\.(?:--?|[\da-z-]*[a-z-]\d*|0|[1-9]\d*)){1,100}?)?(?!\.)(?:\+(?:[\da-z]\.?-?){1,100}?(?!\w))?(?!\+)/gi;async function Xf({cwd:e,pkg:{author:t,description:r,license:n,name:i,private:s,version:o,workspaces:a}={}}){return[{format:sn,initial:(0,en.parse)(e).base,message:"package.json \xbb name",name:"name",type:e=>!1===e||i?null:"text",validate:e=>Zf(sn(e)||"").validForNewPackages},{format:sn,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:e=>!1===e||o?null:"text",validate:e=>Qf.test(sn(e)||"")},{format:sn,message:"package.json \xbb description",name:"description",type:e=>!1===e||r?null:"text"},{active:"MIT",format:e=>e?"MIT":"UNLICENSED",inactive:"UNLICENSED",initial:!0,message:"package.json \xbb license",name:"license",type:e=>!1===e||n?null:"toggle"},{type:e=>!1===e||("string"==typeof t?t:t&&t.name)?null:"text",format:Jf,initial:await on(t),message:"package.json \xbb author",name:"author"},{active:"true",inactive:"false",initial:!1,message:"package.json \xbb private",name:"private",format:e=>!1===e?void 0:e,type:e=>!1===e||void 0!==s?null:"toggle"},{active:"recommend",inactive:"false",initial:!1,message:"package.json \xbb workspaces",name:"workspaces",format:e=>e?["packages/*","tools/*"]:void 0,type:(e,t)=>{return!1===e||!1===s||!1===t.private||(r=a&&a.packages?a.packages:a,Array.isArray(r)&&r.length>0)?null:"toggle";var r}}]}async function em(){const e=await $f("git",["--version"]).then((({stdout:e})=>Boolean(e))),t=e&&await $f("git",["rev-parse","--git-dir"]).then((({stdout:e})=>".git"===e)).catch((()=>!1)),r=!!t&&await $f("git",["status","--short"]).then((({stdout:e})=>e.length>0)),n=0===(0,Xr.readdirSync)(process.cwd()).filter((e=>".git"!==e)).length,i=an(),s=process.cwd(),o={gitSupported:e,isRoot:t,isDirty:r,isEmpty:n,pkg:i,cwd:s},a=await Xf(o);return Gf([{active:"do it",inactive:"cancel",message:!0===r?"Repository not clean":"Workspace not empty",name:"okay",type:()=>n||!1===r?null:"toggle"},Kf(o),...a,Vf()],{onCancel(){throw new Error("cancel")}}).then((({okay:e,...t})=>{if(!1===e)throw new Error("cancel");return Object.entries(t)})).then((e=>{const t=a.map((({name:e})=>e)),r=Object.fromEntries(e.filter((([e])=>t.includes(e))));return{...Object.fromEntries(e.filter((([e])=>!t.includes(e)))),info:r,options:o}}))}process.on("SIGINT",(()=>{})),new class{constructor(e,t){this.root=t;const{bin:r,homepage:n,name:s="cheetor",repository:{url:o=""}={},version:a}="string"==typeof e?JSON.parse((0,i.readFileSync)(new URL(e,t))):e;this.homepage=n,this.repository=o.includes("github.com")?o.replace(/\.git$/,""):"";const u=Lt(process.argv.slice(2)).strict().alias("help","h").alias("version","v").hide("help").version(a).hide("version").detectLocale(!1),l=function(e,t){if("string"==typeof e||!e)return t;const r=Object.keys(e);return 1===r.length&&r[0]}(r,s);l&&u.scriptName(l),this.cli=Promise.resolve(u)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then((t=>t.command(...e))),this}commandFrom(e){return this.cli=this.cli.then((async t=>{const r=await Ut(e,this.root);return t.command(r)})),this}commandSafe(e){return this.cli=this.cli.then((t=>function(e,t){return Ut(e,t).catch((e=>{if("ERR_MODULE_NOT_FOUND"===e.code&&e.message.endsWith(` imported from ${(0,g.fileURLToPath)(import.meta.url)}`))return!1;throw e}))}(e,this.root).then((e=>e&&e.command?t.command(e):t)))),this}commandSmart(e){return this.cli=this.cli.then((async t=>{const r=e();return r&&r.command?t.command(r):t})),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then((t=>t.middleware(...e))),this}setup(e){return this.cli.then((e=>Wt(e,this))).then((t=>"function"==typeof e?e(t.parse()):t.parse()))}}("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").setup((()=>{(async function(){const{Dependencies:e,GitInit:t,Install:r,info:n,options:{isRoot:i}={}}=await em();console.log("-".repeat(32));const s=[t,()=>Mn(n),In,pn,Or,()=>t||i?cn():void 0,()=>e?e(t||i):void 0,r].filter((e=>"function"==typeof e));for(const e of s){const t=await e();t&&t.catch&&t.catch((e=>{console.warn(e.message)}))}})().catch((e=>{if("cancel"!==e.message)throw e}))}));
2
+ import{createRequire as e}from"module";var t={2701:(e,t,r)=>{e=r.nmd(e);const n=(e,t)=>(...r)=>`\x1b[${e(...r)+t}m`,i=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};5;${n}m`},s=(e,t)=>(...r)=>{const n=e(...r);return`\x1b[${38+t};2;${n[0]};${n[1]};${n[2]}m`},o=e=>e,a=(e,t,r)=>[e,t,r],u=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let l;const c=(e,t,n,i)=>{void 0===l&&(l=r(9307));const s=i?10:0,o={};for(const[r,i]of Object.entries(l)){const a="ansi16"===r?"ansi":r;r===t?o[a]=e(n,s):"object"==typeof i&&(o[a]=e(i[t],s))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n))t[r]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",u(t.color,"ansi",(()=>c(n,"ansi16",o,!1))),u(t.color,"ansi256",(()=>c(i,"ansi256",o,!1))),u(t.color,"ansi16m",(()=>c(s,"rgb",a,!1))),u(t.bgColor,"ansi",(()=>c(n,"ansi16",o,!0))),u(t.bgColor,"ansi256",(()=>c(i,"ansi256",o,!0))),u(t.bgColor,"ansi16m",(()=>c(s,"rgb",a,!0))),t}})},1813:e=>{e.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},1364:(e,t,r)=>{const n=r(3027);e.exports=(e,t)=>new n(e,t)},3027:(e,t,r)=>{const n=r(6928),i=r(8611),s=r(5692),o=r(7124),a=r(3480),u=r(3106),{URL:l}=r(7016),c=r(5495),h=["gzip","deflate","br"];e.exports=class{constructor(e,t="GET"){return this.url="string"==typeof e?new l(e):e,this.method=t,this.data=null,this.sendDataAs=null,this.reqHeaders={},this.streamEnabled=!1,this.compressionEnabled=!1,this.timeoutTime=null,this.coreOptions={},this.maxRedirects=0,this.resOptions={maxBuffer:5e7},this}followRedirects(e){return this.maxRedirects=e,this}query(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.url.searchParams.append(t,e[t])})):this.url.searchParams.append(e,t),this}path(e){return this.url.pathname=n.join(this.url.pathname,e),this}body(e,t){return this.sendDataAs="object"!=typeof e||t||Buffer.isBuffer(e)?t?t.toLowerCase():"buffer":"json",this.data="form"===this.sendDataAs?a.stringify(e):"json"===this.sendDataAs?JSON.stringify(e):e,this}header(e,t){return"object"==typeof e?Object.keys(e).forEach((t=>{this.reqHeaders[t.toLowerCase()]=e[t]})):this.reqHeaders[e.toLowerCase()]=t,this}timeout(e){return this.timeoutTime=e,this}option(e,t){return this.coreOptions[e]=t,this}stream(){return this.streamEnabled=!0,this}compress(){return this.compressionEnabled=!0,this.reqHeaders["accept-encoding"]||(this.reqHeaders["accept-encoding"]=h.join(", ")),this}send(){return new Promise(((e,t)=>{this.data&&(this.reqHeaders.hasOwnProperty("content-type")||("json"===this.sendDataAs?this.reqHeaders["content-type"]="application/json":"form"===this.sendDataAs&&(this.reqHeaders["content-type"]="application/x-www-form-urlencoded")),this.reqHeaders.hasOwnProperty("content-length")||(this.reqHeaders["content-length"]=Buffer.byteLength(this.data)));const r=Object.assign({protocol:this.url.protocol,host:this.url.hostname.replace("[","").replace("]",""),port:this.url.port,path:this.url.pathname+(null===this.url.search?"":this.url.search),method:this.method,headers:this.reqHeaders,maxRedirects:this.maxRedirects},this.coreOptions);let n;const a=(e=>{let t,r;if(this.maxRedirects<=0?(t=i.request,r=s.request):(t=o.http.request,r=o.https.request),"http:"===e)return t;if("https:"===e)return r;throw new Error("Bad URL protocol: "+e)})(this.url.protocol);n=a(r,(r=>{let n,i=r;this.compressionEnabled&&("gzip"===r.headers["content-encoding"]?i=r.pipe(u.createGunzip()):"deflate"===r.headers["content-encoding"]?i=r.pipe(u.createInflate()):"br"===r.headers["content-encoding"]&&(i=r.pipe(u.createBrotliDecompress()))),this.streamEnabled?e(i):(n=new c(r,this.resOptions),i.on("error",(e=>{t(e)})),i.on("aborted",(()=>{t(new Error("Server aborted request"))})),i.on("data",(e=>{n._addChunk(e),null!==this.resOptions.maxBuffer&&n.body.length>this.resOptions.maxBuffer&&(i.destroy(),t("Received a response which was longer than acceptable when buffering. ("+this.body.length+" bytes)"))})),i.on("end",(()=>{e(n)})))})),this.timeoutTime&&n.setTimeout(this.timeoutTime,(()=>{n.abort(),this.streamEnabled||t(new Error("Timeout reached"))})),n.on("error",(e=>{t(e)})),this.data&&n.write(this.data),n.end()}))}}},5495:e=>{e.exports=class{constructor(e,t){this.coreRes=e,this.resOptions=t,this.body=Buffer.alloc(0),this.headers=e.headers,this.statusCode=e.statusCode}_addChunk(e){this.body=Buffer.concat([this.body,e])}async json(){return 204===this.statusCode?null:JSON.parse(this.body)}async text(){return this.body.toString()}}},6181:(e,t,r)=>{const n=r(2701),{stdout:i,stderr:s}=r(5421),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(2597),{isArray:u}=Array,l=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null);class h{constructor(e){return d(e)}}const d=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=i?i.level:0;e.level=void 0===t.level?r:t.level})(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,p.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=h,t.template};function p(e){return d(e)}for(const[e,t]of Object.entries(n))c[e]={get(){const r=b(this,g(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};c.visible={get(){const e=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f)c[e]={get(){const{level:t}=this;return function(...r){const i=g(n.color[l[t]][e](...r),n.color.close,this._styler);return b(this,i,this._isEmpty)}}};for(const e of f)c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const i=g(n.bgColor[l[t]][e](...r),n.bgColor.close,this._styler);return b(this,i,this._isEmpty)}}};const m=Object.defineProperties((()=>{}),{...c,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),g=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},b=(e,t,r)=>{const n=(...e)=>u(e[0])&&u(e[0].raw)?y(n,w(n,...e)):y(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,m),n._generator=e,n._styler=t,n._isEmpty=r,n},y=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(-1!==t.indexOf("\x1b"))for(;void 0!==r;)t=o(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=a(t,i,n,s)),n+t+i};let D;const w=(e,...t)=>{const[n]=t;if(!u(n)||!u(n.raw))return t.join(" ");const i=t.slice(1),s=[n.raw[0]];for(let e=1;e<n.length;e++)s.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===D&&(D=r(826)),D(e,s.join(""))};Object.defineProperties(p.prototype,c);const v=p();v.supportsColor=i,v.stderr=p({level:s?s.level:0}),v.stderr.supportsColor=s,e.exports=v},826:e=>{const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function o(e){const t="u"===e[0],r="{"===e[1];return t&&!r&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):s.get(e)||e}function a(e,t){const r=[],s=t.trim().split(/\s*,\s*/g);let a;for(const t of s){const s=Number(t);if(Number.isNaN(s)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(a[2].replace(i,((e,t,r)=>t?o(t):r)))}else r.push(s)}return r}function u(e){r.lastIndex=0;const t=[];let n;for(;null!==(n=r.exec(e));){const e=n[1];if(n[2]){const r=a(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function l(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const[e,t]of Object.entries(r))if(Array.isArray(t)){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,r)=>{const n=[],i=[];let s=[];if(r.replace(t,((t,r,a,c,h,d)=>{if(r)s.push(o(r));else if(c){const t=s.join("");s=[],i.push(0===n.length?t:l(e,n)(t)),n.push({inverse:a,styles:u(c)})}else if(h){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(l(e,n)(s.join(""))),s=[],n.pop()}else s.push(d)})),i.push(s.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},2597:e=>{e.exports={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.substr(s),o},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let i=0,s="";do{const o="\r"===e[n-1];s+=e.substr(i,(o?n-1:n)-i)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.substr(i),s}}},1473:(e,t,r)=>{const n=Object.assign({},r(7256)),i=Object.keys(n);Object.defineProperty(n,"random",{get(){const e=Math.floor(Math.random()*i.length),t=i[e];return n[t]}}),e.exports=n},8138:(e,t,r)=>{const n=r(9878),i={};for(const e of Object.keys(n))i[n[e]]=e;const s={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"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e]))throw new Error("missing channels property: "+e);if(!("labels"in s[e]))throw new Error("missing channel labels property: "+e);if(s[e].labels.length!==s[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=s[e];delete s[e].channels,delete s[e].labels,Object.defineProperty(s[e],"channels",{value:t}),Object.defineProperty(s[e],"labels",{value:r})}s.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i;let a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+s)/2;return u=s===i?0:l<=.5?o/(s+i):o/(2-s-i),[a,100*u,100*l]},s.rgb.hsv=function(e){let t,r,n,i,s;const o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),h=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,s=0):(s=c/l,t=h(o),r=h(a),n=h(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*l]},s.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=s.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*o,100*n]},s.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n);return[100*((1-t-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},s.rgb.keyword=function(e){const t=i[e];if(t)return t;let r,s=1/0;for(const t of Object.keys(n)){const i=(a=n[t],((o=e)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);i<s&&(s=i,r=t)}var o,a;return r},s.keyword.rgb=function(e){return n[e]},s.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){const t=s.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];return r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*n-16,500*(r-n),200*(n-i)]},s.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,s,o;if(0===r)return o=255*n,[o,o,o];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,u=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,u[e]=255*o;return u},s.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const s=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,[t,100*(0===n?2*i/(s+i):2*r/(n+r)),(n+r)/2*100]},s.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}},s.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let s,o;o=(2-r)*n;const a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,100*s,100*o]},s.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let s;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),a=1-n;s=6*t-o,1&o&&(s=1-s);const u=r+s*(a-r);let l,c,h;switch(o){default:case 6:case 0:l=a,c=u,h=r;break;case 1:l=u,c=a,h=r;break;case 2:l=r,c=a,h=u;break;case 3:l=r,c=u,h=a;break;case 4:l=u,c=r,h=a;break;case 5:l=a,c=r,h=u}return[255*l,255*c,255*h]},s.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},s.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,s,o;return i=3.2406*t+-1.5372*r+-.4986*n,s=-.9689*t+1.8758*r+.0415*n,o=.0557*t+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*i,255*s,255*o]},s.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},s.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const i=r**3,s=t**3,o=n**3;return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},s.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;return i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(r*r+n*n),i]},s.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},s.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=null===t?s.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(a+=60),a},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s;let a,u;return a=o<1?s/(1-o):0,u=o<=0?0:i===t?(r-n)/o%6:i===r?2+(n-t)/o:4+(t-r)/o,u/=6,u%=1,[360*u,100*o,100*a]},s.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},s.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],s=t%1*6,o=s%1,a=1-o;let u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[255*(r*i[0]+u),255*(r*i[1]+u),255*(r*i[2]+u)]},s.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},s.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},s.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},s.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=function(e){return[0,0,e[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},9307:(e,t,r)=>{const n=r(8138),i=r(5214),s={};Object.keys(n).forEach((e=>{s[e]={},Object.defineProperty(s[e],"channels",{value:n[e].channels}),Object.defineProperty(s[e],"labels",{value:n[e].labels});const t=i(e);Object.keys(t).forEach((r=>{const n=t[r];s[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),s[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=s},5214:(e,t,r)=>{const n=r(8138);function i(e,t){return function(r){return t(e(r))}}function s(e,t){const r=[t[e].parent,e];let s=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),s=i(n[t[o].parent][o],s),o=t[o].parent;return s.conversion=r,s}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),i=Object.keys(n[e]);for(let n=i.length,s=0;s<n;s++){const n=i[s],o=t[n];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,r.unshift(n))}}return t}(e),r={},i=Object.keys(t);for(let e=i.length,n=0;n<e;n++){const e=i[n];null!==t[e].parent&&(r[e]=s(e,t))}return r}},9878:e=>{e.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]}},526:(e,t,r)=>{const n=r(5317),i=r(4705),s=r(2369);function o(e,t,r){const o=i(e,t,r),a=n.spawn(o.command,o.args,o.options);return s.hookChildProcess(a,o),a}e.exports=o,e.exports.spawn=o,e.exports.sync=function(e,t,r){const o=i(e,t,r),a=n.spawnSync(o.command,o.args,o.options);return a.error=a.error||s.verifyENOENTSync(a.status,o),a},e.exports._parse=i,e.exports._enoent=s},2369:e=>{const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return t&&1===e&&!n.file?r(n.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const i=e.emit;e.emit=function(t,s){if("exit"===t){const t=n(s,r);if(t)return i.call(e,"error",t)}return i.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},4705:(e,t,r)=>{const n=r(6928),i=r(6694),s=r(1192),o=r(3179),a="win32"===process.platform,u=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;e.exports=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const c={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?c:function(e){if(!a)return e;const t=function(e){e.file=i(e);const t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}(e),r=!u.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=n.normalize(e.command),e.command=s.command(e.command),e.args=e.args.map((e=>s.argument(e,r)));const 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}(c)}},1192:e=>{const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,r){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),r&&(e=e.replace(t,"^$1")),e}},3179:(e,t,r)=>{const n=r(9896),i=r(600);e.exports=function(e){const t=Buffer.alloc(150);let r;try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return i(t.toString())}},6694:(e,t,r)=>{const n=r(6928),i=r(1905),s=r(9695);function o(e,t){const r=e.options.env||process.env,o=process.cwd(),a=null!=e.options.cwd,u=a&&void 0!==process.chdir&&!process.chdir.disabled;if(u)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=i.sync(e.command,{path:r[s({env:r})],pathExt:t?n.delimiter:void 0})}catch(e){}finally{u&&process.chdir(o)}return l&&(l=n.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return o(e)||o(e,!0)}},7214:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(1)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,s,o=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];r=s.call(n,t),e.splice(o,1),o--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(3866),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},8894:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(7214):e.exports=r(6804)},6804:(e,t,r)=>{const n=r(2018),i=r(9023);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="\x1b[3"+(t<8?t:"8;5;"+t),s=` ${i};1m${n} \x1b[0m`;r[0]=s+r[0].split("\n").join("\n"+s),r.push(i+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(1754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(1)(t);const{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},7131:(e,t,r)=>{var n;e.exports=function(){if(!n){try{n=r(8894)("follow-redirects")}catch(e){}"function"!=typeof n&&(n=function(){})}n.apply(null,arguments)}},7124:(e,t,r)=>{var n,i,s,o=r(7016),a=o.URL,u=r(8611),l=r(5692),c=r(2203).Writable,h=r(2613),d=r(7131);n="undefined"!=typeof process,i="undefined"!=typeof window&&"undefined"!=typeof document,s=I(Error.captureStackTrace),n||!i&&s||console.warn("The follow-redirects package should be excluded from browser builds.");var p=!1;try{h(new a(""))}catch(e){p="ERR_INVALID_URL"===e.code}var f=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],m=["abort","aborted","connect","error","socket","timeout"],g=Object.create(null);m.forEach((function(e){g[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var b=T("ERR_INVALID_URL","Invalid URL",TypeError),y=T("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),D=T("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),w=T("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),v=T("ERR_STREAM_WRITE_AFTER_END","write after end"),E=c.prototype.destroy||S;function F(e,t){c.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof y?e:new y({cause:e}))}},this._performRequest()}function C(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",s=r[i]=e[n],o=t[n]=Object.create(s);Object.defineProperties(o,{request:{value:function(e,n,s){return a&&e instanceof a?e=_(e):k(e)?e=_(x(e)):(s=n,n=O(e),e={protocol:i}),I(n)&&(s=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,k(n.host)||k(n.hostname)||(n.hostname="::1"),h.equal(n.protocol,i,"protocol mismatch"),d("options",n),new F(n,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=o.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function S(){}function x(e){var t;if(p)t=new a(e);else if(!k((t=O(o.parse(e))).protocol))throw new b({input:e});return t}function O(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new b({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new b({input:e.href||e});return e}function _(e,t){var r=t||{};for(var n of f)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function A(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function T(e,t,r){function n(r){I(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function M(e,t){for(var r of m)e.removeListener(r,g[r]);e.on("error",S),e.destroy(t)}function k(e){return"string"==typeof e||e instanceof String}function I(e){return"function"==typeof e}F.prototype=Object.create(c.prototype),F.prototype.abort=function(){M(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},F.prototype.destroy=function(e){return M(this._currentRequest,e),E.call(this,e),this},F.prototype.write=function(e,t,r){if(this._ending)throw new v;if(!(k(e)||"object"==typeof(n=e)&&"length"in n))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;I(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new w),this.abort()):r&&r()},F.prototype.end=function(e,t,r){if(I(e)?(r=e,e=t=null):I(t)&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},F.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},F.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},F.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),s()}),e),n(t)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){F.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(F.prototype,e,{get:function(){return this._currentRequest[e]}})})),F.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},F.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(n._redirectable=this,m))n.on(i,g[i]);if(this._currentUrl=/^\//.test(this._options.path)?o.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,u=this._requestBodyBuffers;!function e(t){if(n===a._currentRequest)if(t)a.emit("error",t);else if(s<u.length){var r=u[s++];n.finished||n.write(r.data,r.encoding,e)}else a._ended&&n.end()}()}},F.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(M(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new D;var i=this._options.beforeRedirect;i&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],A(/^content-/i,this._options.headers));var u,l,c=A(/^host$/i,this._options.headers),f=x(this._currentUrl),m=c||f.host,g=/^\w+:/.test(n)?this._currentUrl:o.format(Object.assign(f,{host:m})),b=(u=n,l=g,p?new a(u,l):x(o.resolve(l,u)));if(d("redirecting to",b.href),this._isRedirect=!0,_(b,this._options),(b.protocol!==f.protocol&&"https:"!==b.protocol||b.host!==m&&!function(e,t){h(k(e)&&k(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(b.host,m))&&A(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),I(i)){var y={headers:e.headers,statusCode:t},w={url:g,method:s,headers:r};i(this._options,y,w),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=C({http:u,https:l}),e.exports.wrap=C},7657:(e,t,r)=>{const n=r(627),i=r(6928),s=r(9823).mkdirsSync,o=r(2292).utimesMillisSync,a=r(8549);function u(e,t,r,s){const o=(s.dereference?n.statSync:n.lstatSync)(t);if(o.isDirectory())return function(e,t,r,i,s){return t?h(r,i,s):function(e,t,r,i){return n.mkdirSync(r),h(t,r,i),c(r,e)}(e.mode,r,i,s)}(o,e,t,r,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(e,t,r,i,s){return t?function(e,t,r,i){if(i.overwrite)return n.unlinkSync(r),l(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,i,s):l(e,r,i,s)}(o,e,t,r,s);if(o.isSymbolicLink())return function(e,t,r,s){let o=n.readlinkSync(t);if(s.dereference&&(o=i.resolve(process.cwd(),o)),e){let e;try{e=n.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlinkSync(o,r);throw e}if(s.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(a.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return n.unlinkSync(t),n.symlinkSync(e,t)}(o,r)}return n.symlinkSync(o,r)}(e,t,r,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,r,i){return n.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){c(e,128|t)}(r,e),function(e,t){const r=n.statSync(e);o(t,r.atime,r.mtime)}(t,r)}(e.mode,t,r),c(r,e.mode)}function c(e,t){return n.chmodSync(e,t)}function h(e,t,r){n.readdirSync(e).forEach((n=>function(e,t,r,n){const s=i.join(t,e),o=i.join(r,e);if(n.filter&&!n.filter(s,o))return;const{destStat:l}=a.checkPathsSync(s,o,"copy",n);return u(l,s,o,n)}(n,e,t,r)))}e.exports=function(e,t,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:o,destStat:l}=a.checkPathsSync(e,t,"copy",r);if(a.checkParentPathsSync(e,o,t,"copy"),r.filter&&!r.filter(e,t))return;const c=i.dirname(t);return n.existsSync(c)||s(c),u(l,e,t,r)}},9945:(e,t,r)=>{const n=r(1692),i=r(6928),{mkdirs:s}=r(9823),{pathExists:o}=r(303),{utimesMillis:a}=r(2292),u=r(8549);async function l(e,t,r){return!r.filter||r.filter(e,t)}async function c(e,t,r,s){const o=s.dereference?n.stat:n.lstat,a=await o(t);if(a.isDirectory())return async function(e,t,r,s,o){t||await n.mkdir(s);const a=await n.readdir(r);await Promise.all(a.map((async e=>{const t=i.join(r,e),n=i.join(s,e);if(!await l(t,n,o))return;const{destStat:a}=await u.checkPaths(t,n,"copy",o);return c(a,t,n,o)}))),t||await n.chmod(s,e.mode)}(a,e,t,r,s);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return async function(e,t,r,i,s){if(!t)return h(e,r,i,s);if(s.overwrite)return await n.unlink(i),h(e,r,i,s);if(s.errorOnExist)throw new Error(`'${i}' already exists`)}(a,e,t,r,s);if(a.isSymbolicLink())return async function(e,t,r,s){let o=await n.readlink(t);if(s.dereference&&(o=i.resolve(process.cwd(),o)),!e)return n.symlink(o,r);let a=null;try{a=await n.readlink(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlink(o,r);throw e}if(s.dereference&&(a=i.resolve(process.cwd(),a)),u.isSrcSubdir(o,a))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${a}'.`);if(u.isSrcSubdir(a,o))throw new Error(`Cannot overwrite '${a}' with '${o}'.`);return await n.unlink(r),n.symlink(o,r)}(e,t,r,s);if(a.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(a.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function h(e,t,r,i){if(await n.copyFile(t,r),i.preserveTimestamps){128&e.mode||await function(e,t){return n.chmod(e,128|t)}(r,e.mode);const i=await n.stat(t);await a(r,i.atime,i.mtime)}return n.chmod(r,e.mode)}e.exports=async function(e,t,r={}){"function"==typeof r&&(r={filter:r}),r.clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:n,destStat:a}=await u.checkPaths(e,t,"copy",r);if(await u.checkParentPaths(e,n,t,"copy"),!await l(e,t,r))return;const h=i.dirname(t);await o(h)||await s(h),await c(a,e,t,r)}},718:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={copy:n(r(9945)),copySync:r(7657)}},2456:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(5483),u=n((async function(e){let t;try{t=await i.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>a.remove(s.join(e,t)))))}));function l(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:u,emptydir:u}},4355:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823);e.exports={createFile:n((async function(e){let t;try{t=await s.stat(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);let n=null;try{n=await s.stat(r)}catch(t){if("ENOENT"===t.code)return await o.mkdirs(r),void await s.writeFile(e,"");throw t}n.isDirectory()?await s.writeFile(e,""):await s.readdir(r)})),createFileSync:function(e){let t;try{t=s.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{s.statSync(r).isDirectory()||s.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;o.mkdirsSync(r)}s.writeFileSync(e,"")}}},4177:(e,t,r)=>{const{createFile:n,createFileSync:i}=r(4355),{createLink:s,createLinkSync:o}=r(445),{createSymlink:a,createSymlinkSync:u}=r(4014);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:s,createLinkSync:o,ensureLink:s,ensureLinkSync:o,createSymlink:a,createSymlinkSync:u,ensureSymlink:a,ensureSymlinkSync:u}},445:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),o=r(9823),{pathExists:a}=r(303),{areIdentical:u}=r(8549);e.exports={createLink:n((async function(e,t){let r,n;try{r=await s.lstat(t)}catch{}try{n=await s.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(r&&u(n,r))return;const l=i.dirname(t);await a(l)||await o.mkdirs(l),await s.link(e,t)})),createLinkSync:function(e,t){let r;try{r=s.lstatSync(t)}catch{}try{const t=s.lstatSync(e);if(r&&u(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return s.existsSync(n)||o.mkdirsSync(n),s.linkSync(e,t)}}},9475:(e,t,r)=>{const n=r(6928),i=r(1692),{pathExists:s}=r(303),o=r(4635).fromPromise;e.exports={symlinkPaths:o((async function(e,t){if(n.isAbsolute(e)){try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const r=n.dirname(t),o=n.join(r,e);if(await s(o))return{toCwd:o,toDst:e};try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:n.relative(r,e)}})),symlinkPathsSync:function(e,t){if(n.isAbsolute(e)){if(!i.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const r=n.dirname(t),s=n.join(r,e);if(i.existsSync(s))return{toCwd:s,toDst:e};if(!i.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(r,e)}}}},3607:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={symlinkType:i((async function(e,t){if(t)return t;let r;try{r=await n.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(e,t){if(t)return t;let r;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},4014:(e,t,r)=>{const n=r(4635).fromPromise,i=r(6928),s=r(1692),{mkdirs:o,mkdirsSync:a}=r(9823),{symlinkPaths:u,symlinkPathsSync:l}=r(9475),{symlinkType:c,symlinkTypeSync:h}=r(3607),{pathExists:d}=r(303),{areIdentical:p}=r(8549);e.exports={createSymlink:n((async function(e,t,r){let n;try{n=await s.lstat(t)}catch{}if(n&&n.isSymbolicLink()){const[r,n]=await Promise.all([s.stat(e),s.stat(t)]);if(p(r,n))return}const a=await u(e,t);e=a.toDst;const l=await c(a.toCwd,r),h=i.dirname(t);return await d(h)||await o(h),s.symlink(e,t,l)})),createSymlinkSync:function(e,t,r){let n;try{n=s.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=s.statSync(e),n=s.statSync(t);if(p(r,n))return}const o=l(e,t);e=o.toDst,r=h(o.toCwd,r);const u=i.dirname(t);return s.existsSync(u)||a(u),s.symlinkSync(e,t,r)}}},1692:(e,t,r)=>{const n=r(4635).fromCallback,i=r(627),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof i[e]));Object.assign(t,i),s.forEach((e=>{t[e]=n(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,r,n,s,o){return"function"==typeof o?i.read(e,t,r,n,s,o):new Promise(((o,a)=>{i.read(e,t,r,n,s,((e,t,r)=>{if(e)return a(e);o({bytesRead:t,buffer:r})}))}))},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?i.write(e,t,...r):new Promise(((n,s)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})}))}))},t.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?i.readv(e,t,...r):new Promise(((n,s)=>{i.readv(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesRead:t,buffers:r})}))}))},t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?i.writev(e,t,...r):new Promise(((n,s)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffers:r})}))}))},"function"==typeof i.realpath.native?t.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},738:(e,t,r)=>{e.exports={...r(1692),...r(718),...r(2456),...r(4177),...r(6185),...r(9823),...r(1254),...r(2227),...r(303),...r(5483)}},6185:(e,t,r)=>{const n=r(4635).fromPromise,i=r(509);i.outputJson=n(r(3291)),i.outputJsonSync=r(8235),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},509:(e,t,r)=>{const n=r(8843);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},8235:(e,t,r)=>{const{stringify:n}=r(374),{outputFileSync:i}=r(2227);e.exports=function(e,t,r){const s=n(t,r);i(e,s,r)}},3291:(e,t,r)=>{const{stringify:n}=r(374),{outputFile:i}=r(2227);e.exports=async function(e,t,r={}){const s=n(t,r);await i(e,s,r)}},9823:(e,t,r)=>{const n=r(4635).fromPromise,{makeDir:i,makeDirSync:s}=r(5639),o=n(i);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},5639:(e,t,r)=>{const n=r(1692),{checkPath:i}=r(9242),s=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:s(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:s(t),recursive:!0}))},9242:(e,t,r)=>{const n=r(6928);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},1254:(e,t,r)=>{const n=r(4635).fromPromise;e.exports={move:n(r(5553)),moveSync:r(7473)}},7473:(e,t,r)=>{const n=r(627),i=r(6928),s=r(718).copySync,o=r(5483).removeSync,a=r(9823).mkdirpSync,u=r(8549);function l(e,t,r){try{n.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){return s(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),o(e)}(e,t,r)}}e.exports=function(e,t,r){const s=(r=r||{}).overwrite||r.clobber||!1,{srcStat:c,isChangingCase:h=!1}=u.checkPathsSync(e,t,"move",r);return u.checkParentPathsSync(e,c,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||a(i.dirname(t)),function(e,t,r,i){if(i)return l(e,t,r);if(r)return o(t),l(e,t,r);if(n.existsSync(t))throw new Error("dest already exists.");return l(e,t,r)}(e,t,s,h)}},5553:(e,t,r)=>{const n=r(1692),i=r(6928),{copy:s}=r(718),{remove:o}=r(5483),{mkdirp:a}=r(9823),{pathExists:u}=r(303),l=r(8549);e.exports=async function(e,t,r={}){const c=r.overwrite||r.clobber||!1,{srcStat:h,isChangingCase:d=!1}=await l.checkPaths(e,t,"move",r);await l.checkParentPaths(e,h,t,"move");const p=i.dirname(t);return i.parse(p).root!==p&&await a(p),async function(e,t,r,i){if(!i)if(r)await o(t);else if(await u(t))throw new Error("dest already exists.");try{await n.rename(e,t)}catch(n){if("EXDEV"!==n.code)throw n;await async function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await s(e,t,n),o(e)}(e,t,r)}}(e,t,c,d)}},2227:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692),s=r(6928),o=r(9823),a=r(303).pathExists;e.exports={outputFile:n((async function(e,t,r="utf-8"){const n=s.dirname(e);return await a(n)||await o.mkdirs(n),i.writeFile(e,t,r)})),outputFileSync:function(e,...t){const r=s.dirname(e);i.existsSync(r)||o.mkdirsSync(r),i.writeFileSync(e,...t)}}},303:(e,t,r)=>{const n=r(4635).fromPromise,i=r(1692);e.exports={pathExists:n((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},5483:(e,t,r)=>{const n=r(627),i=r(4635).fromCallback;e.exports={remove:i((function(e,t){n.rm(e,{recursive:!0,force:!0},t)})),removeSync:function(e){n.rmSync(e,{recursive:!0,force:!0})}}},8549:(e,t,r)=>{const n=r(1692),i=r(6928),s=r(4635).fromPromise;function o(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function a(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e)),n=i.resolve(t).split(i.sep).filter((e=>e));return r.every(((e,t)=>n[t]===e))}function u(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:s((async function(e,t,r,s){const{srcStat:l,destStat:c}=await function(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:!0}):e=>n.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}})),checkPathsSync:function(e,t,r,s){const{srcStat:l,destStat:c}=function(e,t,r){let i;const s=r.dereference?e=>n.statSync(e,{bigint:!0}):e=>n.lstatSync(e,{bigint:!0}),o=s(e);try{i=s(t)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}(e,t,s);if(c){if(o(l,c)){const n=i.basename(e),s=i.basename(t);if("move"===r&&n!==s&&n.toLowerCase()===s.toLowerCase())return{srcStat:l,destStat:c,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!c.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&a(e,t))throw new Error(u(e,t,r));return{srcStat:l,destStat:c}},checkParentPaths:s((async function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=await n.stat(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)})),checkParentPathsSync:function e(t,r,s,a){const l=i.resolve(i.dirname(t)),c=i.resolve(i.dirname(s));if(c===l||c===i.parse(c).root)return;let h;try{h=n.statSync(c,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(o(r,h))throw new Error(u(t,s,a));return e(t,r,c,a)},isSrcSubdir:a,areIdentical:o}},2292:(e,t,r)=>{const n=r(1692),i=r(4635).fromPromise;e.exports={utimesMillis:i((async function(e,t,r){const i=await n.open(e,"r+");let s=null;try{await n.futimes(i,t,r)}finally{try{await n.close(i)}catch(e){s=e}}if(s)throw s})),utimesMillisSync:function(e,t,r){const i=n.openSync(e,"r+");return n.futimesSync(i,t,r),n.closeSync(i)}}},8359:e=>{e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else r=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r};var t=Object.getPrototypeOf||function(e){return e.__proto__}},627:(e,t,r)=>{var n,i,s=r(9896),o=r(8254),a=r(111),u=r(8359),l=r(9023);function c(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var h,d=function(){};if(l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!s[n]){var p=global[n]||[];c(s,p),s.close=function(e){function t(t,r){return e.call(s,t,(function(e){e||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(s.close),s.closeSync=function(e){function t(t){e.apply(s,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(s.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(s[n]),r(2613).equal(s[n].length,0)}))}function f(e){o(e),e.gracefulify=f,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){return"function"==typeof r&&(n=r,r=null),function e(r,n,i,s){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[r,n,i],t,s||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,s,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,n,i,s],r,o||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,s,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,i,s],n,o||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){return"function"==typeof r&&(n=r,r=0),function e(t,r,n,s,o){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):m([e,[t,r,n,s],i,o||Date.now(),Date.now()])}))}(e,t,r,n)});var s=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=u.test(process.version)?function(e,t,r,n){return s(e,i(e,t,r,n))}:function(e,t,r,n){return s(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o)):m([n,[e,t,r],s,i||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,b=l.WriteStream}var c=e.ReadStream;c&&(g.prototype=Object.create(c.prototype),g.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var h=e.WriteStream;h&&(b.prototype=Object.create(h.prototype),b.prototype.open=function(){var e=this;D(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var p=b;function g(e,t){return this instanceof g?(c.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function b(e,t){return this instanceof b?(h.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var y=e.open;function D(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,s){return y(t,r,n,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,r,n,i],o,s||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=D,e}function m(e){d("ENQUEUE",e[0].name,e[1]),s[n].push(e),b()}function g(){for(var e=Date.now(),t=0;t<s[n].length;++t)s[n][t].length>2&&(s[n][t][3]=e,s[n][t][4]=e);b()}function b(){if(clearTimeout(h),h=void 0,0!==s[n].length){var e=s[n].shift(),t=e[0],r=e[1],i=e[2],o=e[3],a=e[4];if(void 0===o)d("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",t.name,r);var u=r.pop();"function"==typeof u&&u.call(null,i)}else{var l=Date.now()-a,c=Math.max(a-o,1);l>=Math.min(1.2*c,100)?(d("RETRY",t.name,r),t.apply(null,r.concat([o]))):s[n].push(e)}void 0===h&&(h=setTimeout(b,0))}}global[n]||c(global,s[n]),e.exports=f(u(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=f(s),s.__patched=!0)},111:(e,t,r)=>{var n=r(2203).Stream;e.exports=function(e){return{ReadStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return s.emit("error",e),void(s.readable=!1);s.fd=t,s.emit("open",t),s._read()})):process.nextTick((function(){s._read()}))},WriteStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},8254:(e,t,r)=>{var n=r(9140),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(r,n,i,s){return t.call(e,r,n,i,(function(e){l(e)&&(e=null),s&&s.apply(this,arguments)}))}:t}function s(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(r,n,i){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,s):t.call(e,r,s)}:t}function u(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var c;n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,s=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=e.fchmodSync(s,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}}(e),e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,(function(t,n){t?s&&s(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){s&&s(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var s,o=e.openSync(t,n.O_SYMLINK),a=!0;try{s=e.futimesSync(o,r,i),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return s}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){}),"win32"===o&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var s=Date.now(),o=0;t(r,n,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-s<6e4)return setTimeout((function(){e.stat(n,(function(e,s){e&&"ENOENT"===e.code?t(r,n,a):i(u)}))}),o),void(o<100&&(o+=10));i&&i(u)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,s,o,a){var u;if(a&&"function"==typeof a){var l=0;u=function(c,h,d){if(c&&"EAGAIN"===c.code&&l<10)return l++,t.call(e,r,n,i,s,o,u);a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,u)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,s){for(var o=0;;)try{return c.call(e,t,r,n,i,s)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}})}},4891:e=>{e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},910:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},4140:e=>{e.exports=e=>{if("object"!=typeof e||null===e)throw new TypeError("Expected an object");const t={};for(const[r,n]of Object.entries(e))t[n]=r;for(const r of Object.getOwnPropertySymbols(e))t[e[r]]=r;return t}},9344:(e,t,r)=>{var n;function i(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(e,t||{},(function(e,t){e?n(e):r(t)}))}))}n(e,t||{},(function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}r(9896),n="win32"===process.platform||global.TESTING_WINDOWS?r(8541):r(709),e.exports=i,i.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},709:(e,t,r)=>{e.exports=i,i.sync=function(e,t){return s(n.statSync(e),t)};var n=r(9896);function i(e,t,r){n.stat(e,(function(e,n){r(e,!e&&s(n,t))}))}function s(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,i=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8);return r&parseInt("001",8)||r&u&&i===o||r&a&&n===s||r&(a|u)&&0===s}(e,t)}},8541:(e,t,r)=>{e.exports=s,s.sync=function(e,t){return i(n.statSync(e),e,t)};var n=r(9896);function i(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,r)}function s(e,t,r){n.stat(e,(function(n,s){r(n,!n&&i(s,e,t))}))}},8843:(e,t,r)=>{let n;try{n=r(627)}catch(e){n=r(9896)}const i=r(4635),{stringify:s,stripBom:o}=r(374),a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,s=!("throws"in t)||t.throws;let a,u=await i.fromCallback(r.readFile)(e,t);u=o(u);try{a=JSON.parse(u,t?t.reviver:null)}catch(t){if(s)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,i=!("throws"in t)||t.throws;try{let n=r.readFileSync(e,t);return n=o(n),JSON.parse(n,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,r={}){const o=r.fs||n,a=s(t,r);await i.fromCallback(o.writeFile)(e,a,r)})),writeFileSync:function(e,t,r={}){const i=r.fs||n,o=s(t,r);return i.writeFileSync(e,o,r)}};e.exports=a},374:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},8888:e=>{const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env,i={enabled:!r&&"dumb"!==n&&"0"!==t,reset:o(0,0),bold:o(1,22),dim:o(2,22),italic:o(3,23),underline:o(4,24),inverse:o(7,27),hidden:o(8,28),strikethrough:o(9,29),black:o(30,39),red:o(31,39),green:o(32,39),yellow:o(33,39),blue:o(34,39),magenta:o(35,39),cyan:o(36,39),white:o(37,39),gray:o(90,39),grey:o(90,39),bgBlack:o(40,49),bgRed:o(41,49),bgGreen:o(42,49),bgYellow:o(43,49),bgBlue:o(44,49),bgMagenta:o(45,49),bgCyan:o(46,49),bgWhite:o(47,49)};function s(e,t){let r,n=0,i="",s="";for(;n<e.length;n++)r=e[n],i+=r.open,s+=r.close,t.includes(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+s}function o(e,t){let r={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){return void 0!==this&&void 0!==this.has?(this.has.includes(e)||(this.has.push(e),this.keys.push(r)),void 0===t?this:i.enabled?s(this.keys,t+""):t+""):void 0===t?function(e,t){let r={has:e,keys:t};return r.reset=i.reset.bind(r),r.bold=i.bold.bind(r),r.dim=i.dim.bind(r),r.italic=i.italic.bind(r),r.underline=i.underline.bind(r),r.inverse=i.inverse.bind(r),r.hidden=i.hidden.bind(r),r.strikethrough=i.strikethrough.bind(r),r.black=i.black.bind(r),r.red=i.red.bind(r),r.green=i.green.bind(r),r.yellow=i.yellow.bind(r),r.blue=i.blue.bind(r),r.magenta=i.magenta.bind(r),r.cyan=i.cyan.bind(r),r.white=i.white.bind(r),r.gray=i.gray.bind(r),r.grey=i.grey.bind(r),r.bgBlack=i.bgBlack.bind(r),r.bgRed=i.bgRed.bind(r),r.bgGreen=i.bgGreen.bind(r),r.bgYellow=i.bgYellow.bind(r),r.bgBlue=i.bgBlue.bind(r),r.bgMagenta=i.bgMagenta.bind(r),r.bgCyan=i.bgCyan.bind(r),r.bgWhite=i.bgWhite.bind(r),r}([e],[r]):i.enabled?s([r],t+""):t+""}}e.exports=i},323:(e,t,r)=>{const n=r(4140),i=r(8360),s=n(i);t.from=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return i[e]},t.to=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");if(s[e])return Number(s[e])},t.all=new Proxy(s,{get(e,t){const r=e[t];if(r)return Number(r)}})},3866:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,s=7*i;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,a){a=a||{};var u,l,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&isFinite(e))return a.long?(u=e,(l=Math.abs(u))>=i?o(u,l,i,"day"):l>=n?o(u,l,n,"hour"):l>=r?o(u,l,r,"minute"):l>=t?o(u,l,t,"second"):u+" ms"):function(e){var s=Math.abs(e);return s>=i?Math.round(e/i)+"d":s>=n?Math.round(e/n)+"h":s>=r?Math.round(e/r)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1416:(e,t,r)=>{var n=r(1813);e.exports=function(e){if("string"!=typeof e)throw new TypeError("expected author to be a string");if(!e||!/\w/.test(e))return{};var t=[].concat.apply([],n().exec(e)),r={};t[1]&&(r.name=t[1]);for(var i=2;i<t.length;i++){var s=t[i];i%2==0&&s&&t[i+1]&&("<"===s.charAt(0)?(r.email=t[i+1],i++):"("===s.charAt(0)&&(r.url=t[i+1],i++))}return r}},9695:e=>{const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},8459:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},5882:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(e=>1==(e%=10)?"st":2===e?"nd":3===e?"rd":"th")(e):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e}}},2583:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},9180:(e,t,r)=>{e.exports={DatePart:r(8459),Meridiem:r(4356),Day:r(5882),Hours:r(2583),Milliseconds:r(1516),Minutes:r(3317),Month:r(5058),Seconds:r(249),Year:r(5599)}},4356:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1516:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},3317:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},5058:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},249:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},5599:(e,t,r)=>{const n=r(8459);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},9111:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}const i=r(8888),s=r(7261),o=r(4347),a=o.erase,u=o.cursor,l=r(8482),c=l.style,h=l.clear,d=l.figures,p=l.wrap,f=l.entriesToDisplay,m=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),g=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=c.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=h("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=m(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var t,r=this;return(t=function*(){const t=r.completing=r.suggest(r.input,r.choices),n=yield t;if(r.completing!==t)return;r.suggestions=n.map(((e,t,r)=>({title:g(r,t),value:m(r,t),description:e.description}))),r.completing=!1;const i=Math.max(n.length-1,0);r.moveSelect(Math.min(i,r.select)),e&&e()},function(){var e=this,r=arguments;return new Promise((function(i,s){var o=t.apply(e,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))})()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,t,r,n){let s,o=r?d.arrowUp:n?d.arrowDown:" ",a=t?i.cyan().underline(e.title):e.title;return o=(t?i.cyan(d.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+p(e.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(u.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();let e=f(this.select,this.choices.length,this.limit),t=e.startIndex,r=e.endIndex;if(this.outputText=[c.symbol(this.done,this.aborted,this.exited),i.bold(this.msg),c.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const e=this.suggestions.slice(t,r).map(((e,n)=>this.renderOption(e,this.select===n+t,0===n&&t>0,n+t===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(e||i.gray(this.fallback.title))}this.out.write(a.line+u.to(0)+this.outputText)}}},5518:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(538),o=r(8482),a=o.clear,u=o.style,l=o.figures;e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=a("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase()))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},539:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.erase,c=u.cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(c.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(l.line+c.to(0)+this.outputText))}}},7191:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(8482),u=a.style,l=a.clear,c=a.figures,h=r(4347),d=h.erase,p=h.cursor,f=r(9180),m=f.DatePart,g=f.Meridiem,b=f.Day,y=f.Hours,D=f.Milliseconds,w=f.Minutes,v=f.Month,E=f.Seconds,F=f.Year,C=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,S={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new b(e),3:e=>new v(e),4:e=>new F(e),5:e=>new g(e),6:e=>new y(e),7:e=>new w(e),8:e=>new E(e),9:e=>new D(e)},x={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};e.exports=class extends o{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(x,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=l("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=C.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in S?S[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof m))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof m))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(p.hide):this.out.write(l(this.outputText,this.out.columns)),super.render(),this.outputText=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:s.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(d.line+p.to(0)+this.outputText))}}},271:(e,t,r)=>{e.exports={TextPrompt:r(3392),SelectPrompt:r(4003),TogglePrompt:r(5807),DatePrompt:r(7191),NumberPrompt:r(1270),MultiselectPrompt:r(538),AutocompletePrompt:r(9111),AutocompleteMultiselectPrompt:r(5518),ConfirmPrompt:r(539)}},538:(e,t,r)=>{const n=r(8888),i=r(4347).cursor,s=r(7261),o=r(8482),a=o.clear,u=o.figures,l=o.style,c=o.wrap,h=o.entriesToDisplay;e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=a("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(e,t,r,i){const s=(t.selected?n.green(u.radioOn):u.radioOff)+" "+i+" ";let o,a;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(a=` - ${t.description}`,(s.length+o.length+a.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(a="\n"+c(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(a||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,r=h(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,o=[];for(let r=i;r<s;r++)t=r===i&&i>0?u.arrowUp:r===s-1&&s<e.length?u.arrowDown:" ",o.push(this.renderOption(this.cursor,e[r],r,t));return"\n"+o.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=a(e,this.out.columns)}}},1270:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.cursor,l=a.erase,c=r(8482),h=c.style,d=c.figures,p=c.clear,f=c.lines,m=/[0-9]/,g=e=>void 0!==e,b=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.msg=e.message,this.initial=g(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=g(e.min)?e.min:-1/0,this.max=g(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${b(e,this.round)}`),this._value=b(e,this.round)):(this.placeholder=!0,this.rendered=s.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||m.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(yield e.validate(),e.error)return e.color="red",e.fire(),void e.render();let t=e.value;e.value=""!==t?t:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(u.down(f(this.outputError,this.out.columns)-1)+p(this.outputError,this.out.columns)),this.out.write(p(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:s[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":d.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore))}}},7261:(e,t,r)=>{const n=r(3785),i=r(8482).action,s=r(4434),o=r(4347),a=o.beep,u=o.cursor,l=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(u.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(a)}render(){this.onRender(l),this.firstRender&&(this.firstRender=!1)}}},4003:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=s.figures,l=s.wrap,c=s.entriesToDisplay,h=r(4347).cursor;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(h.hide):this.out.write(a(this.outputText,this.out.columns)),super.render();let e=c(this.cursor,this.choices.length,this.optionsPerPage),t=e.startIndex,r=e.endIndex;if(this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let e=t;e<r;e++){let i,s,o="",a=this.choices[e];s=e===t&&t>0?u.arrowUp:e===r-1&&r<this.choices.length?u.arrowDown:" ",a.disabled?(i=this.cursor===e?n.gray().underline(a.title):n.strikethrough().gray(a.title),s=(this.cursor===e?n.bold().gray(u.pointer)+" ":" ")+s):(i=this.cursor===e?n.cyan().underline(a.title):a.title,s=(this.cursor===e?n.cyan(u.pointer)+" ":" ")+s,a.description&&this.cursor===e&&(o=` - ${a.description}`,(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o="\n"+l(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},3392:(e,t,r)=>{function n(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,u,"next",e)}function u(e){n(o,i,s,a,u,"throw",e)}a(void 0)}))}}const s=r(8888),o=r(7261),a=r(4347),u=a.erase,l=a.cursor,c=r(8482),h=c.style,d=c.clear,p=c.lines,f=c.figures;e.exports=class extends o{constructor(e={}){super(e),this.transform=h.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=s.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var e=this;return i((function*(){let t=yield e.validator(e.value);"string"==typeof t&&(e.errorMsg=t,t=!1),e.error=!t}))()}submit(){var e=this;return i((function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error)return e.red=!0,e.fire(),void e.render();e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write("\n"),e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(l.down(p(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns)),this.out.write(d(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":f.pointerSmall} ${s.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0)))}}},5807:(e,t,r)=>{const n=r(8888),i=r(7261),s=r(8482),o=s.style,a=s.clear,u=r(4347),l=u.cursor,c=u.erase;e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(a(this.outputText,this.out.columns)),super.render(),this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(c.line+l.to(0)+this.outputText))}}},2481:(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function o(e){a(s,n,i,o,u,"next",e)}function u(e){a(s,n,i,o,u,"throw",e)}o(void 0)}))}}const l=r(3682),c=["suggest","format","onState","validate","onRender","type"],h=()=>{};function d(){return p.apply(this,arguments)}function p(){return p=u((function*(e=[],{onSubmit:t=h,onCancel:r=h}={}){const n={},s=d._override||{};let a,p,m,g,b,y;e=[].concat(e);const D=function(){var e=u((function*(e,t,r=!1){if(r||!e.validate||!0===e.validate(t))return e.format?yield e.format(t,n):t}));return function(t,r){return e.apply(this,arguments)}}();var w,v=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}}(e);try{for(v.s();!(w=v.n()).done;){p=w.value;var E=p;if(g=E.name,b=E.type,"function"==typeof b&&(b=yield b(a,i({},n),p),p.type=b),b){for(let e in p){if(c.includes(e))continue;let t=p[e];p[e]="function"==typeof t?yield t(a,i({},n),y):t}if(y=p,"string"!=typeof p.message)throw new Error("prompt message is required");var F=p;if(g=F.name,b=F.type,void 0===l[b])throw new Error(`prompt type (${b}) is not defined`);if(void 0===s[p.name]||(a=yield D(p,s[p.name]),void 0===a)){try{a=d._injected?f(d._injected,p.initial):yield l[b](p),n[g]=a=yield D(p,a,!0),m=yield t(p,a,n)}catch(e){m=!(yield r(p,n))}if(m)return n}else n[g]=a}}}catch(e){v.e(e)}finally{v.f()}return n})),p.apply(this,arguments)}function f(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(d,{prompt:d,prompts:l,inject:function(e){d._injected=(d._injected||[]).concat(e)},override:function(e){d._override=Object.assign({},e)}})},3682:(e,t,r)=>{const n=t,i=r(271),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},8386:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},6203:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const i=r(9440),s=r(4347),o=s.erase,a=s.cursor;e.exports=function(e,t){if(!t)return o.line+a.to(0);let r=0;var s,u=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,s=function(){};return{s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}(e.split(/\r?\n/));try{for(u.s();!(s=u.n()).done;){let e=s.value;r+=1+Math.floor(Math.max([...i(e)].length-1,0)/t)}}catch(e){u.e(e)}finally{u.f()}return o.lines(r)}},4409:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},6135:e=>{const t={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},8482:(e,t,r)=>{e.exports={action:r(8386),clear:r(6203),style:r(6187),strip:r(9440),figures:r(6135),lines:r(6905),wrap:r(3424),entriesToDisplay:r(4409)}},6905:(e,t,r)=>{const n=r(9440);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},9440:e=>{e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(t,"g");return"string"==typeof e?e.replace(r,""):e}},6187:(e,t,r)=>{const n=r(8888),i=r(6135),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},3424:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},5600:(e,t,r)=>{e.exports=function(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return!1;if(e[t]>r[t])return!0}return!1}("8.6.0")?r(2481):r(8332)},4264:e=>{class t{constructor({token:e,date:t,parts:r,locales:n}){this.token=e,this.date=t||new Date,this.parts=r||[this],this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((r,n)=>n>e&&r instanceof t))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const r=e.indexOf(this);return e.find(((e,n)=>n>r&&e instanceof t))}toString(){return String(this.date)}}e.exports=t},8171:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),t=this.date.getDay();return"DD"===this.token?String(e).padStart(2,"0"):"Do"===this.token?e+(e=>1==(e%=10)?"st":2===e?"nd":3===e?"rd":"th")(e):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e}}},9518:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}}},1693:(e,t,r)=>{e.exports={DatePart:r(4264),Meridiem:r(6551),Day:r(8171),Hours:r(9518),Milliseconds:r(1271),Minutes:r(136),Month:r(2103),Seconds:r(6272),Year:r(2968)}},6551:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}},1271:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},136:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}},2103:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),t=this.token.length;return 2===t?String(e+1).padStart(2,"0"):3===t?this.locales.monthsShort[e]:4===t?this.locales.months[e]:String(e+1)}}},6272:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}},2968:(e,t,r)=>{const n=r(4264);e.exports=class extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?e.substr(-2):e}}},8590:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,figures:l,wrap:c,entriesToDisplay:h}=r(7933),d=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]),p=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial="number"==typeof e.initial?e.initial:((e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:void 0})(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=a.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=u("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return"number"==typeof this._fb?e=this.choices[this._fb]:"string"==typeof this._fb&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=d(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices),r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:p(r,t),value:d(r,t),description:e.description}))),this.completing=!1;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select)),e&&e()}reset(){this.input="",this.complete((()=>{this.moveSelect(void 0!==this.initial?this.initial:0),this.render()})),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let e=this.input.slice(0,this.cursor-1),t=this.input.slice(this.cursor);this.input=`${e}${t}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),t=this.input.slice(this.cursor+1);this.input=`${e}${t}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){0===this.select?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,t,r,i){let s,o=r?l.arrowUp:i?l.arrowDown:" ",a=t?n.cyan().underline(e.title):e.title;return o=(t?n.cyan(l.pointer)+" ":" ")+o,e.description&&(s=` - ${e.description}`,(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(s="\n"+c(e.description,{margin:3,width:this.out.columns}))),o+" "+a+n.gray(s||"")}render(){if(this.closed)return;this.firstRender?this.out.write(o.hide):this.out.write(u(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=h(this.select,this.choices.length,this.limit);if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),n.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const r=this.suggestions.slice(e,t).map(((r,n)=>this.renderOption(r,this.select===n+e,0===n&&e>0,n+e===t-1&&t<this.choices.length))).join("\n");this.outputText+="\n"+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}},4349:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(3725),{clear:o,style:a,figures:u}=r(7933);e.exports=class extends s{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=o("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){0===this.cursor?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>!this.inputValue||!("string"!=typeof e.title||!e.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof e.value||!e.value.toLowerCase().includes(this.inputValue.toLowerCase()))));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t,this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,t){" "===e?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`:""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;return i=t.disabled?e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):e===r?n.cyan().underline(t.title):t.title,(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},3756:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{erase:a,cursor:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(e,t){return"y"===e.toLowerCase()?(this.value=!0,this.submit()):"n"===e.toLowerCase()?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(u.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(a.line+u.to(0)+this.outputText))}}},8626:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a}=r(7933),{erase:u,cursor:l}=r(4347),{DatePart:c,Meridiem:h,Day:d,Hours:p,Milliseconds:f,Minutes:m,Month:g,Seconds:b,Year:y}=r(1693),D=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,w={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new g(e),4:e=>new y(e),5:e=>new h(e),6:e=>new p(e),7:e=>new m(e),8:e=>new b(e),9:e=>new f(e)},v={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(v,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=o("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let t;for(this.parts=[];t=D.exec(e);){let e=t.shift(),r=t.findIndex((e=>null!=e));this.parts.push(r in w?w[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>("string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof c))),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(null==e)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof c))),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.parts.reduce(((e,t,r)=>e.concat(r!==this.cursor||this.done?t:n.cyan().underline(t.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":a.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(u.line+l.to(0)+this.outputText))}}},5864:(e,t,r)=>{e.exports={TextPrompt:r(1433),SelectPrompt:r(406),TogglePrompt:r(1582),DatePrompt:r(8626),NumberPrompt:r(9927),MultiselectPrompt:r(3725),AutocompletePrompt:r(8590),AutocompleteMultiselectPrompt:r(4349),ConfirmPrompt:r(3756)}},3725:(e,t,r)=>{const n=r(8888),{cursor:i}=r(4347),s=r(8544),{clear:o,figures:a,style:u,wrap:l,entriesToDisplay:c}=r(7933);e.exports=class extends s{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(void 0===e.value?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}))),this.clear=o("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map((e=>!e.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((e=>e.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const e=this.value.filter((e=>e.selected));this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){0===this.cursor?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e)),this.render()}_(e,t){if(" "===e)this.handleSpaceToggle();else{if("a"!==e)return this.bell();this.toggleAll()}}renderInstructions(){return void 0===this.instructions||this.instructions?"string"==typeof this.instructions?this.instructions:`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(void 0===this.maxChoices?" a: Toggle all\n":"")+" enter/return: Complete answer":""}renderOption(e,t,r,i){const s=(t.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,u;return t.disabled?o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title):(o=e===r?n.cyan().underline(t.title):t.title,e===r&&t.description&&(u=` - ${t.description}`,(s.length+o.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(u="\n"+l(t.description,{margin:s.length,width:this.out.columns})))),s+o+n.gray(u||"")}paginateOptions(e){if(0===e.length)return n.red("No matches for this query.");let t,{startIndex:r,endIndex:i}=c(this.cursor,e.length,this.optionsPerPage),s=[];for(let n=r;n<i;n++)t=n===r&&r>0?a.arrowUp:n===i-1&&i<e.length?a.arrowDown:" ",s.push(this.renderOption(this.cursor,e[n],n,t));return"\n"+s.join("\n")}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");const e=[n.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(n.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(i.hide),super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=n.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=o(e,this.out.columns)}}},9927:(e,t,r)=>{const n=r(8888),i=r(8544),{cursor:s,erase:o}=r(4347),{style:a,figures:u,clear:l,lines:c}=r(7933),h=/[0-9]/,d=e=>void 0!==e,p=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.msg=e.message,this.initial=d(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=d(e.min)?e.min:-1/0,this.max=d(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){e||0===e?(this.placeholder=!1,this.rendered=this.transform.render(`${p(e,this.round)}`),this._value=p(e,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return"-"===e||"."===e&&this.float||h.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=""!==e?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let e=this.value;this.value=""!==e?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",""===this.value&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",""===this.value&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(0===e.length)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",""!==this.value&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=r,this.color="cyan","."===e)return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(s.down(c(this.outputError,this.out.columns)-1)+l(this.outputError,this.out.columns)),this.out.write(l(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:n[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore))}}},8544:(e,t,r)=>{const n=r(3785),{action:i}=r(7933),s=r(4434),{beep:o,cursor:a}=r(4347),u=r(8888);e.exports=class extends s{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);const t=n.createInterface({input:this.in,escapeCodeTimeout:50});n.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(e,t)=>{let n=i(t,r);!1===n?this._&&this._(e,t):"function"==typeof this[n]?this[n](t):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),t.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(o)}render(){this.onRender(u),this.firstRender&&(this.firstRender=!1)}}},406:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o,figures:a,wrap:u,entriesToDisplay:l}=r(7933),{cursor:c}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map(((e,t)=>("string"==typeof e&&(e={title:e,value:t}),{title:e&&(e.title||e.value||e),value:e&&(void 0===e.value?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}))),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){0===this.cursor?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,t){if(" "===e)return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(c.hide):this.out.write(o(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:t}=l(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(!1),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let r=e;r<t;r++){let i,s,o="",l=this.choices[r];s=r===e&&e>0?a.arrowUp:r===t-1&&t<this.choices.length?a.arrowDown:" ",l.disabled?(i=this.cursor===r?n.gray().underline(l.title):n.strikethrough().gray(l.title),s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s):(i=this.cursor===r?n.cyan().underline(l.title):l.title,s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s,l.description&&this.cursor===r&&(o=` - ${l.description}`,(s.length+i.length+o.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(o="\n"+u(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}},1433:(e,t,r)=>{const n=r(8888),i=r(8544),{erase:s,cursor:o}=r(4347),{style:a,clear:u,lines:l,figures:c}=r(7933);e.exports=class extends i{constructor(e={}){super(e),this.transform=a.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=u("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let e=await this.validator(this.value);"string"==typeof e&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error)return this.red=!0,this.fire(),void this.render();this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,t){let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),t=this.value.slice(this.cursor);this.value=`${e}${t}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor+1);this.value=`${e}${t}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return 0===this.cursor||this.placeholder&&1===this.cursor}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(o.down(l(this.outputError,this.out.columns)-1)+u(this.outputError,this.out.columns)),this.out.write(u(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?" ":c.pointerSmall} ${n.red().italic(t)}`),"")),this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},1582:(e,t,r)=>{const n=r(8888),i=r(8544),{style:s,clear:o}=r(7933),{cursor:a,erase:u}=r(4347);e.exports=class extends i{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(!1===this.value)return this.bell();this.value=!1,this.render()}activate(){if(!0===this.value)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,t){if(" "===e)this.value=!this.value;else if("1"===e)this.value=!0;else{if("0"!==e)return this.bell();this.value=!1}this.render()}render(){this.closed||(this.firstRender?this.out.write(a.hide):this.out.write(o(this.outputText,this.out.columns)),super.render(),this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "),this.out.write(u.line+a.to(0)+this.outputText))}}},8332:(e,t,r)=>{const n=r(3683),i=["suggest","format","onState","validate","onRender","type"],s=()=>{};async function o(e=[],{onSubmit:t=s,onCancel:r=s}={}){const u={},l=o._override||{};let c,h,d,p,f,m;e=[].concat(e);const g=async(e,t,r=!1)=>{if(r||!e.validate||!0===e.validate(t))return e.format?await e.format(t,u):t};for(h of e)if(({name:p,type:f}=h),"function"==typeof f&&(f=await f(c,{...u},h),h.type=f),f){for(let e in h){if(i.includes(e))continue;let t=h[e];h[e]="function"==typeof t?await t(c,{...u},m):t}if(m=h,"string"!=typeof h.message)throw new Error("prompt message is required");if(({name:p,type:f}=h),void 0===n[f])throw new Error(`prompt type (${f}) is not defined`);if(void 0===l[h.name]||(c=await g(h,l[h.name]),void 0===c)){try{c=o._injected?a(o._injected,h.initial):await n[f](h),u[p]=c=await g(h,c,!0),d=await t(h,c,u)}catch(e){d=!await r(h,u)}if(d)return u}else u[p]=c}return u}function a(e,t){const r=e.shift();if(r instanceof Error)throw r;return void 0===r?t:r}e.exports=Object.assign(o,{prompt:o,prompts:n,inject:function(e){o._injected=(o._injected||[]).concat(e)},override:function(e){o._override=Object.assign({},e)}})},3683:(e,t,r)=>{const n=t,i=r(5864),s=e=>e;function o(e,t,r={}){return new Promise(((n,o)=>{const a=new i[e](t),u=r.onAbort||s,l=r.onSubmit||s,c=r.onExit||s;a.on("state",t.onState||s),a.on("submit",(e=>n(l(e)))),a.on("exit",(e=>n(c(e)))),a.on("abort",(e=>o(u(e))))}))}n.text=e=>o("TextPrompt",e),n.password=e=>(e.style="password",n.text(e)),n.invisible=e=>(e.style="invisible",n.text(e)),n.number=e=>o("NumberPrompt",e),n.date=e=>o("DatePrompt",e),n.confirm=e=>o("ConfirmPrompt",e),n.list=e=>{const t=e.separator||",";return o("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})},n.toggle=e=>o("TogglePrompt",e),n.select=e=>o("SelectPrompt",e),n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("MultiselectPrompt",e,{onAbort:t,onSubmit:t})},n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter((e=>e.selected)).map((e=>e.value));return o("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})};const a=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>(e.suggest=e.suggest||a,e.choices=[].concat(e.choices||[]),o("AutocompletePrompt",e))},1787:e=>{e.exports=(e,t)=>{if(!e.meta||"escape"===e.name){if(e.ctrl){if("a"===e.name)return"first";if("c"===e.name)return"abort";if("d"===e.name)return"abort";if("e"===e.name)return"last";if("g"===e.name)return"reset"}if(t){if("j"===e.name)return"down";if("k"===e.name)return"up"}return"return"===e.name||"enter"===e.name?"submit":"backspace"===e.name?"delete":"delete"===e.name?"deleteForward":"abort"===e.name?"abort":"escape"===e.name?"exit":"tab"===e.name?"next":"pagedown"===e.name?"nextPage":"pageup"===e.name?"prevPage":"home"===e.name?"home":"end"===e.name?"end":"up"===e.name?"up":"down"===e.name?"down":"right"===e.name?"right":"left"===e.name&&"left"}}},7676:(e,t,r)=>{const n=r(7135),{erase:i,cursor:s}=r(4347);e.exports=function(e,t){if(!t)return i.line+s.to(0);let r=0;const o=e.split(/\r?\n/);for(let e of o)r+=1+Math.floor(Math.max([...n(e)].length-1,0)/t);return i.lines(r)}},4640:e=>{e.exports=(e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));return n<0&&(n=0),{startIndex:n,endIndex:Math.min(n+r,t)}}},3248:e=>{const t={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25c9",radioOff:"\u25ef",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203a",line:"\u2500",pointer:"\u276f"},r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},n="win32"===process.platform?r:t;e.exports=n},7933:(e,t,r)=>{e.exports={action:r(1787),clear:r(7676),style:r(7456),strip:r(7135),figures:r(3248),lines:r(334),wrap:r(1485),entriesToDisplay:r(4640)}},334:(e,t,r)=>{const n=r(7135);e.exports=function(e,t){let r=String(n(e)||"").split(/\r?\n/);return t?r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t)):r.length}},7135:e=>{e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(t,"g");return"string"==typeof e?e.replace(r,""):e}},7456:(e,t,r)=>{const n=r(8888),i=r(3248),s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1f603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),exited:n.yellow(i.cross),default:n.cyan("?")});e.exports={styles:s,render:e=>s[e]||s.default,symbols:o,symbol:(e,t,r)=>t?o.aborted:r?o.exited:e?o.done:o.default,delimiter:e=>n.gray(e?i.ellipsis:i.pointerSmall),item:(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line)}},1485:e=>{e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",n=t.width;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>(t.length+r.length>=n||e[e.length-1].length+t.length+1<n?e[e.length-1]+=` ${t}`:e.push(`${r}${t}`),e)),[r]).join("\n"))).join("\n")}},600:(e,t,r)=>{const n=r(7257);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?i:i?`${s} ${i}`:s}},7257:e=>{e.exports=/^#!(.*)/},4347:e=>{const t="\x1b[",r={to:(e,r)=>r?`${t}${r+1};${e+1}H`:`${t}${e+1}G`,move(e,r){let n="";return e<0?n+=`${t}${-e}D`:e>0&&(n+=`${t}${e}C`),r<0?n+=`${t}${-r}A`:r>0&&(n+=`${t}${r}B`),n},up:(e=1)=>`${t}${e}A`,down:(e=1)=>`${t}${e}B`,forward:(e=1)=>`${t}${e}C`,backward:(e=1)=>`${t}${e}D`,nextLine:(e=1)=>`${t}E`.repeat(e),prevLine:(e=1)=>`${t}F`.repeat(e),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:"\x1b7",restore:"\x1b8"},n={up:(e=1)=>`${t}S`.repeat(e),down:(e=1)=>`${t}T`.repeat(e)},i={screen:`${t}2J`,up:(e=1)=>`${t}1J`.repeat(e),down:(e=1)=>`${t}J`.repeat(e),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?r.up():"");return e&&(t+=r.left),t}};e.exports={cursor:r,scroll:n,erase:i,beep:"\x07"}},3396:e=>{e.exports=function(e){if("object"!=typeof e)throw new Error("expected an author to be an object");var t={name:["",""],email:["<",">"],url:["(",")"]},r="";for(var n in e.url&&(e.url=function(e){return e.replace(/\/$/,"")}(e.url)),t)e[n]&&(r+=t[n][0]+e[n]+t[n][1]+" ");return r.trim()}},1754:(e,t,r)=>{const n=r(857),i=r(4891),s=process.env;let o;function a(e){const t=function(e){if(!1===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;const t=o?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in s))||"codeship"===s.CI_NAME?1:t;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:(s.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?o=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=!0),"FORCE_COLOR"in s&&(o=0===s.FORCE_COLOR.length||0!==parseInt(s.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},5421:(e,t,r)=>{const n=r(857),i=r(2018),s=r(910),{env:o}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}s("no-color")||s("no-colors")||s("color=false")||s("color=never")?a=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(l(e,e&&e.isTTY))},stdout:u(l(!0,i.isatty(1))),stderr:u(l(!0,i.isatty(2)))}},4635:(e,t)=>{t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{t.push(((e,t)=>null!=e?n(e):r(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>r(null,e)),r)}),"name",{value:e.name})}},5982:(e,t,r)=>{const{builtinModules:n}=r(3339);var i=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),s=["node_modules","favicon.ico"],o=function(e,t){var r={validForNewPackages:0===t.length&&0===e.length,validForOldPackages:0===t.length,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};e.exports=function(e){var t=[],r=[];if(null===e)return r.push("name cannot be null"),o(t,r);if(void 0===e)return r.push("name cannot be undefined"),o(t,r);if("string"!=typeof e)return r.push("name must be a string"),o(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),s.forEach((function(t){e.toLowerCase()===t&&r.push(t+" is a blacklisted name")})),n.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(e)!==e){var a=e.match(i);if(a){var u=a[1],l=a[2];if(encodeURIComponent(u)===u&&encodeURIComponent(l)===l)return o(t,r)}r.push("name can only contain URL-friendly characters")}return o(t,r)}},1905:(e,t,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(6928),s=n?";":":",o=r(9344),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),u=(e,t)=>{const r=t.colon||s,i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?o.split(r):[""];return n&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:o}},l=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:s,pathExtExe:l}=u(e,t),c=[],h=r=>new Promise(((s,o)=>{if(r===n.length)return t.all&&c.length?s(c):o(a(e));const u=n[r],l=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;s(d(p,r,0))})),d=(e,r,n)=>new Promise(((i,a)=>{if(n===s.length)return i(h(r+1));const u=s[n];o(e+u,{pathExt:l},((s,o)=>{if(!s&&o){if(!t.all)return i(e+u);c.push(e+u)}return i(d(e,r,n+1))}))}));return r?h(0).then((e=>r(null,e)),r):h(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=u(e,t),l=[];for(let a=0;a<r.length;a++){const u=r[a],c=/^".*"$/.test(u)?u.slice(1,-1):u,h=i.join(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;for(let e=0;e<n.length;e++){const r=d+n[e];try{if(o.sync(r,{pathExt:s})){if(!t.all)return r;l.push(r)}}catch(e){}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw a(e)}},2613:t=>{t.exports=e(import.meta.url)("assert")},5317:t=>{t.exports=e(import.meta.url)("child_process")},9140:t=>{t.exports=e(import.meta.url)("constants")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},3339:t=>{t.exports=e(import.meta.url)("module")},8995:t=>{t.exports=e(import.meta.url)("node:module")},6760:t=>{t.exports=e(import.meta.url)("node:path")},3136:t=>{t.exports=e(import.meta.url)("node:url")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},3480:t=>{t.exports=e(import.meta.url)("querystring")},3785:t=>{t.exports=e(import.meta.url)("readline")},2203:t=>{t.exports=e(import.meta.url)("stream")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3106:t=>{t.exports=e(import.meta.url)("zlib")},9523:(e,t,r)=>{const n=r(738),{resolver:i}=r(776),{Creator:s}=r(7391),{readFile:o,readJson:a,outputFile:u,outputJson:l}=n,c={spaces:2,replacer:null};function h(e){return o(e,{encoding:"utf8"})}function d(e,t){return u(e,t,{encoding:"utf8"})}function p(e,t,{pretty:r=!1}={}){return l(e,t,r?c:void 0)}const f=s({read:h,write:d}),m=s({read:a,write:p}),g=s({read:h,write:p}),b=s({read:a,write:d});e.exports={Creator:s,Json:m,JsonToText:b,Text:f,TextToJson:g,resolver:i,fs:n}},7391:(e,t,r)=>{const{resolver:n,Base:i,logger:s}=r(776);e.exports={Creator:function({read:e,write:t}){return class extends i{constructor(e){super(),e&&(this.root=e)}config(e){return void 0!==e&&(this.option=e),this}source(t,r=this.root){if(!t)throw new Error("path cannot be empty");return this.action=this.action.then((()=>{this.source=n(t,r)})).then((()=>e(this.source))),this}output(e,r=this.root){return this.action=this.action.then((i=>{const s=n(void 0===e?this.source:e,r);if(!s)throw new Error("path cannot be empty");return this.source=s,t(s,i,this.option).then((()=>i))})),this}logger(...e){if(0===e.length)throw new Error("message cannot be empty");return this.action=this.action.then((t=>(s.okay(...e),t)),(t=>{throw s.fail(...e),t})),this}}}}},776:(e,t,r)=>{const{createRequire:n}=r(8995),{isAbsolute:i,resolve:s}=r(6760),{fileURLToPath:o}=r(3136),{green:a,red:u}=r(6181),l=n(`${process.cwd()}/`);function c(e){return e.startsWith("file:")?o(e):e}const h=new class{okay(...e){console.log(a("\u2714"),...e)}fail(...e){console.log(u("\u2718"),...e)}};e.exports={logger:h,resolver:function(e,t=process.cwd()){if(e.startsWith("~"))return l.resolve(e.replace(/^~/,""));const r=c(e);if(i(r))return r;const n=c(t);return s(n,r)},Base:class{constructor(){this.action=Promise.resolve()}onDone(e=e=>e){return this.action=this.action.then((e=>(this.temp=e,e))).then(e),this}onFail(e=()=>this.temp){return this.action=this.action.then((e=>(this.temp=e,e))).catch(e),this}then(e){return this.action.then(e)}catch(e){return this.action.catch(e)}finally(e){return this.action.finally(e)}}}},7256:e=>{e.exports=JSON.parse('{"dots":{"interval":80,"frames":["\u280b","\u2819","\u2839","\u2838","\u283c","\u2834","\u2826","\u2827","\u2807","\u280f"]},"dots2":{"interval":80,"frames":["\u28fe","\u28fd","\u28fb","\u28bf","\u287f","\u28df","\u28ef","\u28f7"]},"dots3":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u281e","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},"dots4":{"interval":80,"frames":["\u2804","\u2806","\u2807","\u280b","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280b","\u2807","\u2806"]},"dots5":{"interval":80,"frames":["\u280b","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b"]},"dots6":{"interval":80,"frames":["\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281a","\u2819","\u2809","\u2801"]},"dots7":{"interval":80,"frames":["\u2808","\u2809","\u280b","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808"]},"dots8":{"interval":80,"frames":["\u2801","\u2801","\u2809","\u2819","\u281a","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280b","\u2809","\u2808","\u2808"]},"dots9":{"interval":80,"frames":["\u28b9","\u28ba","\u28bc","\u28f8","\u28c7","\u2867","\u2857","\u284f"]},"dots10":{"interval":80,"frames":["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},"dots11":{"interval":100,"frames":["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},"dots12":{"interval":80,"frames":["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280d\u2800","\u288b\u2800","\u284b\u2800","\u280d\u2801","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280d\u2850","\u288b\u2820","\u284b\u2880","\u280d\u2841","\u288b\u2801","\u284b\u2801","\u280d\u2809","\u280b\u2809","\u280b\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},"dots13":{"interval":80,"frames":["\u28fc","\u28f9","\u28bb","\u283f","\u285f","\u28cf","\u28e7","\u28f6"]},"dots8Bit":{"interval":80,"frames":["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280a","\u280b","\u280c","\u280d","\u280e","\u280f","\u2848","\u2849","\u284a","\u284b","\u284c","\u284d","\u284e","\u284f","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281a","\u281b","\u281c","\u281d","\u281e","\u281f","\u2858","\u2859","\u285a","\u285b","\u285c","\u285d","\u285e","\u285f","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282a","\u282b","\u282c","\u282d","\u282e","\u282f","\u2868","\u2869","\u286a","\u286b","\u286c","\u286d","\u286e","\u286f","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283a","\u283b","\u283c","\u283d","\u283e","\u283f","\u2878","\u2879","\u287a","\u287b","\u287c","\u287d","\u287e","\u287f","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28c0","\u28c1","\u28c2","\u28c3","\u28c4","\u28c5","\u28c6","\u28c7","\u2888","\u2889","\u288a","\u288b","\u288c","\u288d","\u288e","\u288f","\u28c8","\u28c9","\u28ca","\u28cb","\u28cc","\u28cd","\u28ce","\u28cf","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28d0","\u28d1","\u28d2","\u28d3","\u28d4","\u28d5","\u28d6","\u28d7","\u2898","\u2899","\u289a","\u289b","\u289c","\u289d","\u289e","\u289f","\u28d8","\u28d9","\u28da","\u28db","\u28dc","\u28dd","\u28de","\u28df","\u28a0","\u28a1","\u28a2","\u28a3","\u28a4","\u28a5","\u28a6","\u28a7","\u28e0","\u28e1","\u28e2","\u28e3","\u28e4","\u28e5","\u28e6","\u28e7","\u28a8","\u28a9","\u28aa","\u28ab","\u28ac","\u28ad","\u28ae","\u28af","\u28e8","\u28e9","\u28ea","\u28eb","\u28ec","\u28ed","\u28ee","\u28ef","\u28b0","\u28b1","\u28b2","\u28b3","\u28b4","\u28b5","\u28b6","\u28b7","\u28f0","\u28f1","\u28f2","\u28f3","\u28f4","\u28f5","\u28f6","\u28f7","\u28b8","\u28b9","\u28ba","\u28bb","\u28bc","\u28bd","\u28be","\u28bf","\u28f8","\u28f9","\u28fa","\u28fb","\u28fc","\u28fd","\u28fe","\u28ff"]},"sand":{"interval":80,"frames":["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28c0","\u28c1","\u28c2","\u28c4","\u28cc","\u28d4","\u28e4","\u28e5","\u28e6","\u28ee","\u28f6","\u28f7","\u28ff","\u287f","\u283f","\u289f","\u281f","\u285b","\u281b","\u282b","\u288b","\u280b","\u280d","\u2849","\u2809","\u2811","\u2821","\u2881"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["\u2802","-","\u2013","\u2014","\u2013","-"]},"pipe":{"interval":100,"frames":["\u2524","\u2518","\u2534","\u2514","\u251c","\u250c","\u252c","\u2510"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["\u2736","\u2738","\u2739","\u273a","\u2739","\u2737"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","\xb4","-","_","_","_"]},"hamburger":{"interval":100,"frames":["\u2631","\u2632","\u2634"]},"growVertical":{"interval":120,"frames":["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},"growHorizontal":{"interval":120,"frames":["\u258f","\u258e","\u258d","\u258c","\u258b","\u258a","\u2589","\u258a","\u258b","\u258c","\u258d","\u258e"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","\xb0","O","o","."]},"noise":{"interval":100,"frames":["\u2593","\u2592","\u2591"]},"bounce":{"interval":120,"frames":["\u2801","\u2802","\u2804","\u2802"]},"boxBounce":{"interval":120,"frames":["\u2596","\u2598","\u259d","\u2597"]},"boxBounce2":{"interval":100,"frames":["\u258c","\u2580","\u2590","\u2584"]},"triangle":{"interval":50,"frames":["\u25e2","\u25e3","\u25e4","\u25e5"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["\u25dc","\u25e0","\u25dd","\u25de","\u25e1","\u25df"]},"circle":{"interval":120,"frames":["\u25e1","\u2299","\u25e0"]},"squareCorners":{"interval":180,"frames":["\u25f0","\u25f3","\u25f2","\u25f1"]},"circleQuarters":{"interval":120,"frames":["\u25f4","\u25f7","\u25f6","\u25f5"]},"circleHalves":{"interval":50,"frames":["\u25d0","\u25d3","\u25d1","\u25d2"]},"squish":{"interval":100,"frames":["\u256b","\u256a"]},"toggle":{"interval":250,"frames":["\u22b6","\u22b7"]},"toggle2":{"interval":80,"frames":["\u25ab","\u25aa"]},"toggle3":{"interval":120,"frames":["\u25a1","\u25a0"]},"toggle4":{"interval":100,"frames":["\u25a0","\u25a1","\u25aa","\u25ab"]},"toggle5":{"interval":100,"frames":["\u25ae","\u25af"]},"toggle6":{"interval":300,"frames":["\u101d","\u1040"]},"toggle7":{"interval":80,"frames":["\u29be","\u29bf"]},"toggle8":{"interval":100,"frames":["\u25cd","\u25cc"]},"toggle9":{"interval":100,"frames":["\u25c9","\u25ce"]},"toggle10":{"interval":100,"frames":["\u3282","\u3280","\u3281"]},"toggle11":{"interval":50,"frames":["\u29c7","\u29c6"]},"toggle12":{"interval":120,"frames":["\u2617","\u2616"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},"arrow2":{"interval":80,"frames":["\u2b06\ufe0f ","\u2197\ufe0f ","\u27a1\ufe0f ","\u2198\ufe0f ","\u2b07\ufe0f ","\u2199\ufe0f ","\u2b05\ufe0f ","\u2196\ufe0f "]},"arrow3":{"interval":120,"frames":["\u25b9\u25b9\u25b9\u25b9\u25b9","\u25b8\u25b9\u25b9\u25b9\u25b9","\u25b9\u25b8\u25b9\u25b9\u25b9","\u25b9\u25b9\u25b8\u25b9\u25b9","\u25b9\u25b9\u25b9\u25b8\u25b9","\u25b9\u25b9\u25b9\u25b9\u25b8"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf)","( \u25cf )","( \u25cf )","( \u25cf )","( \u25cf )","(\u25cf )"]},"smiley":{"interval":200,"frames":["\u{1f604} ","\u{1f61d} "]},"monkey":{"interval":300,"frames":["\u{1f648} ","\u{1f648} ","\u{1f649} ","\u{1f64a} "]},"hearts":{"interval":100,"frames":["\u{1f49b} ","\u{1f499} ","\u{1f49c} ","\u{1f49a} ","\u2764\ufe0f "]},"clock":{"interval":100,"frames":["\u{1f55b} ","\u{1f550} ","\u{1f551} ","\u{1f552} ","\u{1f553} ","\u{1f554} ","\u{1f555} ","\u{1f556} ","\u{1f557} ","\u{1f558} ","\u{1f559} ","\u{1f55a} "]},"earth":{"interval":180,"frames":["\u{1f30d} ","\u{1f30e} ","\u{1f30f} "]},"material":{"interval":17,"frames":["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},"moon":{"interval":80,"frames":["\u{1f311} ","\u{1f312} ","\u{1f313} ","\u{1f314} ","\u{1f315} ","\u{1f316} ","\u{1f317} ","\u{1f318} "]},"runner":{"interval":140,"frames":["\u{1f6b6} ","\u{1f3c3} "]},"pong":{"interval":80,"frames":["\u2590\u2802 \u258c","\u2590\u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802\u258c","\u2590 \u2820\u258c","\u2590 \u2840\u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590 \u2820 \u258c","\u2590 \u2802 \u258c","\u2590 \u2808 \u258c","\u2590 \u2802 \u258c","\u2590 \u2820 \u258c","\u2590 \u2840 \u258c","\u2590\u2820 \u258c"]},"shark":{"interval":120,"frames":["\u2590|\\\\____________\u258c","\u2590_|\\\\___________\u258c","\u2590__|\\\\__________\u258c","\u2590___|\\\\_________\u258c","\u2590____|\\\\________\u258c","\u2590_____|\\\\_______\u258c","\u2590______|\\\\______\u258c","\u2590_______|\\\\_____\u258c","\u2590________|\\\\____\u258c","\u2590_________|\\\\___\u258c","\u2590__________|\\\\__\u258c","\u2590___________|\\\\_\u258c","\u2590____________|\\\\\u258c","\u2590____________/|\u258c","\u2590___________/|_\u258c","\u2590__________/|__\u258c","\u2590_________/|___\u258c","\u2590________/|____\u258c","\u2590_______/|_____\u258c","\u2590______/|______\u258c","\u2590_____/|_______\u258c","\u2590____/|________\u258c","\u2590___/|_________\u258c","\u2590__/|__________\u258c","\u2590_/|___________\u258c","\u2590/|____________\u258c"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["\u2600\ufe0f ","\u2600\ufe0f ","\u2600\ufe0f ","\u{1f324} ","\u26c5\ufe0f ","\u{1f325} ","\u2601\ufe0f ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u26c8 ","\u{1f328} ","\u{1f327} ","\u{1f328} ","\u2601\ufe0f ","\u{1f325} ","\u26c5\ufe0f ","\u{1f324} ","\u2600\ufe0f ","\u2600\ufe0f "]},"christmas":{"interval":400,"frames":["\u{1f332}","\u{1f384}"]},"grenade":{"interval":80,"frames":["\u060c ","\u2032 "," \xb4 "," \u203e "," \u2e0c"," \u2e0a"," |"," \u204e"," \u2055"," \u0df4 "," \u2053"," "," "," "]},"point":{"interval":125,"frames":["\u2219\u2219\u2219","\u25cf\u2219\u2219","\u2219\u25cf\u2219","\u2219\u2219\u25cf","\u2219\u2219\u2219"]},"layer":{"interval":150,"frames":["-","=","\u2261"]},"betaWave":{"interval":80,"frames":["\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1\u03b2","\u03b2\u03b2\u03b2\u03b2\u03b2\u03b2\u03c1"]},"fingerDance":{"interval":160,"frames":["\u{1f918} ","\u{1f91f} ","\u{1f596} ","\u270b ","\u{1f91a} ","\u{1f446} "]},"fistBump":{"interval":80,"frames":["\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u{1f91c}\u3000\u3000\u3000\u3000\u{1f91b} ","\u3000\u{1f91c}\u3000\u3000\u{1f91b}\u3000 ","\u3000\u3000\u{1f91c}\u{1f91b}\u3000\u3000 ","\u3000\u{1f91c}\u2728\u{1f91b}\u3000\u3000 ","\u{1f91c}\u3000\u2728\u3000\u{1f91b}\u3000 "]},"soccerHeader":{"interval":80,"frames":[" \u{1f9d1}\u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f\u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} ","\u{1f9d1} \u26bd\ufe0f \u{1f9d1} "]},"mindblown":{"interval":160,"frames":["\u{1f610} ","\u{1f610} ","\u{1f62e} ","\u{1f62e} ","\u{1f626} ","\u{1f626} ","\u{1f627} ","\u{1f627} ","\u{1f92f} ","\u{1f4a5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},"speaker":{"interval":160,"frames":["\u{1f508} ","\u{1f509} ","\u{1f50a} ","\u{1f509} "]},"orangePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} "]},"bluePulse":{"interval":100,"frames":["\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"orangeBluePulse":{"interval":100,"frames":["\u{1f538} ","\u{1f536} ","\u{1f7e0} ","\u{1f7e0} ","\u{1f536} ","\u{1f539} ","\u{1f537} ","\u{1f535} ","\u{1f535} ","\u{1f537} "]},"timeTravel":{"interval":100,"frames":["\u{1f55b} ","\u{1f55a} ","\u{1f559} ","\u{1f558} ","\u{1f557} ","\u{1f556} ","\u{1f555} ","\u{1f554} ","\u{1f553} ","\u{1f552} ","\u{1f551} ","\u{1f550} "]},"aesthetic":{"interval":80,"frames":["\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b1","\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0\u25b0","\u25b0\u25b1\u25b1\u25b1\u25b1\u25b1\u25b1"]},"dwarfFortress":{"interval":80,"frames":[" \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a\u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 ","\u263a \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\u2588\xa3\xa3\xa3 "," \u263a \u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2588\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2593\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2592\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a\u2591\u2588\xa3\xa3\xa3 "," \u263a \u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2588\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2592\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a\u2591\xa3\xa3\xa3 "," \u263a \xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\xa3\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2593\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2592\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a\u2591\xa3\xa3 "," \u263a \xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\xa3\xa3 "," \u263a\u2593\xa3 "," \u263a\u2593\xa3 "," \u263a\u2592\xa3 "," \u263a\u2592\xa3 "," \u263a\u2591\xa3 "," \u263a\u2591\xa3 "," \u263a \xa3 "," \u263a\xa3 "," \u263a\xa3 "," \u263a\u2593 "," \u263a\u2593 "," \u263a\u2592 "," \u263a\u2592 "," \u263a\u2591 "," \u263a\u2591 "," \u263a "," \u263a &"," \u263a \u263c&"," \u263a \u263c &"," \u263a\u263c &"," \u263a\u263c & "," \u203c & "," \u263a & "," \u203c & "," \u263a & "," \u203c & "," \u263a & ","\u203c & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xa3 "," & \u2591\xa3 "," & \u2592\xa3 "," & \u2593\xa3 "," & \xa3\xa3 "," & \u2591\xa3\xa3 "," & \u2592\xa3\xa3 ","& \u2593\xa3\xa3 ","& \xa3\xa3\xa3 "," \u2591\xa3\xa3\xa3 "," \u2592\xa3\xa3\xa3 "," \u2593\xa3\xa3\xa3 "," \u2588\xa3\xa3\xa3 "," \u2591\u2588\xa3\xa3\xa3 "," \u2592\u2588\xa3\xa3\xa3 "," \u2593\u2588\xa3\xa3\xa3 "," \u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xa3\xa3\xa3 "]}}')},8360:e=>{e.exports=JSON.parse('{"4":"zh_CHS","1025":"ar_SA","1026":"bg_BG","1027":"ca_ES","1028":"zh_TW","1029":"cs_CZ","1030":"da_DK","1031":"de_DE","1032":"el_GR","1033":"en_US","1034":"es_ES","1035":"fi_FI","1036":"fr_FR","1037":"he_IL","1038":"hu_HU","1039":"is_IS","1040":"it_IT","1041":"ja_JP","1042":"ko_KR","1043":"nl_NL","1044":"nb_NO","1045":"pl_PL","1046":"pt_BR","1047":"rm_CH","1048":"ro_RO","1049":"ru_RU","1050":"hr_HR","1051":"sk_SK","1052":"sq_AL","1053":"sv_SE","1054":"th_TH","1055":"tr_TR","1056":"ur_PK","1057":"id_ID","1058":"uk_UA","1059":"be_BY","1060":"sl_SI","1061":"et_EE","1062":"lv_LV","1063":"lt_LT","1064":"tg_TJ","1065":"fa_IR","1066":"vi_VN","1067":"hy_AM","1069":"eu_ES","1070":"wen_DE","1071":"mk_MK","1074":"tn_ZA","1076":"xh_ZA","1077":"zu_ZA","1078":"af_ZA","1079":"ka_GE","1080":"fo_FO","1081":"hi_IN","1082":"mt_MT","1083":"se_NO","1086":"ms_MY","1087":"kk_KZ","1088":"ky_KG","1089":"sw_KE","1090":"tk_TM","1092":"tt_RU","1093":"bn_IN","1094":"pa_IN","1095":"gu_IN","1096":"or_IN","1097":"ta_IN","1098":"te_IN","1099":"kn_IN","1100":"ml_IN","1101":"as_IN","1102":"mr_IN","1103":"sa_IN","1104":"mn_MN","1105":"bo_CN","1106":"cy_GB","1107":"kh_KH","1108":"lo_LA","1109":"my_MM","1110":"gl_ES","1111":"kok_IN","1114":"syr_SY","1115":"si_LK","1118":"am_ET","1121":"ne_NP","1122":"fy_NL","1123":"ps_AF","1124":"fil_PH","1125":"div_MV","1128":"ha_NG","1130":"yo_NG","1131":"quz_BO","1132":"ns_ZA","1133":"ba_RU","1134":"lb_LU","1135":"kl_GL","1144":"ii_CN","1146":"arn_CL","1148":"moh_CA","1150":"br_FR","1152":"ug_CN","1153":"mi_NZ","1154":"oc_FR","1155":"co_FR","1156":"gsw_FR","1157":"sah_RU","1158":"qut_GT","1159":"rw_RW","1160":"wo_SN","1164":"gbz_AF","2049":"ar_IQ","2052":"zh_CN","2055":"de_CH","2057":"en_GB","2058":"es_MX","2060":"fr_BE","2064":"it_CH","2067":"nl_BE","2068":"nn_NO","2070":"pt_PT","2077":"sv_FI","2080":"ur_IN","2092":"az_AZ","2094":"dsb_DE","2107":"se_SE","2108":"ga_IE","2110":"ms_BN","2115":"uz_UZ","2128":"mn_CN","2129":"bo_BT","2141":"iu_CA","2143":"tmz_DZ","2155":"quz_EC","3073":"ar_EG","3076":"zh_HK","3079":"de_AT","3081":"en_AU","3082":"es_ES","3084":"fr_CA","3098":"sr_SP","3131":"se_FI","3179":"quz_PE","4097":"ar_LY","4100":"zh_SG","4103":"de_LU","4105":"en_CA","4106":"es_GT","4108":"fr_CH","4122":"hr_BA","4155":"smj_NO","5121":"ar_DZ","5124":"zh_MO","5127":"de_LI","5129":"en_NZ","5130":"es_CR","5132":"fr_LU","5179":"smj_SE","6145":"ar_MA","6153":"en_IE","6154":"es_PA","6156":"fr_MC","6203":"sma_NO","7169":"ar_TN","7177":"en_ZA","7178":"es_DO","7194":"sr_BA","7227":"sma_SE","8193":"ar_OM","8201":"en_JA","8202":"es_VE","8218":"bs_BA","8251":"sms_FI","9217":"ar_YE","9225":"en_CB","9226":"es_CO","9275":"smn_FI","10241":"ar_SY","10249":"en_BZ","10250":"es_PE","11265":"ar_JO","11273":"en_TT","11274":"es_AR","12289":"ar_LB","12297":"en_ZW","12298":"es_EC","13313":"ar_KW","13321":"en_PH","13322":"es_CL","14337":"ar_AE","14346":"es_UR","15361":"ar_BH","15370":"es_PY","16385":"ar_QA","16394":"es_BO","17417":"en_MY","17418":"es_SV","18441":"en_IN","18442":"es_HN","19466":"es_NI","20490":"es_PR","21514":"es_US","31748":"zh_CHT"}')}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return t[e](s,s.exports,n),s.loaded=!0,s.exports}n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i=n(9896),s=n(2613);const o={right:function(e,t){e=e.trim();const r=l.stringWidth(e);return r<t?" ".repeat(t-r)+e:e},center:function(e,t){e=e.trim();const r=l.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}};class a{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let r=0;return t.forEach((e=>{e.length>1&&l.stringWidth(e[0])>r&&(r=Math.min(Math.floor(.5*this.width),l.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,n)=>({text:t.trim(),padding:this.measurePadding(t),width:0===n&&e.length>1?r:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=l.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((r,n)=>{let i="";r.forEach(((r,s)=>{const{width:a}=e[s],c=this.negatePadding(e[s]);let h=r;c>l.stringWidth(r)&&(h+=" ".repeat(c-l.stringWidth(r))),e[s].align&&"left"!==e[s].align&&this.wrap&&(h=(0,o[e[s].align])(h,c),l.stringWidth(h)<c&&(h+=" ".repeat((a||0)-l.stringWidth(h)-1)));const d=e[s].padding||[0,0,0,0];d[3]&&(i+=" ".repeat(d[3])),i+=u(e[s],h,"| "),i+=h,i+=u(e[s],h," |"),d[1]&&(i+=" ".repeat(d[1])),0===n&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))})),t.push({text:i.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const r=e.match(/^ */),n=r?r[0].length:0,i=t.text,s=l.stringWidth(i.trimRight());return t.span?this.wrap?n<s?e:(t.hidden=!0,i.trimRight()+" ".repeat(n-s)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){const t=[],r=this.columnWidths(e);let n;return e.forEach(((e,i)=>{e.width=r[i],n=this.wrap?l.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(n.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),n.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(n.unshift(...new Array(e.padding[0]||0).fill("")),n.push(...new Array(e.padding[2]||0).fill(""))),n.forEach(((e,r)=>{t[r]||t.push([]);const n=t[r];for(let e=0;e<i;e++)void 0===n[e]&&n.push("");n.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||l.stringWidth(e.text)));let t=e.length,r=this.width;const n=e.map((e=>{if(e.width)return t--,r-=e.width,e.width})),i=t?Math.floor(r/t):0;return n.map(((t,r)=>void 0===t?Math.max(i,function(e){const t=e.padding||[],r=1+(t[3]||0)+(t[1]||0);return e.border?r+4:r}(e[r])):t))}}function u(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?r:" ":""}let l;const c=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function h(e){return e.replace(c,"")}function d(e,t){const[r,n]=e.match(c)||["",""];e=h(e);let i="";for(let r=0;r<e.length;r++)0!==r&&r%t==0&&(i+="\n"),i+=e.charAt(r);return r&&n&&(i=`${r}${i}${n}`),i}var p,f=n(6928),m=n(9023),g=n(7016);function b(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",r=!1;const n=e.match(/^-+/);for(let i=n?n[0].length:0;i<e.length;i++){let n=e.charAt(i);r&&(r=!1,n=n.toUpperCase()),0===i||"-"!==n&&"_"!==n?"-"!==n&&"_"!==n&&(t+=n):r=!0}return t}}function y(e,t){const r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){const s=r.charAt(i),o=e.charAt(i);n+=s!==o&&i>0?`${t}${r.charAt(i)}`:o}return n}function D(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}let w;function v(e){return void 0!==e?e+1:1}function E(e){return"__proto__"===e?"___proto___":e}var F,C,S;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(p||(p={}));const x=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,O=null!==(C=null===(F=null===process||void 0===process?void 0:process.versions)||void 0===F?void 0:F.node)&&void 0!==C?C:null===(S=null===process||void 0===process?void 0:process.version)||void 0===S?void 0:S.slice(1);if(O&&Number(O.match(/^([^.]+)/)[1])<x)throw Error(`yargs parser supports a minimum Node.js version of ${x}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const _=process?process.env:{},A=new class{constructor(e){w=e}parse(e,t){const r=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),n=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,r=null,n=null,i=null;const s=[];for(let o=0;o<e.length;o++)r=n,n=e.charAt(o)," "!==n||i?(n===i?i=null:"'"!==n&&'"'!==n||i||(i=n),s[t]||(s[t]=""),s[t]+=n):" "!==r&&t++;return s}(e),i="string"==typeof e,s=function(e){const t=[],r=Object.create(null);let n=!0;for(Object.keys(e).forEach((function(r){t.push([].concat(e[r],r))}));n;){n=!1;for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++)if(t[e].filter((function(e){return-1!==t[r].indexOf(e)})).length){t[e]=t[e].concat(t[r]),t.splice(r,1),n=!0;break}}return t.forEach((function(e){e=e.filter((function(e,t,r){return r.indexOf(e)===t}));const t=e.pop();void 0!==t&&"string"==typeof t&&(r[t]=e)})),r}(Object.assign(Object.create(null),r.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},r.configuration),a=Object.assign(Object.create(null),r.default),u=r.configObjects||[],l=r.envPrefix,c=o["populate--"],h=c?"--":"_",d=Object.create(null),f=Object.create(null),m=r.__||w.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},F=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,C=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,r=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();r&&(g[r][t]=!0),g.arrays[t]=!0,g.keys.push(t)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(e){g.bools[e]=!0,g.keys.push(e)})),[].concat(r.string||[]).filter(Boolean).forEach((function(e){g.strings[e]=!0,g.keys.push(e)})),[].concat(r.number||[]).filter(Boolean).forEach((function(e){g.numbers[e]=!0,g.keys.push(e)})),[].concat(r.count||[]).filter(Boolean).forEach((function(e){g.counts[e]=!0,g.keys.push(e)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(e){g.normalize[e]=!0,g.keys.push(e)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([e,t])=>{"number"==typeof t&&(g.nargs[e]=t,g.keys.push(e))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([e,t])=>{"function"==typeof t&&(g.coercions[e]=t,g.keys.push(e))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(e){g.configs[e]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(g.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){g.aliases[e]||(g.aliases[e]=[].concat(s[e]||[]),g.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&o["camel-case-expansion"]){const r=b(t);r!==e&&-1===g.aliases[e].indexOf(r)&&(g.aliases[e].push(r),d[r]=!0)}})),g.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&o["camel-case-expansion"]){const r=y(t,"-");r!==e&&-1===g.aliases[e].indexOf(r)&&(g.aliases[e].push(r),d[r]=!0)}})),g.aliases[e].forEach((function(t){g.aliases[t]=[e].concat(g.aliases[e].filter((function(e){return t!==e})))})))}))}))}(r.key,s,r.default,g.arrays),Object.keys(a).forEach((function(e){(g.aliases[e]||[]).forEach((function(t){a[t]=a[e]}))}));let S=null;Object.keys(g.counts).find((e=>U(e,g.arrays)?(S=Error(m("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!U(e,g.nargs)&&(S=Error(m("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let x=[];const O=Object.assign(Object.create(null),{_:[]}),_={};for(let e=0;e<n.length;e++){const t=n[e],r=t.replace(/^-{3,}/,"---");let i,s,a,u,l,c;if("--"!==t&&/^-/.test(t)&&H(t))A(t);else{if(r.match(/^---+(=|$)/)){A(t);continue}if(t.match(/^--.+=/)||!o["short-option-groups"]&&t.match(/^-.+=/))u=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&(U(u[1],g.arrays)?e=M(e,u[1],n,u[2]):!1!==U(u[1],g.nargs)?e=T(e,u[1],n,u[2]):k(u[1],u[2],!0));else if(t.match(C)&&o["boolean-negation"])u=t.match(C),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],k(s,!!U(s,g.arrays)&&[!1]));else if(t.match(/^--.+/)||!o["short-option-groups"]&&t.match(/^-[^-]+/))u=t.match(/^--?(.+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],U(s,g.arrays)?e=M(e,s,n):!1!==U(s,g.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||l.match(/^-/)&&!l.match(F)||U(s,g.bools)||U(s,g.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,G(s)):(k(s,l),e++)));else if(t.match(/^-.\..+=/))u=t.match(/^-([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&k(u[1],u[2]);else if(t.match(/^-.\..+/)&&!t.match(F))l=n[e+1],u=t.match(/^-(.\..+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(s=u[1],void 0===l||l.match(/^-/)||U(s,g.bools)||U(s,g.counts)?k(s,G(s)):(k(s,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(F)){a=t.slice(1,-1).split(""),i=!1;for(let r=0;r<a.length;r++){if(l=t.slice(r+2),a[r+1]&&"="===a[r+1]){c=t.slice(r+3),s=a[r],U(s,g.arrays)?e=M(e,s,n,c):!1!==U(s,g.nargs)?e=T(e,s,n,c):k(s,c),i=!0;break}if("-"!==l){if(/[A-Za-z]/.test(a[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===U(l,g.bools)){k(a[r],l),i=!0;break}if(a[r+1]&&a[r+1].match(/\W/)){k(a[r],l),i=!0;break}k(a[r],G(a[r]))}else k(a[r],l)}s=t.slice(-1)[0],i||"-"===s||(U(s,g.arrays)?e=M(e,s,n):!1!==U(s,g.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(F)||U(s,g.bools)||U(s,g.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,G(s)):(k(s,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(F)&&U(t.slice(1),g.bools))s=t.slice(1),k(s,G(s));else{if("--"===t){x=n.slice(e+1);break}if(o["halt-at-non-option"]){x=n.slice(e);break}A(t)}}}function A(e){const t=B("_",e);"string"!=typeof t&&"number"!=typeof t||O._.push(t)}function T(e,t,r,n){let i,s=U(t,g.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return z(n)||(S=Error(m("Argument unexpected for: %s",t))),k(t,G(t)),e;let a=z(n)?0:1;if(o["nargs-eats-options"])r.length-(e+1)+a<s&&(S=Error(m("Not enough arguments following: %s",t))),a=s;else{for(i=e+1;i<r.length&&(!r[i].match(/^-[^0-9]/)||r[i].match(F)||H(r[i]));i++)a++;a<s&&(S=Error(m("Not enough arguments following: %s",t)))}let u=Math.min(a,s);for(!z(n)&&u>0&&(k(t,n),u--),i=e+1;i<u+e+1;i++)k(t,r[i]);return e+u}function M(e,t,r,n){let s=[],u=n||r[e+1];const l=U(t,g.nargs);if(U(t,g.bools)&&!/^(true|false)$/.test(u))s.push(!0);else if(z(u)||z(n)&&/^-/.test(u)&&!F.test(u)&&!H(u)){if(void 0!==a[t]){const e=a[t];s=Array.isArray(e)?e:[e]}}else{z(n)||s.push(j(t,n,!0));for(let n=e+1;n<r.length&&!(!o["greedy-arrays"]&&s.length>0||l&&"number"==typeof l&&s.length>=l)&&(u=r[n],!/^-/.test(u)||F.test(u)||H(u));n++)e=n,s.push(j(t,u,i))}return"number"==typeof l&&(l&&s.length<l||isNaN(l)&&0===s.length)&&(S=Error(m("Not enough arguments following: %s",t))),k(t,s),e}function k(e,t,r=i){if(/-/.test(e)&&o["camel-case-expansion"]){const t=e.split(".").map((function(e){return b(e)})).join(".");I(e,t)}const n=j(e,t,r),s=e.split(".");L(O,s,n),g.aliases[e]&&g.aliases[e].forEach((function(e){const t=e.split(".");L(O,t,n)})),s.length>1&&o["dot-notation"]&&(g.aliases[s[0]]||[]).forEach((function(t){let r=t.split(".");const i=[].concat(s);i.shift(),r=r.concat(i),(g.aliases[e]||[]).includes(r.join("."))||L(O,r,n)})),U(e,g.normalize)&&!U(e,g.arrays)&&[e].concat(g.aliases[e]||[]).forEach((function(e){Object.defineProperty(_,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?w.normalize(e):e}})}))}function I(e,t){g.aliases[e]&&g.aliases[e].length||(g.aliases[e]=[t],d[t]=!0),g.aliases[t]&&g.aliases[t].length||I(t,e)}function j(e,t,r){r&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(U(e,g.bools)||U(e,g.counts))&&"string"==typeof t&&(t="true"===t);let n=Array.isArray(t)?t.map((function(t){return B(e,t)})):B(e,t);return U(e,g.counts)&&(z(n)||"boolean"==typeof n)&&(n=v()),U(e,g.normalize)&&U(e,g.arrays)&&(n=Array.isArray(t)?t.map((e=>w.normalize(e))):w.normalize(t)),n}function B(e,t){return o["parse-positional-numbers"]||"_"!==e?(U(e,g.strings)||U(e,g.bools)||Array.isArray(t)||(D(t)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!z(t)&&U(e,g.numbers))&&(t=Number(t)),t):t}function P(e,t){Object.keys(e).forEach((function(r){const n=e[r],i=t?t+"."+r:r;"object"==typeof n&&null!==n&&!Array.isArray(n)&&o["dot-notation"]?P(n,i):(!N(O,i.split("."))||U(i,g.arrays)&&o["combine-arrays"])&&k(i,n)}))}function R(e,t){if(void 0===l)return;const r="string"==typeof l?l:"",n=w.env();Object.keys(n).forEach((function(i){if(""===r||0===i.lastIndexOf(r,0)){const s=i.split("__").map((function(e,t){return 0===t&&(e=e.substring(r.length)),b(e)}));(t&&g.configs[s.join(".")]||!t)&&!N(e,s)&&k(s.join("."),n[i])}}))}function $(e,t,r,n=!1){Object.keys(r).forEach((function(i){N(e,i.split("."))||(L(e,i.split("."),r[i]),n&&(f[i]=!0),(t[i]||[]).forEach((function(t){N(e,t.split("."))||L(e,t.split("."),r[i])})))}))}function N(e,t){let r=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){r=r[e]||{}}));const n=t[t.length-1];return"object"==typeof r&&n in r}function L(e,t,r){let n=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=E(e),"object"==typeof n&&void 0===n[e]&&(n[e]={}),"object"!=typeof n[e]||Array.isArray(n[e])?(Array.isArray(n[e])?n[e].push({}):n[e]=[n[e],{}],n=n[e][n[e].length-1]):n=n[e]}));const i=E(t[t.length-1]),s=U(t.join("."),g.arrays),a=Array.isArray(r);let u=o["duplicate-arguments-array"];!u&&U(i,g.nargs)&&(u=!0,(!z(n[i])&&1===g.nargs[i]||Array.isArray(n[i])&&n[i].length===g.nargs[i])&&(n[i]=void 0)),r===v()?n[i]=v(n[i]):Array.isArray(n[i])?u&&s&&a?n[i]=o["flatten-duplicate-arrays"]?n[i].concat(r):(Array.isArray(n[i][0])?n[i]:[n[i]]).concat([r]):u||Boolean(s)!==Boolean(a)?n[i]=n[i].concat([r]):n[i]=r:void 0===n[i]&&s?n[i]=a?r:[r]:!u||void 0===n[i]||U(i,g.counts)||U(i,g.bools)?n[i]=r:n[i]=[n[i],r]}function U(e,t){const r=[].concat(g.aliases[e]||[],e),n=Object.keys(t),i=r.find((e=>n.includes(e)));return!!i&&t[i]}function W(e){const t=Object.keys(g);return[].concat(t.map((e=>g[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function H(e){return o["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(F)&&(!function(e){if(e.match(F)||!e.match(/^-[^-]+/))return!1;let t,r=!0;const n=e.slice(1).split("");for(let i=0;i<n.length;i++){if(t=e.slice(i+2),!W(n[i])){r=!1;break}if(n[i+1]&&"="===n[i+1]||"-"===t||/[A-Za-z]/.test(n[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||n[i+1]&&n[i+1].match(/\W/))break}return r}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const r=e.match(t);return r&&W(r[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,C,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function G(e){return U(e,g.bools)||U(e,g.counts)||!(`${e}`in a)?(t=function(e){let t=p.BOOLEAN;return U(e,g.strings)?t=p.STRING:U(e,g.numbers)?t=p.NUMBER:U(e,g.bools)?t=p.BOOLEAN:U(e,g.arrays)&&(t=p.ARRAY),t}(e),{[p.BOOLEAN]:!0,[p.STRING]:"",[p.NUMBER]:void 0,[p.ARRAY]:[]}[t]):a[e];var t}function z(e){return void 0===e}return R(O,!0),R(O,!1),function(e){const t=Object.create(null);$(t,g.aliases,a),Object.keys(g.configs).forEach((function(r){const n=e[r]||t[r];if(n)try{let e=null;const t=w.resolve(w.cwd(),n),i=g.configs[r];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(S=e)}else e=w.require(t);P(e)}catch(t){"PermissionDenied"===t.name?S=t:e[r]&&(S=Error(m("Invalid JSON config file: %s",n)))}}))}(O),void 0!==u&&u.forEach((function(e){P(e)})),$(O,g.aliases,a,!0),function(e){let t;const r=new Set;Object.keys(e).forEach((function(n){if(!r.has(n)&&(t=U(n,g.coercions),"function"==typeof t))try{const i=B(n,t(e[n]));[].concat(g.aliases[n]||[],n).forEach((t=>{r.add(t),e[t]=i}))}catch(e){S=e}}))}(O),o["set-placeholder-key"]&&function(e){g.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(O),Object.keys(g.counts).forEach((function(e){N(O,e.split("."))||k(e,0)})),c&&x.length&&(O[h]=[]),x.forEach((function(e){O[h].push(e)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(O).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete O[e]})),o["strip-aliased"]&&[].concat(...Object.keys(s).map((e=>s[e]))).forEach((e=>{o["camel-case-expansion"]&&e.includes("-")&&delete O[e.split(".").map((e=>b(e))).join(".")],delete O[e]})),{aliases:Object.assign({},g.aliases),argv:Object.assign(_,O),configuration:o,defaulted:Object.assign({},f),error:S,newAliases:Object.assign({},d)}}}({cwd:process.cwd,env:()=>_,format:m.format,normalize:f.normalize,resolve:f.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,i.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),T=function(e,t){return A.parse(e.slice(),t).argv};T.detailed=function(e,t){return A.parse(e.slice(),t)},T.camelCase=b,T.decamelize=y,T.looksLikeNumber=D;const M=T;class k extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,k)}}const I={fs:{readFileSync:i.readFileSync,writeFile:i.writeFile},format:m.format,resolve:f.resolve,exists:e=>{try{return(0,i.statSync)(e).isFile()}catch(e){return!1}}};let j;class B{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let r=function(){};return"function"==typeof e[e.length-1]&&(r=e.pop()),r=r||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:r})):r(),j.format.apply(j.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),r=e.shift(),n=e.shift();let i=function(){};"function"==typeof e[e.length-1]&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let s=1===n?t:r;this.cache[this.locale][t]&&(s=this.cache[this.locale][t][1===n?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const o=[s];return~s.indexOf("%d")&&o.push(n),j.format.apply(j.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let r="";return e.forEach((function(e,n){const i=t[n+1];r+=e,void 0!==i&&(r+="%s")})),this.__.apply(this,[r].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],r=t.directory,n=t.locale,i=t.cb,s=this._resolveLocaleFile(r,n),o=JSON.stringify(this.cache[n],null,2);j.fs.writeFile(s,o,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{j.fs.readFileSync&&(e=JSON.parse(j.fs.readFileSync(t,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+t),"ENOENT"!==r.code)throw r;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let r=j.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~t.lastIndexOf("_")){const n=j.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(n)&&(r=n)}return r}_fileExistsSync(e){return j.exists(e)}}const P="loading a directory of commands is not supported yet for ESM";let R;try{R=(0,g.fileURLToPath)(import.meta.url)}catch(e){R=process.cwd()}const $=R.substring(0,R.lastIndexOf("node_modules")),N={assert:{notStrictEqual:s.notStrictEqual,strictEqual:s.strictEqual},cliui:function(e){return function(e,t){return l=t,new a({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:e=>[...e].length,stripAnsi:h,wrap:d})},findUp:function(e,t){let r,n=(0,f.resolve)(".",e);for((0,i.statSync)(n).isDirectory()||(n=(0,f.dirname)(n));;){if(r=t(n,(0,i.readdirSync)(n)),r)return(0,f.resolve)(n,r);if(n=(0,f.dirname)(r=n),r===n)break}},getEnv:e=>process.env[e],inspect:m.inspect,getCallerFile:()=>{throw new k(P)},getProcessArgvBin:function(){return process.argv[process.versions.electron&&!process.defaultApp?0:1]},mainFilename:$||process.cwd(),Parser:M,path:{basename:f.basename,dirname:f.dirname,extname:f.extname,relative:f.relative,resolve:f.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:i.readFileSync,require:()=>{throw new k("require is not supported by ESM")},requireDirectory:()=>{throw new k(P)},stringWidth:e=>[...e].length,y18n:(L={directory:(0,f.resolve)(R,"../../../locales"),updateFiles:!1},function(e){j=I;const t=new B(e);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}(L))};var L;function U(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function W(e,t){t.assert.strictEqual(typeof e,"string")}function H(e){return Object.keys(e)}function G(e){return!!e&&!!e.then&&"function"==typeof e.then}function z(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,n=t.shift();if(!n)throw new Error(`No command found in: ${e}`);const i={cmd:n.replace(r,""),demanded:[],optional:[]};return t.forEach(((e,n)=>{let s=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&n===t.length-1&&(s=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(r,"").split("|"),variadic:s}):i.demanded.push({cmd:e.replace(r,"").split("|"),variadic:s})})),i}const V=["first","second","third","fourth","fifth","sixth"];function q(e,t,r){try{let n=0;const[i,s,o]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[z(`cmd ${e}`),t,r],a=[].slice.call(s);for(;a.length&&void 0===a[a.length-1];)a.pop();const u=o||a.length;if(u<i.demanded.length)throw new k(`Not enough arguments provided. Expected ${i.demanded.length} but received ${a.length}.`);const l=i.demanded.length+i.optional.length;if(u>l)throw new k(`Too many arguments provided. Expected max ${l} but received ${u}.`);i.demanded.forEach((e=>{const t=Y(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&K(t,e.cmd,n),n+=1})),i.optional.forEach((e=>{if(0===a.length)return;const t=Y(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&K(t,e.cmd,n),n+=1}))}catch(e){console.warn(e.stack)}}function Y(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function K(e,t,r){throw new k(`Invalid ${V[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}class J{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,r=!0,n=!1){if(q("<array|function> [boolean] [boolean] [boolean]",[e,t,r],arguments.length),Array.isArray(e)){for(let n=0;n<e.length;n++){if("function"!=typeof e[n])throw Error("middleware must be a function");const i=e[n];i.applyBeforeValidation=t,i.global=r}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const i=e;i.applyBeforeValidation=t,i.global=r,i.mutates=n,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const n=[...r[t]||[],t];return!e.option||!n.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function Z(e,t,r,n){return r.reduce(((e,r)=>{if(r.applyBeforeValidation!==n)return e;if(r.mutates){if(r.applied)return e;r.applied=!0}if(G(e))return e.then((e=>Promise.all([e,r(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const n=r(e,t);return G(n)?n.then((t=>Object.assign(e,t))):Object.assign(e,n)}}),e)}function Q(e,t,r=e=>{throw e}){try{const r="function"==typeof e?e():e;return G(r)?r.then((e=>t(e))):t(r)}catch(e){return r(e)}}const X=/(^\*)|(^\$0)/;class ee{constructor(e,t,r,n){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=n,this.usage=e,this.globalMiddleware=r,this.validation=t}addDirectory(e,t,r,n){"boolean"!=typeof(n=n||{}).recurse&&(n.recurse=!1),Array.isArray(n.extensions)||(n.extensions=["js"]);const i="function"==typeof n.visit?n.visit:e=>e;n.visit=(e,t,r)=>{const n=i(e,t,r);if(n){if(this.requireCache.has(t))return n;this.requireCache.add(t),this.addHandler(n)}return n},this.shim.requireDirectory({require:t,filename:r},e,n)}addHandler(e,t,r,n,i,s){let o=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(i);if(n=n||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...o]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(te(r))return void this.addHandler([e].concat(o),t,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof e){const i=z(e);o=o.map((e=>z(e).cmd));let u=!1;const l=[i.cmd].concat(o).filter((e=>!X.test(e)||(u=!0,!1)));0===l.length&&u&&l.push("$0"),u&&(i.cmd=l[0],o=l.slice(1),e=e.replace(X,i.cmd)),o.forEach((e=>{this.aliasMap[e]=i.cmd})),!1!==t&&this.usage.command(e,t,u,o,s),this.handlers[i.cmd]={original:e,description:t,handler:n,builder:r||{},middlewares:a,deprecated:s,demanded:i.demanded,optional:i.optional},u&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,r,n,i,s){const o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),u=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(o.original));const c=this.applyBuilderUpdateUsageAndParse(l,o,t,r.aliases,u,n,i,s);return G(c)?c.then((e=>this.applyMiddlewareAndGetResult(l,o,e.innerArgv,a,i,e.aliases,t))):this.applyMiddlewareAndGetResult(l,o,c.innerArgv,a,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,r,n,i,s,o,a){const u=t.builder;let l=r;if(re(u)){r.getInternalMethods().getUsageInstance().freeze();const c=u(r.getInternalMethods().reset(n),a);if(G(c))return c.then((n=>{var a;return l=(a=n)&&"function"==typeof a.getInternalMethods?n:r,this.parseAndUpdateUsage(e,t,l,i,s,o)}))}else(function(e){return"object"==typeof e})(u)&&(r.getInternalMethods().getUsageInstance().freeze(),l=r.getInternalMethods().reset(n),Object.keys(t.builder).forEach((e=>{l.option(e,u[e])})));return this.parseAndUpdateUsage(e,t,l,i,s,o)}parseAndUpdateUsage(e,t,r,n,i,s){e&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n,t),t.description);const o=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return G(o)?o.then((e=>({aliases:r.parsed.aliases,innerArgv:e}))):{aliases:r.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const r=X.test(t.original)?t.original.replace(X,"").trim():t.original,n=e.filter((e=>!X.test(e)));return n.push(r),`$0 ${n.join(" ")}`}handleValidationAndGetResult(e,t,r,n,i,s,o,a){if(!s.getInternalMethods().getHasOutput()){const t=s.getInternalMethods().runValidation(i,a,s.parsed.error,e);r=Q(r,(e=>(t(e),e)))}if(t.handler&&!s.getInternalMethods().getHasOutput()){s.getInternalMethods().setHasOutput();const n=!!s.getOptions().configuration["populate--"];s.getInternalMethods().postProcess(r,n,!1,!1),r=Q(r=Z(r,s,o,!1),(e=>{const r=t.handler(e);return G(r)?r.then((()=>e)):e})),e||s.getInternalMethods().getUsageInstance().cacheHelpMessage(),G(r)&&!s.getInternalMethods().hasParseCallback()&&r.catch((e=>{try{s.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(n.commands.pop(),n.fullCommands.pop()),r}applyMiddlewareAndGetResult(e,t,r,n,i,s,o){let a={};if(i)return r;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,r,n,o));const u=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=Z(r,o,u,!0);return G(l)?l.then((r=>this.handleValidationAndGetResult(e,t,r,n,s,o,u,a))):this.handleValidationAndGetResult(e,t,l,n,s,o,u,a)}populatePositionals(e,t,r,n){t._=t._.slice(r.commands.length);const i=e.demanded.slice(0),s=e.optional.slice(0),o={};for(this.validation.positionalCount(i.length,t._.length);i.length;){const e=i.shift();this.populatePositional(e,t,o)}for(;s.length;){const e=s.shift();this.populatePositional(e,t,o)}return t._=r.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),n),o}populatePositional(e,t,r){const n=e.cmd[0];e.variadic?r[n]=t._.splice(0).map(String):t._.length&&(r[n]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},r=z(e);return r.demanded.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n,t.demand[r]=!0})),r.optional.forEach((e=>{const[r,...n]=e.cmd;e.variadic&&(t.array.push(r),t.default[r]=[]),t.alias[r]=n})),t}postProcessPositionals(e,t,r,n){const i=Object.assign({},n.getOptions());i.default=Object.assign(r.default,i.default);for(const e of Object.keys(r.alias))i.alias[e]=(i.alias[e]||[]).concat(r.alias[e]);i.array=i.array.concat(r.array),i.config={};const s=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),s.push(`--${e}`),s.push(t)}))})),!s.length)return;const o=Object.assign({},i.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(s,Object.assign({},i,{configuration:o}));if(a.error)n.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const r=Object.keys(t);Object.keys(t).forEach((e=>{r.push(...a.aliases[e])})),Object.keys(a.argv).forEach((i=>{r.includes(i)&&(t[i]||(t[i]=a.argv[i]),!this.isInConfigs(n,i)&&!this.isDefaulted(n,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(a.argv,i)&&(Array.isArray(e[i])||Array.isArray(a.argv[i]))?e[i]=[].concat(e[i],a.argv[i]):e[i]=a.argv[i])}))}}isDefaulted(e,t){const{default:r}=e.getOptions();return Object.prototype.hasOwnProperty.call(r,t)||Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:r}=e.getOptions();return r.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||r.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=X.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(re(t))return t(e,!0);te(t)||Object.keys(t).forEach((r=>{e.option(r,t[r])}))}moduleName(e){const t=function(e){if("undefined"==typeof require)return null;for(let t,r=0,n=Object.keys(require.cache);r<n.length;r++)if(t=require.cache[n[r]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:r}){for(const n of[e,t,r]){if("string"==typeof n||!1===n)return n;U(n,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();U(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function te(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function re(e){return"function"==typeof e}function ne(e={},t=()=>!0){const r={};return H(e).forEach((n=>{t(n,e[n])&&(r[n]=e[n])})),r}function ie(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const r=t;r._handle&&r.isTTY&&"function"==typeof r._handle.setBlocking&&r._handle.setBlocking(e)}))}function se(e){return"boolean"==typeof e}function oe(e){return"object"==typeof e}function ae(e){return oe(e)?e.indentation:0}function ue(e){return oe(e)?e.text:e}class le{constructor(e,t,r,n){var i,s,o;this.yargs=e,this.usage=t,this.command=r,this.shim=n,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(i=this.shim.getEnv("SHELL"))||void 0===i?void 0:i.includes("zsh"))||(null===(s=this.shim.getEnv("ZSH_NAME"))||void 0===s?void 0:s.includes("zsh")))&&void 0!==o&&o}defaultCompletion(e,t,r,n){const i=this.command.getCommandHandlers();for(let t=0,r=e.length;t<r;++t)if(i[e[t]]&&i[e[t]].builder){const r=i[e[t]].builder;if(re(r)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return r(e,!0),e.argv}}const s=[];this.commandCompletions(s,e,r),this.optionCompletions(s,e,t,r),this.choicesFromOptionsCompletions(s,e,t,r),this.choicesFromPositionalsCompletions(s,e,t,r),n(null,s)}commandCompletions(e,t,r){const n=this.yargs.getInternalMethods().getContext().commands;r.match(/^-/)||n[n.length-1]===r||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((r=>{const n=z(r[0]).cmd;if(-1===t.indexOf(n))if(this.zshShell){const t=r[1]||"";e.push(n.replace(/:/g,"\\:")+":"+t)}else e.push(n)}))}optionCompletions(e,t,r,n){if((n.match(/^-/)||""===n&&0===e.length)&&!this.previousArgHasChoices(t)){const r=this.yargs.getOptions(),i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(r.key).forEach((s=>{const o=!!r.configuration["boolean-negation"]&&r.boolean.includes(s);i.includes(s)||r.hiddenOptions.includes(s)||this.argsContainKey(t,s,o)||this.completeOptionKey(s,e,n,o&&!!r.default[s])}))}}choicesFromOptionsCompletions(e,t,r,n){if(this.previousArgHasChoices(t)){const r=this.getPreviousArgChoices(t);r&&r.length>0&&e.push(...r.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,r,n){if(""===n&&e.length>0&&this.previousArgHasChoices(t))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],s=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=i[r._.length-s-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const t of a)t.startsWith(n)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],r="";if(!t.startsWith("-")&&e.length>1&&(r=t,t=e[e.length-2]),!t.startsWith("-"))return;const n=t.replace(/^-+/,""),i=this.yargs.getOptions(),s=[n,...this.yargs.getAliases()[n]||[]];let o;for(const e of s)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){o=i.choices[e];break}return o?o.filter((e=>!r||e.startsWith(r))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,r){const n=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(n(t))return!0;if(r&&n(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(n(e))return!0;return!1}completeOptionKey(e,t,r,n){var i,s,o,a;let u=e;if(this.zshShell){const t=this.usage.getDescriptions(),r=null===(s=null===(i=null==this?void 0:this.aliases)||void 0===i?void 0:i[e])||void 0===s?void 0:s.find((e=>{const r=t[e];return"string"==typeof r&&r.length>0})),n=r?t[r]:void 0,l=null!==(a=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==a?a:"";u=`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(r)&&/^[^0-9]$/.test(e)?"-":"--";t.push(l+u),n&&t.push(l+"no-"+u)}customCompletion(e,t,r,n){if(U(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(r,t);return G(e)?e.then((e=>{this.shim.process.nextTick((()=>{n(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{n(e,void 0)}))})):n(null,e)}return this.customCompletionFunction.length>3?this.customCompletionFunction(r,t,((i=n)=>this.defaultCompletion(e,t,r,i)),(e=>{n(null,e)})):this.customCompletionFunction(r,t,(e=>{n(null,e)}))}getCompletion(e,t){const r=e.length?e[e.length-1]:"",n=this.yargs.parse(e,!0),i=this.customCompletionFunction?n=>this.customCompletion(e,n,r,t):n=>this.defaultCompletion(e,n,r,t);return G(n)?n.then(i):i(n)}generateCompletionScript(e,t){let r=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const n=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),r=r.replace(/{{app_name}}/g,n),r=r.replace(/{{completion_command}}/g,t),r.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function ce(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const r=[];let n,i;for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}const he=["$0","--","_"];let de,pe=[];function fe(e,t,r,n){de=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return i;const n=/\.json|\..*rc$/.test(e.extends);let s=null;if(n)s=function(e,t){return de.path.resolve(e,t)}(t,e.extends);else try{s=require.resolve(e.extends)}catch(t){return e}!function(e){if(pe.indexOf(e)>-1)throw new k(`Circular extended configurations: '${e}'.`)}(s),pe.push(s),i=n?JSON.parse(de.readFileSync(s,"utf8")):require(e.extends),delete e.extends,i=fe(i,de.path.dirname(s),r,de)}return pe=[],r?me(i,e):Object.assign({},i,e)}function me(e,t){const r={};function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(r,e);for(const i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=me(e[i],t[i]):r[i]=t[i];return r}var ge,be,ye,De,we,ve,Ee,Fe,Ce,Se,xe,Oe,_e,Ae,Te,Me,ke,Ie,je,Be,Pe,Re,$e,Ne,Le,Ue,We,He,Ge,ze,Ve,qe,Ye,Ke,Je,Ze=function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},Qe=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const Xe=Symbol("copyDoubleDash"),et=Symbol("copyDoubleDash"),tt=Symbol("deleteFromParserHintObject"),rt=Symbol("emitWarning"),nt=Symbol("freeze"),it=Symbol("getDollarZero"),st=Symbol("getParserConfiguration"),ot=Symbol("getUsageConfiguration"),at=Symbol("guessLocale"),ut=Symbol("guessVersion"),lt=Symbol("parsePositionalNumbers"),ct=Symbol("pkgUp"),ht=Symbol("populateParserHintArray"),dt=Symbol("populateParserHintSingleValueDictionary"),pt=Symbol("populateParserHintArrayDictionary"),ft=Symbol("populateParserHintDictionary"),mt=Symbol("sanitizeKey"),gt=Symbol("setKey"),bt=Symbol("unfreeze"),yt=Symbol("validateAsync"),Dt=Symbol("getCommandInstance"),wt=Symbol("getContext"),vt=Symbol("getHasOutput"),Et=Symbol("getLoggerInstance"),Ft=Symbol("getParseContext"),Ct=Symbol("getUsageInstance"),St=Symbol("getValidationInstance"),xt=Symbol("hasParseCallback"),Ot=Symbol("isGlobalContext"),_t=Symbol("postProcess"),At=Symbol("rebase"),Tt=Symbol("reset"),Mt=Symbol("runYargsParserAndExecuteCommands"),kt=Symbol("runValidation"),It=Symbol("setHasOutput"),jt=Symbol("kTrackManuallySetKeys");class Bt{constructor(e=[],t,r,n){this.customScriptName=!1,this.parsed=!1,ge.set(this,void 0),be.set(this,void 0),ye.set(this,{commands:[],fullCommands:[]}),De.set(this,null),we.set(this,null),ve.set(this,"show-hidden"),Ee.set(this,null),Fe.set(this,!0),Ce.set(this,{}),Se.set(this,!0),xe.set(this,[]),Oe.set(this,void 0),_e.set(this,{}),Ae.set(this,!1),Te.set(this,null),Me.set(this,!0),ke.set(this,void 0),Ie.set(this,""),je.set(this,void 0),Be.set(this,void 0),Pe.set(this,{}),Re.set(this,null),$e.set(this,null),Ne.set(this,{}),Le.set(this,{}),Ue.set(this,void 0),We.set(this,!1),He.set(this,void 0),Ge.set(this,!1),ze.set(this,!1),Ve.set(this,!1),qe.set(this,void 0),Ye.set(this,{}),Ke.set(this,null),Je.set(this,void 0),Ze(this,He,n,"f"),Ze(this,Ue,e,"f"),Ze(this,be,t,"f"),Ze(this,Be,r,"f"),Ze(this,Oe,new J(this),"f"),this.$0=this[it](),this[Tt](),Ze(this,ge,Qe(this,ge,"f"),"f"),Ze(this,qe,Qe(this,qe,"f"),"f"),Ze(this,Je,Qe(this,Je,"f"),"f"),Ze(this,je,Qe(this,je,"f"),"f"),Qe(this,je,"f").showHiddenOpt=Qe(this,ve,"f"),Ze(this,ke,this[et](),"f")}addHelpOpt(e,t){return q("[string|boolean] [string]",[e,t],arguments.length),Qe(this,Te,"f")&&(this[tt](Qe(this,Te,"f")),Ze(this,Te,null,"f")),!1===e&&void 0===t||(Ze(this,Te,"string"==typeof e?e:"help","f"),this.boolean(Qe(this,Te,"f")),this.describe(Qe(this,Te,"f"),t||Qe(this,qe,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(q("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const r="string"==typeof e?e:Qe(this,ve,"f");return this.boolean(r),this.describe(r,t||Qe(this,qe,"f").deferY18nLookup("Show hidden options")),Qe(this,je,"f").showHiddenOpt=r,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return q("<object|string|array> [string|array]",[e,t],arguments.length),this[pt](this.alias.bind(this),"alias",e,t),this}array(e){return q("<array|string>",[e],arguments.length),this[ht]("array",e),this[jt](e),this}boolean(e){return q("<array|string>",[e],arguments.length),this[ht]("boolean",e),this[jt](e),this}check(e,t){return q("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,r)=>Q((()=>e(t,r.getOptions())),(r=>(r?("string"==typeof r||r instanceof Error)&&Qe(this,qe,"f").fail(r.toString(),r):Qe(this,qe,"f").fail(Qe(this,He,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(Qe(this,qe,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return q("<object|string|array> [string|array]",[e,t],arguments.length),this[pt](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(q("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new k("coerce callback must be provided");for(const r of e)this.coerce(r,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new k("coerce callback must be provided");return Qe(this,je,"f").key[e]=!0,Qe(this,Oe,"f").addCoerceMiddleware(((r,n)=>{let i;return Object.prototype.hasOwnProperty.call(r,e)?Q((()=>(i=n.getAliases(),t(r[e]))),(t=>{r[e]=t;const s=n.getInternalMethods().getParserConfiguration()["strip-aliased"];if(i[e]&&!0!==s)for(const n of i[e])r[n]=t;return r}),(e=>{throw new k(e.message)})):r}),e),this}conflicts(e,t){return q("<string|object> [string|array]",[e,t],arguments.length),Qe(this,Je,"f").conflicts(e,t),this}config(e="config",t,r){return q("[object|string] [string|function] [function]",[e,t,r],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(r=t,t=void 0),this.describe(e,t||Qe(this,qe,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{Qe(this,je,"f").config[e]=r||!0})),this):(e=fe(e,Qe(this,be,"f"),this[st]()["deep-merge-config"]||!1,Qe(this,He,"f")),Qe(this,je,"f").configObjects=(Qe(this,je,"f").configObjects||[]).concat(e),this)}completion(e,t,r){return q("[string] [string|boolean|function] [function]",[e,t,r],arguments.length),"function"==typeof t&&(r=t,t=void 0),Ze(this,we,e||Qe(this,we,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(Qe(this,we,"f"),t),r&&Qe(this,De,"f").registerFunction(r),this}command(e,t,r,n,i,s){return q("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,r,n,i,s],arguments.length),Qe(this,ge,"f").addHandler(e,t,r,n,i,s),this}commands(e,t,r,n,i,s){return this.command(e,t,r,n,i,s)}commandDir(e,t){q("<string> [object]",[e,t],arguments.length);const r=Qe(this,Be,"f")||Qe(this,He,"f").require;return Qe(this,ge,"f").addDirectory(e,r,Qe(this,He,"f").getCallerFile(),t),this}count(e){return q("<array|string>",[e],arguments.length),this[ht]("count",e),this[jt](e),this}default(e,t,r){return q("<object|string|array> [*] [string]",[e,t,r],arguments.length),r&&(W(e,Qe(this,He,"f")),Qe(this,je,"f").defaultDescription[e]=r),"function"==typeof t&&(W(e,Qe(this,He,"f")),Qe(this,je,"f").defaultDescription[e]||(Qe(this,je,"f").defaultDescription[e]=Qe(this,qe,"f").functionDescription(t)),t=t.call()),this[dt](this.default.bind(this),"default",e,t),this}defaults(e,t,r){return this.default(e,t,r)}demandCommand(e=1,t,r,n){return q("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,r,n],arguments.length),"number"!=typeof t&&(r=t,t=1/0),this.global("_",!1),Qe(this,je,"f").demandedCommands._={min:e,max:t,minMsg:r,maxMsg:n},this}demand(e,t,r){return Array.isArray(t)?(t.forEach((e=>{U(r,!0,Qe(this,He,"f")),this.demandOption(e,r)})),t=1/0):"number"!=typeof t&&(r=t,t=1/0),"number"==typeof e?(U(r,!0,Qe(this,He,"f")),this.demandCommand(e,t,r,r)):Array.isArray(e)?e.forEach((e=>{U(r,!0,Qe(this,He,"f")),this.demandOption(e,r)})):"string"==typeof r?this.demandOption(e,r):!0!==r&&void 0!==r||this.demandOption(e),this}demandOption(e,t){return q("<object|string|array> [string]",[e,t],arguments.length),this[dt](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return q("<string> [string|boolean]",[e,t],arguments.length),Qe(this,je,"f").deprecatedOptions[e]=t,this}describe(e,t){return q("<object|string|array> [string]",[e,t],arguments.length),this[gt](e,!0),Qe(this,qe,"f").describe(e,t),this}detectLocale(e){return q("<boolean>",[e],arguments.length),Ze(this,Fe,e,"f"),this}env(e){return q("[string|boolean]",[e],arguments.length),!1===e?delete Qe(this,je,"f").envPrefix:Qe(this,je,"f").envPrefix=e||"",this}epilogue(e){return q("<string>",[e],arguments.length),Qe(this,qe,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return q("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):Qe(this,qe,"f").example(e,t),this}exit(e,t){Ze(this,Ae,!0,"f"),Ze(this,Ee,t,"f"),Qe(this,Se,"f")&&Qe(this,He,"f").process.exit(e)}exitProcess(e=!0){return q("[boolean]",[e],arguments.length),Ze(this,Se,e,"f"),this}fail(e){if(q("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new k("Invalid first argument. Expected function or boolean 'false'");return Qe(this,qe,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return q("<array> [function]",[e,t],arguments.length),t?Qe(this,De,"f").getCompletion(e,t):new Promise(((t,r)=>{Qe(this,De,"f").getCompletion(e,((e,n)=>{e?r(e):t(n)}))}))}getDemandedOptions(){return q([],0),Qe(this,je,"f").demandedOptions}getDemandedCommands(){return q([],0),Qe(this,je,"f").demandedCommands}getDeprecatedOptions(){return q([],0),Qe(this,je,"f").deprecatedOptions}getDetectLocale(){return Qe(this,Fe,"f")}getExitProcess(){return Qe(this,Se,"f")}getGroups(){return Object.assign({},Qe(this,_e,"f"),Qe(this,Le,"f"))}getHelp(){if(Ze(this,Ae,!0,"f"),!Qe(this,qe,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Mt](Qe(this,Ue,"f"),void 0,void 0,0,!0);if(G(e))return e.then((()=>Qe(this,qe,"f").help()))}const e=Qe(this,ge,"f").runDefaultBuilderOn(this);if(G(e))return e.then((()=>Qe(this,qe,"f").help()))}return Promise.resolve(Qe(this,qe,"f").help())}getOptions(){return Qe(this,je,"f")}getStrict(){return Qe(this,Ge,"f")}getStrictCommands(){return Qe(this,ze,"f")}getStrictOptions(){return Qe(this,Ve,"f")}global(e,t){return q("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?Qe(this,je,"f").local=Qe(this,je,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{Qe(this,je,"f").local.includes(e)||Qe(this,je,"f").local.push(e)})),this}group(e,t){q("<string|array> <string>",[e,t],arguments.length);const r=Qe(this,Le,"f")[t]||Qe(this,_e,"f")[t];Qe(this,Le,"f")[t]&&delete Qe(this,Le,"f")[t];const n={};return Qe(this,_e,"f")[t]=(r||[]).concat(e).filter((e=>!n[e]&&(n[e]=!0))),this}hide(e){return q("<string>",[e],arguments.length),Qe(this,je,"f").hiddenOptions.push(e),this}implies(e,t){return q("<string|object> [number|string|array]",[e,t],arguments.length),Qe(this,Je,"f").implies(e,t),this}locale(e){return q("[string]",[e],arguments.length),void 0===e?(this[at](),Qe(this,He,"f").y18n.getLocale()):(Ze(this,Fe,!1,"f"),Qe(this,He,"f").y18n.setLocale(e),this)}middleware(e,t,r){return Qe(this,Oe,"f").addMiddleware(e,!!t,r)}nargs(e,t){return q("<string|object|array> [number]",[e,t],arguments.length),this[dt](this.nargs.bind(this),"narg",e,t),this}normalize(e){return q("<array|string>",[e],arguments.length),this[ht]("normalize",e),this}number(e){return q("<array|string>",[e],arguments.length),this[ht]("number",e),this[jt](e),this}option(e,t){if(q("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[jt](e),!Qe(this,Ke,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[rt](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),Qe(this,je,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const r=t.deprecate||t.deprecated;r&&this.deprecateOption(e,r);const n=t.demand||t.required||t.require;n&&this.demand(e,n),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(Qe(this,je,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const i=t.describe||t.description||t.desc,s=Qe(this,qe,"f").getDescriptions();Object.prototype.hasOwnProperty.call(s,e)&&"string"!=typeof i||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,r){q("[string|array] [function|boolean|object] [function]",[e,t,r],arguments.length),this[nt](),void 0===e&&(e=Qe(this,Ue,"f")),"object"==typeof t&&(Ze(this,$e,t,"f"),t=r),"function"==typeof t&&(Ze(this,Re,t,"f"),t=!1),t||Ze(this,Ue,e,"f"),Qe(this,Re,"f")&&Ze(this,Se,!1,"f");const n=this[Mt](e,!!t),i=this.parsed;return Qe(this,De,"f").setParsed(this.parsed),G(n)?n.then((e=>(Qe(this,Re,"f")&&Qe(this,Re,"f").call(this,Qe(this,Ee,"f"),e,Qe(this,Ie,"f")),e))).catch((e=>{throw Qe(this,Re,"f")&&Qe(this,Re,"f")(e,this.parsed.argv,Qe(this,Ie,"f")),e})).finally((()=>{this[bt](),this.parsed=i})):(Qe(this,Re,"f")&&Qe(this,Re,"f").call(this,Qe(this,Ee,"f"),n,Qe(this,Ie,"f")),this[bt](),this.parsed=i,n)}parseAsync(e,t,r){const n=this.parse(e,t,r);return G(n)?n:Promise.resolve(n)}parseSync(e,t,r){const n=this.parse(e,t,r);if(G(n))throw new k(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(e){return q("<object>",[e],arguments.length),Ze(this,Pe,e,"f"),this}pkgConf(e,t){q("<string> [string]",[e,t],arguments.length);let r=null;const n=this[ct](t||Qe(this,be,"f"));return n[e]&&"object"==typeof n[e]&&(r=fe(n[e],t||Qe(this,be,"f"),this[st]()["deep-merge-config"]||!1,Qe(this,He,"f")),Qe(this,je,"f").configObjects=(Qe(this,je,"f").configObjects||[]).concat(r)),this}positional(e,t){q("<string> <object>",[e,t],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=ne(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&r.includes(e)));const n=Qe(this,ye,"f").fullCommands[Qe(this,ye,"f").fullCommands.length-1],i=n?Qe(this,ge,"f").cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};return H(i).forEach((r=>{const n=i[r];Array.isArray(n)?-1!==n.indexOf(e)&&(t[r]=!0):n[e]&&!(r in t)&&(t[r]=n[e])})),this.group(e,Qe(this,qe,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return q("[boolean]",[e],arguments.length),Ze(this,We,e,"f"),this}required(e,t,r){return this.demand(e,t,r)}require(e,t,r){return this.demand(e,t,r)}requiresArg(e){return q("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&Qe(this,je,"f").narg[e]||this[dt](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return q("[string] [string]",[e,t],arguments.length),e=e||this.$0,Qe(this,ke,"f").log(Qe(this,De,"f").generateCompletionScript(e,t||Qe(this,we,"f")||"completion")),this}showHelp(e){if(q("[string|function]",[e],arguments.length),Ze(this,Ae,!0,"f"),!Qe(this,qe,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Mt](Qe(this,Ue,"f"),void 0,void 0,0,!0);if(G(t))return t.then((()=>{Qe(this,qe,"f").showHelp(e)})),this}const t=Qe(this,ge,"f").runDefaultBuilderOn(this);if(G(t))return t.then((()=>{Qe(this,qe,"f").showHelp(e)})),this}return Qe(this,qe,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return q("[boolean|string] [string]",[e,t],arguments.length),Qe(this,qe,"f").showHelpOnFail(e,t),this}showVersion(e){return q("[string|function]",[e],arguments.length),Qe(this,qe,"f").showVersion(e),this}skipValidation(e){return q("<array|string>",[e],arguments.length),this[ht]("skipValidation",e),this}strict(e){return q("[boolean]",[e],arguments.length),Ze(this,Ge,!1!==e,"f"),this}strictCommands(e){return q("[boolean]",[e],arguments.length),Ze(this,ze,!1!==e,"f"),this}strictOptions(e){return q("[boolean]",[e],arguments.length),Ze(this,Ve,!1!==e,"f"),this}string(e){return q("<array|string>",[e],arguments.length),this[ht]("string",e),this[jt](e),this}terminalWidth(){return q([],0),Qe(this,He,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return q("<object>",[e],arguments.length),Ze(this,Fe,!1,"f"),Qe(this,He,"f").y18n.updateLocale(e),this}usage(e,t,r,n){if(q("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,r,n],arguments.length),void 0!==t){if(U(e,null,Qe(this,He,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,r,n);throw new k(".usage() description must start with $0 if being used as alias for .command()")}return Qe(this,qe,"f").usage(e),this}usageConfiguration(e){return q("<object>",[e],arguments.length),Ze(this,Ye,e,"f"),this}version(e,t,r){const n="version";if(q("[boolean|string] [string] [string]",[e,t,r],arguments.length),Qe(this,Ke,"f")&&(this[tt](Qe(this,Ke,"f")),Qe(this,qe,"f").version(void 0),Ze(this,Ke,null,"f")),0===arguments.length)r=this[ut](),e=n;else if(1===arguments.length){if(!1===e)return this;r=e,e=n}else 2===arguments.length&&(r=t,t=void 0);return Ze(this,Ke,"string"==typeof e?e:n,"f"),t=t||Qe(this,qe,"f").deferY18nLookup("Show version number"),Qe(this,qe,"f").version(r||void 0),this.boolean(Qe(this,Ke,"f")),this.describe(Qe(this,Ke,"f"),t),this}wrap(e){return q("<number|null|undefined>",[e],arguments.length),Qe(this,qe,"f").wrap(e),this}[(ge=new WeakMap,be=new WeakMap,ye=new WeakMap,De=new WeakMap,we=new WeakMap,ve=new WeakMap,Ee=new WeakMap,Fe=new WeakMap,Ce=new WeakMap,Se=new WeakMap,xe=new WeakMap,Oe=new WeakMap,_e=new WeakMap,Ae=new WeakMap,Te=new WeakMap,Me=new WeakMap,ke=new WeakMap,Ie=new WeakMap,je=new WeakMap,Be=new WeakMap,Pe=new WeakMap,Re=new WeakMap,$e=new WeakMap,Ne=new WeakMap,Le=new WeakMap,Ue=new WeakMap,We=new WeakMap,He=new WeakMap,Ge=new WeakMap,ze=new WeakMap,Ve=new WeakMap,qe=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Je=new WeakMap,Xe)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[et](){return{log:(...e)=>{this[xt]()||console.log(...e),Ze(this,Ae,!0,"f"),Qe(this,Ie,"f").length&&Ze(this,Ie,Qe(this,Ie,"f")+"\n","f"),Ze(this,Ie,Qe(this,Ie,"f")+e.join(" "),"f")},error:(...e)=>{this[xt]()||console.error(...e),Ze(this,Ae,!0,"f"),Qe(this,Ie,"f").length&&Ze(this,Ie,Qe(this,Ie,"f")+"\n","f"),Ze(this,Ie,Qe(this,Ie,"f")+e.join(" "),"f")}}}[tt](e){H(Qe(this,je,"f")).forEach((t=>{if("configObjects"===t)return;const r=Qe(this,je,"f")[t];Array.isArray(r)?r.includes(e)&&r.splice(r.indexOf(e),1):"object"==typeof r&&delete r[e]})),delete Qe(this,qe,"f").getDescriptions()[e]}[rt](e,t,r){Qe(this,Ce,"f")[r]||(Qe(this,He,"f").process.emitWarning(e,t),Qe(this,Ce,"f")[r]=!0)}[nt](){Qe(this,xe,"f").push({options:Qe(this,je,"f"),configObjects:Qe(this,je,"f").configObjects.slice(0),exitProcess:Qe(this,Se,"f"),groups:Qe(this,_e,"f"),strict:Qe(this,Ge,"f"),strictCommands:Qe(this,ze,"f"),strictOptions:Qe(this,Ve,"f"),completionCommand:Qe(this,we,"f"),output:Qe(this,Ie,"f"),exitError:Qe(this,Ee,"f"),hasOutput:Qe(this,Ae,"f"),parsed:this.parsed,parseFn:Qe(this,Re,"f"),parseContext:Qe(this,$e,"f")}),Qe(this,qe,"f").freeze(),Qe(this,Je,"f").freeze(),Qe(this,ge,"f").freeze(),Qe(this,Oe,"f").freeze()}[it](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(Qe(this,He,"f").process.argv()[0])?Qe(this,He,"f").process.argv().slice(1,2):Qe(this,He,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[At](Qe(this,be,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),Qe(this,He,"f").getEnv("_")&&Qe(this,He,"f").getProcessArgvBin()===Qe(this,He,"f").getEnv("_")&&(t=Qe(this,He,"f").getEnv("_").replace(`${Qe(this,He,"f").path.dirname(Qe(this,He,"f").process.execPath())}/`,"")),t}[st](){return Qe(this,Pe,"f")}[ot](){return Qe(this,Ye,"f")}[at](){if(!Qe(this,Fe,"f"))return;const e=Qe(this,He,"f").getEnv("LC_ALL")||Qe(this,He,"f").getEnv("LC_MESSAGES")||Qe(this,He,"f").getEnv("LANG")||Qe(this,He,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[ut](){return this[ct]().version||"unknown"}[lt](e){const t=e["--"]?e["--"]:e._;for(let e,r=0;void 0!==(e=t[r]);r++)Qe(this,He,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[r]=Number(e));return e}[ct](e){const t=e||"*";if(Qe(this,Ne,"f")[t])return Qe(this,Ne,"f")[t];let r={};try{let t=e||Qe(this,He,"f").mainFilename;!e&&Qe(this,He,"f").path.extname(t)&&(t=Qe(this,He,"f").path.dirname(t));const n=Qe(this,He,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));U(n,void 0,Qe(this,He,"f")),r=JSON.parse(Qe(this,He,"f").readFileSync(n,"utf8"))}catch(e){}return Qe(this,Ne,"f")[t]=r||{},Qe(this,Ne,"f")[t]}[ht](e,t){(t=[].concat(t)).forEach((t=>{t=this[mt](t),Qe(this,je,"f")[e].push(t)}))}[dt](e,t,r,n){this[ft](e,t,r,n,((e,t,r)=>{Qe(this,je,"f")[e][t]=r}))}[pt](e,t,r,n){this[ft](e,t,r,n,((e,t,r)=>{Qe(this,je,"f")[e][t]=(Qe(this,je,"f")[e][t]||[]).concat(r)}))}[ft](e,t,r,n,i){if(Array.isArray(r))r.forEach((t=>{e(t,n)}));else if((e=>"object"==typeof e)(r))for(const t of H(r))e(t,r[t]);else i(t,this[mt](r),n)}[mt](e){return"__proto__"===e?"___proto___":e}[gt](e,t){return this[dt](this[gt].bind(this),"key",e,t),this}[bt](){var e,t,r,n,i,s,o,a,u,l,c,h;const d=Qe(this,xe,"f").pop();let p;U(d,void 0,Qe(this,He,"f")),e=this,t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,l=this,c=this,h=this,({options:{set value(t){Ze(e,je,t,"f")}}.value,configObjects:p,exitProcess:{set value(e){Ze(t,Se,e,"f")}}.value,groups:{set value(e){Ze(r,_e,e,"f")}}.value,output:{set value(e){Ze(n,Ie,e,"f")}}.value,exitError:{set value(e){Ze(i,Ee,e,"f")}}.value,hasOutput:{set value(e){Ze(s,Ae,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){Ze(o,Ge,e,"f")}}.value,strictCommands:{set value(e){Ze(a,ze,e,"f")}}.value,strictOptions:{set value(e){Ze(u,Ve,e,"f")}}.value,completionCommand:{set value(e){Ze(l,we,e,"f")}}.value,parseFn:{set value(e){Ze(c,Re,e,"f")}}.value,parseContext:{set value(e){Ze(h,$e,e,"f")}}.value}=d),Qe(this,je,"f").configObjects=p,Qe(this,qe,"f").unfreeze(),Qe(this,Je,"f").unfreeze(),Qe(this,ge,"f").unfreeze(),Qe(this,Oe,"f").unfreeze()}[yt](e,t){return Q(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[Dt].bind(this),getContext:this[wt].bind(this),getHasOutput:this[vt].bind(this),getLoggerInstance:this[Et].bind(this),getParseContext:this[Ft].bind(this),getParserConfiguration:this[st].bind(this),getUsageConfiguration:this[ot].bind(this),getUsageInstance:this[Ct].bind(this),getValidationInstance:this[St].bind(this),hasParseCallback:this[xt].bind(this),isGlobalContext:this[Ot].bind(this),postProcess:this[_t].bind(this),reset:this[Tt].bind(this),runValidation:this[kt].bind(this),runYargsParserAndExecuteCommands:this[Mt].bind(this),setHasOutput:this[It].bind(this)}}[Dt](){return Qe(this,ge,"f")}[wt](){return Qe(this,ye,"f")}[vt](){return Qe(this,Ae,"f")}[Et](){return Qe(this,ke,"f")}[Ft](){return Qe(this,$e,"f")||{}}[Ct](){return Qe(this,qe,"f")}[St](){return Qe(this,Je,"f")}[xt](){return!!Qe(this,Re,"f")}[Ot](){return Qe(this,Me,"f")}[_t](e,t,r,n){return r||G(e)||(t||(e=this[Xe](e)),(this[st]()["parse-positional-numbers"]||void 0===this[st]()["parse-positional-numbers"])&&(e=this[lt](e)),n&&(e=Z(e,this,Qe(this,Oe,"f").getMiddleware(),!1))),e}[Tt](e={}){Ze(this,je,Qe(this,je,"f")||{},"f");const t={};t.local=Qe(this,je,"f").local||[],t.configObjects=Qe(this,je,"f").configObjects||[];const r={};return t.local.forEach((t=>{r[t]=!0,(e[t]||[]).forEach((e=>{r[e]=!0}))})),Object.assign(Qe(this,Le,"f"),Object.keys(Qe(this,_e,"f")).reduce(((e,t)=>{const n=Qe(this,_e,"f")[t].filter((e=>!(e in r)));return n.length>0&&(e[t]=n),e}),{})),Ze(this,_e,{},"f"),["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(Qe(this,je,"f")[e]||[]).filter((e=>!r[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=ne(Qe(this,je,"f")[e],(e=>!r[e]))})),t.envPrefix=Qe(this,je,"f").envPrefix,Ze(this,je,t,"f"),Ze(this,qe,Qe(this,qe,"f")?Qe(this,qe,"f").reset(r):function(e,t){const r=t.y18n.__,n={},i=[];n.failFn=function(e){i.push(e)};let s=null,o=null,a=!0;n.showHelpOnFail=function(t=!0,r){const[i,u]="string"==typeof t?[!0,t]:[t,r];return e.getInternalMethods().isGlobalContext()&&(o=u),s=u,a=i,n};let u=!1;n.fail=function(t,r){const l=e.getInternalMethods().getLoggerInstance();if(!i.length){if(e.getExitProcess()&&ie(!0),!u){u=!0,a&&(e.showHelp("error"),l.error()),(t||r)&&l.error(t||r);const n=s||o;n&&((t||r)&&l.error(""),l.error(n))}if(r=r||new k(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,r);throw r}for(let e=i.length-1;e>=0;--e){const s=i[e];if(se(s)){if(r)throw r;if(t)throw Error(t)}else s(t,r,n)}};let l=[],c=!1;n.usage=(e,t)=>null===e?(c=!0,l=[],n):(c=!1,l.push([e,t||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let h=[];n.example=(e,t)=>{h.push([e,t||""])};let d=[];n.command=function(e,t,r,n,i=!1){r&&(d=d.map((e=>(e[2]=!1,e)))),d.push([e,t||"",r,n,i])},n.getCommands=()=>d;let p={};n.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{n.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{n.describe(t,e[t])})):p[e]=t},n.getDescriptions=()=>p;let f=[];n.epilog=e=>{f.push(e)};let m,g=!1;n.wrap=e=>{g=!0,m=e},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=t.process.stdColumns?Math.min(80,t.process.stdColumns):80,g=!0),m);const b="__yargsString__:";function y(e,r,n){let i=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{i=Math.max(t.stringWidth(n?`${n} ${ue(e[0])}`:ue(e[0]))+ae(e[0]),i)})),r&&(i=Math.min(i,parseInt((.5*r).toString(),10))),i}let D;function w(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function v(e,t){let n=`[${r("default:")} `;if(void 0===e&&!t)return null;if(t)n+=t;else switch(typeof e){case"string":n+=`"${e}"`;break;case"object":n+=JSON.stringify(e);break;default:n+=e}return`${n}]`}n.deferY18nLookup=e=>b+e,n.help=function(){if(D)return D;!function(){const t=e.getDemandedOptions(),r=e.getOptions();(Object.keys(r.alias)||[]).forEach((i=>{r.alias[i].forEach((s=>{p[s]&&n.describe(i,p[s]),s in t&&e.demandOption(i,t[s]),r.boolean.includes(s)&&e.boolean(i),r.count.includes(s)&&e.count(i),r.string.includes(s)&&e.string(i),r.normalize.includes(s)&&e.normalize(i),r.array.includes(s)&&e.array(i),r.number.includes(s)&&e.number(i)}))}))}();const i=e.customScriptName?e.$0:t.path.basename(e.$0),s=e.getDemandedOptions(),o=e.getDemandedCommands(),a=e.getDeprecatedOptions(),u=e.getGroups(),m=e.getOptions();let g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(s)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(m.default)),g=g.filter(w),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const E=n.getWrap(),F=t.cliui({width:E,wrap:!!E});if(!c)if(l.length)l.forEach((e=>{F.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&F.div({text:`${e[1]}`,padding:[1,0,0,0]})})),F.div();else if(d.length){let e=null;e=o._?`${i} <${r("command")}>\n`:`${i} [${r("command")}]\n`,F.div(`${e}`)}if(d.length>1||1===d.length&&!d[0][2]){F.div(r("Commands:"));const t=e.getInternalMethods().getContext(),n=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((e,t)=>e[0].localeCompare(t[0]))));const s=i?`${i} `:"";d.forEach((e=>{const t=`${s}${n}${e[0].replace(/^\$0 ?/,"")}`;F.span({text:t,padding:[0,2,0,2],width:y(d,E,`${i}${n}`)+4},{text:e[1]});const o=[];e[2]&&o.push(`[${r("default")}]`),e[3]&&e[3].length&&o.push(`[${r("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?o.push(`[${r("deprecated: %s",e[4])}]`):o.push(`[${r("deprecated")}]`)),o.length?F.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):F.div()})),F.div()}const C=(Object.keys(m.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&C.every((e=>-1===(m.alias[e]||[]).indexOf(t)))));const S=r("Options:");u[S]||(u[S]=[]),function(e,t,r,n){let i=[],s=null;Object.keys(r).forEach((e=>{i=i.concat(r[e])})),e.forEach((e=>{s=[e].concat(t[e]),s.some((e=>-1!==i.indexOf(e)))||r[n].push(e)}))}(g,m.alias,u,S);const x=e=>/^--/.test(ue(e)),O=Object.keys(u).filter((e=>u[e].length>0)).map((e=>{const t=u[e].filter(w).map((e=>{if(C.includes(e))return e;for(let t,r=0;void 0!==(t=C[r]);r++)if((m.alias[t]||[]).includes(e))return t;return e}));return{groupName:e,normalizedKeys:t}})).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const r=t.reduce(((t,r)=>(t[r]=[r].concat(m.alias[r]||[]).map((t=>e===n.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?m.boolean.includes(r)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>x(e)===x(t)?0:x(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:r}}));if(O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>x(t[e])))))&&O.filter((({groupName:e})=>e!==n.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var r;x(t[e])&&(t[e]=oe(r=t[e])?{text:r.text,indentation:r.indentation+4}:{text:r,indentation:4})}))})),O.forEach((({groupName:t,normalizedKeys:i,switches:o})=>{F.div(t),i.forEach((t=>{const i=o[t];let u=p[t]||"",l=null;u.includes(b)&&(u=r(u.substring(16))),m.boolean.includes(t)&&(l=`[${r("boolean")}]`),m.count.includes(t)&&(l=`[${r("count")}]`),m.string.includes(t)&&(l=`[${r("string")}]`),m.normalize.includes(t)&&(l=`[${r("string")}]`),m.array.includes(t)&&(l=`[${r("array")}]`),m.number.includes(t)&&(l=`[${r("number")}]`);const c=[t in a?(h=a[t],"string"==typeof h?`[${r("deprecated: %s",h)}]`:`[${r("deprecated")}]`):null,l,t in s?`[${r("required")}]`:null,m.choices&&m.choices[t]?`[${r("choices:")} ${n.stringifiedValues(m.choices[t])}]`:null,v(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var h;F.span({text:ue(i),padding:[0,2,0,2+ae(i)],width:y(o,E)+4},u);const d=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];c&&!d?F.div({text:c,padding:[0,0,0,2],align:"right"}):F.div()})),F.div()})),h.length&&(F.div(r("Examples:")),h.forEach((e=>{e[0]=e[0].replace(/\$0/g,i)})),h.forEach((e=>{""===e[1]?F.div({text:e[0],padding:[0,2,0,2]}):F.div({text:e[0],padding:[0,2,0,2],width:y(h,E)+4},{text:e[1]})})),F.div()),f.length>0){const e=f.map((e=>e.replace(/\$0/g,i))).join("\n");F.div(`${e}\n`)}return F.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){D=this.help()},n.clearCachedHelpMessage=function(){D=void 0},n.hasCachedHelpMessage=function(){return!!D},n.showHelp=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:r[t])(n.help())},n.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(e,t){let r="";const n=t||", ",i=[].concat(e);return e&&i.length?(i.forEach((e=>{r.length&&(r+=n),r+=JSON.stringify(e)})),r):r};let E=null;n.version=e=>{E=e},n.showVersion=t=>{const r=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:r[t])(E)},n.reset=function(e){return s=null,u=!1,l=[],c=!1,f=[],h=[],d=[],p=ne(p,(t=>!e[t])),n};const F=[];return n.freeze=function(){F.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:d,descriptions:p})},n.unfreeze=function(e=!1){const t=F.pop();t&&(e?(p={...t.descriptions,...p},d=[...t.commands,...d],l=[...t.usages,...l],h=[...t.examples,...h],f=[...t.epilogs,...f]):({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:d,descriptions:p}=t))},n}(this,Qe(this,He,"f")),"f"),Ze(this,Je,Qe(this,Je,"f")?Qe(this,Je,"f").reset(r):function(e,t,r){const n=r.y18n.__,i=r.y18n.__n,s={nonOptionCount:function(r){const n=e.getDemandedCommands(),s=r._.length+(r["--"]?r["--"].length:0)-e.getInternalMethods().getContext().commands.length;n._&&(s<n._.min||s>n._.max)&&(s<n._.min?void 0!==n._.minMsg?t.fail(n._.minMsg?n._.minMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",s,s.toString(),n._.min.toString())):s>n._.max&&(void 0!==n._.maxMsg?t.fail(n._.maxMsg?n._.maxMsg.replace(/\$0/g,s.toString()).replace(/\$1/,n._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",s,s.toString(),n._.max.toString()))))},positionalCount:function(e,r){r<e&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",r,r+"",e+""))},requiredArguments:function(e,r){let n=null;for(const t of Object.keys(r))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(n=n||{},n[t]=r[t]);if(n){const e=[];for(const t of Object.keys(n)){const r=n[t];r&&e.indexOf(r)<0&&e.push(r)}const r=e.length?`\n${e.join("\n")}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(n).length,Object.keys(n).join(", ")+r))}},unknownArguments:function(r,n,o,a,u=!0){var l;const c=e.getInternalMethods().getCommandInstance().getCommands(),h=[],d=e.getInternalMethods().getContext();if(Object.keys(r).forEach((t=>{he.includes(t)||Object.prototype.hasOwnProperty.call(o,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||s.isValidAndSomeAliasIsNotNew(t,n)||h.push(t)})),u&&(d.commands.length>0||c.length>0||a)&&r._.slice(d.commands.length).forEach((e=>{c.includes(""+e)||h.push(""+e)})),u){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,n=d.commands.length+t;n<r._.length&&r._.slice(n).forEach((e=>{e=String(e),d.commands.includes(e)||h.includes(e)||h.push(e)}))}h.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",h.length,h.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(r){const n=e.getInternalMethods().getCommandInstance().getCommands(),s=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||n.length>0)&&r._.slice(o.commands.length).forEach((e=>{n.includes(""+e)||s.push(""+e)})),s.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",s.length,s.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,r){if(!Object.prototype.hasOwnProperty.call(r,t))return!1;const n=e.parsed.newAliases;return[t,...r[t]].some((e=>!Object.prototype.hasOwnProperty.call(n,e)||!n[t]))},limitedChoices:function(r){const i=e.getOptions(),s={};if(!Object.keys(i.choices).length)return;Object.keys(r).forEach((e=>{-1===he.indexOf(e)&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(r[e]).forEach((t=>{-1===i.choices[e].indexOf(t)&&void 0!==t&&(s[e]=(s[e]||[]).concat(t))}))}));const o=Object.keys(s);if(!o.length)return;let a=n("Invalid values:");o.forEach((e=>{a+=`\n ${n("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(s[e]),t.stringifiedValues(i.choices[e]))}`})),t.fail(a)}};let o={};function a(e,t){const r=Number(t);return"number"==typeof(t=isNaN(r)?t:r)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}s.implies=function(t,n){q("<string|object> [array|number|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.implies(e,t[e])})):(e.global(t),o[t]||(o[t]=[]),Array.isArray(n)?n.forEach((e=>s.implies(t,e))):(U(n,void 0,r),o[t].push(n)))},s.getImplied=function(){return o},s.implications=function(e){const r=[];if(Object.keys(o).forEach((t=>{const n=t;(o[t]||[]).forEach((t=>{let i=n;const s=t;i=a(e,i),t=a(e,t),i&&!t&&r.push(` ${n} -> ${s}`)}))})),r.length){let e=`${n("Implications failed:")}\n`;r.forEach((t=>{e+=t})),t.fail(e)}};let u={};s.conflicts=function(t,r){q("<string|object> [array|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{s.conflicts(e,t[e])})):(e.global(t),u[t]||(u[t]=[]),Array.isArray(r)?r.forEach((e=>s.conflicts(t,e))):u[t].push(r))},s.getConflicting=()=>u,s.conflicting=function(i){Object.keys(i).forEach((e=>{u[e]&&u[e].forEach((r=>{r&&void 0!==i[e]&&void 0!==i[r]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,r))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach((e=>{u[e].forEach((s=>{s&&void 0!==i[r.Parser.camelCase(e)]&&void 0!==i[r.Parser.camelCase(s)]&&t.fail(n("Arguments %s and %s are mutually exclusive",e,s))}))}))},s.recommendCommands=function(e,r){r=r.sort(((e,t)=>t.length-e.length));let i=null,s=1/0;for(let t,n=0;void 0!==(t=r[n]);n++){const r=ce(e,t);r<=3&&r<s&&(s=r,i=t)}i&&t.fail(n("Did you mean %s?",i))},s.reset=function(e){return o=ne(o,(t=>!e[t])),u=ne(u,(t=>!e[t])),s};const l=[];return s.freeze=function(){l.push({implied:o,conflicting:u})},s.unfreeze=function(){const e=l.pop();U(e,void 0,r),({implied:o,conflicting:u}=e)},s}(this,Qe(this,qe,"f"),Qe(this,He,"f")),"f"),Ze(this,ge,Qe(this,ge,"f")?Qe(this,ge,"f").reset():function(e,t,r,n){return new ee(e,t,r,n)}(Qe(this,qe,"f"),Qe(this,Je,"f"),Qe(this,Oe,"f"),Qe(this,He,"f")),"f"),Qe(this,De,"f")||Ze(this,De,function(e,t,r,n){return new le(e,t,r,n)}(this,Qe(this,qe,"f"),Qe(this,ge,"f"),Qe(this,He,"f")),"f"),Qe(this,Oe,"f").reset(),Ze(this,we,null,"f"),Ze(this,Ie,"","f"),Ze(this,Ee,null,"f"),Ze(this,Ae,!1,"f"),this.parsed=!1,this}[At](e,t){return Qe(this,He,"f").path.relative(e,t)}[Mt](e,t,r,n=0,i=!1){let s=!!r||i;e=e||Qe(this,Ue,"f"),Qe(this,je,"f").__=Qe(this,He,"f").y18n.__,Qe(this,je,"f").configuration=this[st]();const o=!!Qe(this,je,"f").configuration["populate--"],a=Object.assign({},Qe(this,je,"f").configuration,{"populate--":!0}),u=Qe(this,He,"f").Parser.detailed(e,Object.assign({},Qe(this,je,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),l=Object.assign(u.argv,Qe(this,$e,"f"));let c;const h=u.aliases;let d=!1,p=!1;Object.keys(l).forEach((e=>{e===Qe(this,Te,"f")&&l[e]?d=!0:e===Qe(this,Ke,"f")&&l[e]&&(p=!0)})),l.$0=this.$0,this.parsed=u,0===n&&Qe(this,qe,"f").clearCachedHelpMessage();try{if(this[at](),t)return this[_t](l,o,!!r,!1);Qe(this,Te,"f")&&[Qe(this,Te,"f")].concat(h[Qe(this,Te,"f")]||[]).filter((e=>e.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),d=!0),Ze(this,Me,!1,"f");const a=Qe(this,ge,"f").getCommands(),f=Qe(this,De,"f").completionKey in l,m=d||f||i;if(l._.length){if(a.length){let e;for(let t,s=n||0;void 0!==l._[s];s++){if(t=String(l._[s]),a.includes(t)&&t!==Qe(this,we,"f")){const e=Qe(this,ge,"f").runCommand(t,this,u,s+1,i,d||p||i);return this[_t](e,o,!!r,!1)}if(!e&&t!==Qe(this,we,"f")){e=t;break}}!Qe(this,ge,"f").hasDefaultCommand()&&Qe(this,We,"f")&&e&&!m&&Qe(this,Je,"f").recommendCommands(e,a)}Qe(this,we,"f")&&l._.includes(Qe(this,we,"f"))&&!f&&(Qe(this,Se,"f")&&ie(!0),this.showCompletionScript(),this.exit(0))}if(Qe(this,ge,"f").hasDefaultCommand()&&!m){const e=Qe(this,ge,"f").runCommand(null,this,u,0,i,d||p||i);return this[_t](e,o,!!r,!1)}if(f){Qe(this,Se,"f")&&ie(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${Qe(this,De,"f").completionKey}`)+1);return Qe(this,De,"f").getCompletion(t,((e,t)=>{if(e)throw new k(e.message);(t||[]).forEach((e=>{Qe(this,ke,"f").log(e)})),this.exit(0)})),this[_t](l,!o,!!r,!1)}if(Qe(this,Ae,"f")||(d?(Qe(this,Se,"f")&&ie(!0),s=!0,this.showHelp("log"),this.exit(0)):p&&(Qe(this,Se,"f")&&ie(!0),s=!0,Qe(this,qe,"f").showVersion("log"),this.exit(0))),!s&&Qe(this,je,"f").skipValidation.length>0&&(s=Object.keys(l).some((e=>Qe(this,je,"f").skipValidation.indexOf(e)>=0&&!0===l[e]))),!s){if(u.error)throw new k(u.error.message);if(!f){const e=this[kt](h,{},u.error);r||(c=Z(l,this,Qe(this,Oe,"f").getMiddleware(),!0)),c=this[yt](e,null!=c?c:l),G(c)&&!r&&(c=c.then((()=>Z(l,this,Qe(this,Oe,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof k))throw e;Qe(this,qe,"f").fail(e.message,e)}return this[_t](null!=c?c:l,o,!!r,!0)}[kt](e,t,r,n){const i={...this.getDemandedOptions()};return s=>{if(r)throw new k(r.message);Qe(this,Je,"f").nonOptionCount(s),Qe(this,Je,"f").requiredArguments(s,i);let o=!1;Qe(this,ze,"f")&&(o=Qe(this,Je,"f").unknownCommands(s)),Qe(this,Ge,"f")&&!o?Qe(this,Je,"f").unknownArguments(s,e,t,!!n):Qe(this,Ve,"f")&&Qe(this,Je,"f").unknownArguments(s,e,{},!1,!1),Qe(this,Je,"f").limitedChoices(s),Qe(this,Je,"f").implications(s),Qe(this,Je,"f").conflicting(s)}}[It](){Ze(this,Ae,!0,"f")}[jt](e){if("string"==typeof e)Qe(this,je,"f").key[e]=!0;else for(const t of e)Qe(this,je,"f").key[t]=!0}}const Pt=(Rt=N,(e=[],t=Rt.process.cwd(),r)=>{const n=new Bt(e,t,r,Rt);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:!0}),n.help(),n.version(),n});var Rt;const $t=Pt;function Nt(e,t){const r=e.startsWith(".")?(0,f.join)(t,e):e;return import(r)}var Lt=n(9523);const Ut=(e=0)=>t=>`\x1b[${t+e}m`,Wt=(e=0)=>t=>`\x1b[${38+e};5;${t}m`,Ht=(e=0)=>(t,r,n)=>`\x1b[${38+e};2;${t};${r};${n}m`,Gt={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Gt.modifier),Object.keys(Gt.color),Object.keys(Gt.bgColor);const zt=function(){const e=new Map;for(const[t,r]of Object.entries(Gt)){for(const[t,n]of Object.entries(r))Gt[t]={open:`\x1b[${n[0]}m`,close:`\x1b[${n[1]}m`},r[t]=Gt[t],e.set(n[0],n[1]);Object.defineProperty(Gt,t,{value:r,enumerable:!1})}return Object.defineProperty(Gt,"codes",{value:e,enumerable:!1}),Gt.color.close="\x1b[39m",Gt.bgColor.close="\x1b[49m",Gt.color.ansi=Ut(),Gt.color.ansi256=Wt(),Gt.color.ansi16m=Ht(),Gt.bgColor.ansi=Ut(10),Gt.bgColor.ansi256=Wt(10),Gt.bgColor.ansi16m=Ht(10),Object.defineProperties(Gt,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map((e=>e+e)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>Gt.rgbToAnsi256(...Gt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,n;if(e>=232)t=(10*(e-232)+8)/255,r=t,n=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const i=2*Math.max(t,r,n);if(0===i)return 30;let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===i&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>Gt.ansi256ToAnsi(Gt.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>Gt.ansi256ToAnsi(Gt.hexToAnsi256(e)),enumerable:!1}}),Gt}(),Vt=zt,qt=e(import.meta.url)("node:process"),Yt=e(import.meta.url)("node:os"),Kt=e(import.meta.url)("node:tty");function Jt(e,t=(globalThis.Deno?globalThis.Deno.args:qt.argv)){const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}const{env:Zt}=qt;let Qt;function Xt(e,t={}){return 0!==(r=function(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in Zt)return"true"===Zt.FORCE_COLOR?1:"false"===Zt.FORCE_COLOR?0:0===Zt.FORCE_COLOR.length?1:Math.min(Number.parseInt(Zt.FORCE_COLOR,10),3)}();void 0!==n&&(Qt=n);const i=r?Qt:n;if(0===i)return 0;if(r){if(Jt("color=16m")||Jt("color=full")||Jt("color=truecolor"))return 3;if(Jt("color=256"))return 2}if("TF_BUILD"in Zt&&"AGENT_NAME"in Zt)return 1;if(e&&!t&&void 0===i)return 0;const s=i||0;if("dumb"===Zt.TERM)return s;if("win32"===qt.platform){const e=Yt.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Zt)return"GITHUB_ACTIONS"in Zt||"GITEA_ACTIONS"in Zt?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in Zt))||"codeship"===Zt.CI_NAME?1:s;if("TEAMCITY_VERSION"in Zt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Zt.TEAMCITY_VERSION)?1:0;if("truecolor"===Zt.COLORTERM)return 3;if("xterm-kitty"===Zt.TERM)return 3;if("TERM_PROGRAM"in Zt){const e=Number.parseInt((Zt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Zt.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Zt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Zt.TERM)||"COLORTERM"in Zt?1:s}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3};var r}Jt("no-color")||Jt("no-colors")||Jt("color=false")||Jt("color=never")?Qt=0:(Jt("color")||Jt("colors")||Jt("color=true")||Jt("color=always"))&&(Qt=1);const er={stdout:Xt({isTTY:Kt.isatty(1)}),stderr:Xt({isTTY:Kt.isatty(2)})};function tr(e,t,r){let n=e.indexOf(t);if(-1===n)return e;const i=t.length;let s=0,o="";do{o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s)}while(-1!==n);return o+=e.slice(s),o}const{stdout:rr,stderr:nr}=er,ir=Symbol("GENERATOR"),sr=Symbol("STYLER"),or=Symbol("IS_EMPTY"),ar=["ansi","ansi","ansi256","ansi16m"],ur=Object.create(null);function lr(e){return(e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=rr?rr.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,lr.prototype),t})(e)}Object.setPrototypeOf(lr.prototype,Function.prototype);for(const[e,t]of Object.entries(Vt))ur[e]={get(){const r=fr(this,pr(t.open,t.close,this[sr]),this[or]);return Object.defineProperty(this,e,{value:r}),r}};ur.visible={get(){const e=fr(this,this[sr],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const cr=(e,t,r,...n)=>"rgb"===e?"ansi16m"===t?Vt[r].ansi16m(...n):"ansi256"===t?Vt[r].ansi256(Vt.rgbToAnsi256(...n)):Vt[r].ansi(Vt.rgbToAnsi(...n)):"hex"===e?cr("rgb",t,r,...Vt.hexToRgb(...n)):Vt[r][e](...n),hr=["rgb","hex","ansi256"];for(const e of hr)ur[e]={get(){const{level:t}=this;return function(...r){const n=pr(cr(e,ar[t],"color",...r),Vt.color.close,this[sr]);return fr(this,n,this[or])}}},ur["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const n=pr(cr(e,ar[t],"bgColor",...r),Vt.bgColor.close,this[sr]);return fr(this,n,this[or])}}};const dr=Object.defineProperties((()=>{}),{...ur,level:{enumerable:!0,get(){return this[ir].level},set(e){this[ir].level=e}}}),pr=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},fr=(e,t,r)=>{const n=(...e)=>mr(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,dr),n[ir]=e,n[sr]=t,n[or]=r,n},mr=(e,t)=>{if(e.level<=0||!t)return e[or]?"":t;let r=e[sr];if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(t.includes("\x1b"))for(;void 0!==r;)t=tr(t,r.close,r.open),r=r.parent;const s=t.indexOf("\n");return-1!==s&&(t=function(e,t,r,n){let i=0,s="";do{const o="\r"===e[n-1];s+=e.slice(i,o?n-1:n)+t+(o?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return s+=e.slice(i),s}(t,i,n,s)),n+t+i};Object.defineProperties(lr.prototype,ur);const gr=lr(),br=(lr({level:nr?nr.level:0}),gr),{cyan:yr,red:Dr,green:wr}=br;function vr(){return(new Lt.Text).onDone((()=>"# Created by nice-move\nroot = true\n\n[*]\ncharset = utf-8\nend_of_line = lf\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\nmax_line_length = 80\nquote_type = single\ntab_width = 2\ntrim_trailing_whitespace = true\n")).output(".editorconfig").logger("Create/Overwrite",yr(".editorconfig")).catch(console.warn)}const Er=(e,t,r,n)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!Fr(i,s)&&n||Object.defineProperty(e,r,s)},Fr=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Cr=(e,t)=>`/* Wrapped ${e}*/\n${t}`,Sr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),xr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const Or=new WeakMap,_r=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Or.set(s,++n),1===n)r=e.apply(this,o),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${i}\` can only be called once`);return r};return function(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:n}=e;for(const n of Reflect.ownKeys(t))Er(e,t,n,r);((e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)})(e,t),((e,t,r)=>{const n=""===r?"":`with ${r.trim()}() `,i=Cr.bind(null,n,t.toString());Object.defineProperty(i,"name",xr);const{writable:s,enumerable:o,configurable:a}=Sr;Object.defineProperty(e,"toString",{value:i,writable:s,enumerable:o,configurable:a})})(e,t,n)}(s,e),Or.set(s,n),s};_r.callCount=e=>{if(!Or.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Or.get(e)};const Ar=_r,Tr=[];Tr.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&Tr.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&Tr.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const Mr=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,kr=Symbol.for("signal-exit emitter"),Ir=globalThis,jr=Object.defineProperty.bind(Object);class Br{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Ir[kr])return Ir[kr];jr(Ir,kr,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],n=r.indexOf(t);-1!==n&&(0===n&&1===r.length?r.length=0:r.splice(n,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(const i of this.listeners[e])n=!0===i(t,r)||n;return"exit"===e&&(n=this.emit("afterExit",t,r)||n),n}}class Pr{}const Rr=globalThis.process,{onExit:$r,load:Nr,unload:Lr}=(Ur=Mr(Rr)?new class extends Pr{#e="win32"===Rr.platform?"SIGINT":"SIGHUP";#t=new Br;#r;#n;#i;#s={};#o=!1;constructor(e){super(),this.#r=e,this.#s={};for(const t of Tr)this.#s[t]=()=>{const r=this.#r.listeners(t);let{count:n}=this.#t;const i=e;if("object"==typeof i.__signal_exit_emitter__&&"number"==typeof i.__signal_exit_emitter__.count&&(n+=i.__signal_exit_emitter__.count),r.length===n){this.unload();const r=this.#t.emit("exit",null,t),n="SIGHUP"===t?this.#e:t;r||e.kill(e.pid,n)}};this.#i=e.reallyExit,this.#n=e.emit}onExit(e,t){if(!Mr(this.#r))return()=>{};!1===this.#o&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#t.on(r,e),()=>{this.#t.removeListener(r,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#t.count+=1;for(const e of Tr)try{const t=this.#s[e];t&&this.#r.on(e,t)}catch(e){}this.#r.emit=(e,...t)=>this.#a(e,...t),this.#r.reallyExit=e=>this.#u(e)}}unload(){this.#o&&(this.#o=!1,Tr.forEach((e=>{const t=this.#s[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch(e){}})),this.#r.emit=this.#n,this.#r.reallyExit=this.#i,this.#t.count-=1)}#u(e){return Mr(this.#r)?(this.#r.exitCode=e||0,this.#t.emit("exit",this.#r.exitCode,null),this.#i.call(this.#r,this.#r.exitCode)):0}#a(e,...t){const r=this.#n;if("exit"===e&&Mr(this.#r)){"number"==typeof t[0]&&(this.#r.exitCode=t[0]);const n=r.call(this.#r,e,...t);return this.#t.emit("exit",this.#r.exitCode,null),n}return r.call(this.#r,e,...t)}}(Rr):new class extends Pr{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>Ur.onExit(e,t),load:()=>Ur.load(),unload:()=>Ur.unload()});var Ur;const Wr=qt.stderr.isTTY?qt.stderr:qt.stdout.isTTY?qt.stdout:void 0,Hr=Wr?Ar((()=>{$r((()=>{Wr.write("\x1b[?25h")}),{alwaysLast:!0})})):()=>{};let Gr=!1;const zr={show:(e=qt.stderr)=>{e.isTTY&&(Gr=!1,e.write("\x1b[?25h"))},hide:(e=qt.stderr)=>{e.isTTY&&(Hr(),Gr=!0,e.write("\x1b[?25l"))},toggle:(e,t)=>{void 0!==e&&(Gr=e),Gr?zr.show(t):zr.hide(t)}},Vr=zr;var qr=n(1473);const Yr={info:br.blue("\u2139"),success:br.green("\u2714"),warning:br.yellow("\u26a0"),error:br.red("\u2716")},Kr={info:br.blue("i"),success:br.green("\u221a"),warning:br.yellow("\u203c"),error:br.red("\xd7")},Jr=("win32"!==qt.platform?"linux"!==qt.env.TERM:Boolean(qt.env.CI)||Boolean(qt.env.WT_SESSION)||Boolean(qt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===qt.env.ConEmuTask||"Terminus-Sublime"===qt.env.TERM_PROGRAM||"vscode"===qt.env.TERM_PROGRAM||"xterm-256color"===qt.env.TERM||"alacritty"===qt.env.TERM||"JetBrains-JediTerm"===qt.env.TERMINAL_EMULATOR)?Yr:Kr,Zr=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function Qr(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Zr,"")}function Xr(e,{ambiguousAsWide:t=!1}={}){return function(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),12288===(r=e)||r>=65281&&r<=65376||r>=65504&&r<=65510||function(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)||t&&function(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}(e)?2:1;var r}const en=new Intl.Segmenter,tn=/^\p{Default_Ignorable_Code_Point}$/u;function rn(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Qr(e)),0===e.length)return 0;let i=0;const s={ambiguousAsWide:!r};for(const{segment:t}of en.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||e>=8203&&e<=8207||65279===e||e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=55296&&e<=57343||e>=65024&&e<=65039||tn.test(t)||(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g.test(t)?i+=2:i+=Xr(e,s))}return i}function nn(){const{env:e}=qt,{TERM:t,TERM_PROGRAM:r}=e;return"win32"!==qt.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===r||"vscode"===r||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}const sn=new class{#l=0;start(){this.#l++,1===this.#l&&this.#c()}stop(){if(this.#l<=0)throw new Error("`stop` called more times than `start`");this.#l--,0===this.#l&&this.#h()}#c(){"win32"!==qt.platform&&qt.stdin.isTTY&&(qt.stdin.setRawMode(!0),qt.stdin.on("data",this.#d),qt.stdin.resume())}#h(){qt.stdin.isTTY&&(qt.stdin.off("data",this.#d),qt.stdin.pause(),qt.stdin.setRawMode(!1))}#d(e){3===e[0]&&qt.emit("SIGINT")}};class on{#p=0;#f=!1;#m=0;#g=0;#b;#y;#D;#w;#v;#E;#F;#C;#S;#x;#O;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#b={color:"cyan",stream:qt.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#b.color,this.spinner=this.#b.spinner,this.#v=this.#b.interval,this.#D=this.#b.stream,this.#E="boolean"==typeof this.#b.isEnabled?this.#b.isEnabled:function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#D}),this.#F="boolean"==typeof this.#b.isSilent&&this.#b.isSilent,this.text=this.#b.text,this.prefixText=this.#b.prefixText,this.suffixText=this.#b.suffixText,this.indent=this.#b.indent,"test"===qt.env.NODE_ENV&&(this._stream=this.#D,this._isEnabled=this.#E,Object.defineProperty(this,"_linesToClear",{get(){return this.#p},set(e){this.#p=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#g}}),Object.defineProperty(this,"_lineCount",{get(){return this.#m}}))}get indent(){return this.#C}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#C=e,this.#_()}get interval(){return this.#v??this.#y.interval??100}get spinner(){return this.#y}set spinner(e){if(this.#g=0,this.#v=void 0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this.#y=e}else if(nn())if(void 0===e)this.#y=qr.dots;else{if("default"===e||!qr[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#y=qr[e]}else this.#y=qr.line}get text(){return this.#S}set text(e=""){this.#S=e,this.#_()}get prefixText(){return this.#x}set prefixText(e=""){this.#x=e,this.#_()}get suffixText(){return this.#O}set suffixText(e=""){this.#O=e,this.#_()}get isSpinning(){return void 0!==this.#w}#A(e=this.#x,t=" "){return"string"==typeof e&&""!==e?e+t:"function"==typeof e?e()+t:""}#T(e=this.#O,t=" "){return"string"==typeof e&&""!==e?t+e:"function"==typeof e?t+e():""}#_(){const e=this.#D.columns??80,t=this.#A(this.#x,"-"),r=this.#T(this.#O,"-"),n=" ".repeat(this.#C)+t+"--"+this.#S+"--"+r;this.#m=0;for(const t of Qr(n).split("\n"))this.#m+=Math.max(1,Math.ceil(rn(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#E&&!this.#F}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#E=e}get isSilent(){return this.#F}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#F=e}frame(){const{frames:e}=this.#y;let t=e[this.#g];return this.color&&(t=br[this.color](t)),this.#g=++this.#g%e.length,("string"==typeof this.#x&&""!==this.#x?this.#x+" ":"")+t+("string"==typeof this.text?" "+this.text:"")+("string"==typeof this.#O&&""!==this.#O?" "+this.#O:"")}clear(){if(!this.#E||!this.#D.isTTY)return this;this.#D.cursorTo(0);for(let e=0;e<this.#p;e++)e>0&&this.#D.moveCursor(0,-1),this.#D.clearLine(1);return(this.#C||this.lastIndent!==this.#C)&&this.#D.cursorTo(this.#C),this.lastIndent=this.#C,this.#p=0,this}render(){return this.#F||(this.clear(),this.#D.write(this.frame()),this.#p=this.#m),this}start(e){return e&&(this.text=e),this.#F?this:this.#E?(this.isSpinning||(this.#b.hideCursor&&Vr.hide(this.#D),this.#b.discardStdin&&qt.stdin.isTTY&&(this.#f=!0,sn.start()),this.render(),this.#w=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#D.write(`- ${this.text}\n`),this)}stop(){return this.#E?(clearInterval(this.#w),this.#w=void 0,this.#g=0,this.clear(),this.#b.hideCursor&&Vr.show(this.#D),this.#b.discardStdin&&qt.stdin.isTTY&&this.#f&&(sn.stop(),this.#f=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Jr.success,text:e})}fail(e){return this.stopAndPersist({symbol:Jr.error,text:e})}warn(e){return this.stopAndPersist({symbol:Jr.warning,text:e})}info(e){return this.stopAndPersist({symbol:Jr.info,text:e})}stopAndPersist(e={}){if(this.#F)return this;const t=e.prefixText??this.#x,r=this.#A(t," "),n=e.symbol??" ",i=e.text??this.text,s="string"==typeof i?" "+i:"",o=e.suffixText??this.#O,a=r+n+s+this.#T(o," ")+"\n";return this.stop(),this.#D.write(a),this}}const an=e(import.meta.url)("node:child_process"),un=e(import.meta.url)("node:fs");var ln=n(6760),cn=n(1364),hn=n(3396);function dn(e){return cn(e).timeout(5e3).send().then((e=>301===e.statusCode?dn(e.headers.location):e.text())).then((e=>{const t=e.trim();if(t)return t;throw new Error("template download fail")}))}function pn(e){return e?e.trim():void 0}async function fn(e){if(e)return e;const t=function(){try{return{name:(0,an.execSync)("git config user.name").toString().trim(),email:(0,an.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return t.name?hn(t):"Unknown"}function mn(){try{return JSON.parse((0,un.readFileSync)((0,ln.join)(process.cwd(),"package.json")))}catch{return{}}}const gn={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function bn(){await(new Lt.Text).onDone((()=>"# Created by nice-move\n\n* text=auto eol=lf\n")).output(".gitattributes").logger("Create/Overwrite",yr(".gitattributes"));const e=(r={text:"Downloading template from `gitignore.io`"},new on(r)).start(),t=`Create/Overwrite ${yr(".gitignore")}`;var r;return(new Lt.Text).source(".gitignore").onFail().onDone(((e="")=>dn(`https://gitignore.io/api/ssh,certificates,node,${gn[(0,Yt.type)()]}`).then((e=>`${e.replaceAll(/(www\.)?toptal\.com\/developers\/gitignore/g,"gitignore.io").trim()}\n`)).catch((()=>e||"node_modules\n")))).output().then((()=>{e.stopAndPersist({symbol:wr("\u221a"),text:t})})).catch((r=>{e.stopAndPersist({symbol:Dr("\xd7"),text:`${t} - ${r.message}`})}))}async function yn(){const{license:e,author:t=""}=mn(),r="MIT"===e;if(r||"Unlicense"===e){const e=await async function(e){return(await fn(e)).name||"Unknown"}(t);return(new Lt.Text).onDone((()=>r?'MIT License\n\nCopyright (c) {{year}} {{holder}}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n'.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",e):'This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to <https://unlicense.org/>\n')).output("LICENSE").logger("Create/Overwrite",yr("LICENSE")).catch(console.warn)}}const Dn={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function wn(e,t){return t}function vn(e,t){return e.filter((e=>void 0!==e))}var En;function Fn(e){return"object"!=typeof e||null===e?0:Array.isArray(e)?2:function(e){if(!Sn.includes(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(void 0===t)return!0;const r=t.prototype;return!(null===r||"object"!=typeof r||!Sn.includes(Object.prototype.toString.call(r)))&&!!r.hasOwnProperty("isPrototypeOf")}(e)?1:e instanceof Set?3:e instanceof Map?4:5}function Cn(e){let t=0,r=e[0]?.[Symbol.iterator]();return{[Symbol.iterator]:()=>({next(){for(;;){if(void 0===r)return{done:!0,value:void 0};const n=r.next();if(!0!==n.done)return{done:!1,value:n.value};t+=1,r=e[t]?.[Symbol.iterator]()}}})}}!function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"}(En||(En={}));const Sn=["[object Object]","[object Module]"],xn={mergeRecords:function(e,t,r){const n={};for(const o of function(e){const t=new Set;for(const r of e)for(const e of[...Object.keys(r),...Object.getOwnPropertySymbols(r)])t.add(e);return t}(e)){const a=[];for(const t of e)s=o,"object"==typeof(i=t)&&Object.prototype.propertyIsEnumerable.call(i,s)&&a.push(t[o]);if(0===a.length)continue;const u=t.metaDataUpdater(r,{key:o,parents:e}),l=_n(a,t,u);l!==Dn.skip&&("__proto__"===o?Object.defineProperty(n,o,{value:l,configurable:!0,enumerable:!0,writable:!0}):n[o]=l)}var i,s;return n},mergeArrays:function(e){return e.flat()},mergeSets:function(e){return new Set(Cn(e))},mergeMaps:function(e){return new Map(Cn(e))},mergeOthers:function(e){return e.at(-1)}};function On(...e){return function(){const e=function(e,t){return{defaultMergeFunctions:xn,mergeFunctions:{...xn,...Object.fromEntries(Object.entries(e).filter((([e,t])=>Object.hasOwn(xn,e))).map((([e,t])=>!1===t?[e,xn.mergeOthers]:[e,t])))},metaDataUpdater:e.metaDataUpdater??wn,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:!1===e.filterValues?void 0:e.filterValues??vn,actions:Dn}}({},t);function t(...t){return _n(t,e,undefined)}return t}()(...e)}function _n(e,t,r){const n=t.filterValues?.(e,r)??e;if(0===n.length)return;if(1===n.length)return An(n,t,r);const i=Fn(n[0]);if(0!==i&&5!==i)for(let e=1;e<n.length;e++)if(Fn(n[e])!==i)return An(n,t,r);switch(i){case 1:return function(e,t,r){const n=t.mergeFunctions.mergeRecords(e,t,r);return n===Dn.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,r):n}(n,t,r);case 2:return function(e,t,r){const n=t.mergeFunctions.mergeArrays(e,t,r);return n===Dn.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):n}(n,t,r);case 3:return function(e,t,r){const n=t.mergeFunctions.mergeSets(e,t,r);return n===Dn.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):n}(n,t,r);case 4:return function(e,t,r){const n=t.mergeFunctions.mergeMaps(e,t,r);return n===Dn.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):n}(n,t,r);default:return An(n,t,r)}}function An(e,t,r){const n=t.mergeFunctions.mergeOthers(e,t,r);return n===Dn.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):n}var Tn=n(323);const Mn=e(import.meta.url)("node:util"),kn=(0,Mn.promisify)(an.execFile),In={spawn:!0},jn="en-US";async function Bn(e,t){return(await async function(e,t){const r=await kn(e,t,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(e,t)).stdout}function Pn(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function Rn(e){return e&&e.replace(/[.:].*/,"")}async function $n(){return Bn("locale",["-a"])}const Nn=new Map;async function Ln(e=In){if(Nn.has(e.spawn))return Nn.get(e.spawn);let t;try{const r=Pn();t=r||!1===e.spawn?Rn(r):"win32"===process.platform?await async function(){const e=await Bn("wmic",["os","get","locale"]),t=Number.parseInt(e.replace("Locale",""),16);return Tn.from(t)}():"darwin"===process.platform?await async function(){const e=await Promise.all([Bn("defaults",["read","-globalDomain","AppleLocale"]),$n()]);return function(e,t=""){return t.includes(e)?e:jn}(e[0],e[1])}():await async function(){return Rn(function(e){const t={};for(const r of e.split("\n")){const[e,n]=r.split("=");t[e]=n.replace(/^"|"$/g,"")}return Pn(t)}(await Bn("locale")))}()}catch{}const r=(t||jn).replace(/_/,"-");return Nn.set(e.spawn,r),r}const Un="package.json";async function Wn(){const{name:e,description:t}=mn();(new Lt.Text).source("README.md").onFail().onDone((r=>r||[`# ${e}`,t?`${t}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",yr("README.md")).catch(console.warn)}function Hn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var Gn=n(3136);const zn=(e,t)=>{const r=Yn(Vn(e));if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},Vn=e=>qn(e)?e.toString():e,qn=e=>"string"!=typeof e&&e&&Object.getPrototypeOf(e)===String.prototype,Yn=e=>e instanceof URL?(0,Gn.fileURLToPath)(e):e,Kn=(e,t=[],r={})=>{const n=zn(e,"First argument"),[i,s]=Hn(t)?[[],t]:[t,r];if(!Array.isArray(i))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some((e=>"object"==typeof e&&null!==e)))throw new TypeError(`Second argument must be an array of strings: ${i}`);const o=i.map(String),a=o.find((e=>e.includes("\0")));if(void 0!==a)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${a}`);if(!Hn(s))throw new TypeError(`Last argument must be an options object: ${s}`);return[n,o,s]},Jn=e(import.meta.url)("node:string_decoder"),{toString:Zn}=Object.prototype,Qn=e=>"[object Uint8Array]"===Zn.call(e),Xn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),ei=new TextEncoder,ti=e=>ei.encode(e),ri=new TextDecoder,ni=e=>ri.decode(e),ii=e=>1===e.length&&Qn(e[0])?e[0]:oi(si(e)),si=e=>e.map((e=>"string"==typeof e?ti(e):e)),oi=e=>{const t=new Uint8Array(ai(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},ai=e=>{let t=0;for(const r of e)t+=r.length;return t},ui=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{if(void 0===i)throw new TypeError(`Invalid backslash sequence: ${e.raw[n]}`);const{nextTokens:s,leadingWhitespaces:o,trailingWhitespaces:a}=li(i,e.raw[n]),u=di(r,s,o);if(n===t.length)return u;const l=t[n],c=Array.isArray(l)?l.map((e=>pi(e))):[pi(l)];return di(u,c,a)},li=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const i=ci.has(t[0]);for(let i=0,s=0;i<e.length;i+=1,s+=1){const o=t[s];if(ci.has(o))n!==i&&r.push(e.slice(n,i)),n=i+1;else if("\\"===o){const e=t[s+1];"u"===e&&"{"===t[s+2]?s=t.indexOf("}",s+3):s+=hi[e]??1}}const s=n===e.length;return s||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:i,trailingWhitespaces:s}},ci=new Set([" ","\t","\r","\n"]),hi={x:3,u:5},di=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],pi=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(Hn(e)&&("stdout"in e||"isMaxBuffer"in e))return fi(e);if(e instanceof an.ChildProcess||"[object Promise]"===Object.prototype.toString.call(e))throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw new TypeError(`Unexpected "${t}" in template expression`)},fi=({stdout:e})=>{if("string"==typeof e)return e;if(Qn(e))return ni(e);if(void 0===e)throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');throw new TypeError(`Unexpected "${typeof e}" stdout in template expression`)},mi=e=>gi.includes(e),gi=[qt.stdin,qt.stdout,qt.stderr],bi=["stdin","stdout","stderr"],yi=e=>bi[e]??`stdio[${e}]`,Di=(e,t)=>{const r=Array.from({length:wi(e)+1}),n=vi(e[t],r,t);return _i(n,t)},wi=({stdio:e})=>Array.isArray(e)?Math.max(e.length,bi.length):bi.length,vi=(e,t,r)=>Hn(e)?Ei(e,t,r):t.fill(e),Ei=(e,t,r)=>{for(const n of Object.keys(e).sort(Fi))for(const i of Si(n,r,t))t[i]=e[n];return t},Fi=(e,t)=>Ci(e)<Ci(t)?1:-1,Ci=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,Si=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=xi(e);if(void 0===n||0===n)throw new TypeError(`"${t}.${e}" is invalid.\nIt must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(n>=r.length)throw new TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);return"all"===n?[1,2]:[n]},xi=e=>{if("all"===e)return e;if(bi.includes(e))return bi.indexOf(e);const t=Oi.exec(e);return null!==t?Number(t[1]):void 0},Oi=/^fd(\d+)$/,_i=(e,t)=>e.map((e=>void 0===e?Ai[t]:e)),Ai={lines:!1,buffer:!0,maxBuffer:1e8,verbose:(0,Mn.debuglog)("execa").enabled?"full":"none",stripFinalNewline:!0},Ti=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],Mi=(e,t)=>"ipc"===t?e.at(-1):e[t],ki=({verbose:e},t)=>"none"!==ji(e,t),Ii=({verbose:e},t)=>!["none","short"].includes(ji(e,t)),ji=(e,t)=>void 0===t?Bi(e):Mi(e,t),Bi=e=>e.find((e=>Pi(e)))??Ri.findLast((t=>e.includes(t))),Pi=e=>"function"==typeof e,Ri=["none","short","full"],$i=e=>(0,Mn.stripVTControlCharacters)(e).split("\n").map((e=>Ni(e))).join("\n"),Ni=e=>e.replaceAll(Ui,(e=>Li(e))),Li=e=>{const t=Wi[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=Hi?`\\u${n.padStart(4,"0")}`:`\\U${n}`},Ui=(()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}})(),Wi={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Hi=65535,Gi=/^[\w./-]+$/,zi={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258c",squareRight:"\u2590",squareCenter:"\u25a0",bullet:"\u25cf",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203a",triangleUp:"\u25b2",triangleUpSmall:"\u25b4",triangleDown:"\u25bc",triangleDownSmall:"\u25be",triangleLeftSmall:"\u25c2",triangleRightSmall:"\u25b8",home:"\u2302",heart:"\u2665",musicNote:"\u266a",musicNoteBeamed:"\u266b",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221e",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xbd",oneThird:"\u2153",oneQuarter:"\xbc",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215b",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xbe",threeFifths:"\u2157",threeEighths:"\u215c",fourFifths:"\u2158",fiveSixths:"\u215a",fiveEighths:"\u215d",sevenEighths:"\u215e",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254c",lineDashed5:"\u254d",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257a",lineDashed10:"\u257c",lineDashed11:"\u257e",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250a",lineVerticalDashed3:"\u250b",lineVerticalDashed4:"\u254e",lineVerticalDashed5:"\u254f",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257b",lineVerticalDashed10:"\u257d",lineVerticalDashed11:"\u257f",lineDownLeft:"\u2510",lineDownLeftArc:"\u256e",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250c",lineDownRightArc:"\u256d",lineDownBoldRightBold:"\u250f",lineDownBoldRight:"\u250e",lineDownRightBold:"\u250d",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256f",lineUpBoldLeftBold:"\u251b",lineUpBoldLeft:"\u251a",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255d",lineUpDoubleLeft:"\u255c",lineUpLeftDouble:"\u255b",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255a",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252b",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252a",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251c",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251d",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251f",lineUpBoldDownRight:"\u251e",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255f",lineUpDownRightDouble:"\u255e",lineDownLeftRight:"\u252c",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252f",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252e",lineDownLeftBoldRight:"\u252d",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253b",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253a",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253c",lineUpBoldDownBoldLeftBoldRightBold:"\u254b",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254a",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253d",lineUpDownLeftRightBold:"\u253e",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253f",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256c",lineUpDoubleDownDoubleLeftRight:"\u256b",lineUpDownLeftDoubleRightDouble:"\u256a",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Vi={tick:"\u2714",info:"\u2139",warning:"\u26a0",cross:"\u2718",squareSmall:"\u25fb",squareSmallFilled:"\u25fc",circle:"\u25ef",circleFilled:"\u25c9",circleDotted:"\u25cc",circleDouble:"\u25ce",circleCircle:"\u24de",circleCross:"\u24e7",circlePipe:"\u24be",radioOn:"\u25c9",radioOff:"\u25ef",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24e7",checkboxCircleOff:"\u24be",pointer:"\u276f",triangleUpOutline:"\u25b3",triangleLeft:"\u25c0",triangleRight:"\u25b6",lozenge:"\u25c6",lozengeOutline:"\u25c7",hamburger:"\u2630",smiley:"\u32e1",mustache:"\u0df4",star:"\u2605",play:"\u25b6",nodejs:"\u2b22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},qi={...zi,...Vi},Yi={...zi,tick:"\u221a",info:"i",warning:"\u203c",cross:"\xd7",squareSmall:"\u25a1",squareSmallFilled:"\u25a0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25cb)",circleCross:"(\xd7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25c4",triangleRight:"\u25ba",lozenge:"\u2666",lozengeOutline:"\u25ca",hamburger:"\u2261",smiley:"\u263a",mustache:"\u250c\u2500\u2510",star:"\u2736",play:"\u25ba",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ki=nn()?qi:Yi,Ji=(Object.entries(Vi),Kt?.WriteStream?.prototype?.hasColors?.()??!1),Zi=(e,t)=>{if(!Ji)return e=>e;const r=`\x1b[${e}m`,n=`\x1b[${t}m`;return e=>{const t=e+"";let i=t.indexOf(n);if(-1===i)return r+t+n;let s=r,o=0;for(;-1!==i;)s+=t.slice(o,i)+r,o=i+n.length,i=t.indexOf(n,o);return s+=t.slice(o)+n,s}},Qi=(Zi(0,0),Zi(1,22)),Xi=(Zi(2,22),Zi(3,23),Zi(4,24),Zi(53,55),Zi(7,27),Zi(8,28),Zi(9,29),Zi(30,39),Zi(31,39),Zi(32,39),Zi(33,39),Zi(34,39),Zi(35,39),Zi(36,39),Zi(37,39),Zi(90,39)),es=(Zi(40,49),Zi(41,49),Zi(42,49),Zi(43,49),Zi(44,49),Zi(45,49),Zi(46,49),Zi(47,49),Zi(100,49),Zi(91,39)),ts=(Zi(92,39),Zi(93,39)),rs=(Zi(94,39),Zi(95,39),Zi(96,39),Zi(97,39),Zi(101,49),Zi(102,49),Zi(103,49),Zi(104,49),Zi(105,49),Zi(106,49),Zi(107,49),e=>`${ns(e.getHours(),2)}:${ns(e.getMinutes(),2)}:${ns(e.getSeconds(),2)}.${ns(e.getMilliseconds(),3)}`),ns=(e,t)=>String(e).padStart(t,"0"),is=({failed:e,reject:t})=>e?t?Ki.cross:Ki.warning:Ki.tick,ss={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:is,duration:is},os=e=>e,as={command:()=>Qi,output:()=>os,ipc:()=>os,error:({reject:e})=>e?es:ts,duration:()=>Xi},us=(e,t,r)=>{if(void 0===r)return e;const n=r(e,t);return"string"==typeof n?n:void 0},ls=e=>e.endsWith("\n")?e:`${e}\n`,cs=({type:e,verboseMessage:t,fdNumber:r,verboseInfo:n,result:i})=>{const s=hs({type:e,result:i,verboseInfo:n}),o=((e,t,r)=>{const n=(({verbose:e},t)=>{const r=ji(e,t);return Pi(r)?r:void 0})(t,r);return e.map((({verboseLine:e,verboseObject:t})=>us(e,t,n))).filter((e=>void 0!==e)).map((e=>ls(e))).join("")})(ds(t,s),n,r);(0,un.writeFileSync)(fs,o)},hs=({type:e,result:t,verboseInfo:{escapedCommand:r,commandId:n,rawOptions:{piped:i=!1,...s}}})=>({type:e,escapedCommand:r,commandId:`${n}`,timestamp:new Date,piped:i,result:t,options:s}),ds=(e,t)=>e.split("\n").map((e=>ps({...t,message:e}))),ps=e=>{const t=(({type:e,message:t,timestamp:r,piped:n,commandId:i,result:{failed:s=!1}={},options:{reject:o=!0}})=>{const a=rs(r),u=ss[e]({failed:s,reject:o,piped:n}),l=as[e]({reject:o});return`${Xi(`[${a}]`)} ${Xi(`[${i}]`)} ${l(u)} ${l(t)}`})(e);return{verboseLine:t,verboseObject:e}},fs=2,ms=e=>{const t="string"==typeof e?e:(0,Mn.inspect)(e);return $i(t).replaceAll("\t"," ".repeat(gs))},gs=2,bs=e=>ki({verbose:e})?ys++:void 0;let ys=0n;const Ds=()=>qt.hrtime.bigint(),ws=e=>Number(qt.hrtime.bigint()-e)/1e6,vs=(e,t,r)=>{const n=Ds(),{command:i,escapedCommand:s}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map((e=>{return t=Ni(e),Gi.test(t)?t:"win32"===qt.platform?`"${t.replaceAll('"','""')}"`:`'${t.replaceAll("'","'\\''")}'`;var t})).join(" ")}})(e,t),o=((e,t,r)=>((e=>{for(const t of e){if(!1===t)throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".');if(!0===t)throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".');if(!Ri.includes(t)&&!Pi(t)){const e=Ri.map((e=>`'${e}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}})(e),{verbose:e,escapedCommand:t,commandId:bs(e),rawOptions:r}))(Di(r,"verbose"),s,{...r});return((e,t)=>{ki(t)&&cs({type:"command",verboseMessage:e,verboseInfo:t})})(s,o),{command:i,escapedCommand:s,startTime:n,verboseInfo:o}};var Es=n(526);function Fs(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}function Cs(e){return e instanceof URL?(0,Gn.fileURLToPath)(e):e}(0,Mn.promisify)(an.execFile);const Ss=({env:e=qt.env,...t}={})=>{const r=Fs({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=qt.cwd(),path:t=qt.env[Fs()],preferLocal:r=!0,execPath:n=qt.execPath,addExecPath:i=!0}={})=>{const s=ln.resolve(Cs(e)),o=[],a=t.split(ln.delimiter);return r&&((e,t,r)=>{for(const n of function(e){return{*[Symbol.iterator](){let t,r=ln.resolve(Cs(e));for(;t!==r;)yield r,t=r,r=ln.resolve(r,"..")}}}(r)){const r=ln.join(n,"node_modules/.bin");t.includes(r)||e.push(r)}})(o,a,s),i&&((e,t,r,n)=>{const i=ln.resolve(n,Cs(r),"..");t.includes(i)||e.push(i)})(o,a,n,s),""===t||t===ln.delimiter?`${o.join(ln.delimiter)}${t}`:[...o,t].join(ln.delimiter)})(t),e},xs=e(import.meta.url)("node:timers/promises");class Os extends Error{}const _s=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,As,{value:!0,writable:!1,enumerable:!1,configurable:!1})},As=Symbol("isExecaError"),Ts=e=>"[object Error]"===Object.prototype.toString.call(e);class Ms extends Error{}_s(Ms,Ms.name);class ks extends Error{}_s(ks,ks.name);const Is=(e,t)=>({name:`SIGRT${t+1}`,number:js+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),js=34,Bs=[{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"}],Ps=()=>{const e=(()=>{const e=64-js+1;return Array.from({length:e},Is)})();return[...Bs,...e].map(Rs)},Rs=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{const{signals:{[e]:o}}=Yt.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}},$s=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o}],Ns=(()=>{const e=Ps();return Object.fromEntries(e.map($s))})(),Ls=(e,t)=>{const r=t.find((({name:t})=>Yt.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},Us=((()=>{const e=Ps(),t=Array.from({length:65},((t,r)=>((e,t)=>{const r=Ls(e,t);if(void 0===r)return{};const{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:a,standard:u}}})(r,e)));Object.assign({},...t)})(),e=>0===e?e:Ws(e,"`subprocess.kill()`'s argument")),Ws=(e,t)=>{if(Number.isInteger(e))return Hs(e,t);if("string"==typeof e)return zs(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${Vs()}`)},Hs=(e,t)=>{if(Gs.has(e))return Gs.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${Vs()}`)},Gs=new Map(Object.entries(Yt.constants.signals).reverse().map((([e,t])=>[t,e]))),zs=(e,t)=>{if(e in Yt.constants.signals)return e;if(e.toUpperCase()in Yt.constants.signals)throw new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`);throw new TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${Vs()}`)},Vs=()=>`Available signal names: ${qs()}.\nAvailable signal numbers: ${Ys()}.`,qs=()=>Object.keys(Yt.constants.signals).sort().map((e=>`'${e}'`)).join(", "),Ys=()=>[...new Set(Object.values(Yt.constants.signals).sort(((e,t)=>e-t)))].join(", "),Ks=e=>Ns[e].description,Js=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:i,controller:s},o,a)=>{const{signal:u,error:l}=Zs(o,a,r);Qs(l,n);const c=e(u);return Xs({kill:e,signal:u,forceKillAfterDelay:t,killSignal:r,killResult:c,context:i,controller:s}),c},Zs=(e,t,r)=>{const[n=r,i]=Ts(e)?[void 0,e]:[e,t];if("string"!=typeof n&&!Number.isInteger(n))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(n)}`);if(void 0!==i&&!Ts(i))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${i}`);return{signal:Us(n),error:i}},Qs=(e,t)=>{void 0!==e&&t.reject(e)},Xs=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:i,context:s,controller:o})=>{t===n&&i&&eo({kill:e,forceKillAfterDelay:r,context:s,controllerSignal:o.signal})},eo=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await(0,xs.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},to=e(import.meta.url)("node:events"),ro=async(e,t)=>{e.aborted||await(0,to.once)(e,"abort",{signal:t})},no=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:i})=>void 0===t||r?[]:[io(e,t,n,i)],io=async(e,t,r,{signal:n})=>{throw await ro(t,n),r.terminationReason??="cancel",e.kill(),t.reason},so=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{oo(e,t,r),ao(e,t,n)},oo=(e,t,r)=>{if(!r)throw new Error(`${ho(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},ao=(e,t,r)=>{if(!r)throw new Error(`${ho(e,t)} cannot be used: the ${fo(t)} has already exited or disconnected.`)},uo=(e,t)=>new Error(`${ho("sendMessage",t)} failed when sending an acknowledgment response to the ${fo(t)}.`,{cause:e}),lo=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),co=["could not be cloned","circular structure","call stack size exceeded"],ho=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${po(t)}${e}(${r})`,po=e=>e?"":"subprocess.",fo=e=>e?"parent process":"subprocess",mo=e=>{e.connected&&e.disconnect()},go=()=>{const e={},t=new Promise(((t,r)=>{Object.assign(e,{resolve:t,reject:r})}));return Object.assign(t,e)},bo=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:i}=Do.get(e),s=wo(i,t,r),o=e.stdio[s];if(null===o)throw new TypeError(Fo(s,t,n,r));return o},yo=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:i}=Do.get(e),s=wo(i,t,r),o="all"===s?e.all:e.stdio[s];if(null==o)throw new TypeError(Fo(s,t,n,r));return o},Do=new WeakMap,wo=(e,t,r)=>{const n=vo(t,r);return Eo(n,t,r,e),n},vo=(e,t)=>{const r=xi(e);if(void 0!==r)return r;const{validOptions:n,defaultValue:i}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${xo(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${i}".`)},Eo=(e,t,r,n)=>{const i=n[So(e)];if(void 0===i)throw new TypeError(`"${xo(r)}" must not be ${t}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);if("input"===i.direction&&!r)throw new TypeError(`"${xo(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==i.direction&&r)throw new TypeError(`"${xo(r)}" must not be ${t}. It must be a writable stream, not readable.`)},Fo=(e,t,r,n)=>{if("all"===e&&!r.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:i,optionValue:s}=Co(e,r);return`The "${i}: ${Oo(s)}" option is incompatible with using "${xo(n)}: ${Oo(t)}".\nPlease set this option with "pipe" instead.`},Co=(e,{stdin:t,stdout:r,stderr:n,stdio:i})=>{const s=So(e);return 0===s&&void 0!==t?{optionName:"stdin",optionValue:t}:1===s&&void 0!==r?{optionName:"stdout",optionValue:r}:2===s&&void 0!==n?{optionName:"stderr",optionValue:n}:{optionName:`stdio[${s}]`,optionValue:i[s]}},So=e=>"all"===e?1:e,xo=e=>e?"to":"from",Oo=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",_o=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),(0,to.addAbortListener)(r,(()=>{e.setMaxListeners(e.getMaxListeners()-t)})))},Ao=(e,t)=>{t&&To(e)},To=e=>{e.refCounted()},Mo=(e,t)=>{t&&ko(e)},ko=e=>{e.unrefCounted()},Io=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},i)=>{if(Ho(i)||aa(i))return;Bo.has(e)||Bo.set(e,[]);const s=Bo.get(e);if(s.push(i),!(s.length>1))for(;s.length>0;){await Ko(e,n,i),await xs.scheduler.yield();const o=await Wo({wrappedMessage:s[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});s.shift(),n.emit("message",o),n.emit("message:done")}},jo=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:i})=>{la();const s=Bo.get(e);for(;s?.length>0;)await(0,to.once)(n,"message:done");e.removeListener("message",i),((e,t)=>{t&&(To(e),To(e))})(t,r),n.connected=!1,n.emit("disconnect")},Bo=new WeakMap,Po=(e,t,r)=>{if(Ro.has(e))return Ro.get(e);const n=new to.EventEmitter;return n.connected=!0,Ro.set(e,n),$o({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},Ro=new WeakMap,$o=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const i=Io.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",i),t.once("disconnect",jo.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:i})),((e,t)=>{t&&(ko(e),ko(e))})(r,n)},No=e=>{const t=Ro.get(e);return void 0===t?null!==e.channel:t.connected};let Lo=0n;const Uo=(e,t)=>{if(t?.type===qo&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&zo[t].resolve({isDeadlock:!0,hasListeners:!1})},Wo=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:i})=>{if(e?.type!==qo||!t.connected)return e;const{id:s,message:o}=e,a={id:s,type:Yo,message:Zo(t,i)};try{await Xo({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){i.emit("strict:error",e)}return o},Ho=e=>{if(e?.type!==Yo)return!1;const{id:t,message:r}=e;return zo[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},Go=async(e,t,r)=>{if(e?.type!==qo)return;const n=go();zo[e.id]=n;const i=new AbortController;try{const{isDeadlock:e,hasListeners:s}=await Promise.race([n,Vo(t,r,i)]);e&&(e=>{throw new Error(`${ho("sendMessage",e)} failed: the ${fo(e)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${ho("getOneMessage",e)},\n\t${ho("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),s||(e=>{throw new Error(`${ho("sendMessage",e)} failed: the ${fo(e)} is not listening to incoming messages.`)})(r)}finally{i.abort(),delete zo[e.id]}},zo={},Vo=async(e,t,{signal:r})=>{_o(e,1,r),await(0,to.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${ho("sendMessage",e)} failed: the ${fo(e)} exited without listening to incoming messages.`)})(t)},qo="execa:ipc:request",Yo="execa:ipc:response",Ko=async(e,t,r)=>{for(;!Zo(e,t)&&Jo.get(e)?.size>0;){const t=[...Jo.get(e)];Uo(t,r),await Promise.all(t.map((({onMessageSent:e})=>e)))}},Jo=new WeakMap,Zo=(e,t)=>t.listenerCount("message")>Qo(e),Qo=e=>Do.has(e)&&!Mi(Do.get(e).options.buffer,"ipc")?1:0,Xo=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},i,{strict:s=!1}={})=>{const o="sendMessage";return so({methodName:o,isSubprocess:r,ipc:n,isConnected:e.connected}),ea({anyProcess:e,channel:t,methodName:o,isSubprocess:r,message:i,strict:s})},ea=async({anyProcess:e,channel:t,methodName:r,isSubprocess:n,message:i,strict:s})=>{const o=(({anyProcess:e,channel:t,isSubprocess:r,message:n,strict:i})=>{if(!i)return n;const s=Po(e,t,r),o=Zo(e,s);return{id:Lo++,type:qo,message:n,hasListeners:o}})({anyProcess:e,channel:t,isSubprocess:n,message:i,strict:s}),a=((e,t,r)=>{Jo.has(e)||Jo.set(e,new Set);const n=Jo.get(e),i={onMessageSent:go(),id:r?t.id:void 0};return n.add(i),{outgoingMessages:n,outgoingMessage:i}})(e,o,s);try{await ta({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:o,message:i})}catch(t){throw mo(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},ta=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:i})=>{const s=ra(e);try{await Promise.all([Go(n,e,r),s(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${ho(t,r)} cannot be used: the ${fo(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if((({code:e,message:t})=>lo.has(e)||co.some((e=>t.includes(e))))(e))throw new Error(`${ho(t,r)}'s argument type is invalid: the message cannot be serialized: ${String(n)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:r,message:i}),e}},ra=e=>{if(na.has(e))return na.get(e);const t=(0,Mn.promisify)(e.send.bind(e));return na.set(e,t),t},na=new WeakMap,ia=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await sa({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),ca.signal),sa=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{oa||(oa=!0,n?null!==t?(Po(e,t,r),await xs.scheduler.yield()):la():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let oa=!1;const aa=e=>e?.type===ua&&(ca.abort(e.message),!0),ua="execa:ipc:cancel",la=()=>{ca.abort(new Error(`\`cancelSignal\` aborted: the ${fo(!0)} disconnected.`))},ca=new AbortController,ha=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:i,controller:s})=>r?[da({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:i,controller:s})]:[],da=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:i}})=>{await ro(t,i);const s=pa(t);throw await((e,t)=>{const r="cancelSignal";return ao(r,!1,e.connected),ta({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:ua,message:t},message:t})})(e,s),eo({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:i}),n.terminationReason??="gracefulCancel",t.reason},pa=({reason:e})=>{if(!(e instanceof DOMException))return e;const t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t},fa=(e,t,r,n)=>0===t||void 0===t?[]:[ma(e,t,r,n)],ma=async(e,t,r,{signal:n})=>{throw await(0,xs.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new Os},ga=e(import.meta.url)("node:v8"),ba={advanced:e=>{try{(0,ga.serialize)(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},json:e=>{try{JSON.stringify(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}}},ya=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},Da=new Set(["utf8","utf16le"]),wa=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),va=new Set([...Da,...wa]),Ea={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},Fa=e=>"string"==typeof e?`"${e}"`:String(e),Ca=()=>{try{return qt.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Sa=(e,t,r)=>{r.cwd=((e=Ca())=>{const t=zn(e,'The "cwd" option');return ln.resolve(t)})(r.cwd);const[n,i,s]=((e,t,{node:r=!1,nodePath:n=qt.execPath,nodeOptions:i=qt.execArgv.filter((e=>!e.startsWith("--inspect"))),cwd:s,execPath:o,...a})=>{if(void 0!==o)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const u=zn(n,'The "nodePath" option'),l=ln.resolve(s,u),c={...a,nodePath:l,node:r,cwd:s};if(!r)return[e,t,c];if("node"===ln.basename(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[l,[...i,e,...t],{ipc:!0,...c,shell:!1}]})(e,t,r),{command:o,args:a,options:u}=Es._parse(n,i,s),l=(e=>{const t={...e};for(const r of Ti)t[r]=Di(e,r);return t})(u),c=xa(l);return(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(c),(({encoding:e})=>{if(va.has(e))return;const t=(e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in Ea?Ea[t]:va.has(t)?t:void 0})(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${Fa(e)}\`.\nPlease rename it to ${Fa(t)}.`);const r=[...va].map((e=>Fa(e))).join(", ");throw new TypeError(`Invalid option \`encoding: ${Fa(e)}\`.\nPlease rename it to one of: ${r}.`)})(c),(({ipcInput:e,ipc:t,serialization:r})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");ba[r](e)}})(c),(({cancelSignal:e})=>{if(void 0!==e&&"[object AbortSignal]"!==Object.prototype.toString.call(e))throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)})(c),(({gracefulCancel:e,cancelSignal:t,ipc:r,serialization:n})=>{if(e){if(void 0===t)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!r)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if("json"===n)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(c),c.shell=Yn(c.shell),c.env=Oa(c),c.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return Ws(e,t)})(c.killSignal),c.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(c.forceKillAfterDelay),c.lines=c.lines.map(((e,t)=>e&&!wa.has(c.encoding)&&c.buffer[t])),"win32"===qt.platform&&"cmd"===ln.basename(o,".exe")&&a.unshift("/q"),{file:o,commandArguments:a,options:c}},xa=({extendEnv:e=!0,preferLocal:t=!1,cwd:r,localDir:n=r,encoding:i="utf8",reject:s=!0,cleanup:o=!0,all:a=!1,windowsHide:u=!0,killSignal:l="SIGTERM",forceKillAfterDelay:c=!0,gracefulCancel:h=!1,ipcInput:d,ipc:p=void 0!==d||h,serialization:f="advanced",...m})=>({...m,extendEnv:e,preferLocal:t,cwd:r,localDirectory:n,encoding:i,reject:s,cleanup:o,all:a,windowsHide:u,killSignal:l,forceKillAfterDelay:c,gracefulCancel:h,ipcInput:d,ipc:p,serialization:f}),Oa=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:i,nodePath:s})=>{const o=t?{...qt.env,...e}:e;return r||n?Ss({env:o,cwd:i,execPath:s,preferLocal:r,addExecPath:n}):o};function _a(e){if("string"==typeof e)return Aa(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return Ta(e)}const Aa=e=>e.at(-1)===Ma?e.slice(0,e.at(-2)===Ia?-2:-1):e,Ta=e=>e.at(-1)===ka?e.subarray(0,e.at(-2)===ja?-2:-1):e,Ma="\n",ka=Ma.codePointAt(0),Ia="\r",ja=Ia.codePointAt(0);function Ba(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function Pa(e,{checkOpen:t=!0}={}){return Ba(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Ra(e,{checkOpen:t=!0}={}){return Ba(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function $a(e,t){return Pa(e,t)&&Ra(e,t)}const Na=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class La{#M;#k;#I=!1;#j=void 0;constructor(e,t){this.#M=e,this.#k=t}next(){const e=()=>this.#B();return this.#j=this.#j?this.#j.then(e,e):e(),this.#j}return(e){const t=()=>this.#P(e);return this.#j?this.#j.then(t,t):t()}async#B(){if(this.#I)return{done:!0,value:void 0};let e;try{e=await this.#M.read()}catch(e){throw this.#j=void 0,this.#I=!0,this.#M.releaseLock(),e}return e.done&&(this.#j=void 0,this.#I=!0,this.#M.releaseLock()),e}async#P(e){if(this.#I)return{done:!0,value:e};if(this.#I=!0,!this.#k){const t=this.#M.cancel(e);return this.#M.releaseLock(),await t,{done:!0,value:e}}return this.#M.releaseLock(),{done:!0,value:e}}}const Ua=Symbol();function Wa(){return this[Ua].next()}function Ha(e){return this[Ua].return(e)}Object.defineProperty(Wa,"name",{value:"next"}),Object.defineProperty(Ha,"name",{value:"return"});const Ga=Object.create(Na,{next:{enumerable:!0,configurable:!0,writable:!0,value:Wa},return:{enumerable:!0,configurable:!0,writable:!0,value:Ha}});function za({preventCancel:e=!1}={}){const t=this.getReader(),r=new La(t,e),n=Object.create(Ga);return n[Ua]=r,n}const Va=e=>{if(Ra(e,{checkOpen:!1})&&void 0!==Ja.on)return Ya(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===qa.call(e))return za.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:qa}=Object.prototype,Ya=async function*(e){const t=new AbortController,r={};Ka(e,t,r);try{for await(const[r]of Ja.on(e,"data",{signal:t.signal}))yield r}catch(e){if(void 0!==r.error)throw r.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},Ka=async(e,t,r)=>{try{await Ja.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},Ja={},Za=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{const l=Va(e),c=t();c.length=0;try{for await(const e of l){const t=r[tu(e)](e,c);Xa({convertedChunk:t,state:c,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:u})}return Qa({state:c,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,maxBuffer:u}),a(c)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(c),t}},Qa=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:s})=>{const o=i(e);void 0!==o&&Xa({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:s})},Xa=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:s})=>{const o=r(e),a=t.length+o;if(a<=s)return void eu(e,t,i,a);const u=n(e,s-t.length);throw void 0!==u&&eu(u,t,i,s),new nu},eu=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},tu=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const r=ru.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===ru.call(e.buffer)?"typedArray":"others"},{toString:ru}=Object.prototype;class nu extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const iu=(e,t,r)=>{if(t.length!==r)return;const n=new nu;throw n.maxBufferInfo={fdNumber:"ipc"},n},su=([,e])=>e,ou=({originalError:e,timedOut:t,timeout:r,isMaxBuffer:n,maxBuffer:i,errorCode:s,signal:o,signalDescription:a,exitCode:u,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:h,forceKillAfterDelay:d,killSignal:p})=>{const f=au(h,d);return t?`Command timed out after ${r} milliseconds${f}`:c?void 0===o?`Command was gracefully canceled with exit code ${u}`:h?`Command was gracefully canceled${f}`:`Command was gracefully canceled with ${o} (${a})`:l?`Command was canceled${f}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:i}=((e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:r,unit:n}}=e;delete e.maxBufferInfo;const i=Mi(t,r);return"ipc"===r?{streamName:"IPC output",threshold:i,unit:"messages"}:{streamName:yi(r),threshold:i,unit:n}})(e,t);return`Command's ${r} was larger than ${n} ${i}`})(e,i)}${f}`:void 0!==s?`Command failed with ${s}${f}`:h?`Command was killed with ${p} (${Ks(p)})${f}`:void 0!==o?`Command was killed with ${o} (${a})`:void 0!==u?`Command failed with exit code ${u}`:"Command failed"},au=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",uu=e=>"string"==typeof e?e:Qn(e)?ni(e):"",lu=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:i,options:{cwd:s},startTime:o})=>pu({command:e,escapedCommand:t,cwd:s,durationMs:ws(o),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:r[1],stderr:r[2],all:n,stdio:r,ipcOutput:i,pipedFrom:[]}),cu=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:o})=>hu({error:e,command:t,escapedCommand:r,startTime:s,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:n.length}),ipcOutput:[],options:i,isSync:o}),hu=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,stdio:h,all:d,ipcOutput:p,options:{timeoutDuration:f,timeout:m=f,forceKillAfterDelay:g,killSignal:b,cwd:y,maxBuffer:D},isSync:w})=>{const{exitCode:v,signal:E,signalDescription:F}=fu(l,c),{originalMessage:C,shortMessage:S,message:x}=(({stdio:e,all:t,ipcOutput:r,originalError:n,signal:i,signalDescription:s,exitCode:o,escapedCommand:a,timedOut:u,isCanceled:l,isGracefullyCanceled:c,isMaxBuffer:h,isForcefullyTerminated:d,forceKillAfterDelay:p,killSignal:f,maxBuffer:m,timeout:g,cwd:b})=>{const y=n?.code,D=ou({originalError:n,timedOut:u,timeout:g,isMaxBuffer:h,maxBuffer:m,errorCode:y,signal:i,signalDescription:s,exitCode:o,isCanceled:l,isGracefullyCanceled:c,isForcefullyTerminated:d,forceKillAfterDelay:p,killSignal:f}),w=((e,t)=>{if(e instanceof Os)return;const r=Ts(n=e)&&As in n?e.originalMessage:String(e?.message??e);var n;const i=$i(((e,t)=>{if(t===Ca())return e;let r;try{r=(0,un.statSync)(t)}catch(r){return`The "cwd" option is invalid: ${t}.\n${r.message}\n${e}`}return r.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(r,t));return""===i?void 0:i})(n,b),v=`${D}: ${a}${void 0===w?"":`\n${w}`}`,E=[v,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),r.map((e=>(e=>"string"==typeof e?e:(0,Mn.inspect)(e))(e))).join("\n")].map((e=>$i(_a((e=>Array.isArray(e)?e.map((e=>_a(uu(e)))).filter(Boolean).join("\n"):uu(e))(e))))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:v,message:E}})({stdio:h,all:d,ipcOutput:p,originalError:e,signal:E,signalDescription:F,exitCode:v,escapedCommand:r,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,forceKillAfterDelay:g,killSignal:b,maxBuffer:D,timeout:m,cwd:y}),O=((e,t,r)=>new(r?ks:Ms)(t,e instanceof Os?{}:{cause:e}))(e,x,w);return Object.assign(O,du({error:O,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:v,signal:E,signalDescription:F,stdio:h,all:d,ipcOutput:p,cwd:y,originalMessage:C,shortMessage:S})),O},du=({error:e,command:t,escapedCommand:r,startTime:n,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,stdio:d,all:p,ipcOutput:f,cwd:m,originalMessage:g,shortMessage:b})=>pu({shortMessage:b,originalMessage:g,command:t,escapedCommand:r,cwd:m,durationMs:ws(n),failed:!0,timedOut:i,isCanceled:s,isGracefullyCanceled:o,isTerminated:void 0!==c,isMaxBuffer:a,isForcefullyTerminated:u,exitCode:l,signal:c,signalDescription:h,code:e.cause?.code,stdout:d[1],stderr:d[2],all:p,stdio:d,ipcOutput:f,pipedFrom:[]}),pu=e=>Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e))),fu=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:Ks(t)}},mu=e=>Number.isFinite(e)?e:0;function gu(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");const n=e<0?"-":"";e=e<0?-e:e,(t={...t}).colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let i=[];const s=(e,r,n,s)=>{if(0!==i.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===n){if(s??=String(e),t.colonNotation){const e=s.includes(".")?s.split(".")[0].length:s.length,t=i.length>0?2:1;s="0".repeat(Math.max(0,t-e))+s}else s+=t.verbose?" "+((e,t)=>1===t||1n===t?e:`${e}s`)(r,e):n;i.push(s)}},o=function(e){switch(typeof e){case"number":if(Number.isFinite(e))return function(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(mu(1e3*e)%1e3),nanoseconds:Math.trunc(mu(1e6*e)%1e3)}}(e);break;case"bigint":return function(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}(e)}throw new TypeError("Expected a finite number or bigint")}(e),a=BigInt(o.days);if(s(a/365n,"year","y"),s(a%365n,"day","d"),s(Number(o.hours),"hour","h"),s(Number(o.minutes),"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(o.seconds),r=Number(o.milliseconds),n=Number(o.microseconds),i=Number(o.nanoseconds);if(s(e,"second","s"),t.formatSubMilliseconds)s(r,"millisecond","ms"),s(n,"microsecond","\xb5s"),s(i,"nanosecond","ns");else{const e=r+n/1e3+i/1e6,o="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),u=o?e.toFixed(o):a;s(Number.parseFloat(u),"millisecond","ms",u)}}else{const n=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})((r?Number(e%86400000n):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),i=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");s(Number.parseFloat(i),"second","s",i)}if(0===i.length)return n+"0"+(t.verbose?" milliseconds":"ms");const u=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(i=i.slice(0,Math.max(t.unitCount,1))),n+i.join(u)}const bu=(e,t)=>{const r=`(done in ${gu(e.durationMs)})`;cs({type:"duration",verboseMessage:r,verboseInfo:t,result:e})},yu=(e,t,{reject:r})=>{if(((e,t)=>{ki(t)&&(((e,t)=>{e.failed&&cs({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})})(e,t),bu(e,t))})(e,t),e.failed&&r)throw e;return e},Du=(e,t)=>_u(e)?"asyncGenerator":Au(e)?"generator":Mu(e)?"fileUrl":ku(e)?"filePath":Ru(e)?"webStream":Ba(e,{checkOpen:!1})?"native":Qn(e)?"uint8Array":Nu(e)?"asyncIterable":Lu(e)?"iterable":$u(e)?Eu({transform:e},t):Tu(e)?wu(e,t):"native",wu=(e,t)=>$a(e.transform,{checkOpen:!1})?vu(e,t):$u(e.transform)?Eu(e,t):Su(e,t),vu=(e,t)=>(Fu(e,t,"Duplex stream"),"duplex"),Eu=(e,t)=>(Fu(e,t,"web TransformStream"),"webTransform"),Fu=({final:e,binary:t,objectMode:r},n,i)=>{Cu(e,`${n}.final`,i),Cu(t,`${n}.binary`,i),xu(r,`${n}.objectMode`)},Cu=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},Su=({transform:e,final:t,binary:r,objectMode:n},i)=>{if(void 0!==e&&!Ou(e))throw new TypeError(`The \`${i}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if($a(t,{checkOpen:!1}))throw new TypeError(`The \`${i}.final\` option must not be a Duplex stream.`);if($u(t))throw new TypeError(`The \`${i}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!Ou(t))throw new TypeError(`The \`${i}.final\` option must be a generator.`);return xu(r,`${i}.binary`),xu(n,`${i}.objectMode`),_u(e)||_u(t)?"asyncGenerator":"generator"},xu=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},Ou=e=>_u(e)||Au(e),_u=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),Au=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),Tu=e=>Hn(e)&&(void 0!==e.transform||void 0!==e.final),Mu=e=>"[object URL]"===Object.prototype.toString.call(e),ku=e=>Hn(e)&&1===Object.keys(e).length&&Iu(e.file),Iu=e=>"string"==typeof e,ju=new Set(["ipc","ignore","inherit","overlapped","pipe"]),Bu=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),Pu=e=>"[object WritableStream]"===Object.prototype.toString.call(e),Ru=e=>Bu(e)||Pu(e),$u=e=>Bu(e?.readable)&&Pu(e?.writable),Nu=e=>Uu(e)&&"function"==typeof e[Symbol.asyncIterator],Lu=e=>Uu(e)&&"function"==typeof e[Symbol.iterator],Uu=e=>"object"==typeof e&&null!==e,Wu=new Set(["generator","asyncGenerator","duplex","webTransform"]),Hu=new Set(["fileUrl","filePath","fileNumber"]),Gu=new Set(["fileUrl","filePath"]),zu=new Set([...Gu,"webStream","nodeStream"]),Vu=new Set(["webTransform","duplex"]),qu={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"},Yu=(e,t,r,n)=>"output"===n?Ku(e,t,r):Ju(e,t,r),Ku=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},Ju=(e,t,r)=>{const n=0===t?!0===e:r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:t!==r.length-1&&(e??n)}},Zu=(e,t,r,{encoding:n})=>{const i=e.filter((({type:e})=>Wu.has(e))),s=Array.from({length:i.length});for(const[e,o]of Object.entries(i))s[e]=Qu({stdioItem:o,index:Number(e),newTransforms:s,optionName:t,direction:r,encoding:n});return rl(s,r)},Qu=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:i,direction:s,encoding:o})=>"duplex"===t?Xu({stdioItem:e,optionName:i}):"webTransform"===t?el({stdioItem:e,index:r,newTransforms:n,direction:s}):tl({stdioItem:e,index:r,newTransforms:n,direction:s,encoding:o}),Xu=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:r,readableObjectMode:n},objectMode:i=n}},optionName:s})=>{if(i&&!n)throw new TypeError(`The \`${s}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!i&&n)throw new TypeError(`The \`${s}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:r,readableObjectMode:n}}},el=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i})=>{const{transform:s,objectMode:o}=Hn(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:u}=Yu(o,r,n,i);return{...e,value:{transform:s,writableObjectMode:a,readableObjectMode:u}}},tl=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i,encoding:s})=>{const{transform:o,final:a,binary:u=!1,preserveNewlines:l=!1,objectMode:c}=Hn(t)?t:{transform:t},h=u||wa.has(s),{writableObjectMode:d,readableObjectMode:p}=Yu(c,r,n,i);return{...e,value:{transform:o,final:a,binary:h,preserveNewlines:l,writableObjectMode:d,readableObjectMode:p}}},rl=(e,t)=>"input"===t?e.reverse():e,nl=["input","output","output"],il=()=>{},sl=()=>"input",ol={generator:il,asyncGenerator:il,fileUrl:il,filePath:il,iterable:sl,asyncIterable:sl,uint8Array:sl,webStream:e=>Pu(e)?"output":"input",nodeStream:e=>Ra(e,{checkOpen:!1})?Pa(e,{checkOpen:!1})?void 0:"input":"output",webTransform:il,duplex:il,native(e){const t=al(e);return void 0!==t?t:Ba(e,{checkOpen:!1})?ol.nodeStream(e):void 0}},al=e=>[0,qt.stdin].includes(e)?"input":[1,2,qt.stdout,qt.stderr].includes(e)?"output":void 0,ul=e=>bi.some((t=>void 0!==e[t])),ll=(e,t)=>Array.isArray(e)?e.map((e=>ll(e,t))):null==e?t>=bi.length?"ignore":"pipe":e,cl=e=>"pipe"===e||Array.isArray(e)&&e.every((e=>"pipe"===e)),hl=({value:e,optionName:t,fdNumber:r,direction:n})=>{const i=dl(e,r);if(void 0!==i){if("output"===n)return{type:"fileNumber",value:i,optionName:t};if(Kt.isatty(i))throw new TypeError(`The \`${t}: ${Oo(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:Xn((0,un.readFileSync)(i)),optionName:t}}},dl=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=gi.indexOf(e);return-1!==r?r:void 0},pl=(e,t,r)=>{const n=gi[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},fl=({input:e,inputFile:t},r)=>0===r?[...ml(e),...bl(t)]:[],ml=e=>void 0===e?[]:[{type:gl(e),value:e,optionName:"input"}],gl=e=>{if(Ra(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(Qn(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},bl=e=>void 0===e?[]:[{...yl(e),optionName:"inputFile"}],yl=e=>{if(Mu(e))return{type:"fileUrl",value:e};if(Iu(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},Dl=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{const s=e.filter((e=>wl(e,r)));if(0===s.length)return;const o=s.find((e=>e.direction!==i));return vl(o,n,t),"output"===i?s[0].stream:void 0},wl=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,vl=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${qu[r]} that is the same.`)},El=(e,t,r,n)=>{const i=(({stdio:e,ipc:t,buffer:r,...n},i,s)=>{const o=((e,t)=>{if(void 0===e)return bi.map((e=>t[e]));if(ul(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${bi.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e)return[e,e,e];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const r=Math.max(e.length,bi.length);return Array.from({length:r},((t,r)=>e[r]))})(e,n).map(((e,t)=>ll(e,t)));return s?((e,t,r)=>e.map(((e,n)=>t[n]||0===n||Ii(r,n)||!cl(e)?e:"ignore")))(o,r,i):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(o,t)})(t,r,n),s=i.map(((e,r)=>Fl({stdioOption:e,fdNumber:r,options:t,isSync:n}))),o=Ml({initialFileDescriptors:s,addProperties:e,options:t,isSync:n});return t.stdio=o.map((({stdioItems:e})=>Bl(e))),o},Fl=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const i=yi(t),{stdioItems:s,isStdioArray:o}=Cl({stdioOption:e,fdNumber:t,options:r,optionName:i}),a=((e,t,r)=>{const n=e.map((e=>(({type:e,value:t},r)=>nl[r]??ol[e](t))(e,t)));if(n.includes("input")&&n.includes("output"))throw new TypeError(`The \`${r}\` option must not be an array of both readable and writable values.`);return n.find(Boolean)??"output"})(s,t,i),u=s.map((e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:i,isSync:s})=>r&&"native"===t?s?(({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:i})=>{const s=hl({value:t,optionName:r,fdNumber:n,direction:i});if(void 0!==s)return s;if(Ba(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e})({stdioItem:e,fdNumber:n,direction:i}):(({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:pl(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:pl(t,t,r),optionName:r}:Ba(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e)({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:o,fdNumber:t,direction:a,isSync:n}))),l=((e,t,r,n)=>[...e.filter((({type:e})=>!Wu.has(e))),...Zu(e,t,r,n)])(u,i,a,r),c=((e,t)=>{const r=e.findLast((({type:e})=>Wu.has(e)));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(l,a);return Tl(l,c),{direction:a,objectMode:c,stdioItems:l}},Cl=({stdioOption:e,fdNumber:t,options:r,optionName:n})=>{const i=(e=>e.filter(((t,r)=>e.every(((e,n)=>t.value!==e.value||r>=n||"generator"===t.type||"asyncGenerator"===t.type)))))([...(Array.isArray(e)?e:[e]).map((e=>Sl(e,n))),...fl(r,t)]),s=i.length>1;return xl(i,s,n),_l(i),{stdioItems:i,isStdioArray:s}},Sl=(e,t)=>({type:Du(e,t),value:e,optionName:t}),xl=(e,t,r)=>{if(0===e.length)throw new TypeError(`The \`${r}\` option must not be an empty array.`);if(t)for(const{value:t,optionName:r}of e)if(Ol.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},Ol=new Set(["ignore","ipc"]),_l=e=>{for(const t of e)Al(t)},Al=({type:e,value:t,optionName:r})=>{if((e=>Mu(e)&&"file:"!==e.protocol)(t))throw new TypeError(`The \`${r}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(((e,t)=>"native"===e&&"string"==typeof t&&!ju.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},Tl=(e,t)=>{if(!t)return;const r=e.find((({type:e})=>Hu.has(e)));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},Ml=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const i=[];try{for(const s of e)i.push(kl({fileDescriptor:s,fileDescriptors:i,addProperties:t,options:r,isSync:n}));return i}catch(e){throw jl(i),e}},kl=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:i,options:s,isSync:o})=>{const a=r.map((t=>Il({stdioItem:t,addProperties:i,direction:e,options:s,fileDescriptors:n,isSync:o})));return{direction:e,objectMode:t,stdioItems:a}},Il=({stdioItem:e,addProperties:t,direction:r,options:n,fileDescriptors:i,isSync:s})=>{const o=(({stdioItem:{type:e,value:t,optionName:r},direction:n,fileDescriptors:i,isSync:s})=>{const o=((e,t)=>e.flatMap((({direction:e,stdioItems:r})=>r.filter((e=>e.type===t)).map((t=>({...t,direction:e}))))))(i,e);if(0!==o.length){if(!s)return zu.has(e)?Dl({otherStdioItems:o,type:e,value:t,optionName:r,direction:n}):void(Vu.has(e)&&(({otherStdioItems:e,type:t,value:r,optionName:n})=>{const i=e.find((({value:{transform:e}})=>e===r.transform));vl(i,n,t)})({otherStdioItems:o,type:e,value:t,optionName:r}));(({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{Gu.has(t)&&Dl({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})})({otherStdioItems:o,type:e,value:t,optionName:r,direction:n})}})({stdioItem:e,direction:r,fileDescriptors:i,isSync:s});return void 0!==o?{...e,stream:o}:{...e,...t[r][e.type](e,n)}},jl=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||mi(e)||e.destroy()},Bl=e=>{if(e.length>1)return e.some((({value:e})=>"overlapped"===e))?"overlapped":"pipe";const[{type:t,value:r}]=e;return"native"===t?r:"pipe"},Pl=({type:e,optionName:t})=>{Rl(t,qu[e])},Rl=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},$l={generator(){},asyncGenerator:Pl,webStream:Pl,nodeStream:Pl,webTransform:Pl,duplex:Pl,asyncIterable:Pl,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||Rl(e,`"${t}"`),{})},Nl={input:{...$l,fileUrl:({value:e})=>({contents:[Xn((0,un.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[Xn((0,un.readFileSync)(e))]}),fileNumber:Pl,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...$l,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e}})=>({path:e}),fileNumber:({value:e})=>({path:e}),iterable:Pl,string:Pl,uint8Array:Pl}},Ll=(e,{stripFinalNewline:t},r)=>Ul(t,r)&&void 0!==e&&!Array.isArray(e)?_a(e):e,Ul=(e,t)=>"all"===t?e[1]||e[2]:e[t],Wl=e(import.meta.url)("node:stream"),Hl=(e,t,r,n)=>e||r?void 0:Vl(t,n),Gl=(e,t,r)=>r?e.flatMap((e=>zl(e,t))):zl(e,t),zl=(e,t)=>{const{transform:r,final:n}=Vl(t,{});return[...r(e),...n()]},Vl=(e,t)=>(t.previousChunks="",{transform:ql.bind(void 0,t,e),final:Kl.bind(void 0,t)}),ql=function*(e,t,r){if("string"!=typeof r)return void(yield r);let{previousChunks:n}=e,i=-1;for(let s=0;s<r.length;s+=1)if("\n"===r[s]){const o=Yl(r,s,t,e);let a=r.slice(i+1,s+1-o);n.length>0&&(a=Ql(n,a),n=""),yield a,i=s}i!==r.length-1&&(n=Ql(n,r.slice(i+1))),e.previousChunks=n},Yl=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),Kl=function*({previousChunks:e}){e.length>0&&(yield e)},Jl=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:Zl.bind(void 0,n)},Zl=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:i,concatBytes:s}="string"==typeof t?Xl:ec;if(t.at(-1)===i)return void(yield t);const o=e?n:r;yield s(t,o)},Ql=(e,t)=>`${e}${t}`,Xl={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:Ql},ec={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}},tc=e(import.meta.url)("node:buffer"),rc=(e,t)=>e?void 0:nc.bind(void 0,t),nc=function*(e,t){if("string"!=typeof t&&!Qn(t)&&!tc.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},ic=(e,t)=>e?sc.bind(void 0,t):oc.bind(void 0,t),sc=function*(e,t){ac(e,t),yield t},oc=function*(e,t){if(ac(e,t),"string"!=typeof t&&!Qn(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},ac=(e,t)=>{if(null==t)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)},uc=(e,t,r)=>{if(r)return;if(e)return{transform:lc.bind(void 0,new TextEncoder)};const n=new Jn.StringDecoder(t);return{transform:cc.bind(void 0,n),final:hc.bind(void 0,n)}},lc=function*(e,t){tc.Buffer.isBuffer(t)?yield Xn(t):"string"==typeof t?yield e.encode(t):yield t},cc=function*(e,t){yield Qn(t)?e.write(t):t},hc=function*(e){const t=e.end();""!==t&&(yield t)},dc=(0,Mn.callbackify)((async(e,t,r,n)=>{t.currentIterable=e(...r);try{for await(const e of t.currentIterable)n.push(e)}finally{delete t.currentIterable}})),pc=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=bc}=t[r];for await(const i of n(e))yield*pc(i,t,r+1)},fc=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*mc(r,Number(t),e)},mc=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*pc(n,r,t+1)},gc=(0,Mn.callbackify)((async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())})),bc=function*(e){yield e},yc=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},Dc=(e,t)=>[...t.flatMap((t=>[...wc(t,e,0)])),...vc(e)],wc=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=Fc}=t[r];for(const i of n(e))yield*wc(i,t,r+1)},vc=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Ec(r,Number(t),e)},Ec=function*(e,t,r){if(void 0!==e)for(const n of e())yield*wc(n,r,t+1)},Fc=function*(e){yield e},Cc=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:i},optionName:s},{encoding:o})=>{const a={},u=xc(e,o,s),l=_u(t),c=_u(r),h=l?dc.bind(void 0,pc,a):yc.bind(void 0,wc),d=l||c?dc.bind(void 0,fc,a):yc.bind(void 0,vc),p=l||c?gc.bind(void 0,a):void 0;return{stream:new Wl.Transform({writableObjectMode:n,writableHighWaterMark:(0,Wl.getDefaultHighWaterMark)(n),readableObjectMode:i,readableHighWaterMark:(0,Wl.getDefaultHighWaterMark)(i),transform(e,t,r){h([e,u,0],this,r)},flush(e){d([u],this,e)},destroy:p})}},Sc=(e,t,r,n)=>{const i=t.filter((({type:e})=>"generator"===e)),s=n?i.reverse():i;for(const{value:t,optionName:n}of s){const i=xc(t,r,n);e=Dc(i,e)}return e},xc=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:i,preserveNewlines:s},o,a)=>{const u={};return[{transform:rc(n,a)},uc(r,o,n),Hl(r,s,n,u),{transform:e,final:t},{transform:ic(i,a)},Jl({binary:r,preserveNewlines:s,readableObjectMode:i,state:u})].filter(Boolean)},Oc=(e,t,r)=>{const{stdioItems:n}=e[t],i=n.filter((({contents:e})=>void 0!==e));if(0===i.length)return;if(0!==t){const[{type:e,optionName:t}]=i;throw new TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${qu[e]} with synchronous methods.`)}const s=i.map((({contents:e})=>e)).map((e=>_c(e,n)));r.input=ii(s)},_c=(e,t)=>{const r=Sc(e,t,"utf8",!0);return Ac(r),ii(r)},Ac=e=>{const t=e.find((e=>"string"!=typeof e&&!Qn(e)));if(void 0!==t)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)},Tc=({stdioItems:e,encoding:t,verboseInfo:r,fdNumber:n})=>"all"!==n&&Ii(r,n)&&!wa.has(t)&&Mc(n)&&(e.some((({type:e,value:t})=>"native"===e&&kc.has(t)))||e.every((({type:e})=>Wu.has(e)))),Mc=e=>1===e||2===e,kc=new Set(["pipe","overlapped"]),Ic=e=>e._readableState.pipes.length>0,jc=(e,t,r)=>{const n=ms(e);cs({type:"output",verboseMessage:n,fdNumber:t,verboseInfo:r})},Bc=(e,t,r,n)=>{try{return Sc(e,t,r,!1)}catch(t){return n.error=t,e}},Pc=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:i,fdNumber:s})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:ii(e)};const o=((e,t)=>((e,t)=>{if("utf8"===t&&e.every((e=>"string"==typeof e)))return e;const r=new Jn.StringDecoder(t),n=e.map((e=>"string"==typeof e?ti(e):e)).map((e=>r.write(e))),i=r.end();return""===i?n:[...n,i]})(e,t).join(""))(e,r);return n[s]?{serializedResult:o,finalResult:Gl(o,!i[s],t)}:{serializedResult:o}},Rc=({serializedResult:e,fdNumber:t,state:r,verboseInfo:n,encoding:i,stdioItems:s,objectMode:o})=>{if(!Tc({stdioItems:s,encoding:i,verboseInfo:n,fdNumber:t}))return;const a=Gl(e,!1,o);try{((e,t,r)=>{for(const n of e)jc(n,t,r)})(a,t,n)}catch(e){r.error??=e}},$c=(e,t,r)=>{for(const{path:n}of t.filter((({type:e})=>Hu.has(e)))){const t="string"==typeof n?n:n.toString();r.has(t)?(0,un.appendFileSync)(n,e):(r.add(t),(0,un.writeFileSync)(n,e))}},Nc=async e=>{try{return await(0,to.once)(e,"exit")}catch{return Nc(e)}},Lc=async e=>{const[t,r]=await e;if(!Uc(t,r)&&Wc(t,r))throw new Os;return[t,r]},Uc=(e,t)=>void 0===e&&void 0===t,Wc=(e,t)=>0!==e||null!==t,Hc=(e,t,r)=>void 0!==e?e:Wc(t,r)?new Os:void 0,Gc=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,zc=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&Vc("ipcInput"),e&&Vc("ipc: true"),r&&Vc("detached: true"),n&&Vc("cancelSignal")},Vc=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},qc=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,verboseInfo:s,fileDescriptors:o,startTime:a})=>{const u=Yc({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:o,startTime:a});if(u.failed)return u;const{resultError:l,exitCode:c,signal:h,timedOut:d,isMaxBuffer:p}=(({error:e,status:t,signal:r,output:n},{maxBuffer:i})=>{const s=Hc(e,t,r),o="ETIMEDOUT"===s?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some((e=>null!==e&&e.length>su(r))))(s,n,i);return{resultError:s,exitCode:t,signal:r,timedOut:o,isMaxBuffer:a}})(u,r),{output:f,error:m=l}=(({fileDescriptors:e,syncResult:{output:t},options:r,isMaxBuffer:n,verboseInfo:i})=>{if(null===t)return{output:Array.from({length:3})};const s={},o=new Set([]);return{output:t.map(((t,a)=>(({result:e,fileDescriptors:t,fdNumber:r,state:n,outputFiles:i,isMaxBuffer:s,verboseInfo:o},{buffer:a,encoding:u,lines:l,stripFinalNewline:c,maxBuffer:h})=>{if(null===e)return;const d=((e,t,r)=>{if(!t)return e;const n=su(r);return e.length>n?e.slice(0,n):e})(e,s,h),p=Xn(d),{stdioItems:f,objectMode:m}=t[r],g=Bc([p],f,u,n),{serializedResult:b,finalResult:y=b}=Pc({chunks:g,objectMode:m,encoding:u,lines:l,stripFinalNewline:c,fdNumber:r});Rc({serializedResult:b,fdNumber:r,state:n,verboseInfo:o,encoding:u,stdioItems:f,objectMode:m});const D=a[r]?y:void 0;try{return void 0===n.error&&$c(b,f,i),D}catch(e){return n.error=e,D}})({result:t,fileDescriptors:e,fdNumber:a,state:s,outputFiles:o,isMaxBuffer:n,verboseInfo:i},r))),...s}})({fileDescriptors:o,syncResult:u,options:r,isMaxBuffer:p,verboseInfo:s}),g=f.map(((e,t)=>Ll(e,r,t))),b=Ll((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,Ll(t,r,"all")]:Array.isArray(t)?[Ll(e,r,"all"),...t]:Qn(e)&&Qn(t)?oi([e,t]):`${e}${t}`})(f,r),r,"all");return Jc({error:m,exitCode:c,signal:h,timedOut:d,isMaxBuffer:p,stdio:g,all:b,options:r,command:n,escapedCommand:i,startTime:a})},Yc=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:s,startTime:o})=>{try{((e,t)=>{for(const r of(e=>new Set(Object.entries(e).filter((([,{direction:e}])=>"input"===e)).map((([e])=>Number(e)))))(e))Oc(e,r,t)})(s,r);const n=Kc(r);return(0,an.spawnSync)(e,t,n)}catch(e){return cu({error:e,command:n,escapedCommand:i,fileDescriptors:s,options:r,startTime:o,isSync:!0})}},Kc=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:su(t)}),Jc=({error:e,exitCode:t,signal:r,timedOut:n,isMaxBuffer:i,stdio:s,all:o,options:a,command:u,escapedCommand:l,startTime:c})=>void 0===e?lu({command:u,escapedCommand:l,stdio:s,all:o,ipcOutput:[],options:a,startTime:c}):hu({error:e,command:u,escapedCommand:l,timedOut:n,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:i,isForcefullyTerminated:!1,exitCode:t,signal:r,stdio:s,all:o,ipcOutput:[],options:a,startTime:c,isSync:!0}),Zc=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0,filter:s}={})=>(so({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:No(e)}),Qc({anyProcess:e,channel:t,isSubprocess:r,filter:s,reference:i})),Qc=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:i})=>{Ao(t,i);const s=Po(e,t,r),o=new AbortController;try{return await Promise.race([Xc(s,n,o),eh(s,r,o),th(s,r,o)])}catch(t){throw mo(e),t}finally{o.abort(),Mo(t,i)}},Xc=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await(0,to.once)(e,"message",{signal:r});return t}for await(const[n]of(0,to.on)(e,"message",{signal:r}))if(t(n))return n},eh=async(e,t,{signal:r})=>{await(0,to.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${ho("getOneMessage",e)} could not complete: the ${fo(e)} exited or disconnected.`)})(t)},th=async(e,t,{signal:r})=>{const[n]=await(0,to.once)(e,"strict:error",{signal:r});throw uo(n,t)},rh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0}={})=>nh({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:i}),nh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:i,reference:s})=>{so({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:No(e)}),Ao(t,s);const o=Po(e,t,r),a=new AbortController,u={};return ih(e,o,a),sh({ipcEmitter:o,isSubprocess:r,controller:a,state:u}),oh({anyProcess:e,channel:t,ipcEmitter:o,isSubprocess:r,shouldAwait:i,controller:a,state:u,reference:s})},ih=async(e,t,r)=>{try{await(0,to.once)(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},sh=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[i]=await(0,to.once)(e,"strict:error",{signal:r.signal});n.error=uo(i,t),r.abort()}catch{}},oh=async function*({anyProcess:e,channel:t,ipcEmitter:r,isSubprocess:n,shouldAwait:i,controller:s,state:o,reference:a}){try{for await(const[e]of(0,to.on)(r,"message",{signal:s.signal}))ah(o),yield e}catch{ah(o)}finally{s.abort(),Mo(t,a),n||mo(e),i&&await e}},ah=({error:e})=>{if(e)throw e},uh=(e,t,r)=>({sendMessage:Xo.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:Zc.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:rh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),lh=()=>{const e=new Wl.PassThrough;return e.end(),e},ch=()=>new Wl.Readable({read(){}}),hh=()=>new Wl.Writable({write(){}}),dh=()=>new Wl.Duplex({read(){},write(){}}),ph=async(e,t,r)=>yu(e,t,r),fh=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${qu[e]}.`)},mh={fileNumber:fh,generator:Cc,asyncGenerator:Cc,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:Wl.Duplex.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},gh={input:{...mh,fileUrl:({value:e})=>({stream:(0,un.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,un.createReadStream)(e)}),webStream:({value:e})=>({stream:Wl.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:Wl.Readable.from(e)}),asyncIterable:({value:e})=>({stream:Wl.Readable.from(e)}),string:({value:e})=>({stream:Wl.Readable.from(e)}),uint8Array:({value:e})=>({stream:Wl.Readable.from(tc.Buffer.from(e))})},output:{...mh,fileUrl:({value:e})=>({stream:(0,un.createWriteStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,un.createWriteStream)(e)}),webStream:({value:e})=>({stream:Wl.Writable.fromWeb(e)}),iterable:fh,asyncIterable:fh,string:fh,uint8Array:fh}},bh=e(import.meta.url)("node:stream/promises");function yh(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)Ch(t);const t=e.some((({readableObjectMode:e})=>e)),r=Dh(e,t),n=new wh({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const Dh=(e,t)=>{if(0===e.length)return(0,Wl.getDefaultHighWaterMark)(t);const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class wh extends Wl.PassThrough{#R=new Set([]);#$=new Set([]);#N=new Set([]);#L;#U=Symbol("unpipe");#W=new WeakMap;add(e){if(Ch(e),this.#R.has(e))return;this.#R.add(e),this.#L??=vh(this,this.#R,this.#U);const t=Sh({passThroughStream:this,stream:e,streams:this.#R,ended:this.#$,aborted:this.#N,onFinished:this.#L,unpipeEvent:this.#U});this.#W.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(Ch(e),!this.#R.has(e))return!1;const t=this.#W.get(e);return void 0!==t&&(this.#W.delete(e),e.unpipe(this),await t,!0)}}const vh=async(e,t,r)=>{Bh(e,Ph);const n=new AbortController;try{await Promise.race([Eh(e,n),Fh(e,t,r,n)])}finally{n.abort(),Bh(e,-Ph)}},Eh=async(e,{signal:t})=>{try{await(0,bh.finished)(e,{signal:t,cleanup:!0})}catch(t){throw Th(e,t),t}},Fh=async(e,t,r,{signal:n})=>{for await(const[i]of(0,to.on)(e,"unpipe",{signal:n}))t.has(i)&&i.emit(r)},Ch=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Sh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,onFinished:s,unpipeEvent:o})=>{Bh(e,Rh);const a=new AbortController;try{await Promise.race([xh(s,t,a),Oh({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:a}),_h({stream:t,streams:r,ended:n,aborted:i,unpipeEvent:o,controller:a})])}finally{a.abort(),Bh(e,-Rh)}r.size>0&&r.size===n.size+i.size&&(0===n.size&&i.size>0?kh(e):Ah(e))},xh=async(e,t,{signal:r})=>{try{await e,r.aborted||kh(t)}catch(e){r.aborted||Th(t,e)}},Oh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:{signal:s}})=>{try{await(0,bh.finished)(t,{signal:s,cleanup:!0,readable:!0,writable:!1}),r.has(t)&&n.add(t)}catch(n){if(s.aborted||!r.has(t))return;Mh(n)?i.add(t):Ih(e,n)}},_h=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:i,controller:{signal:s}})=>{if(await(0,to.once)(e,i,{signal:s}),!e.readable)return(0,to.once)(s,"abort",{signal:s});t.delete(e),r.delete(e),n.delete(e)},Ah=e=>{e.writable&&e.end()},Th=(e,t)=>{Mh(t)?kh(e):Ih(e,t)},Mh=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,kh=e=>{(e.readable||e.writable)&&e.destroy()},Ih=(e,t)=>{e.destroyed||(e.once("error",jh),e.destroy(t))},jh=()=>{},Bh=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},Ph=2,Rh=1,$h=(e,t)=>{e.pipe(t),Nh(e,t),Uh(e,t)},Nh=async(e,t)=>{if(!mi(e)&&!mi(t)){try{await(0,bh.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Lh(t)}},Lh=e=>{e.writable&&e.end()},Uh=async(e,t)=>{if(!mi(e)&&!mi(t)){try{await(0,bh.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}Wh(e)}},Wh=e=>{e.readable&&e.destroy()},Hh=(e,t,r,n)=>{"output"===r?$h(e.stdio[n],t):$h(t,e.stdio[n]);const i=Gh[n];void 0!==i&&(e[i]=t),e.stdio[n]=t},Gh=["stdin","stdout","stderr"],zh=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:i,controller:s})=>{if(void 0===t)return;Vh(t,s);const[o,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],u=i.get(o)??[];i.set(o,[...u,a])},Vh=(e,{signal:t})=>{mi(e)&&_o(e,qh,t)},qh=2,Yh=(e,t,r,...n)=>{if(Array.isArray(r))return{destination:t(Kh,e)(r,...n),pipeOptions:e};if("string"==typeof r||r instanceof URL||qn(r)){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');const[i,s,o]=Kn(r,...n);return{destination:t(Kh)(i,s,o),pipeOptions:o}}if(Do.has(r)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:r,pipeOptions:n[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${r}`)},Kh=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),Jh=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>cu({error:e,command:Zh,escapedCommand:Zh,fileDescriptors:t,options:r,startTime:n,isSync:!1}),Zh="source.pipe(destination)",Qh=async e=>{const[{status:t,reason:r,value:n=r},{status:i,reason:s,value:o=s}]=await e;if(o.pipedFrom.includes(n)||o.pipedFrom.push(n),"rejected"===i)throw o;if("rejected"===t)throw n;return o},Xh=new WeakMap,ed=(e,t)=>void 0===e?[]:[td(e,t)],td=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:i,startTime:s})=>{await(0,Mn.aborted)(e,t),await r.remove(t);const o=new Error("Pipe canceled by `unpipeSignal` option.");throw Jh({error:o,fileDescriptors:n,sourceOptions:i,startTime:s})},rd=(e,...t)=>{if(Hn(t[0]))return rd.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:r,...n}=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...i)=>{const s=Ds(),{destination:o,destinationStream:a,destinationError:u,from:l,unpipeSignal:c}=((e,t,r)=>{try{const{destination:n,pipeOptions:{from:i,to:s,unpipeSignal:o}={}}=Yh(e,t,...r);return{destination:n,destinationStream:bo(n,s),from:i,unpipeSignal:o}}catch(e){return{destinationError:e}}})(r,n,i),{sourceStream:h,sourceError:d}=((e,t)=>{try{return{sourceStream:yo(e,t)}}catch(e){return{sourceError:e}}})(e,l),{options:p,fileDescriptors:f}=Do.get(e);return{sourcePromise:t,sourceStream:h,sourceOptions:p,sourceError:d,destination:o,destinationStream:a,destinationError:u,unpipeSignal:c,fileDescriptors:f,startTime:s}})(e,...t),i=nd({...n,destination:r});return i.pipe=rd.bind(void 0,{...e,source:r,sourcePromise:i,boundOptions:{}}),i},nd=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:i,destinationStream:s,destinationError:o,unpipeSignal:a,fileDescriptors:u,startTime:l})=>{const c=id(e,i);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:i,sourceOptions:s,startTime:o})=>{const a=(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(Wh(e),n):void 0!==t?(Lh(r),t):void 0)({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw Jh({error:a,fileDescriptors:i,sourceOptions:s,startTime:o})})({sourceStream:t,sourceError:n,destinationStream:s,destinationError:o,fileDescriptors:u,sourceOptions:r,startTime:l});const h=new AbortController;try{const e=((e,t,r)=>{const n=Xh.has(t)?((e,t)=>{const r=Xh.get(t);return r.add(e),r})(e,t):((e,t)=>{const r=yh([e]);return $h(r,t),Xh.set(t,r),r})(e,t);return _o(e,2,r.signal),_o(t,1,r.signal),(async e=>{try{await(0,bh.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Xh.delete(e)})(t),n})(t,s,h);return await Promise.race([Qh(c),...ed(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:u,startTime:l})])}finally{h.abort()}},id=(e,t)=>Promise.allSettled([e,t]),sd=e=>e,od=()=>{},ad=({contents:e})=>e,ud=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},ld=e=>e.length,cd={init:()=>({contents:[]}),convertChunk:{string:sd,buffer:sd,arrayBuffer:sd,dataView:sd,typedArray:sd,others:sd},getSize:()=>1,truncateChunk:od,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:od,finalize:ad},hd=new TextEncoder,dd=e=>new Uint8Array(e),pd=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),fd=e=>md**Math.ceil(Math.log(e)/Math.log(md)),md=2,gd=()=>"resize"in ArrayBuffer.prototype,bd={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>hd.encode(e),buffer:dd,arrayBuffer:dd,dataView:pd,typedArray:pd,others:ud},getSize:ld,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const i=gd()?((e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:fd(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r})(t,n):((e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(fd(t));return new Uint8Array(r).set(new Uint8Array(e),0),r})(t,n);return new Uint8Array(i).set(e,r),i},getFinalChunk:od,finalize:({contents:e,length:t})=>gd()?e:e.slice(0,t)},yd=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Dd={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:sd,buffer:yd,arrayBuffer:yd,dataView:yd,typedArray:yd,others:ud},getSize:ld,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:ad},wd=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:i,preserveNewlines:s})=>{const o=new AbortController;return vd(t,o),Cd({stream:e,controller:o,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:i,shouldSplit:!e.readableObjectMode,preserveNewlines:s})},vd=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Ed=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:i,allMixed:s})=>{const o=new AbortController;Fd(t,o,e);const a=e.readableObjectMode&&!s;return Cd({stream:e,controller:o,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!i})},Fd=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},Cd=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})=>{const a=(0,to.on)(e,"data",{signal:t.signal,highWaterMark:xd,highWatermark:xd});return Od({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})},Sd=(0,Wl.getDefaultHighWaterMark)(!0),xd=Sd,Od=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o}){const a=_d({binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o});try{for await(const[t]of e)yield*wc(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*vc(a)}},_d=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:i})=>[uc(e,r,!t),Hl(e,i,!n,{})].filter(Boolean),Ad=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:i,maxBuffer:s,lines:o,allMixed:a,stripFinalNewline:u,verboseInfo:l,streamInfo:c})=>{const h=Td({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:a,verboseInfo:l,streamInfo:c});if(!i)return void await Promise.all([Md(e),h]);const d=Ul(u,r),p=Ed({stream:e,onStreamEnd:t,lines:o,encoding:n,stripFinalNewline:d,allMixed:a}),[f]=await Promise.all([kd({stream:e,iterable:p,fdNumber:r,encoding:n,maxBuffer:s,lines:o}),h]);return f},Td=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,allMixed:i,verboseInfo:s,streamInfo:{fileDescriptors:o}})=>{if(!Tc({stdioItems:o[r]?.stdioItems,encoding:n,verboseInfo:s,fdNumber:r}))return;const a=Ed({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:i});await(async(e,t,r,n)=>{for await(const i of e)Ic(t)||jc(i,r,n)})(a,e,r,s)},Md=async e=>{await(0,xs.setImmediate)(),null===e.readableFlowing&&e.resume()},kd=async({stream:e,stream:{readableObjectMode:t},iterable:r,fdNumber:n,encoding:i,maxBuffer:s,lines:o})=>{try{return t||o?await async function(e,t){return Za(e,cd,t)}(r,{maxBuffer:s}):"buffer"===i?new Uint8Array(await async function(e,t){return Za(e,bd,t)}(r,{maxBuffer:s})):await async function(e,t){return Za(e,Dd,t)}(r,{maxBuffer:s})}catch(r){return jd((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:i,fdNumber:s})=>{if(!(e instanceof nu))throw e;if("all"===s)return e;const o=((e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters")(r,n,i);throw e.maxBufferInfo={fdNumber:s,unit:o},t.destroy(),e})({error:r,stream:e,readableObjectMode:t,lines:o,encoding:i,fdNumber:n}))}},Id=async e=>{try{return await e}catch(e){return jd(e)}},jd=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===Zn.call(t)?new Uint8Array(e):e;var t},Bd=async(e,t,r,{isSameDirection:n,stopOnExit:i=!1}={})=>{const s=Pd(e,r),o=new AbortController;try{await Promise.race([...i?[r.exitPromise]:[],(0,bh.finished)(e,{cleanup:!0,signal:o.signal})])}catch(e){s.stdinCleanedUp||Nd(e,t,r,n)}finally{o.abort()}},Pd=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&Rd(e,r,n),n},Rd=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...i)=>{$d(t,r),n.call(e,...i)}},$d=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},Nd=(e,t,r,n)=>{if(!Ld(e,t,r,n))throw e},Ld=(e,t,r,n=!0)=>r.propagating?Hd(e)||Wd(e):(r.propagating=!0,Ud(r,t)===n?Hd(e):Wd(e)),Ud=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,Wd=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Hd=e=>"EPIPE"===e?.code,Gd=async({stream:e,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l})=>{if(!e)return;const c=Bd(e,t,l);if(Ud(l,t))return void await c;const[h]=await Promise.all([Ad({stream:e,onStreamEnd:c,fdNumber:t,encoding:r,buffer:n,maxBuffer:i,lines:s,allMixed:o,stripFinalNewline:a,verboseInfo:u,streamInfo:l}),c]);return h},zd=({stdout:e,stderr:t,all:r},[,n,i])=>{const s=n||i;return s?n?i?{stream:r,buffer:s}:{stream:e,buffer:s}:{stream:t,buffer:s}:{stream:r,buffer:s}},Vd=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,qd=(e,t)=>{const r=ms(e);cs({type:"ipc",verboseMessage:r,fdNumber:"ipc",verboseInfo:t})},Yd=async(e,t)=>(await Promise.allSettled([e]),t),Kd=async({subprocess:e,options:{encoding:t,buffer:r,maxBuffer:n,lines:i,timeoutDuration:s,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,stripFinalNewline:l,ipc:c,ipcInput:h},context:d,verboseInfo:p,fileDescriptors:f,originalStreams:m,onInternalError:g,controller:b})=>{const y=(async(e,t)=>{const[r,n]=await(async e=>{const[t,r]=await Promise.allSettled([(0,to.once)(e,"spawn"),(0,to.once)(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?Nc(e):r.value})(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,d),D={originalStreams:m,fileDescriptors:f,subprocess:e,exitPromise:y,propagating:!1},w=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>e.stdio.map(((e,u)=>Gd({stream:e,fdNumber:u,encoding:t,buffer:r[u],maxBuffer:n[u],lines:i[u],allMixed:!1,stripFinalNewline:s,verboseInfo:o,streamInfo:a}))))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:D}),v=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>Gd({...zd(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:i[1]||i[2],allMixed:Vd(e),stripFinalNewline:s,verboseInfo:o,streamInfo:a}))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:D}),E=[],F=(async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:i,verboseInfo:s})=>{if(!n)return i;const o=(e=>Ii(e,"ipc"))(s),a=Mi(t,"ipc"),u=Mi(r,"ipc");for await(const t of nh({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(iu(0,i,u),i.push(t)),o&&qd(t,s);return i})({subprocess:e,buffer:r,maxBuffer:n,ipc:c,ipcOutput:E,verboseInfo:p}),C=Jd(m,e,D),S=Zd(f,D);try{return await Promise.race([Promise.all([{},Lc(y),Promise.all(w),v,F,ya(e,h),...C,...S]),g,Qd(e,b),...fa(e,s,d,b),...no({subprocess:e,cancelSignal:o,gracefulCancel:a,context:d,controller:b}),...ha({subprocess:e,cancelSignal:o,gracefulCancel:a,forceKillAfterDelay:u,context:d,controller:b})])}catch(e){return d.terminationReason??="other",Promise.all([{error:e},y,Promise.all(w.map((e=>Id(e)))),Id(v),Yd(F,E),Promise.allSettled(C),Promise.allSettled(S)])}},Jd=(e,t,r)=>e.map(((e,n)=>e===t.stdio[n]?void 0:Bd(e,n,r))),Zd=(e,t)=>e.flatMap((({stdioItems:e},r)=>e.filter((({value:e,stream:t=e})=>Ba(t,{checkOpen:!1})&&!mi(t))).map((({type:e,value:n,stream:i=n})=>Bd(i,r,t,{isSameDirection:Wu.has(e),stopOnExit:"native"===e}))))),Qd=async(e,{signal:t})=>{const[r]=await(0,to.once)(e,"error",{signal:t});throw r},Xd=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const i=n.get(t),s=go();return i.push(s),{resolve:s.resolve.bind(s),promises:i}},ep=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},tp=async e=>{if(void 0!==e)try{await rp(e)}catch{}},rp=async e=>{await(0,bh.finished)(e,{cleanup:!0,readable:!1,writable:!0})},np=async e=>{await(0,bh.finished)(e,{cleanup:!0,readable:!0,writable:!1})},ip=async(e,t)=>{if(await e,t)throw t},sp=(e,t,r)=>{r&&!Wd(r)?e.destroy(r):t&&e.destroy()},op=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:i=!0,preserveNewlines:s=!0}={})=>{const o=i||wa.has(r),{subprocessStdout:a,waitReadableDestroy:u}=ap(e,n,t),{readableEncoding:l,readableObjectMode:c,readableHighWaterMark:h}=up(a,o),{read:d,onStdoutDataDone:p}=lp({subprocessStdout:a,subprocess:e,binary:o,encoding:r,preserveNewlines:s}),f=new Wl.Readable({read:d,destroy:(0,Mn.callbackify)(dp.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:u})),highWaterMark:h,objectMode:c,encoding:l});return hp({subprocessStdout:a,onStdoutDataDone:p,readable:f,subprocess:e}),f},ap=(e,t,r)=>{const n=yo(e,t);return{subprocessStdout:n,waitReadableDestroy:Xd(r,n,"readableDestroy")}},up=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Sd},lp=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:i})=>{const s=go(),o=wd({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:i});return{read(){cp(this,o,s)},onStdoutDataDone:s}},cp=async(e,t,r)=>{try{const{value:n,done:i}=await t.next();i?r.resolve():e.push(n)}catch{}},hp=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:i})=>{try{await np(e),await n,await tp(i),await t,r.readable&&r.push(null)}catch(e){await tp(i),pp(r,e)}},dp=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await ep(r,t)&&(pp(e,n),await ip(t,n))},pp=(e,t)=>{sp(e,e.readable,t)},fp=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:i,waitWritableDestroy:s}=mp(e,r,t),o=new Wl.Writable({...gp(n,e,i),destroy:(0,Mn.callbackify)(wp.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:i,waitWritableDestroy:s})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return Dp(n,o),o},mp=(e,t,r)=>{const n=bo(e,t);return{subprocessStdin:n,waitWritableFinal:Xd(r,n,"writableFinal"),waitWritableDestroy:Xd(r,n,"writableDestroy")}},gp=(e,t,r)=>({write:bp.bind(void 0,e),final:(0,Mn.callbackify)(yp.bind(void 0,e,t,r))}),bp=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},yp=async(e,t,r)=>{await ep(r,t)&&(e.writable&&e.end(),await t)},Dp=async(e,t,r)=>{try{await rp(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await np(e)}catch{}})(r),vp(t,e)}},wp=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},i)=>{await ep(r,t),await ep(n,t)&&(vp(e,i),await ip(t,i))},vp=(e,t)=>{sp(e,e.writable,t)},Ep=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:i,binary:s=!0,preserveNewlines:o=!0}={})=>{const a=s||wa.has(r),{subprocessStdout:u,waitReadableDestroy:l}=ap(e,n,t),{subprocessStdin:c,waitWritableFinal:h,waitWritableDestroy:d}=mp(e,i,t),{readableEncoding:p,readableObjectMode:f,readableHighWaterMark:m}=up(u,a),{read:g,onStdoutDataDone:b}=lp({subprocessStdout:u,subprocess:e,binary:a,encoding:r,preserveNewlines:o}),y=new Wl.Duplex({read:g,...gp(c,e,h),destroy:(0,Mn.callbackify)(Fp.bind(void 0,{subprocessStdout:u,subprocessStdin:c,subprocess:e,waitReadableDestroy:l,waitWritableFinal:h,waitWritableDestroy:d})),readableHighWaterMark:m,writableHighWaterMark:c.writableHighWaterMark,readableObjectMode:f,writableObjectMode:c.writableObjectMode,encoding:p});return hp({subprocessStdout:u,onStdoutDataDone:b,readable:y,subprocess:e,subprocessStdin:c}),Dp(c,y,u),y},Fp=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:i,waitWritableDestroy:s},o)=>{await Promise.all([dp({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},o),wp({subprocessStdin:t,subprocess:r,waitWritableFinal:i,waitWritableDestroy:s},o)])},Cp=(e,t,{from:r,binary:n=!1,preserveNewlines:i=!1}={})=>{const s=n||wa.has(t),o=yo(e,r),a=wd({subprocessStdout:o,subprocess:e,binary:s,shouldEncode:!0,encoding:t,preserveNewlines:i});return Sp(a,o,e)},Sp=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},xp=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=op.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=fp.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=Ep.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=Cp.bind(void 0,e,t),e[Symbol.asyncIterator]=Cp.bind(void 0,e,t,{})},Op=(async()=>{})().constructor.prototype,_p=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Op,e)])),Ap=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=vs(e,t,r),{file:a,commandArguments:u,options:l}=Sa(e,t,r),c=Tp(l),h=((e,t)=>El(gh,e,t,!1))(c,o);return{file:a,commandArguments:u,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}},Tp=({timeout:e,signal:t,...r})=>{if(void 0!==t)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...r,timeoutDuration:e}},Mp=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:i,command:s,escapedCommand:o,fileDescriptors:a})=>{let u;try{u=(0,an.spawn)(e,t,r)}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,verboseInfo:o})=>{jl(n);const a=new an.ChildProcess;((e,t)=>{const r=lh(),n=lh(),i=lh(),s=Array.from({length:t.length-3},lh),o=lh(),a=[r,n,i,...s];Object.assign(e,{stdin:r,stdout:n,stderr:i,all:o,stdio:a})})(a,n),Object.assign(a,{readable:ch,writable:hh,duplex:dh});const u=cu({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:!1});return{subprocess:a,promise:ph(u,o,i)}})({error:e,command:s,escapedCommand:o,fileDescriptors:a,options:r,startTime:n,verboseInfo:i})}const l=new AbortController;(0,to.setMaxListeners)(Number.POSITIVE_INFINITY,l.signal);const c=[...u.stdio];((e,t,r)=>{const n=new Map;for(const[i,{stdioItems:s,direction:o}]of Object.entries(t)){for(const{stream:t}of s.filter((({type:e})=>Wu.has(e))))Hh(e,t,o,i);for(const{stream:t}of s.filter((({type:e})=>!Wu.has(e))))zh({subprocess:e,stream:t,direction:o,fdNumber:i,pipeGroups:n,controller:r})}for(const[e,t]of n.entries()){const r=1===t.length?t[0]:yh(t);$h(r,e)}})(u,a,l),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const i=$r((()=>{e.kill()}));(0,to.addAbortListener)(n,(()=>{i()}))})(u,r,l);const h={},d=go();return u.kill=Js.bind(void 0,{kill:u.kill.bind(u),options:r,onInternalError:d,context:h,controller:l}),u.all=(({stdout:e,stderr:t},{all:r})=>r&&(e||t)?yh([e,t].filter(Boolean)):void 0)(u,r),xp(u,r),((e,{ipc:t})=>{Object.assign(e,uh(e,!1,t))})(u,r),{subprocess:u,promise:kp({subprocess:u,options:r,startTime:n,verboseInfo:i,fileDescriptors:a,originalStreams:c,command:s,escapedCommand:o,context:h,onInternalError:d,controller:l})}},kp=async({subprocess:e,options:t,startTime:r,verboseInfo:n,fileDescriptors:i,originalStreams:s,command:o,escapedCommand:a,context:u,onInternalError:l,controller:c})=>{const[h,[d,p],f,m,g]=await Kd({subprocess:e,options:t,context:u,verboseInfo:n,fileDescriptors:i,originalStreams:s,onInternalError:l,controller:c});c.abort(),l.resolve();const b=f.map(((e,r)=>Ll(e,t,r))),y=Ll(m,t,"all"),D=Ip({errorInfo:h,exitCode:d,signal:p,stdio:b,all:y,ipcOutput:g,context:u,options:t,command:o,escapedCommand:a,startTime:r});return yu(D,n,t)},Ip=({errorInfo:e,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,context:o,options:a,command:u,escapedCommand:l,startTime:c})=>"error"in e?hu({error:e.error,command:u,escapedCommand:l,timedOut:"timeout"===o.terminationReason,isCanceled:"cancel"===o.terminationReason||"gracefulCancel"===o.terminationReason,isGracefullyCanceled:"gracefulCancel"===o.terminationReason,isMaxBuffer:e.error instanceof nu,isForcefullyTerminated:o.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,options:a,startTime:c,isSync:!1}):lu({command:u,escapedCommand:l,stdio:n,all:i,ipcOutput:s,options:a,startTime:c}),jp=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map((([t,r])=>[t,Bp(t,e[t],r)])));return{...e,...r}},Bp=(e,t,r)=>Pp.has(e)&&Hn(t)&&Hn(r)?{...t,...r}:r,Pp=new Set(["env",...Ti]),Rp=(e,t,r,n)=>{const i=(e,t,n)=>Rp(e,t,r,n),s=(...s)=>$p({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:i},...s);return void 0!==n&&n(s,i,t),s},$p=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:i},s,...o)=>{if(Hn(s))return i(e,jp(r,s),n);const{file:a,commandArguments:u,options:l,isSync:c}=Np({mapArguments:e,firstArgument:s,nextArguments:o,deepOptions:t,boundOptions:r});return c?((e,t,r)=>{const{file:n,commandArguments:i,command:s,escapedCommand:o,startTime:a,verboseInfo:u,options:l,fileDescriptors:c}=((e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=vs(e,t,r),a=Gc(r),{file:u,commandArguments:l,options:c}=Sa(e,t,a);zc(c);const h=((e,t)=>El(Nl,e,t,!0))(c,o);return{file:u,commandArguments:l,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}})(e,t,r),h=qc({file:n,commandArguments:i,options:l,command:s,escapedCommand:o,verboseInfo:u,fileDescriptors:c,startTime:a});return yu(h,u,l)})(a,u,l):((e,t,r,n)=>{const{file:i,commandArguments:s,command:o,escapedCommand:a,startTime:u,verboseInfo:l,options:c,fileDescriptors:h}=Ap(e,t,r),{subprocess:d,promise:p}=Mp({file:i,commandArguments:s,options:c,startTime:u,verboseInfo:l,command:o,escapedCommand:a,fileDescriptors:h});return d.pipe=rd.bind(void 0,{source:d,sourcePromise:p,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of _p){const i=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}})(d,p),Do.set(d,{options:c,fileDescriptors:h}),d})(a,u,l,i)},Np=({mapArguments:e,firstArgument:t,nextArguments:r,deepOptions:n,boundOptions:i})=>{const s=(o=t,Array.isArray(o)&&Array.isArray(o.raw)?((e,t)=>{let r=[];for(const[n,i]of e.entries())r=ui({templates:e,expressions:t,tokens:r,index:n,template:i});if(0===r.length)throw new TypeError("Template script must not be empty");const[n,...i]=r;return[n,i,{}]})(t,r):[t,...r]);var o;const[a,u,l]=Kn(...s),c=jp(jp(n,i),l),{file:h=a,commandArguments:d=u,options:p=c,isSync:f=!1}=e({file:a,commandArguments:u,options:c});return{file:h,commandArguments:d,options:p,isSync:f}},Lp=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);const[r,...n]=Up(e);return{file:r,commandArguments:n}},Up=e=>{if("string"!=typeof e)throw new TypeError(`The command must be a string: ${String(e)}.`);const t=e.trim();if(""===t)return[];const r=[];for(const e of t.split(Wp)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},Wp=/ +/g,Hp=({options:e})=>({...Gp(e),isSync:!0}),Gp=e=>({options:{...zp(e),...e}}),zp=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},Vp=Rp((()=>({}))),{sendMessage:qp,getOneMessage:Yp,getEachMessage:Kp,getCancelSignal:Jp}=(Rp((()=>({isSync:!0}))),Rp((({file:e,commandArguments:t})=>Lp(e,t))),Rp((({file:e,commandArguments:t})=>({...Lp(e,t),isSync:!0}))),Rp((({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}})),Rp((({options:e})=>Gp(e)),{},{preferLocal:!0},((e,t,r)=>{e.sync=t(Hp,r),e.s=e.sync})),(()=>{const e=qt,t=!0,r=void 0!==qt.channel;return{...uh(e,t,r),getCancelSignal:ia.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}})());var Zp=n(5600);function Qp({vue:e,react:t}){const r=t&&e||!t&&!e?"base":t?"react":"vue";return{eslintConfig:{extends:`@nice-move/eslint-config-${r}`},devDependencies:{[`@nice-move/eslint-config-${r}`]:"^0.11.26",eslint:"catalog:"}}}const Xp="Add/Reset project dependencies";function ef(){const{dependencies:e={},devDependencies:t={}}=mn();return{instructions:!1,optionsPerPage:20,message:Xp,name:"Dependencies",type:e=>!1===e?null:"multiselect",choices:["tailwindcss","react","vue","typescript","commitlint","eslint","stylelint","prettier","syncpack","garou","ava","playwright","@bring-it/sftp","@bring-it/npm","best-shot"].map((r=>({title:r,value:r,selected:r in e||r in t}))),format:e=>{if(e.length>0)return t=>function(e,t={}){return(new Lt.Json).config({pretty:!0}).source("package.json").onFail().onDone((async(r={})=>{const{devDependencies:n={},dependencies:i={}}=r,{ava:s="ava"in n,commitlint:o="commitlint"in n,eslint:a="eslint"in n,garou:u="garou"in n,prettier:l="prettier"in n,react:c="react"in i,stylelint:h="stylelint"in n,syncpack:d="syncpack"in n,typescript:p="typescript"in n,vue:f="vue"in i,tailwindcss:m="tailwindcss"in i||"tailwindcss"in n,playwright:g,"@bring-it/sftp":b="@bring-it/sftp"in n,"@bring-it/npm":y="@bring-it/npm"in n,"best-shot":D="best-shot"in n}=t,w=a||h||l||u,v=[w?"npm run lint:staged":void 0,p?"npm run lint:type":void 0,s?"npm test":void 0].filter(Boolean);return v.length>0&&await(new Lt.Text).onDone((()=>["#!/bin/sh","",...v,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new Lt.Text).onDone((()=>["#!/bin/sh","npx --no-install nice-move lint commit",""].join("\n\n"))).output(".githooks/commit-msg"),d&&await(new Lt.Text).onDone((()=>["// @ts-check","import defineConfig from '@nice-move/syncpack-config/define.cjs';","export default defineConfig(import.meta.url, {});","// export { default } from '@nice-move/syncpack-config';"].join("\n\n"))).output("syncpack.config.mjs"),p&&await(new Lt.Json).config({pretty:!0}).onDone((()=>({extends:"@nice-move/tsconfig/base.json",include:["./"]}))).output("tsconfig.json"),On(...[r,e&&(w||s||o||g||p)?{scripts:{prepare:"nice-move git hooks"}}:void 0,u?{devDependencies:{garou:"catalog:"},"nice-move":{"import-groups":["nice-move-preset"]}}:void 0,p?{devDependencies:{typescript:"catalog:","@nice-move/tsconfig":"^0.2.5"},scripts:{"lint:type":"tsc --noEmit"}}:void 0,w||o?{devDependencies:{"@nice-move/cli":"^0.11.16"}}:void 0,w?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,s?{devDependencies:{ava:"^6.1.3",...a?{"eslint-plugin-ava":"^14.0.0"}:void 0},scripts:{prepublishOnly:r.private?void 0:v.join(" && ")||void 0,test:"ava --fail-fast",snapshot:"ava --fail-fast -u"}}:void 0,a?Qp({react:c,vue:f}):void 0,h?{devDependencies:{"@nice-move/stylelint-config":"^0.10.8",stylelint:"^16.10.0"},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,d?{devDependencies:{"@nice-move/syncpack-config":"^0.2.9",syncpack:"^13.0.0"},scripts:{"lint:version":"syncpack lint","version:pin":"syncpack fix-mismatches"}}:void 0,l?{devDependencies:{"@nice-move/prettier-config":"^0.14.7",prettier:"^3.3.3"},prettier:"@nice-move/prettier-config"}:void 0,c?{dependencies:{react:"~18.2.0","react-dom":"~18.2.0"},peerDependencies:{"@types/react":"~18.2.79"}}:void 0,f?{dependencies:{vue:"~3.4.27"}}:void 0,m?{dependencies:{tailwindcss:"^3.4.3"},devDependencies:{"prettier-plugin-tailwindcss":l?"^0.6.8":void 0}}:void 0,g?{scripts:{"pretest:e2e":"npm link @playwright/test","test:e2e":"playwright test"}}:void 0,b?{devDependencies:{"@bring-it/sftp":"^0.3.1"}}:void 0,y?{devDependencies:{"@bring-it/npm":"^0.5.9"}}:void 0,D?{devDependencies:{"best-shot":"^0.7.7"},"nice-move":{globals:{BEST_SHOT:"readonly"}},scripts:{build:"best-shot prod"}}:void 0].filter(Boolean))})).output().logger(Xp).catch(console.warn)}(t,Object.fromEntries(e.map((e=>[e,!0]))))}}}const tf="Initialize as git repository";function rf(){return Vp("git",["init"]).then((e=>(console.log(wr("\u221a"),tf),e)),(e=>{throw console.log(Dr("\xd7"),tf),e}))}function nf({gitSupported:e,isRoot:t}){return{message:tf,name:"GitInit",initial:!0,type:r=>!1===r||!e||t?null:"confirm",format(e){if(!0===e)return rf}}}var sf=n(1416),of=n(5982);const af=/(?<=^v?|\sv?)(?:(?:0|[1-9]\d{0,9}?)\.){2}(?:0|[1-9]\d{0,9})(?:-(?:--+)?(?:0|[1-9]\d*|\d*[a-z]+\d*)){0,100}(?=$| |\+|\.)(?:(?<=-\S+)(?:\.(?:--?|[\da-z-]*[a-z-]\d*|0|[1-9]\d*)){1,100}?)?(?!\.)(?:\+(?:[\da-z]\.?-?){1,100}?(?!\w))?(?!\+)/gi;async function uf(){const e=await Vp("git",["--version"]).then((({stdout:e})=>Boolean(e))),t=e&&await Vp("git",["rev-parse","--git-dir"]).then((({stdout:e})=>".git"===e)).catch((()=>!1)),r=!!t&&await Vp("git",["status","--short"]).then((({stdout:e})=>e.length>0)),n=0===(0,un.readdirSync)(process.cwd()).filter((e=>".git"!==e)).length,i=mn(),s=process.cwd(),o={gitSupported:e,isRoot:t,isDirty:r,isEmpty:n,pkg:i,cwd:s},a=await async function({cwd:e,pkg:{author:t,description:r,license:n,name:i,private:s,version:o,workspaces:a}={}}){return[{format:pn,initial:(0,ln.parse)(e).base,message:"package.json \xbb name",name:"name",type:e=>!1===e||i?null:"text",validate:e=>of(pn(e)||"").validForNewPackages},{format:pn,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:e=>!1===e||o?null:"text",validate:e=>af.test(pn(e)||"")},{format:pn,message:"package.json \xbb description",name:"description",type:e=>!1===e||r?null:"text"},{active:"MIT",format:e=>e?"MIT":"UNLICENSED",inactive:"UNLICENSED",initial:!0,message:"package.json \xbb license",name:"license",type:e=>!1===e||n?null:"toggle"},{type:e=>!1===e||("string"==typeof t?t:t&&t.name)?null:"text",format:sf,initial:await fn(t),message:"package.json \xbb author",name:"author"},{active:"true",inactive:"false",initial:!1,message:"package.json \xbb private",name:"private",format:e=>!1===e?void 0:e,type:e=>!1===e||void 0!==s?null:"toggle"},{active:"recommend",inactive:"false",initial:!1,message:"package.json \xbb workspaces",name:"workspaces",format:e=>e?["packages/*","tools/*"]:void 0,type:(e,t)=>{return!1===e||!1===s||!1===t.private||(r=a&&a.packages?a.packages:a,Array.isArray(r)&&r.length>0)?null:"toggle";var r}}]}(o);return Zp([{active:"do it",inactive:"cancel",message:!0===r?"Repository not clean":"Workspace not empty",name:"okay",type:()=>n||!1===r?null:"toggle"},nf(o),...a,ef()],{onCancel(){throw new Error("cancel")}}).then((({okay:e,...t})=>{if(!1===e)throw new Error("cancel");return Object.entries(t)})).then((e=>{const t=a.map((({name:e})=>e)),r=Object.fromEntries(e.filter((([e])=>t.includes(e))));return{...Object.fromEntries(e.filter((([e])=>!t.includes(e)))),info:r,options:o}}))}process.on("SIGINT",(()=>{})),new class{constructor(e,t){this.root=t;const{bin:r,homepage:n,name:s="cheetor",repository:{url:o=""}={},version:a}="string"==typeof e?JSON.parse((0,i.readFileSync)(new URL(e,t))):e;this.homepage=n,this.repository=o.includes("github.com")?o.replace(/\.git$/,""):"";const u=$t(process.argv.slice(2)).strict().alias("help","h").alias("version","v").hide("help").version(a).hide("version").detectLocale(!1),l=function(e,t){if("string"==typeof e||!e)return t;const r=Object.keys(e);return 1===r.length&&r[0]}(r,s);l&&u.scriptName(l),this.cli=Promise.resolve(u)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then((t=>t.command(...e))),this}commandFrom(e){return this.cli=this.cli.then((async t=>{const r=await Nt(e,this.root);return t.command(r)})),this}commandSafe(e){return this.cli=this.cli.then((t=>function(e,t){return Nt(e,t).catch((e=>{if("ERR_MODULE_NOT_FOUND"===e.code&&e.message.endsWith(` imported from ${(0,g.fileURLToPath)(import.meta.url)}`))return!1;throw e}))}(e,this.root).then((e=>e&&e.command?t.command(e):t)))),this}commandSmart(e){return this.cli=this.cli.then((async t=>{const r=e();return r&&r.command?t.command(r):t})),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then((t=>t.middleware(...e))),this}setup(e){return this.cli.then((e=>function(e,t){const{homepage:r,site:n=r,repository:i}=t,s=n&&n!==i,o=e.getInternalMethods(),a=(u=o.getCommandInstance().handlers,Object.keys(u).some((e=>e&&"$0"!==e)));var u;return 0===o.getUsageInstance().getUsage().length&&(a?e.usage("Usage: $0 <command>"):e.usage("Usage: $0")),a&&e.demandCommand(1,"Won't work without a command"),s&&e.epilogue(`Website: ${n}`),i&&e.epilogue(`Repository: ${i}`),e}(e,this))).then((t=>"function"==typeof e?e(t.parse()):t.parse()))}}("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").setup((()=>{(async function(){const{Dependencies:e,GitInit:t,Install:r,info:n,options:{isRoot:i}={}}=await uf();console.log("-".repeat(32));const s=[t,()=>function(e){return(new Lt.Json).config({pretty:!0}).source(Un).onFail().onDone(((t={})=>On({engines:{node:"^18.17.0 || ^20.5.0 || ^22.0.0"},publishConfig:e.private||t.private?void 0:{access:"public",registry:"https://registry.npmjs.org/"}},t,e))).onDone((e=>(!0===e.private&&async function(){"zh-CN"===await Ln()&&(new Lt.Text).source(".npmrc").onFail().onDone(((e="")=>e.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(e)?e:`registry = https://mirrors.tencent.com/npm/\r${e}`)).output().logger("Set registry to China mirror in",yr(".npmrc")).catch(console.warn)}(),e))).output().logger("Add project info to",yr(Un)).catch(console.warn)}(n),Wn,yn,vr,()=>t||i?bn():void 0,()=>e?e(t||i):void 0,r].filter((e=>"function"==typeof e));for(const e of s){const t=await e();t&&t.catch&&t.catch((e=>{console.warn(e.message)}))}})().catch((e=>{if("cancel"!==e.message)throw e}))}));